Test Report : TEST-reg_value_exchange_test-20240331122227.xml

  • reg_value_exchange_test

Test Suite: reg_value_exchange_test-20240331122227

Results

Duration6.372 sec
Tests1
Failures0

Tests

reg_value_exchange_test

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

Suite stdout:

[1711887747202] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1711887747203] [INFO] FW-UPD  Initialized
[1711887747204]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f1c66e4c680> (<uclient.hub.HUB object at 0x7f1c66cccc10>,)
[1711887747204]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f1c66e4c680> ret: None
[1711887747204]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f1c670c6fc0> ('<48:3f:da:55:07:5b/status', '-1')
[1711887747204]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f1c670c6fc0> ret: None
[1711887747204]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f1c670c6d40> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f1c66cccc10>>,)
[1711887747204]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f1c670c6d40> ret: None
[1711887747204]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f1c670c6e80> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f1c66cccc10>>,)
[1711887747204]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f1c670c6e80> ret: None
[1711887747204] [WARN] HUB  Try to connect without uri-schema
[1711887747204]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f1c670c6700> ('x.ks.ua',)
[1711887748213] [INFO] HUB  Connected
[1711887748213]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1c670c6980> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1c66cccc10>>)
[1711887748254]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1c670c6980> ret: None
[1711887748254]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1c670c6980> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1c66cccc10>>)
[1711887748298]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1c670c6980> ret: None
[1711887748298] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1711887748298]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1c670c6980> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1c66cccc10>>)
[1711887748342]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1c670c6980> ret: None
[1711887748342] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1711887748342]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1c670c6980> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1c66cccc10>>)
[1711887748386]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1c670c6980> ret: None
[1711887748386] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1711887748386]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1c670c6980> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1c66cccc10>>)
[1711887748430]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1c670c6980> ret: None
[1711887748430] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1711887748430]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1c670c6980> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1c66cccc10>>)
[1711887748474]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1c670c6980> ret: None
[1711887748474] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1711887748474]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1c670c6980> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1c66cccc10>>)
[1711887748518]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1c670c6980> ret: None
[1711887748518]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f1c670c6700> ret: None
[1711887748519]  [DBG] HUB  Step, state: 0 (next: 1711887749519)
[1711887748519] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1711887748519]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1c670c6840> ('/reg', '48:3f:da:55:07:5b')
[1711887748563]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1c670c6840> ret: None
[1711887748606] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1711887748565 }
[1711887748606] [INFO] HUB  Registration finish, time: 1711887748565
[1711887748606]  [DBG] FW-UPD  enter <function device_base.register at 0x7f1c66e4cb80> (1711887748,)
[1711887748606] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1711887748
[1711887748606] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1711887748606]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1c670c6980> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1c66cccc10>>)
[1711887748650]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1c670c6980> ret: None
[1711887748650]  [DBG] FW-UPD  exit <function device_base.register at 0x7f1c66e4cb80> ret: None
[1711887749519]  [DBG] HUB  Step, state: 1 (next: 1711887750519)
[1711887749519]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f1c66e4d440> ()
[1711887749519]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f1c66e4d440> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1711887748}}
[1711887749519] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240331;master;5183e637011d54c26955b17b85024fc74d20124c", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711887748}}]} }
[1711887749519]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1c670c6840> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240331;master;5183e637011d54c26955b17b85024fc74d20124c", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711887748}}]}')
[1711887749519]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1c670c6840> ret: None
[1711887750540] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 47758 }
[1711887750541]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f1c66e4ccc0> ('8', 47758)
[1711887750541] [INFO] FW-UPD  Set REG[8] = 47758
[1711887750541]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f1c66e4ccc0> ret: None
[1711887751545]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f1c66e4c900> (8, 43583)
[1711887751546] [INFO] HUB  Publish message: { topic: 3996365522/8, value: 43583 }
[1711887751546]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1c670c6840> ('<48:3f:da:55:07:5b/3996365522/8', '43583')
[1711887751546]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1c670c6840> ret: None
[1711887751549]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f1c66e4c900> ret: None
[1711887752561] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 32348, "rnd-b": 24067} }
[1711887752561]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f1c66e4ccc0> ('9', {'rnd-a': 32348, 'rnd-b': 24067})
[1711887752561] [INFO] FW-UPD  Set REG[9] = {'rnd-a': 32348, 'rnd-b': 24067}
[1711887752561]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f1c66e4ccc0> ret: None
[1711887753568]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f1c66e4c900> (9, {'rnd-a': 44069, 'rnd-b': 9338})
[1711887753568] [INFO] HUB  Publish message: { topic: 3996365522/9, value: {"rnd-a": 44069, "rnd-b": 9338} }
[1711887753568]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1c670c6840> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 44069, "rnd-b": 9338}')
[1711887753569]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1c670c6840> ret: None
[1711887753569]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f1c66e4c900> ret: None
[1711887753570]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f1c670c6c00> ()
[1711887753570]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f1c670c6c00> ret: None
[1711887753571] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-03-31 12:22:29,524 - TEST - INFO - OP take: 1004.743 ms
2024-03-31 12:22:29,534 - TEST - INFO - Connected with result code: 0
2024-03-31 12:22:29,539 - TEST - INFO - OP take: 10.098 ms
2024-03-31 12:22:30,540 - TEST - INFO - ------- 1. Set register 8 to value 47758 from server side
2024-03-31 12:22:30,540 - TEST - INFO - [dev] => { '8' : '47758' }
2024-03-31 12:22:30,542 - TEST - INFO - OP take: 0.004 ms
2024-03-31 12:22:31,543 - TEST - INFO - ------- 2. Set register 8 to value 43583 from device side
2024-03-31 12:22:31,559 - TEST - INFO - OP take: 10.166 ms
2024-03-31 12:22:32,560 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 32348, 'rnd-b': 24067} from server side
2024-03-31 12:22:32,560 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 32348, 'rnd-b': 24067}' }
2024-03-31 12:22:32,564 - TEST - INFO - OP take: 0.006 ms
2024-03-31 12:22:33,565 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 44069, 'rnd-b': 9338} from device side
2024-03-31 12:22:33,569 - TEST - INFO - OP take: 0.046 ms
2024-03-31 12:22:33,570 - TEST - WARNING - Disconecting from broker
2024-03-31 12:22:33,570 - TEST - WARNING - Disconecting from broker