Test Report : TEST-reg_value_exchange_test-20231118123533.xml

  • reg_value_exchange_test

Test Suite: reg_value_exchange_test-20231118123533

Results

Duration6.396 sec
Tests1
Failures0

Tests

reg_value_exchange_test

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

Suite stdout:

[1700310933543] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1700310933544] [INFO] FW-UPD  Initialized
[1700310933544]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f73cc078360> (<uclient.hub.HUB object at 0x7f73cbef4e50>,)
[1700310933544]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f73cc078360> ret: None
[1700310933544]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f73cc28aca0> ('<48:3f:da:55:07:5b/status', '-1')
[1700310933544]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f73cc28aca0> ret: None
[1700310933544]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f73cc28aa20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f73cbef4e50>>,)
[1700310933544]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f73cc28aa20> ret: None
[1700310933544]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f73cc28ab60> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f73cbef4e50>>,)
[1700310933544]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f73cc28ab60> ret: None
[1700310933544]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f73cc289e40> ('x.ks.ua', 1883)
[1700310934549] [INFO] HUB  Connected
[1700310934549]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73cc28a660> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73cbef4e50>>)
[1700310934592]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73cc28a660> ret: None
[1700310934593]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73cc28a660> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73cbef4e50>>)
[1700310934636]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73cc28a660> ret: None
[1700310934636] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1700310934636]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73cc28a660> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73cbef4e50>>)
[1700310934681]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73cc28a660> ret: None
[1700310934681] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1700310934681]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73cc28a660> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73cbef4e50>>)
[1700310934724]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73cc28a660> ret: None
[1700310934724] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1700310934724]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73cc28a660> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73cbef4e50>>)
[1700310934768]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73cc28a660> ret: None
[1700310934769] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1700310934769]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73cc28a660> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73cbef4e50>>)
[1700310934812]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73cc28a660> ret: None
[1700310934812] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1700310934812]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73cc28a660> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73cbef4e50>>)
[1700310934856]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73cc28a660> ret: None
[1700310934856]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f73cc289e40> ret: None
[1700310934857]  [DBG] HUB  Step, state: 0 (next: 1700310935857)
[1700310934858] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1700310934858]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f73cc28a520> ('/reg', '48:3f:da:55:07:5b')
[1700310934901]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f73cc28a520> ret: None
[1700310934944] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1700310934906 }
[1700310934944] [INFO] HUB  Registration finish, time: 1700310934906
[1700310934944]  [DBG] FW-UPD  enter <function device_base.register at 0x7f73cc078860> (1700310934,)
[1700310934944] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1700310934
[1700310934944] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1700310934944]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73cc28a660> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73cbef4e50>>)
[1700310934989]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73cc28a660> ret: None
[1700310934989]  [DBG] FW-UPD  exit <function device_base.register at 0x7f73cc078860> ret: None
[1700310935857]  [DBG] HUB  Step, state: 1 (next: 1700310936857)
[1700310935857]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f73cc079120> ()
[1700310935857]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f73cc079120> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1700310934}}
[1700310935857] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231118;master;08d7b27b385d4025b813ff924b091926c599eabf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700310934}}]} }
[1700310935857]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f73cc28a520> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231118;master;08d7b27b385d4025b813ff924b091926c599eabf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700310934}}]}')
[1700310935857]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f73cc28a520> ret: None
[1700310936889] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 47996 }
[1700310936889]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f73cc0789a0> ('8', 47996)
[1700310936889] [INFO] FW-UPD  Set REG[8] = 47996
[1700310936889]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f73cc0789a0> ret: None
[1700310937898]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f73cc0785e0> (8, 37338)
[1700310937898] [INFO] HUB  Publish message: { topic: 3996365522/8, value: 37338 }
[1700310937898]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f73cc28a520> ('<48:3f:da:55:07:5b/3996365522/8', '37338')
[1700310937899]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f73cc28a520> ret: None
[1700310937901]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f73cc0785e0> ret: None
[1700310938915] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 37067, "rnd-b": 38362} }
[1700310938915]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f73cc0789a0> ('9', {'rnd-a': 37067, 'rnd-b': 38362})
[1700310938915] [INFO] FW-UPD  Set REG[9] = {'rnd-a': 37067, 'rnd-b': 38362}
[1700310938915]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f73cc0789a0> ret: None
[1700310939924]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f73cc0785e0> (9, {'rnd-a': 25715, 'rnd-b': 48066})
[1700310939924] [INFO] HUB  Publish message: { topic: 3996365522/9, value: {"rnd-a": 25715, "rnd-b": 48066} }
[1700310939924]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f73cc28a520> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 25715, "rnd-b": 48066}')
[1700310939924]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f73cc28a520> ret: None
[1700310939925]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f73cc0785e0> ret: None
[1700310939937]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f73cc28a8e0> ()
[1700310939938] [WARN] HUB  Disconecting from broker
[1700310939938] [WARN] MQTT  Reconnecting in 1s
[1700310939938]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f73cc28a8e0> ret: None

Suite stderr:

2023-11-18 12:35:35,863 - TEST - INFO - OP take: 1005.571 ms
2023-11-18 12:35:35,873 - TEST - INFO - Connected with result code: 0
2023-11-18 12:35:35,887 - TEST - INFO - OP take: 20.203 ms
2023-11-18 12:35:36,887 - TEST - INFO - ------- 1. Set register 8 to value 47996 from server side
2023-11-18 12:35:36,888 - TEST - INFO - [dev] => { '8' : '47996' }
2023-11-18 12:35:36,893 - TEST - INFO - OP take: 0.007 ms
2023-11-18 12:35:37,894 - TEST - INFO - ------- 2. Set register 8 to value 37338 from device side
2023-11-18 12:35:37,911 - TEST - INFO - OP take: 10.186 ms
2023-11-18 12:35:38,913 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 37067, 'rnd-b': 38362} from server side
2023-11-18 12:35:38,914 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 37067, 'rnd-b': 38362}' }
2023-11-18 12:35:38,921 - TEST - INFO - OP take: 0.008 ms
2023-11-18 12:35:39,922 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 25715, 'rnd-b': 48066} from device side
2023-11-18 12:35:39,937 - TEST - INFO - OP take: 10.13 ms
2023-11-18 12:35:39,939 - TEST - WARNING - Disconecting from broker
2023-11-18 12:35:39,940 - TEST - WARNING - Disconecting from broker