Test Report : TEST-reg_value_exchange_test-20231119212312.xml

  • reg_value_exchange_test

Test Suite: reg_value_exchange_test-20231119212312

Results

Duration6.525 sec
Tests1
Failures0

Tests

reg_value_exchange_test

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

Suite stdout:

[1700428992816] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1700428992816] [INFO] FW-UPD  Initialized
[1700428992816]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fe908580360> (<uclient.hub.HUB object at 0x7fe908420d90>,)
[1700428992816]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fe908580360> ret: None
[1700428992816]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fe9087f6ca0> ('<48:3f:da:55:07:5b/status', '-1')
[1700428992816]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fe9087f6ca0> ret: None
[1700428992816]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fe9087f6a20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fe908420d90>>,)
[1700428992816]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fe9087f6a20> ret: None
[1700428992816]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fe9087f6b60> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fe908420d90>>,)
[1700428992816]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fe9087f6b60> ret: None
[1700428992816]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fe9087f5e40> ('x.ks.ua', 1883)
[1700428993946] [INFO] HUB  Connected
[1700428993946]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe9087f6660> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe908420d90>>)
[1700428993988]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe9087f6660> ret: None
[1700428993989]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe9087f6660> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe908420d90>>)
[1700428994032]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe9087f6660> ret: None
[1700428994033] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1700428994033]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe9087f6660> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe908420d90>>)
[1700428994076]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe9087f6660> ret: None
[1700428994076] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1700428994076]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe9087f6660> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe908420d90>>)
[1700428994120]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe9087f6660> ret: None
[1700428994120] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1700428994120]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe9087f6660> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe908420d90>>)
[1700428994164]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe9087f6660> ret: None
[1700428994164] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1700428994164]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe9087f6660> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe908420d90>>)
[1700428994208]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe9087f6660> ret: None
[1700428994208] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1700428994208]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe9087f6660> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe908420d90>>)
[1700428994252]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe9087f6660> ret: None
[1700428994252]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fe9087f5e40> ret: None
[1700428994253]  [DBG] HUB  Step, state: 0 (next: 1700428995253)
[1700428994253] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1700428994253]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fe9087f6520> ('/reg', '48:3f:da:55:07:5b')
[1700428994298]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fe9087f6520> ret: None
[1700428994340] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1700428994299 }
[1700428994340] [INFO] HUB  Registration finish, time: 1700428994299
[1700428994340]  [DBG] FW-UPD  enter <function device_base.register at 0x7fe908580860> (1700428994,)
[1700428994340] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1700428994
[1700428994340] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1700428994340]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe9087f6660> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe908420d90>>)
[1700428994384]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe9087f6660> ret: None
[1700428994384]  [DBG] FW-UPD  exit <function device_base.register at 0x7fe908580860> ret: None
[1700428995253]  [DBG] HUB  Step, state: 1 (next: 1700428996253)
[1700428995253]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fe908581120> ()
[1700428995253]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fe908581120> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1700428994}}
[1700428995253] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700428994}}]} }
[1700428995253]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fe9087f6520> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700428994}}]}')
[1700428995253]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fe9087f6520> ret: None
[1700428996275] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 13256 }
[1700428996275]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7fe9085809a0> ('8', 13256)
[1700428996275] [INFO] FW-UPD  Set REG[8] = 13256
[1700428996275]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7fe9085809a0> ret: None
[1700428997282]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7fe9085805e0> (8, 24681)
[1700428997282] [INFO] HUB  Publish message: { topic: 3996365522/8, value: 24681 }
[1700428997282]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fe9087f6520> ('<48:3f:da:55:07:5b/3996365522/8', '24681')
[1700428997285]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fe9087f6520> ret: None
[1700428997285]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7fe9085805e0> ret: None
[1700428998301] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 40199, "rnd-b": 45218} }
[1700428998301]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7fe9085809a0> ('9', {'rnd-a': 40199, 'rnd-b': 45218})
[1700428998301] [INFO] FW-UPD  Set REG[9] = {'rnd-a': 40199, 'rnd-b': 45218}
[1700428998301]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7fe9085809a0> ret: None
[1700428999311]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7fe9085805e0> (9, {'rnd-a': 15010, 'rnd-b': 35835})
[1700428999312] [INFO] HUB  Publish message: { topic: 3996365522/9, value: {"rnd-a": 15010, "rnd-b": 35835} }
[1700428999312]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fe9087f6520> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 15010, "rnd-b": 35835}')
[1700428999312]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fe9087f6520> ret: None
[1700428999315]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7fe9085805e0> ret: None
[1700428999327]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fe9087f68e0> ()
[1700428999327]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fe9087f68e0> ret: None
[1700428999328] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-19 21:23:15,259 - TEST - INFO - OP take: 1005.292 ms
2023-11-19 21:23:15,268 - TEST - INFO - Connected with result code: 0
2023-11-19 21:23:15,273 - TEST - INFO - OP take: 10.128 ms
2023-11-19 21:23:16,274 - TEST - INFO - ------- 1. Set register 8 to value 13256 from server side
2023-11-19 21:23:16,274 - TEST - INFO - [dev] => { '8' : '13256' }
2023-11-19 21:23:16,278 - TEST - INFO - OP take: 0.006 ms
2023-11-19 21:23:17,278 - TEST - INFO - ------- 2. Set register 8 to value 24681 from device side
2023-11-19 21:23:17,296 - TEST - INFO - OP take: 10.205 ms
2023-11-19 21:23:18,299 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 40199, 'rnd-b': 45218} from server side
2023-11-19 21:23:18,300 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 40199, 'rnd-b': 45218}' }
2023-11-19 21:23:18,306 - TEST - INFO - OP take: 0.005 ms
2023-11-19 21:23:19,308 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 15010, 'rnd-b': 35835} from device side
2023-11-19 21:23:19,326 - TEST - INFO - OP take: 10.174 ms
2023-11-19 21:23:19,334 - TEST - WARNING - Disconecting from broker
2023-11-19 21:23:19,347 - TEST - WARNING - Disconecting from broker