Test Report : TEST-reg_value_exchange_test-20231126185921.xml
Test Suite: reg_value_exchange_test-20231126185921
Results
| Duration | 6.379 sec |
| Tests | 1 |
| Failures | 0 |
Tests
reg_value_exchange_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 6.379 sec |
| Failed | None |
None
Suite stdout:
[1701025161302] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1701025161303] [INFO] FW-UPD Initialized
[1701025161303] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f3440254360> (<uclient.hub.HUB object at 0x7f34400cce50>,)
[1701025161303] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f3440254360> ret: None
[1701025161303] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f3440462ca0> ('<48:3f:da:55:07:5b/status', '-1')
[1701025161303] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f3440462ca0> ret: None
[1701025161303] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f3440462a20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f34400cce50>>,)
[1701025161303] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f3440462a20> ret: None
[1701025161303] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f3440462b60> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f34400cce50>>,)
[1701025161303] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f3440462b60> ret: None
[1701025161303] [WARN] HUB Try to connect without uri-schema
[1701025161303] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f3440461e40> ('x.ks.ua',)
[1701025162307] [INFO] HUB Connected
[1701025162307] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3440462660> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f34400cce50>>)
[1701025162351] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3440462660> ret: None
[1701025162351] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3440462660> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f34400cce50>>)
[1701025162395] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3440462660> ret: None
[1701025162395] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1701025162395] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3440462660> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f34400cce50>>)
[1701025162439] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3440462660> ret: None
[1701025162439] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1701025162439] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3440462660> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f34400cce50>>)
[1701025162483] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3440462660> ret: None
[1701025162483] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1701025162484] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3440462660> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f34400cce50>>)
[1701025162527] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3440462660> ret: None
[1701025162527] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1701025162527] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3440462660> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f34400cce50>>)
[1701025162571] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3440462660> ret: None
[1701025162571] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1701025162571] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3440462660> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f34400cce50>>)
[1701025162615] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3440462660> ret: None
[1701025162615] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f3440461e40> ret: None
[1701025162616] [DBG] HUB Step, state: 0 (next: 1701025163616)
[1701025162616] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1701025162616] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3440462520> ('/reg', '48:3f:da:55:07:5b')
[1701025162659] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3440462520> ret: None
[1701025162703] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1701025162662 }
[1701025162703] [INFO] HUB Registration finish, time: 1701025162662
[1701025162703] [DBG] FW-UPD enter <function device_base.register at 0x7f3440254860> (1701025162,)
[1701025162703] [INFO] FW-UPD Device 3996365522 registration on the server @ 1701025162
[1701025162703] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1701025162703] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3440462660> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f34400cce50>>)
[1701025162748] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3440462660> ret: None
[1701025162748] [DBG] FW-UPD exit <function device_base.register at 0x7f3440254860> ret: None
[1701025163616] [DBG] HUB Step, state: 1 (next: 1701025164616)
[1701025163616] [DBG] FW-UPD enter <function device_base.info_req at 0x7f3440255120> ()
[1701025163616] [DBG] FW-UPD exit <function device_base.info_req at 0x7f3440255120> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1701025162}}
[1701025163616] [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": 1701025162}}]} }
[1701025163617] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3440462520> ('/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": 1701025162}}]}')
[1701025163617] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3440462520> ret: None
[1701025164640] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 5521 }
[1701025164640] [DBG] FW-UPD enter <function device_base.hnd_msg at 0x7f34402549a0> ('8', 5521)
[1701025164640] [INFO] FW-UPD Set REG[8] = 5521
[1701025164640] [DBG] FW-UPD exit <function device_base.hnd_msg at 0x7f34402549a0> ret: None
[1701025165647] [DBG] FW-UPD enter <function device_base.set_reg at 0x7f34402545e0> (8, 36932)
[1701025165647] [INFO] HUB Publish message: { topic: 3996365522/8, value: 36932 }
[1701025165647] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3440462520> ('<48:3f:da:55:07:5b/3996365522/8', '36932')
[1701025165650] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3440462520> ret: None
[1701025165650] [DBG] FW-UPD exit <function device_base.set_reg at 0x7f34402545e0> ret: None
[1701025166652] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 44132, "rnd-b": 1880} }
[1701025166653] [DBG] FW-UPD enter <function device_base.hnd_msg at 0x7f34402549a0> ('9', {'rnd-a': 44132, 'rnd-b': 1880})
[1701025166653] [INFO] FW-UPD Set REG[9] = {'rnd-a': 44132, 'rnd-b': 1880}
[1701025166653] [DBG] FW-UPD exit <function device_base.hnd_msg at 0x7f34402549a0> ret: None
[1701025167658] [DBG] FW-UPD enter <function device_base.set_reg at 0x7f34402545e0> (9, {'rnd-a': 62262, 'rnd-b': 28855})
[1701025167658] [INFO] HUB Publish message: { topic: 3996365522/9, value: {"rnd-a": 62262, "rnd-b": 28855} }
[1701025167658] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3440462520> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 62262, "rnd-b": 28855}')
[1701025167658] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3440462520> ret: None
[1701025167659] [DBG] FW-UPD exit <function device_base.set_reg at 0x7f34402545e0> ret: None
[1701025167669] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f34404628e0> ()
[1701025167669] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f34404628e0> ret: None
[1701025167670] [WARN] HUB Disconecting from broker
Suite stderr:
2023-11-26 18:59:23,623 - TEST - INFO - OP take: 1007.242 ms
2023-11-26 18:59:23,632 - TEST - INFO - Connected with result code: 0
2023-11-26 18:59:23,638 - TEST - INFO - OP take: 10.118 ms
2023-11-26 18:59:24,638 - TEST - INFO - ------- 1. Set register 8 to value 5521 from server side
2023-11-26 18:59:24,639 - TEST - INFO - [dev] => { '8' : '5521' }
2023-11-26 18:59:24,643 - TEST - INFO - OP take: 0.006 ms
2023-11-26 18:59:25,644 - TEST - INFO - ------- 2. Set register 8 to value 36932 from device side
2023-11-26 18:59:25,650 - TEST - INFO - OP take: 0.002 ms
2023-11-26 18:59:26,651 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 44132, 'rnd-b': 1880} from server side
2023-11-26 18:59:26,651 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 44132, 'rnd-b': 1880}' }
2023-11-26 18:59:26,654 - TEST - INFO - OP take: 0.004 ms
2023-11-26 18:59:27,654 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 62262, 'rnd-b': 28855} from device side
2023-11-26 18:59:27,669 - TEST - INFO - OP take: 10.17 ms
2023-11-26 18:59:27,675 - TEST - WARNING - Disconecting from broker
2023-11-26 18:59:27,686 - TEST - WARNING - Disconecting from broker