Test Report : TEST-reg_value_exchange_test-20231112202633.xml

  • reg_value_exchange_test

Test Suite: reg_value_exchange_test-20231112202633

Results

Duration6.414 sec
Tests1
Failures0

Tests

reg_value_exchange_test

Test case:test
Outcome:Passed
Duration:6.414 sec
FailedNone
None

Suite stdout:

[1699820793402] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1699820793402] [INFO] FW-UPD  Initialized
[1699820793402]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7effc513c360> (<uclient.hub.HUB object at 0x7effc5217c50>,)
[1699820793402]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7effc513c360> ret: None
[1699820793402]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7effc53b6ca0> ('<48:3f:da:55:07:5b/status', '-1')
[1699820793402]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7effc53b6ca0> ret: None
[1699820793402]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7effc53b6a20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7effc5217c50>>,)
[1699820793402]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7effc53b6a20> ret: None
[1699820793402]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7effc53b6b60> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7effc5217c50>>,)
[1699820793402]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7effc53b6b60> ret: None
[1699820793402]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7effc53b5e40> ('x.ks.ua', 1883)
[1699820794406] [INFO] HUB  Connected
[1699820794407]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effc53b6660> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effc5217c50>>)
[1699820794448]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effc53b6660> ret: None
[1699820794448]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effc53b6660> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effc5217c50>>)
[1699820794492]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effc53b6660> ret: None
[1699820794492] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1699820794492]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effc53b6660> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effc5217c50>>)
[1699820794536]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effc53b6660> ret: None
[1699820794537] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1699820794537]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effc53b6660> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effc5217c50>>)
[1699820794580]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effc53b6660> ret: None
[1699820794580] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1699820794580]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effc53b6660> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effc5217c50>>)
[1699820794624]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effc53b6660> ret: None
[1699820794624] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1699820794624]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effc53b6660> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effc5217c50>>)
[1699820794668]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effc53b6660> ret: None
[1699820794668] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1699820794668]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effc53b6660> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effc5217c50>>)
[1699820794712]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effc53b6660> ret: None
[1699820794712]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7effc53b5e40> ret: None
[1699820794713]  [DBG] HUB  Step, state: 0 (next: 1699820795713)
[1699820794713] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1699820794714]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7effc53b6520> ('/reg', '48:3f:da:55:07:5b')
[1699820794758]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7effc53b6520> ret: None
[1699820794800] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1699820794760 }
[1699820794800] [INFO] HUB  Registration finish, time: 1699820794760
[1699820794800]  [DBG] FW-UPD  enter <function device_base.register at 0x7effc513c860> (1699820794,)
[1699820794800] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1699820794
[1699820794800] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1699820794800]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effc53b6660> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effc5217c50>>)
[1699820794844]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effc53b6660> ret: None
[1699820794845]  [DBG] FW-UPD  exit <function device_base.register at 0x7effc513c860> ret: None
[1699820795713]  [DBG] HUB  Step, state: 1 (next: 1699820796713)
[1699820795713]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7effc513d120> ()
[1699820795713]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7effc513d120> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1699820794}}
[1699820795713] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231112;master;ad086b669325bee6ce018858acdd31cd9dd85e70", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699820794}}]} }
[1699820795713]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7effc53b6520> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231112;master;ad086b669325bee6ce018858acdd31cd9dd85e70", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699820794}}]}')
[1699820795713]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7effc53b6520> ret: None
[1699820796749] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 57836 }
[1699820796749]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7effc513c9a0> ('8', 57836)
[1699820796749] [INFO] FW-UPD  Set REG[8] = 57836
[1699820796749]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7effc513c9a0> ret: None
[1699820797761]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7effc513c5e0> (8, 19079)
[1699820797761] [INFO] HUB  Publish message: { topic: 3996365522/8, value: 19079 }
[1699820797761]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7effc53b6520> ('<48:3f:da:55:07:5b/3996365522/8', '19079')
[1699820797761]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7effc53b6520> ret: None
[1699820797761]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7effc513c5e0> ret: None
[1699820798775] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 6882, "rnd-b": 24642} }
[1699820798775]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7effc513c9a0> ('9', {'rnd-a': 6882, 'rnd-b': 24642})
[1699820798775] [INFO] FW-UPD  Set REG[9] = {'rnd-a': 6882, 'rnd-b': 24642}
[1699820798775]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7effc513c9a0> ret: None
[1699820799780]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7effc513c5e0> (9, {'rnd-a': 4774, 'rnd-b': 6997})
[1699820799780] [INFO] HUB  Publish message: { topic: 3996365522/9, value: {"rnd-a": 4774, "rnd-b": 6997} }
[1699820799780]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7effc53b6520> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 4774, "rnd-b": 6997}')
[1699820799780]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7effc53b6520> ret: None
[1699820799780]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7effc513c5e0> ret: None
[1699820799792]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7effc53b68e0> ()
[1699820799792]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7effc53b68e0> ret: None
[1699820799794] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-12 20:26:35,722 - TEST - INFO - OP take: 1008.758 ms
2023-11-12 20:26:35,740 - TEST - INFO - Connected with result code: 0
2023-11-12 20:26:35,746 - TEST - INFO - OP take: 10.105 ms
2023-11-12 20:26:36,747 - TEST - INFO - ------- 1. Set register 8 to value 57836 from server side
2023-11-12 20:26:36,747 - TEST - INFO - [dev] => { '8' : '57836' }
2023-11-12 20:26:36,759 - TEST - INFO - OP take: 10.142 ms
2023-11-12 20:26:37,759 - TEST - INFO - ------- 2. Set register 8 to value 19079 from device side
2023-11-12 20:26:37,772 - TEST - INFO - OP take: 11.17 ms
2023-11-12 20:26:38,773 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 6882, 'rnd-b': 24642} from server side
2023-11-12 20:26:38,774 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 6882, 'rnd-b': 24642}' }
2023-11-12 20:26:38,777 - TEST - INFO - OP take: 0.006 ms
2023-11-12 20:26:39,778 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 4774, 'rnd-b': 6997} from device side
2023-11-12 20:26:39,791 - TEST - INFO - OP take: 10.148 ms
2023-11-12 20:26:39,793 - TEST - WARNING - Disconecting from broker
2023-11-12 20:26:39,805 - TEST - WARNING - Disconecting from broker