Test Report : TEST-reg_value_exchange_test-20240211154810.xml
Test Suite: reg_value_exchange_test-20240211154810
Results
| Duration | 6.392 sec |
| Tests | 1 |
| Failures | 0 |
Tests
reg_value_exchange_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 6.392 sec |
| Failed | None |
None
Suite stdout:
[1707666490205] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1707666490205] [INFO] FW-UPD Initialized
[1707666490206] [DBG] FW-UPD enter <function device_base.set_hub at 0x7fe069b80680> (<uclient.hub.HUB object at 0x7fe069a25150>,)
[1707666490206] [DBG] FW-UPD exit <function device_base.set_hub at 0x7fe069b80680> ret: None
[1707666490206] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7fe069df6fc0> ('<48:3f:da:55:07:5b/status', '-1')
[1707666490206] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7fe069df6fc0> ret: None
[1707666490206] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7fe069df6d40> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fe069a25150>>,)
[1707666490206] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7fe069df6d40> ret: None
[1707666490206] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7fe069df6e80> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fe069a25150>>,)
[1707666490206] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7fe069df6e80> ret: None
[1707666490206] [WARN] HUB Try to connect without uri-schema
[1707666490206] [DBG] MQTT enter <function mqtt_transport.connect at 0x7fe069df6700> ('x.ks.ua',)
[1707666491209] [INFO] HUB Connected
[1707666491209] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe069df6980> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe069a25150>>)
[1707666491251] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe069df6980> ret: None
[1707666491251] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe069df6980> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe069a25150>>)
[1707666491295] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe069df6980> ret: None
[1707666491296] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1707666491296] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe069df6980> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe069a25150>>)
[1707666491339] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe069df6980> ret: None
[1707666491339] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1707666491339] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe069df6980> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe069a25150>>)
[1707666491384] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe069df6980> ret: None
[1707666491384] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1707666491384] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe069df6980> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe069a25150>>)
[1707666491427] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe069df6980> ret: None
[1707666491427] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1707666491427] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe069df6980> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe069a25150>>)
[1707666491471] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe069df6980> ret: None
[1707666491471] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1707666491471] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe069df6980> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe069a25150>>)
[1707666491515] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe069df6980> ret: None
[1707666491515] [DBG] MQTT exit <function mqtt_transport.connect at 0x7fe069df6700> ret: None
[1707666491516] [DBG] HUB Step, state: 0 (next: 1707666492516)
[1707666491516] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1707666491516] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe069df6840> ('/reg', '48:3f:da:55:07:5b')
[1707666491559] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe069df6840> ret: None
[1707666491607] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1707666491563 }
[1707666491607] [INFO] HUB Registration finish, time: 1707666491563
[1707666491607] [DBG] FW-UPD enter <function device_base.register at 0x7fe069b80b80> (1707666491,)
[1707666491607] [INFO] FW-UPD Device 3996365522 registration on the server @ 1707666491
[1707666491607] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1707666491607] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe069df6980> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe069a25150>>)
[1707666491651] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe069df6980> ret: None
[1707666491651] [DBG] FW-UPD exit <function device_base.register at 0x7fe069b80b80> ret: None
[1707666492516] [DBG] HUB Step, state: 1 (next: 1707666493516)
[1707666492516] [DBG] FW-UPD enter <function device_base.info_req at 0x7fe069b81440> ()
[1707666492516] [DBG] FW-UPD exit <function device_base.info_req at 0x7fe069b81440> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1707666491}}
[1707666492516] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240211;master;c7a377ab91e966dd8ef50ec839bbd0cd5f178bbe", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707666491}}]} }
[1707666492516] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe069df6840> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240211;master;c7a377ab91e966dd8ef50ec839bbd0cd5f178bbe", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707666491}}]}')
[1707666492516] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe069df6840> ret: None
[1707666493540] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 10249 }
[1707666493540] [DBG] FW-UPD enter <function device_base.hnd_msg at 0x7fe069b80cc0> ('8', 10249)
[1707666493540] [INFO] FW-UPD Set REG[8] = 10249
[1707666493540] [DBG] FW-UPD exit <function device_base.hnd_msg at 0x7fe069b80cc0> ret: None
[1707666494546] [DBG] FW-UPD enter <function device_base.set_reg at 0x7fe069b80900> (8, 1445)
[1707666494547] [INFO] HUB Publish message: { topic: 3996365522/8, value: 1445 }
[1707666494547] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe069df6840> ('<48:3f:da:55:07:5b/3996365522/8', '1445')
[1707666494547] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe069df6840> ret: None
[1707666494550] [DBG] FW-UPD exit <function device_base.set_reg at 0x7fe069b80900> ret: None
[1707666495562] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 42369, "rnd-b": 27025} }
[1707666495562] [DBG] FW-UPD enter <function device_base.hnd_msg at 0x7fe069b80cc0> ('9', {'rnd-a': 42369, 'rnd-b': 27025})
[1707666495562] [INFO] FW-UPD Set REG[9] = {'rnd-a': 42369, 'rnd-b': 27025}
[1707666495562] [DBG] FW-UPD exit <function device_base.hnd_msg at 0x7fe069b80cc0> ret: None
[1707666496569] [DBG] FW-UPD enter <function device_base.set_reg at 0x7fe069b80900> (9, {'rnd-a': 65293, 'rnd-b': 22269})
[1707666496569] [INFO] HUB Publish message: { topic: 3996365522/9, value: {"rnd-a": 65293, "rnd-b": 22269} }
[1707666496569] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe069df6840> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 65293, "rnd-b": 22269}')
[1707666496573] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe069df6840> ret: None
[1707666496573] [DBG] FW-UPD exit <function device_base.set_reg at 0x7fe069b80900> ret: None
[1707666496584] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7fe069df6c00> ()
[1707666496584] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7fe069df6c00> ret: None
[1707666496585] [WARN] HUB Disconecting from broker
Suite stderr:
2024-02-11 15:48:12,523 - TEST - INFO - OP take: 1007.317 ms
2024-02-11 15:48:12,533 - TEST - INFO - Connected with result code: 0
2024-02-11 15:48:12,537 - TEST - INFO - OP take: 10.091 ms
2024-02-11 15:48:13,538 - TEST - INFO - ------- 1. Set register 8 to value 10249 from server side
2024-02-11 15:48:13,539 - TEST - INFO - [dev] => { '8' : '10249' }
2024-02-11 15:48:13,543 - TEST - INFO - OP take: 0.008 ms
2024-02-11 15:48:14,544 - TEST - INFO - ------- 2. Set register 8 to value 1445 from device side
2024-02-11 15:48:14,560 - TEST - INFO - OP take: 10.114 ms
2024-02-11 15:48:15,561 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 42369, 'rnd-b': 27025} from server side
2024-02-11 15:48:15,561 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 42369, 'rnd-b': 27025}' }
2024-02-11 15:48:15,566 - TEST - INFO - OP take: 0.007 ms
2024-02-11 15:48:16,567 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 65293, 'rnd-b': 22269} from device side
2024-02-11 15:48:16,583 - TEST - INFO - OP take: 10.121 ms
2024-02-11 15:48:16,590 - TEST - WARNING - Disconecting from broker
2024-02-11 15:48:16,602 - TEST - WARNING - Disconecting from broker