Test Report : TEST-reg_value_exchange_test-20240407045845.xml
Test Suite: reg_value_exchange_test-20240407045845
Results
| Duration | 6.461 sec |
| Tests | 1 |
| Failures | 0 |
Tests
reg_value_exchange_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 6.461 sec |
| Failed | None |
None
Suite stdout:
[1712465925245] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1712465925245] [INFO] FW-UPD Initialized
[1712465925245] [DBG] FW-UPD enter <function device_base.set_hub at 0x7ff7cd5e4680> (<uclient.hub.HUB object at 0x7ff7cd6bab90>,)
[1712465925245] [DBG] FW-UPD exit <function device_base.set_hub at 0x7ff7cd5e4680> ret: None
[1712465925245] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7ff7cd85efc0> ('<48:3f:da:55:07:5b/status', '-1')
[1712465925245] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7ff7cd85efc0> ret: None
[1712465925245] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7ff7cd85ed40> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7ff7cd6bab90>>,)
[1712465925245] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7ff7cd85ed40> ret: None
[1712465925245] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7ff7cd85ee80> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7ff7cd6bab90>>,)
[1712465925245] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7ff7cd85ee80> ret: None
[1712465925245] [WARN] HUB Try to connect without uri-schema
[1712465925245] [DBG] MQTT enter <function mqtt_transport.connect at 0x7ff7cd85e700> ('x.ks.ua',)
[1712465926295] [INFO] HUB Connected
[1712465926296] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff7cd85e980> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff7cd6bab90>>)
[1712465926339] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff7cd85e980> ret: None
[1712465926339] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff7cd85e980> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff7cd6bab90>>)
[1712465926382] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff7cd85e980> ret: None
[1712465926382] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1712465926382] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff7cd85e980> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff7cd6bab90>>)
[1712465926426] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff7cd85e980> ret: None
[1712465926426] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1712465926427] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff7cd85e980> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff7cd6bab90>>)
[1712465926470] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff7cd85e980> ret: None
[1712465926470] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1712465926470] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff7cd85e980> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff7cd6bab90>>)
[1712465926514] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff7cd85e980> ret: None
[1712465926514] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1712465926514] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff7cd85e980> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff7cd6bab90>>)
[1712465926558] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff7cd85e980> ret: None
[1712465926558] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1712465926558] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff7cd85e980> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff7cd6bab90>>)
[1712465926602] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff7cd85e980> ret: None
[1712465926602] [DBG] MQTT exit <function mqtt_transport.connect at 0x7ff7cd85e700> ret: None
[1712465926603] [DBG] HUB Step, state: 0 (next: 1712465927603)
[1712465926604] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1712465926604] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff7cd85e840> ('/reg', '48:3f:da:55:07:5b')
[1712465926646] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff7cd85e840> ret: None
[1712465926690] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1712465926650 }
[1712465926690] [INFO] HUB Registration finish, time: 1712465926650
[1712465926690] [DBG] FW-UPD enter <function device_base.register at 0x7ff7cd5e4b80> (1712465926,)
[1712465926690] [INFO] FW-UPD Device 3996365522 registration on the server @ 1712465926
[1712465926690] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1712465926690] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff7cd85e980> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff7cd6bab90>>)
[1712465926734] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff7cd85e980> ret: None
[1712465926734] [DBG] FW-UPD exit <function device_base.register at 0x7ff7cd5e4b80> ret: None
[1712465927603] [DBG] HUB Step, state: 1 (next: 1712465928603)
[1712465927603] [DBG] FW-UPD enter <function device_base.info_req at 0x7ff7cd5e5440> ()
[1712465927603] [DBG] FW-UPD exit <function device_base.info_req at 0x7ff7cd5e5440> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1712465926}}
[1712465927603] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1712465926}}]} }
[1712465927603] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff7cd85e840> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1712465926}}]}')
[1712465927603] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff7cd85e840> ret: None
[1712465928628] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 50382 }
[1712465928628] [DBG] FW-UPD enter <function device_base.hnd_msg at 0x7ff7cd5e4cc0> ('8', 50382)
[1712465928628] [INFO] FW-UPD Set REG[8] = 50382
[1712465928628] [DBG] FW-UPD exit <function device_base.hnd_msg at 0x7ff7cd5e4cc0> ret: None
[1712465929635] [DBG] FW-UPD enter <function device_base.set_reg at 0x7ff7cd5e4900> (8, 4623)
[1712465929635] [INFO] HUB Publish message: { topic: 3996365522/8, value: 4623 }
[1712465929635] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff7cd85e840> ('<48:3f:da:55:07:5b/3996365522/8', '4623')
[1712465929636] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff7cd85e840> ret: None
[1712465929638] [DBG] FW-UPD exit <function device_base.set_reg at 0x7ff7cd5e4900> ret: None
[1712465930651] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 62421, "rnd-b": 59221} }
[1712465930651] [DBG] FW-UPD enter <function device_base.hnd_msg at 0x7ff7cd5e4cc0> ('9', {'rnd-a': 62421, 'rnd-b': 59221})
[1712465930651] [INFO] FW-UPD Set REG[9] = {'rnd-a': 62421, 'rnd-b': 59221}
[1712465930651] [DBG] FW-UPD exit <function device_base.hnd_msg at 0x7ff7cd5e4cc0> ret: None
[1712465931662] [DBG] FW-UPD enter <function device_base.set_reg at 0x7ff7cd5e4900> (9, {'rnd-a': 60504, 'rnd-b': 30463})
[1712465931662] [INFO] HUB Publish message: { topic: 3996365522/9, value: {"rnd-a": 60504, "rnd-b": 30463} }
[1712465931662] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff7cd85e840> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 60504, "rnd-b": 30463}')
[1712465931663] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff7cd85e840> ret: None
[1712465931663] [DBG] FW-UPD exit <function device_base.set_reg at 0x7ff7cd5e4900> ret: None
[1712465931697] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7ff7cd85ec00> ()
[1712465931698] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7ff7cd85ec00> ret: None
[1712465931698] [WARN] HUB Disconecting from broker
Suite stderr:
2024-04-07 04:58:47,611 - TEST - INFO - OP take: 1007.782 ms
2024-04-07 04:58:47,621 - TEST - INFO - Connected with result code: 0
2024-04-07 04:58:47,626 - TEST - INFO - OP take: 10.153 ms
2024-04-07 04:58:48,626 - TEST - INFO - ------- 1. Set register 8 to value 50382 from server side
2024-04-07 04:58:48,627 - TEST - INFO - [dev] => { '8' : '50382' }
2024-04-07 04:58:48,631 - TEST - INFO - OP take: 0.009 ms
2024-04-07 04:58:49,632 - TEST - INFO - ------- 2. Set register 8 to value 4623 from device side
2024-04-07 04:58:49,649 - TEST - INFO - OP take: 10.212 ms
2024-04-07 04:58:50,650 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 62421, 'rnd-b': 59221} from server side
2024-04-07 04:58:50,650 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 62421, 'rnd-b': 59221}' }
2024-04-07 04:58:50,654 - TEST - INFO - OP take: 0.007 ms
2024-04-07 04:58:51,660 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 60504, 'rnd-b': 30463} from device side
2024-04-07 04:58:51,696 - TEST - INFO - OP take: 31.964 ms
2024-04-07 04:58:51,704 - TEST - WARNING - Disconecting from broker