Test Report : TEST-reg_value_exchange_test-20240120185940.xml
Test Suite: reg_value_exchange_test-20240120185940
Results
| Duration | 6.389 sec |
| Tests | 1 |
| Failures | 0 |
Tests
reg_value_exchange_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 6.389 sec |
| Failed | None |
None
Suite stdout:
[1705777180532] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1705777180532] [INFO] FW-UPD Initialized
[1705777180532] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f5aa0b38360> (<uclient.hub.HUB object at 0x7f5aa09b1110>,)
[1705777180532] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f5aa0b38360> ret: None
[1705777180532] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f5aa0d46ca0> ('<48:3f:da:55:07:5b/status', '-1')
[1705777180532] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f5aa0d46ca0> ret: None
[1705777180532] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f5aa0d46a20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f5aa09b1110>>,)
[1705777180532] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f5aa0d46a20> ret: None
[1705777180532] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f5aa0d46b60> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f5aa09b1110>>,)
[1705777180532] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f5aa0d46b60> ret: None
[1705777180532] [WARN] HUB Try to connect without uri-schema
[1705777180532] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f5aa0d45e40> ('x.ks.ua',)
[1705777181536] [INFO] HUB Connected
[1705777181536] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f5aa0d46660> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5aa09b1110>>)
[1705777181579] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f5aa0d46660> ret: None
[1705777181579] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f5aa0d46660> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5aa09b1110>>)
[1705777181623] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f5aa0d46660> ret: None
[1705777181623] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1705777181623] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f5aa0d46660> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5aa09b1110>>)
[1705777181667] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f5aa0d46660> ret: None
[1705777181667] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1705777181667] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f5aa0d46660> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5aa09b1110>>)
[1705777181711] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f5aa0d46660> ret: None
[1705777181711] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1705777181711] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f5aa0d46660> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5aa09b1110>>)
[1705777181755] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f5aa0d46660> ret: None
[1705777181755] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1705777181755] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f5aa0d46660> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5aa09b1110>>)
[1705777181799] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f5aa0d46660> ret: None
[1705777181799] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1705777181800] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f5aa0d46660> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5aa09b1110>>)
[1705777181843] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f5aa0d46660> ret: None
[1705777181844] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f5aa0d45e40> ret: None
[1705777181844] [DBG] HUB Step, state: 0 (next: 1705777182844)
[1705777181844] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1705777181844] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f5aa0d46520> ('/reg', '48:3f:da:55:07:5b')
[1705777181889] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f5aa0d46520> ret: None
[1705777181931] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1705777181890 }
[1705777181931] [INFO] HUB Registration finish, time: 1705777181890
[1705777181931] [DBG] FW-UPD enter <function device_base.register at 0x7f5aa0b38860> (1705777181,)
[1705777181931] [INFO] FW-UPD Device 3996365522 registration on the server @ 1705777181
[1705777181931] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1705777181931] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f5aa0d46660> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5aa09b1110>>)
[1705777181975] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f5aa0d46660> ret: None
[1705777181975] [DBG] FW-UPD exit <function device_base.register at 0x7f5aa0b38860> ret: None
[1705777182844] [DBG] HUB Step, state: 1 (next: 1705777183844)
[1705777182844] [DBG] FW-UPD enter <function device_base.info_req at 0x7f5aa0b39120> ()
[1705777182844] [DBG] FW-UPD exit <function device_base.info_req at 0x7f5aa0b39120> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1705777181}}
[1705777182844] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1705777181}}]} }
[1705777182844] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f5aa0d46520> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1705777181}}]}')
[1705777182844] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f5aa0d46520> ret: None
[1705777183866] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 23672 }
[1705777183866] [DBG] FW-UPD enter <function device_base.hnd_msg at 0x7f5aa0b389a0> ('8', 23672)
[1705777183866] [INFO] FW-UPD Set REG[8] = 23672
[1705777183866] [DBG] FW-UPD exit <function device_base.hnd_msg at 0x7f5aa0b389a0> ret: None
[1705777184871] [DBG] FW-UPD enter <function device_base.set_reg at 0x7f5aa0b385e0> (8, 24627)
[1705777184871] [INFO] HUB Publish message: { topic: 3996365522/8, value: 24627 }
[1705777184871] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f5aa0d46520> ('<48:3f:da:55:07:5b/3996365522/8', '24627')
[1705777184871] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f5aa0d46520> ret: None
[1705777184873] [DBG] FW-UPD exit <function device_base.set_reg at 0x7f5aa0b385e0> ret: None
[1705777185885] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 52167, "rnd-b": 4416} }
[1705777185885] [DBG] FW-UPD enter <function device_base.hnd_msg at 0x7f5aa0b389a0> ('9', {'rnd-a': 52167, 'rnd-b': 4416})
[1705777185885] [INFO] FW-UPD Set REG[9] = {'rnd-a': 52167, 'rnd-b': 4416}
[1705777185885] [DBG] FW-UPD exit <function device_base.hnd_msg at 0x7f5aa0b389a0> ret: None
[1705777186893] [DBG] FW-UPD enter <function device_base.set_reg at 0x7f5aa0b385e0> (9, {'rnd-a': 9095, 'rnd-b': 58958})
[1705777186893] [INFO] HUB Publish message: { topic: 3996365522/9, value: {"rnd-a": 9095, "rnd-b": 58958} }
[1705777186893] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f5aa0d46520> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 9095, "rnd-b": 58958}')
[1705777186894] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f5aa0d46520> ret: None
[1705777186896] [DBG] FW-UPD exit <function device_base.set_reg at 0x7f5aa0b385e0> ret: None
[1705777186907] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f5aa0d468e0> ()
[1705777186908] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f5aa0d468e0> ret: None
[1705777186909] [WARN] HUB Disconecting from broker
Suite stderr:
2024-01-20 18:59:42,850 - TEST - INFO - OP take: 1005.564 ms
2024-01-20 18:59:42,860 - TEST - INFO - Connected with result code: 0
2024-01-20 18:59:42,863 - TEST - INFO - OP take: 10.145 ms
2024-01-20 18:59:43,864 - TEST - INFO - ------- 1. Set register 8 to value 23672 from server side
2024-01-20 18:59:43,865 - TEST - INFO - [dev] => { '8' : '23672' }
2024-01-20 18:59:43,868 - TEST - INFO - OP take: 0.007 ms
2024-01-20 18:59:44,869 - TEST - INFO - ------- 2. Set register 8 to value 24627 from device side
2024-01-20 18:59:44,883 - TEST - INFO - OP take: 10.155 ms
2024-01-20 18:59:45,884 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 52167, 'rnd-b': 4416} from server side
2024-01-20 18:59:45,884 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 52167, 'rnd-b': 4416}' }
2024-01-20 18:59:45,889 - TEST - INFO - OP take: 0.007 ms
2024-01-20 18:59:46,890 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 9095, 'rnd-b': 58958} from device side
2024-01-20 18:59:46,906 - TEST - INFO - OP take: 10.126 ms
2024-01-20 18:59:46,914 - TEST - WARNING - Disconecting from broker
2024-01-20 18:59:46,926 - TEST - WARNING - Disconecting from broker