Test Report : TEST-reg_value_exchange_test-20240210232452.xml

  • reg_value_exchange_test

Test Suite: reg_value_exchange_test-20240210232452

Results

Duration6.556 sec
Tests1
Failures0

Tests

reg_value_exchange_test

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

Suite stdout:

[1707607492915] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1707607492915] [INFO] FW-UPD  Initialized
[1707607492916]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f41b0920680> (<uclient.hub.HUB object at 0x7f41b07c5010>,)
[1707607492916]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f41b0920680> ret: None
[1707607492916]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f41b0b96fc0> ('<48:3f:da:55:07:5b/status', '-1')
[1707607492916]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f41b0b96fc0> ret: None
[1707607492916]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f41b0b96d40> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f41b07c5010>>,)
[1707607492916]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f41b0b96d40> ret: None
[1707607492916]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f41b0b96e80> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f41b07c5010>>,)
[1707607492916]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f41b0b96e80> ret: None
[1707607492916] [WARN] HUB  Try to connect without uri-schema
[1707607492916]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f41b0b96700> ('x.ks.ua',)
[1707607493919] [INFO] HUB  Connected
[1707607493919]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f41b0b96980> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f41b07c5010>>)
[1707607493963]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f41b0b96980> ret: None
[1707607493963]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f41b0b96980> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f41b07c5010>>)
[1707607494007]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f41b0b96980> ret: None
[1707607494007] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1707607494007]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f41b0b96980> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f41b07c5010>>)
[1707607494051]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f41b0b96980> ret: None
[1707607494051] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1707607494051]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f41b0b96980> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f41b07c5010>>)
[1707607494095]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f41b0b96980> ret: None
[1707607494095] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1707607494095]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f41b0b96980> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f41b07c5010>>)
[1707607494139]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f41b0b96980> ret: None
[1707607494139] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1707607494139]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f41b0b96980> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f41b07c5010>>)
[1707607494183]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f41b0b96980> ret: None
[1707607494183] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1707607494183]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f41b0b96980> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f41b07c5010>>)
[1707607494227]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f41b0b96980> ret: None
[1707607494227]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f41b0b96700> ret: None
[1707607494228]  [DBG] HUB  Step, state: 0 (next: 1707607495227)
[1707607494228] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1707607494228]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f41b0b96840> ('/reg', '48:3f:da:55:07:5b')
[1707607494271]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f41b0b96840> ret: None
[1707607494315] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1707607494273 }
[1707607494315] [INFO] HUB  Registration finish, time: 1707607494273
[1707607494315]  [DBG] FW-UPD  enter <function device_base.register at 0x7f41b0920b80> (1707607494,)
[1707607494315] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1707607494
[1707607494315] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1707607494315]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f41b0b96980> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f41b07c5010>>)
[1707607494359]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f41b0b96980> ret: None
[1707607494359]  [DBG] FW-UPD  exit <function device_base.register at 0x7f41b0920b80> ret: None
[1707607495227]  [DBG] HUB  Step, state: 1 (next: 1707607496227)
[1707607495227]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f41b0921440> ()
[1707607495227]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f41b0921440> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1707607494}}
[1707607495227] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240201;master;e89029bf60793daed45c8101ee145a73cc811f6e", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707607494}}]} }
[1707607495227]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f41b0b96840> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240201;master;e89029bf60793daed45c8101ee145a73cc811f6e", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707607494}}]}')
[1707607495227]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f41b0b96840> ret: None
[1707607496433] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 50241 }
[1707607496433]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f41b0920cc0> ('8', 50241)
[1707607496433] [INFO] FW-UPD  Set REG[8] = 50241
[1707607496433]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f41b0920cc0> ret: None
[1707607497437]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f41b0920900> (8, 11399)
[1707607497437] [INFO] HUB  Publish message: { topic: 3996365522/8, value: 11399 }
[1707607497437]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f41b0b96840> ('<48:3f:da:55:07:5b/3996365522/8', '11399')
[1707607497439]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f41b0b96840> ret: None
[1707607497439]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f41b0920900> ret: None
[1707607498442] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 34904, "rnd-b": 24689} }
[1707607498442]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f41b0920cc0> ('9', {'rnd-a': 34904, 'rnd-b': 24689})
[1707607498442] [INFO] FW-UPD  Set REG[9] = {'rnd-a': 34904, 'rnd-b': 24689}
[1707607498442]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f41b0920cc0> ret: None
[1707607499448]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f41b0920900> (9, {'rnd-a': 1159, 'rnd-b': 6998})
[1707607499448] [INFO] HUB  Publish message: { topic: 3996365522/9, value: {"rnd-a": 1159, "rnd-b": 6998} }
[1707607499448]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f41b0b96840> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 1159, "rnd-b": 6998}')
[1707607499448]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f41b0b96840> ret: None
[1707607499448]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f41b0920900> ret: None
[1707607499459]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f41b0b96c00> ()
[1707607499459]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f41b0b96c00> ret: None
[1707607499460] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-02-10 23:24:55,236 - TEST - INFO - OP take: 1008.045 ms
2024-02-10 23:24:55,425 - TEST - INFO - Connected with result code: 0
2024-02-10 23:24:55,431 - TEST - INFO - OP take: 192.631 ms
2024-02-10 23:24:56,432 - TEST - INFO - ------- 1. Set register 8 to value 50241 from server side
2024-02-10 23:24:56,432 - TEST - INFO - [dev] => { '8' : '50241' }
2024-02-10 23:24:56,434 - TEST - INFO - OP take: 0.004 ms
2024-02-10 23:24:57,435 - TEST - INFO - ------- 2. Set register 8 to value 11399 from device side
2024-02-10 23:24:57,439 - TEST - INFO - OP take: 0.002 ms
2024-02-10 23:24:58,440 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 34904, 'rnd-b': 24689} from server side
2024-02-10 23:24:58,440 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 34904, 'rnd-b': 24689}' }
2024-02-10 23:24:58,446 - TEST - INFO - OP take: 0.006 ms
2024-02-10 23:24:59,446 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 1159, 'rnd-b': 6998} from device side
2024-02-10 23:24:59,458 - TEST - INFO - OP take: 10.11 ms
2024-02-10 23:24:59,465 - TEST - WARNING - Disconecting from broker
2024-02-10 23:24:59,477 - TEST - WARNING - Disconecting from broker