Test Report : TEST-reg_value_exchange_test-20240427173542.xml
Test Suite: reg_value_exchange_test-20240427173542
Results
| Duration | 6.396 sec |
| Tests | 1 |
| Failures | 0 |
Tests
reg_value_exchange_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 6.396 sec |
| Failed | None |
None
Suite stdout:
[1714239342421] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1714239342421] [INFO] FW-UPD Initialized
[1714239342421] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f475e3bc680> (<uclient.hub.HUB object at 0x7f475e63a090>,)
[1714239342421] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f475e3bc680> ret: None
[1714239342421] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f475e636fc0> ('<48:3f:da:55:07:5b/status', '-1')
[1714239342421] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f475e636fc0> ret: None
[1714239342421] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f475e636d40> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f475e63a090>>,)
[1714239342421] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f475e636d40> ret: None
[1714239342421] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f475e636e80> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f475e63a090>>,)
[1714239342421] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f475e636e80> ret: None
[1714239342421] [WARN] HUB Try to connect without uri-schema
[1714239342421] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f475e636700> ('x.ks.ua',)
[1714239343425] [INFO] HUB Connected
[1714239343425] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f475e636980> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f475e63a090>>)
[1714239343467] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f475e636980> ret: None
[1714239343467] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f475e636980> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f475e63a090>>)
[1714239343510] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f475e636980> ret: None
[1714239343510] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1714239343510] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f475e636980> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f475e63a090>>)
[1714239343554] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f475e636980> ret: None
[1714239343554] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1714239343554] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f475e636980> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f475e63a090>>)
[1714239343598] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f475e636980> ret: None
[1714239343598] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1714239343598] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f475e636980> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f475e63a090>>)
[1714239343642] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f475e636980> ret: None
[1714239343642] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1714239343642] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f475e636980> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f475e63a090>>)
[1714239343686] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f475e636980> ret: None
[1714239343686] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1714239343686] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f475e636980> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f475e63a090>>)
[1714239343730] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f475e636980> ret: None
[1714239343730] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f475e636700> ret: None
[1714239343731] [DBG] HUB Step, state: 0 (next: 1714239344731)
[1714239343731] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1714239343731] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f475e636840> ('/reg', '48:3f:da:55:07:5b')
[1714239343774] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f475e636840> ret: None
[1714239343818] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1714239343779 }
[1714239343818] [INFO] HUB Registration finish, time: 1714239343779
[1714239343818] [DBG] FW-UPD enter <function device_base.register at 0x7f475e3bcb80> (1714239343,)
[1714239343818] [INFO] FW-UPD Device 3996365522 registration on the server @ 1714239343
[1714239343818] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1714239343818] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f475e636980> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f475e63a090>>)
[1714239343862] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f475e636980> ret: None
[1714239343862] [DBG] FW-UPD exit <function device_base.register at 0x7f475e3bcb80> ret: None
[1714239344731] [DBG] HUB Step, state: 1 (next: 1714239345731)
[1714239344731] [DBG] FW-UPD enter <function device_base.info_req at 0x7f475e3bd440> ()
[1714239344731] [DBG] FW-UPD exit <function device_base.info_req at 0x7f475e3bd440> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714239343}}
[1714239344731] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d98ab4d8ece41a102d19b961364f22d5e93d21ca", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714239343}}]} }
[1714239344731] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f475e636840> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d98ab4d8ece41a102d19b961364f22d5e93d21ca", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714239343}}]}')
[1714239344731] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f475e636840> ret: None
[1714239345757] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 65242 }
[1714239345757] [DBG] FW-UPD enter <function device_base.hnd_msg at 0x7f475e3bccc0> ('8', 65242)
[1714239345757] [INFO] FW-UPD Set REG[8] = 65242
[1714239345757] [DBG] FW-UPD exit <function device_base.hnd_msg at 0x7f475e3bccc0> ret: None
[1714239346763] [DBG] FW-UPD enter <function device_base.set_reg at 0x7f475e3bc900> (8, 44125)
[1714239346763] [INFO] HUB Publish message: { topic: 3996365522/8, value: 44125 }
[1714239346763] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f475e636840> ('<48:3f:da:55:07:5b/3996365522/8', '44125')
[1714239346764] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f475e636840> ret: None
[1714239346767] [DBG] FW-UPD exit <function device_base.set_reg at 0x7f475e3bc900> ret: None
[1714239347779] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 48726, "rnd-b": 39268} }
[1714239347780] [DBG] FW-UPD enter <function device_base.hnd_msg at 0x7f475e3bccc0> ('9', {'rnd-a': 48726, 'rnd-b': 39268})
[1714239347780] [INFO] FW-UPD Set REG[9] = {'rnd-a': 48726, 'rnd-b': 39268}
[1714239347780] [DBG] FW-UPD exit <function device_base.hnd_msg at 0x7f475e3bccc0> ret: None
[1714239348788] [DBG] FW-UPD enter <function device_base.set_reg at 0x7f475e3bc900> (9, {'rnd-a': 20619, 'rnd-b': 59785})
[1714239348788] [INFO] HUB Publish message: { topic: 3996365522/9, value: {"rnd-a": 20619, "rnd-b": 59785} }
[1714239348788] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f475e636840> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 20619, "rnd-b": 59785}')
[1714239348789] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f475e636840> ret: None
[1714239348793] [DBG] FW-UPD exit <function device_base.set_reg at 0x7f475e3bc900> ret: None
[1714239348804] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f475e636c00> ()
[1714239348806] [WARN] HUB Disconecting from broker
[1714239348806] [WARN] MQTT Reconnecting in 1s
[1714239348806] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f475e636c00> ret: None
Suite stderr:
2024-04-27 17:35:44,739 - TEST - INFO - OP take: 1008.061 ms
2024-04-27 17:35:44,748 - TEST - INFO - Connected with result code: 0
2024-04-27 17:35:44,755 - TEST - INFO - OP take: 10.094 ms
2024-04-27 17:35:45,756 - TEST - INFO - ------- 1. Set register 8 to value 65242 from server side
2024-04-27 17:35:45,756 - TEST - INFO - [dev] => { '8' : '65242' }
2024-04-27 17:35:45,760 - TEST - INFO - OP take: 0.007 ms
2024-04-27 17:35:46,760 - TEST - INFO - ------- 2. Set register 8 to value 44125 from device side
2024-04-27 17:35:46,777 - TEST - INFO - OP take: 10.127 ms
2024-04-27 17:35:47,778 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 48726, 'rnd-b': 39268} from server side
2024-04-27 17:35:47,778 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 48726, 'rnd-b': 39268}' }
2024-04-27 17:35:47,783 - TEST - INFO - OP take: 0.006 ms
2024-04-27 17:35:48,784 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 20619, 'rnd-b': 59785} from device side
2024-04-27 17:35:48,803 - TEST - INFO - OP take: 10.144 ms
2024-04-27 17:35:48,815 - TEST - WARNING - Disconecting from broker
2024-04-27 17:35:48,817 - TEST - WARNING - Disconecting from broker