Test Report : TEST-reg_value_exchange_test-20240414061458.xml
Test Suite: reg_value_exchange_test-20240414061458
Results
| Duration | 6.387 sec |
| Tests | 1 |
| Failures | 0 |
Tests
reg_value_exchange_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 6.387 sec |
| Failed | None |
None
Suite stdout:
[1713075298345] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1713075298345] [INFO] FW-UPD Initialized
[1713075298345] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f2660570680> (<uclient.hub.HUB object at 0x7f26603f0e90>,)
[1713075298345] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f2660570680> ret: None
[1713075298345] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f26607eafc0> ('<48:3f:da:55:07:5b/status', '-1')
[1713075298345] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f26607eafc0> ret: None
[1713075298345] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f26607ead40> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f26603f0e90>>,)
[1713075298345] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f26607ead40> ret: None
[1713075298345] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f26607eae80> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f26603f0e90>>,)
[1713075298346] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f26607eae80> ret: None
[1713075298346] [WARN] HUB Try to connect without uri-schema
[1713075298346] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f26607ea700> ('x.ks.ua',)
[1713075299350] [INFO] HUB Connected
[1713075299350] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f26607ea980> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f26603f0e90>>)
[1713075299394] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f26607ea980> ret: None
[1713075299394] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f26607ea980> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f26603f0e90>>)
[1713075299438] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f26607ea980> ret: None
[1713075299438] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713075299438] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f26607ea980> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f26603f0e90>>)
[1713075299482] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f26607ea980> ret: None
[1713075299482] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713075299482] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f26607ea980> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f26603f0e90>>)
[1713075299526] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f26607ea980> ret: None
[1713075299526] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713075299526] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f26607ea980> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f26603f0e90>>)
[1713075299570] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f26607ea980> ret: None
[1713075299570] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713075299570] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f26607ea980> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f26603f0e90>>)
[1713075299614] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f26607ea980> ret: None
[1713075299614] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713075299614] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f26607ea980> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f26603f0e90>>)
[1713075299658] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f26607ea980> ret: None
[1713075299658] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f26607ea700> ret: None
[1713075299659] [DBG] HUB Step, state: 0 (next: 1713075300659)
[1713075299659] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1713075299659] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f26607ea840> ('/reg', '48:3f:da:55:07:5b')
[1713075299703] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f26607ea840> ret: None
[1713075299746] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1713075299704 }
[1713075299746] [INFO] HUB Registration finish, time: 1713075299704
[1713075299746] [DBG] FW-UPD enter <function device_base.register at 0x7f2660570b80> (1713075299,)
[1713075299746] [INFO] FW-UPD Device 3996365522 registration on the server @ 1713075299
[1713075299746] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713075299746] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f26607ea980> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f26603f0e90>>)
[1713075299790] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f26607ea980> ret: None
[1713075299790] [DBG] FW-UPD exit <function device_base.register at 0x7f2660570b80> ret: None
[1713075300659] [DBG] HUB Step, state: 1 (next: 1713075301659)
[1713075300659] [DBG] FW-UPD enter <function device_base.info_req at 0x7f2660571440> ()
[1713075300659] [DBG] FW-UPD exit <function device_base.info_req at 0x7f2660571440> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713075299}}
[1713075300659] [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": 1713075299}}]} }
[1713075300659] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f26607ea840> ('/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": 1713075299}}]}')
[1713075300659] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f26607ea840> ret: None
[1713075301680] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 34714 }
[1713075301680] [DBG] FW-UPD enter <function device_base.hnd_msg at 0x7f2660570cc0> ('8', 34714)
[1713075301680] [INFO] FW-UPD Set REG[8] = 34714
[1713075301680] [DBG] FW-UPD exit <function device_base.hnd_msg at 0x7f2660570cc0> ret: None
[1713075302685] [DBG] FW-UPD enter <function device_base.set_reg at 0x7f2660570900> (8, 33783)
[1713075302685] [INFO] HUB Publish message: { topic: 3996365522/8, value: 33783 }
[1713075302685] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f26607ea840> ('<48:3f:da:55:07:5b/3996365522/8', '33783')
[1713075302685] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f26607ea840> ret: None
[1713075302685] [DBG] FW-UPD exit <function device_base.set_reg at 0x7f2660570900> ret: None
[1713075303699] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 33890, "rnd-b": 37506} }
[1713075303699] [DBG] FW-UPD enter <function device_base.hnd_msg at 0x7f2660570cc0> ('9', {'rnd-a': 33890, 'rnd-b': 37506})
[1713075303699] [INFO] FW-UPD Set REG[9] = {'rnd-a': 33890, 'rnd-b': 37506}
[1713075303699] [DBG] FW-UPD exit <function device_base.hnd_msg at 0x7f2660570cc0> ret: None
[1713075304704] [DBG] FW-UPD enter <function device_base.set_reg at 0x7f2660570900> (9, {'rnd-a': 47557, 'rnd-b': 6635})
[1713075304704] [INFO] HUB Publish message: { topic: 3996365522/9, value: {"rnd-a": 47557, "rnd-b": 6635} }
[1713075304704] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f26607ea840> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 47557, "rnd-b": 6635}')
[1713075304705] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f26607ea840> ret: None
[1713075304708] [DBG] FW-UPD exit <function device_base.set_reg at 0x7f2660570900> ret: None
[1713075304719] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f26607eac00> ()
[1713075304719] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f26607eac00> ret: None
[1713075304720] [WARN] HUB Disconecting from broker
Suite stderr:
2024-04-14 06:15:00,664 - TEST - INFO - OP take: 1004.874 ms
2024-04-14 06:15:00,674 - TEST - INFO - Connected with result code: 0
2024-04-14 06:15:00,679 - TEST - INFO - OP take: 10.069 ms
2024-04-14 06:15:01,679 - TEST - INFO - ------- 1. Set register 8 to value 34714 from server side
2024-04-14 06:15:01,679 - TEST - INFO - [dev] => { '8' : '34714' }
2024-04-14 06:15:01,682 - TEST - INFO - OP take: 0.006 ms
2024-04-14 06:15:02,682 - TEST - INFO - ------- 2. Set register 8 to value 33783 from device side
2024-04-14 06:15:02,698 - TEST - INFO - OP take: 10.155 ms
2024-04-14 06:15:03,699 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 33890, 'rnd-b': 37506} from server side
2024-04-14 06:15:03,699 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 33890, 'rnd-b': 37506}' }
2024-04-14 06:15:03,701 - TEST - INFO - OP take: 0.006 ms
2024-04-14 06:15:04,701 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 47557, 'rnd-b': 6635} from device side
2024-04-14 06:15:04,718 - TEST - INFO - OP take: 10.129 ms
2024-04-14 06:15:04,725 - TEST - WARNING - Disconecting from broker