Test Report : TEST-reg_value_exchange_test-20231210165551.xml

  • reg_value_exchange_test

Test Suite: reg_value_exchange_test-20231210165551

Results

Duration6.46 sec
Tests1
Failures0

Tests

reg_value_exchange_test

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

Suite stdout:

[1702227351659] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1702227351660] [INFO] FW-UPD  Initialized
[1702227351660]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f8306a40360> (<uclient.hub.HUB object at 0x7f83068b8f50>,)
[1702227351660]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f8306a40360> ret: None
[1702227351660]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f8306cb6ca0> ('<48:3f:da:55:07:5b/status', '-1')
[1702227351660]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f8306cb6ca0> ret: None
[1702227351660]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f8306cb6a20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f83068b8f50>>,)
[1702227351660]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f8306cb6a20> ret: None
[1702227351660]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f8306cb6b60> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f83068b8f50>>,)
[1702227351660]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f8306cb6b60> ret: None
[1702227351660] [WARN] HUB  Try to connect without uri-schema
[1702227351660]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f8306cb5e40> ('x.ks.ua',)
[1702227352731] [INFO] HUB  Connected
[1702227352731]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f8306cb6660> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f83068b8f50>>)
[1702227352775]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f8306cb6660> ret: None
[1702227352775]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f8306cb6660> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f83068b8f50>>)
[1702227352819]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f8306cb6660> ret: None
[1702227352819] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1702227352819]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f8306cb6660> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f83068b8f50>>)
[1702227352863]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f8306cb6660> ret: None
[1702227352863] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1702227352863]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f8306cb6660> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f83068b8f50>>)
[1702227352911]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f8306cb6660> ret: None
[1702227352911] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1702227352911]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f8306cb6660> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f83068b8f50>>)
[1702227352955]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f8306cb6660> ret: None
[1702227352955] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1702227352955]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f8306cb6660> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f83068b8f50>>)
[1702227352999]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f8306cb6660> ret: None
[1702227352999] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1702227352999]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f8306cb6660> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f83068b8f50>>)
[1702227353043]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f8306cb6660> ret: None
[1702227353043]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f8306cb5e40> ret: None
[1702227353044]  [DBG] HUB  Step, state: 0 (next: 1702227354044)
[1702227353044] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1702227353044]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f8306cb6520> ('/reg', '48:3f:da:55:07:5b')
[1702227353087]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f8306cb6520> ret: None
[1702227353131] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1702227353089 }
[1702227353131] [INFO] HUB  Registration finish, time: 1702227353089
[1702227353131]  [DBG] FW-UPD  enter <function device_base.register at 0x7f8306a40860> (1702227353,)
[1702227353131] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1702227353
[1702227353131] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1702227353131]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f8306cb6660> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f83068b8f50>>)
[1702227353175]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f8306cb6660> ret: None
[1702227353175]  [DBG] FW-UPD  exit <function device_base.register at 0x7f8306a40860> ret: None
[1702227354044]  [DBG] HUB  Step, state: 1 (next: 1702227355044)
[1702227354044]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f8306a41120> ()
[1702227354044]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f8306a41120> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1702227353}}
[1702227354044] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231210;master;e46d1687d9b13615140f1b18b85d3462da1a4742", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1702227353}}]} }
[1702227354044]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f8306cb6520> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231210;master;e46d1687d9b13615140f1b18b85d3462da1a4742", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1702227353}}]}')
[1702227354044]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f8306cb6520> ret: None
[1702227355068] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 33016 }
[1702227355068]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f8306a409a0> ('8', 33016)
[1702227355068] [INFO] FW-UPD  Set REG[8] = 33016
[1702227355068]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f8306a409a0> ret: None
[1702227356074]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f8306a405e0> (8, 42807)
[1702227356074] [INFO] HUB  Publish message: { topic: 3996365522/8, value: 42807 }
[1702227356074]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f8306cb6520> ('<48:3f:da:55:07:5b/3996365522/8', '42807')
[1702227356077]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f8306cb6520> ret: None
[1702227356077]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f8306a405e0> ret: None
[1702227357082] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 11069, "rnd-b": 58554} }
[1702227357082]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f8306a409a0> ('9', {'rnd-a': 11069, 'rnd-b': 58554})
[1702227357082] [INFO] FW-UPD  Set REG[9] = {'rnd-a': 11069, 'rnd-b': 58554}
[1702227357082]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f8306a409a0> ret: None
[1702227358087]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f8306a405e0> (9, {'rnd-a': 12024, 'rnd-b': 41711})
[1702227358087] [INFO] HUB  Publish message: { topic: 3996365522/9, value: {"rnd-a": 12024, "rnd-b": 41711} }
[1702227358087]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f8306cb6520> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 12024, "rnd-b": 41711}')
[1702227358087]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f8306cb6520> ret: None
[1702227358089]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f8306a405e0> ret: None
[1702227358100]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f8306cb68e0> ()
[1702227358101]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f8306cb68e0> ret: None
[1702227358102] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-12-10 16:55:54,053 - TEST - INFO - OP take: 1008.391 ms
2023-12-10 16:55:54,062 - TEST - INFO - Connected with result code: 0
2023-12-10 16:55:54,066 - TEST - INFO - OP take: 10.108 ms
2023-12-10 16:55:55,067 - TEST - INFO - ------- 1. Set register 8 to value 33016 from server side
2023-12-10 16:55:55,067 - TEST - INFO - [dev] => { '8' : '33016' }
2023-12-10 16:55:55,070 - TEST - INFO - OP take: 0.006 ms
2023-12-10 16:55:56,071 - TEST - INFO - ------- 2. Set register 8 to value 42807 from device side
2023-12-10 16:55:56,077 - TEST - INFO - OP take: 0.005 ms
2023-12-10 16:55:57,078 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 11069, 'rnd-b': 58554} from server side
2023-12-10 16:55:57,081 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 11069, 'rnd-b': 58554}' }
2023-12-10 16:55:57,084 - TEST - INFO - OP take: 0.005 ms
2023-12-10 16:55:58,085 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 12024, 'rnd-b': 41711} from device side
2023-12-10 16:55:58,099 - TEST - INFO - OP take: 10.135 ms
2023-12-10 16:55:58,112 - TEST - WARNING - Disconecting from broker
2023-12-10 16:55:58,114 - TEST - WARNING - Disconecting from broker