Test Report : TEST-reg_value_exchange_test-20240330134652.xml

  • reg_value_exchange_test

Test Suite: reg_value_exchange_test-20240330134652

Results

Duration6.546 sec
Tests1
Failures0

Tests

reg_value_exchange_test

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

Suite stdout:

[1711806412599] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1711806412599] [INFO] FW-UPD  Initialized
[1711806412600]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fdf2e8e0680> (<uclient.hub.HUB object at 0x7fdf2e7852d0>,)
[1711806412600]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fdf2e8e0680> ret: None
[1711806412600]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fdf2eb56fc0> ('<48:3f:da:55:07:5b/status', '-1')
[1711806412600]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fdf2eb56fc0> ret: None
[1711806412600]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fdf2eb56d40> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fdf2e7852d0>>,)
[1711806412600]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fdf2eb56d40> ret: None
[1711806412600]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fdf2eb56e80> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fdf2e7852d0>>,)
[1711806412600]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fdf2eb56e80> ret: None
[1711806412600] [WARN] HUB  Try to connect without uri-schema
[1711806412600]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fdf2eb56700> ('x.ks.ua',)
[1711806413732] [INFO] HUB  Connected
[1711806413733]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf2eb56980> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdf2e7852d0>>)
[1711806413774]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf2eb56980> ret: None
[1711806413775]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf2eb56980> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdf2e7852d0>>)
[1711806413818]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf2eb56980> ret: None
[1711806413818] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1711806413818]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf2eb56980> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdf2e7852d0>>)
[1711806413862]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf2eb56980> ret: None
[1711806413862] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1711806413862]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf2eb56980> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdf2e7852d0>>)
[1711806413906]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf2eb56980> ret: None
[1711806413906] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1711806413906]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf2eb56980> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdf2e7852d0>>)
[1711806413950]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf2eb56980> ret: None
[1711806413950] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1711806413950]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf2eb56980> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdf2e7852d0>>)
[1711806413994]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf2eb56980> ret: None
[1711806413994] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1711806413994]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf2eb56980> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdf2e7852d0>>)
[1711806414038]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf2eb56980> ret: None
[1711806414038]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fdf2eb56700> ret: None
[1711806414039]  [DBG] HUB  Step, state: 0 (next: 1711806415039)
[1711806414039] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1711806414039]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdf2eb56840> ('/reg', '48:3f:da:55:07:5b')
[1711806414082]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdf2eb56840> ret: None
[1711806414126] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1711806414086 }
[1711806414126] [INFO] HUB  Registration finish, time: 1711806414086
[1711806414126]  [DBG] FW-UPD  enter <function device_base.register at 0x7fdf2e8e0b80> (1711806414,)
[1711806414126] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1711806414
[1711806414126] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1711806414126]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf2eb56980> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdf2e7852d0>>)
[1711806414170]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf2eb56980> ret: None
[1711806414170]  [DBG] FW-UPD  exit <function device_base.register at 0x7fdf2e8e0b80> ret: None
[1711806415039]  [DBG] HUB  Step, state: 1 (next: 1711806416039)
[1711806415039]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fdf2e8e1440> ()
[1711806415039]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fdf2e8e1440> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1711806414}}
[1711806415039] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711806414}}]} }
[1711806415039]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdf2eb56840> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711806414}}]}')
[1711806415039]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdf2eb56840> ret: None
[1711806416077] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 31891 }
[1711806416078]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7fdf2e8e0cc0> ('8', 31891)
[1711806416078] [INFO] FW-UPD  Set REG[8] = 31891
[1711806416078]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7fdf2e8e0cc0> ret: None
[1711806417083]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7fdf2e8e0900> (8, 60232)
[1711806417083] [INFO] HUB  Publish message: { topic: 3996365522/8, value: 60232 }
[1711806417083]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdf2eb56840> ('<48:3f:da:55:07:5b/3996365522/8', '60232')
[1711806417084]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdf2eb56840> ret: None
[1711806417086]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7fdf2e8e0900> ret: None
[1711806418098] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 5289, "rnd-b": 31119} }
[1711806418098]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7fdf2e8e0cc0> ('9', {'rnd-a': 5289, 'rnd-b': 31119})
[1711806418098] [INFO] FW-UPD  Set REG[9] = {'rnd-a': 5289, 'rnd-b': 31119}
[1711806418098]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7fdf2e8e0cc0> ret: None
[1711806419110]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7fdf2e8e0900> (9, {'rnd-a': 63713, 'rnd-b': 14797})
[1711806419110] [INFO] HUB  Publish message: { topic: 3996365522/9, value: {"rnd-a": 63713, "rnd-b": 14797} }
[1711806419110]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdf2eb56840> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 63713, "rnd-b": 14797}')
[1711806419110]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdf2eb56840> ret: None
[1711806419110]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7fdf2e8e0900> ret: None
[1711806419124]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fdf2eb56c00> ()
[1711806419124]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fdf2eb56c00> ret: None
[1711806419126] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-03-30 13:46:55,046 - TEST - INFO - OP take: 1007.429 ms
2024-03-30 13:46:55,062 - TEST - INFO - Connected with result code: 0
2024-03-30 13:46:55,069 - TEST - INFO - OP take: 10.162 ms
2024-03-30 13:46:56,072 - TEST - INFO - ------- 1. Set register 8 to value 31891 from server side
2024-03-30 13:46:56,073 - TEST - INFO - [dev] => { '8' : '31891' }
2024-03-30 13:46:56,080 - TEST - INFO - OP take: 0.01 ms
2024-03-30 13:46:57,080 - TEST - INFO - ------- 2. Set register 8 to value 60232 from device side
2024-03-30 13:46:57,096 - TEST - INFO - OP take: 10.185 ms
2024-03-30 13:46:58,097 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 5289, 'rnd-b': 31119} from server side
2024-03-30 13:46:58,097 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 5289, 'rnd-b': 31119}' }
2024-03-30 13:46:58,104 - TEST - INFO - OP take: 0.007 ms
2024-03-30 13:46:59,104 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 63713, 'rnd-b': 14797} from device side
2024-03-30 13:46:59,123 - TEST - INFO - OP take: 12.253 ms
2024-03-30 13:46:59,126 - TEST - WARNING - Disconecting from broker