Test Report : TEST-reg_value_exchange_test-20240202134115.xml
Test Suite: reg_value_exchange_test-20240202134115
Results
| Duration | 6.484 sec |
| Tests | 1 |
| Failures | 0 |
Tests
reg_value_exchange_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 6.484 sec |
| Failed | None |
None
Suite stdout:
[1706881275633] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1706881275634] [INFO] FW-UPD Initialized
[1706881275634] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f926dc8c360> (<uclient.hub.HUB object at 0x7f926db04e50>,)
[1706881275634] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f926dc8c360> ret: None
[1706881275634] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f926de9aca0> ('<48:3f:da:55:07:5b/status', '-1')
[1706881275634] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f926de9aca0> ret: None
[1706881275634] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f926de9aa20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f926db04e50>>,)
[1706881275634] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f926de9aa20> ret: None
[1706881275634] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f926de9ab60> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f926db04e50>>,)
[1706881275634] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f926de9ab60> ret: None
[1706881275634] [WARN] HUB Try to connect without uri-schema
[1706881275634] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f926de99e40> ('x.ks.ua',)
[1706881276638] [INFO] HUB Connected
[1706881276638] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f926de9a660> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f926db04e50>>)
[1706881276679] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f926de9a660> ret: None
[1706881276680] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f926de9a660> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f926db04e50>>)
[1706881276723] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f926de9a660> ret: None
[1706881276723] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1706881276723] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f926de9a660> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f926db04e50>>)
[1706881276767] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f926de9a660> ret: None
[1706881276767] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1706881276767] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f926de9a660> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f926db04e50>>)
[1706881276811] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f926de9a660> ret: None
[1706881276811] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1706881276811] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f926de9a660> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f926db04e50>>)
[1706881276855] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f926de9a660> ret: None
[1706881276855] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1706881276855] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f926de9a660> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f926db04e50>>)
[1706881276899] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f926de9a660> ret: None
[1706881276899] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1706881276899] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f926de9a660> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f926db04e50>>)
[1706881276943] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f926de9a660> ret: None
[1706881276943] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f926de99e40> ret: None
[1706881276944] [DBG] HUB Step, state: 0 (next: 1706881277944)
[1706881276944] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1706881276944] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f926de9a520> ('/reg', '48:3f:da:55:07:5b')
[1706881276988] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f926de9a520> ret: None
[1706881277031] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1706881276988 }
[1706881277031] [INFO] HUB Registration finish, time: 1706881276988
[1706881277031] [DBG] FW-UPD enter <function device_base.register at 0x7f926dc8c860> (1706881276,)
[1706881277031] [INFO] FW-UPD Device 3996365522 registration on the server @ 1706881276
[1706881277031] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1706881277031] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f926de9a660> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f926db04e50>>)
[1706881277075] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f926de9a660> ret: None
[1706881277076] [DBG] FW-UPD exit <function device_base.register at 0x7f926dc8c860> ret: None
[1706881277944] [DBG] HUB Step, state: 1 (next: 1706881278944)
[1706881277944] [DBG] FW-UPD enter <function device_base.info_req at 0x7f926dc8d120> ()
[1706881277944] [DBG] FW-UPD exit <function device_base.info_req at 0x7f926dc8d120> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1706881276}}
[1706881277944] [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": 1706881276}}]} }
[1706881277944] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f926de9a520> ('/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": 1706881276}}]}')
[1706881277944] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f926de9a520> ret: None
[1706881279068] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 54946 }
[1706881279068] [DBG] FW-UPD enter <function device_base.hnd_msg at 0x7f926dc8c9a0> ('8', 54946)
[1706881279068] [INFO] FW-UPD Set REG[8] = 54946
[1706881279069] [DBG] FW-UPD exit <function device_base.hnd_msg at 0x7f926dc8c9a0> ret: None
[1706881280077] [DBG] FW-UPD enter <function device_base.set_reg at 0x7f926dc8c5e0> (8, 46710)
[1706881280077] [INFO] HUB Publish message: { topic: 3996365522/8, value: 46710 }
[1706881280077] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f926de9a520> ('<48:3f:da:55:07:5b/3996365522/8', '46710')
[1706881280081] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f926de9a520> ret: None
[1706881280081] [DBG] FW-UPD exit <function device_base.set_reg at 0x7f926dc8c5e0> ret: None
[1706881281085] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 26162, "rnd-b": 31336} }
[1706881281085] [DBG] FW-UPD enter <function device_base.hnd_msg at 0x7f926dc8c9a0> ('9', {'rnd-a': 26162, 'rnd-b': 31336})
[1706881281085] [INFO] FW-UPD Set REG[9] = {'rnd-a': 26162, 'rnd-b': 31336}
[1706881281085] [DBG] FW-UPD exit <function device_base.hnd_msg at 0x7f926dc8c9a0> ret: None
[1706881282092] [DBG] FW-UPD enter <function device_base.set_reg at 0x7f926dc8c5e0> (9, {'rnd-a': 54434, 'rnd-b': 61566})
[1706881282092] [INFO] HUB Publish message: { topic: 3996365522/9, value: {"rnd-a": 54434, "rnd-b": 61566} }
[1706881282092] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f926de9a520> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 54434, "rnd-b": 61566}')
[1706881282093] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f926de9a520> ret: None
[1706881282093] [DBG] FW-UPD exit <function device_base.set_reg at 0x7f926dc8c5e0> ret: None
[1706881282106] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f926de9a8e0> ()
[1706881282106] [WARN] HUB Disconecting from broker
[1706881282106] [WARN] MQTT Reconnecting in 1s
[1706881282107] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f926de9a8e0> ret: None
Suite stderr:
2024-02-02 13:41:17,951 - TEST - INFO - OP take: 1007.01 ms
2024-02-02 13:41:18,056 - TEST - INFO - Connected with result code: 0
2024-02-02 13:41:18,066 - TEST - INFO - OP take: 112.016 ms
2024-02-02 13:41:19,067 - TEST - INFO - ------- 1. Set register 8 to value 54946 from server side
2024-02-02 13:41:19,067 - TEST - INFO - [dev] => { '8' : '54946' }
2024-02-02 13:41:19,072 - TEST - INFO - OP take: 0.007 ms
2024-02-02 13:41:20,072 - TEST - INFO - ------- 2. Set register 8 to value 46710 from device side
2024-02-02 13:41:20,081 - TEST - INFO - OP take: 0.003 ms
2024-02-02 13:41:21,084 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 26162, 'rnd-b': 31336} from server side
2024-02-02 13:41:21,085 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 26162, 'rnd-b': 31336}' }
2024-02-02 13:41:21,088 - TEST - INFO - OP take: 0.005 ms
2024-02-02 13:41:22,088 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 54434, 'rnd-b': 61566} from device side
2024-02-02 13:41:22,105 - TEST - INFO - OP take: 10.124 ms
2024-02-02 13:41:22,115 - TEST - WARNING - Disconecting from broker
2024-02-02 13:41:22,115 - TEST - WARNING - Disconecting from broker