Test Report : TEST-reg_value_exchange_test-20231102152132.xml

  • reg_value_exchange_test

Test Suite: reg_value_exchange_test-20231102152132

Results

Duration6.389 sec
Tests1
Failures0

Tests

reg_value_exchange_test

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

Suite stdout:

[1698938492331] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1698938492331] [INFO] FW-UPD  Initialized
[1698938492331]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f4574e24180> (<uclient.hub.HUB object at 0x7f4574cc4c10>,)
[1698938492331]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f4574e24180> ret: None
[1698938492331]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f457509a980> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f4574cc4c10>>,)
[1698938492331]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f457509a980> ret: None
[1698938492331]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f457509aac0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f4574cc4c10>>,)
[1698938492331]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f457509aac0> ret: None
[1698938492331]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f4575099e40> ('x.ks.ua', 1883)
[1698938493337] [INFO] HUB  Connected
[1698938493337]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f457509a5c0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4574cc4c10>>)
[1698938493380]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f457509a5c0> ret: None
[1698938493380]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f457509a5c0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4574cc4c10>>)
[1698938493424]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f457509a5c0> ret: None
[1698938493424] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1698938493424]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f457509a5c0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4574cc4c10>>)
[1698938493468]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f457509a5c0> ret: None
[1698938493468] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1698938493469]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f457509a5c0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4574cc4c10>>)
[1698938493512]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f457509a5c0> ret: None
[1698938493512] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1698938493512]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f457509a5c0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4574cc4c10>>)
[1698938493556]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f457509a5c0> ret: None
[1698938493556] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1698938493556]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f457509a5c0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4574cc4c10>>)
[1698938493600]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f457509a5c0> ret: None
[1698938493600] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1698938493600]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f457509a5c0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4574cc4c10>>)
[1698938493644]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f457509a5c0> ret: None
[1698938493644]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f4575099e40> ret: None
[1698938493646]  [DBG] HUB  Step, state: 0 (next: 1698938494646)
[1698938493646] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1698938493646]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f457509a480> ('/reg', '48:3f:da:55:07:5b')
[1698938493689]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f457509a480> ret: None
[1698938493732] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1698938493692 }
[1698938493732] [INFO] HUB  Registration finish, time: 1698938493692
[1698938493732]  [DBG] FW-UPD  enter <function device_base.register at 0x7f4574e24680> (1698938493,)
[1698938493732] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1698938493
[1698938493732] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1698938493732]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f457509a5c0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4574cc4c10>>)
[1698938493776]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f457509a5c0> ret: None
[1698938493776]  [DBG] FW-UPD  exit <function device_base.register at 0x7f4574e24680> ret: None
[1698938494646]  [DBG] HUB  Step, state: 1 (next: 1698938495646)
[1698938494646]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f4574e24f40> ()
[1698938494646]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f4574e24f40> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1698938493}}
[1698938494646] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231102;master;e9b306c7e765ddf633df5089542fbb0d0e965da4", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1698938493}}]} }
[1698938494646]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f457509a480> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231102;master;e9b306c7e765ddf633df5089542fbb0d0e965da4", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1698938493}}]}')
[1698938494646]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f457509a480> ret: None
[1698938495666] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 62413 }
[1698938495666]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f4574e247c0> ('8', 62413)
[1698938495666] [INFO] FW-UPD  Set REG[8] = 62413
[1698938495666]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f4574e247c0> ret: None
[1698938496672]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f4574e24400> (8, 43671)
[1698938496672] [INFO] HUB  Publish message: { topic: 3996365522/8, value: 43671 }
[1698938496672]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f457509a480> ('<48:3f:da:55:07:5b/3996365522/8', '43671')
[1698938496675]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f457509a480> ret: None
[1698938496675]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f4574e24400> ret: None
[1698938497680] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 5401, "rnd-b": 48884} }
[1698938497680]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f4574e247c0> ('9', {'rnd-a': 5401, 'rnd-b': 48884})
[1698938497680] [INFO] FW-UPD  Set REG[9] = {'rnd-a': 5401, 'rnd-b': 48884}
[1698938497680]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f4574e247c0> ret: None
[1698938498684]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f4574e24400> (9, {'rnd-a': 32191, 'rnd-b': 192})
[1698938498684] [INFO] HUB  Publish message: { topic: 3996365522/9, value: {"rnd-a": 32191, "rnd-b": 192} }
[1698938498684]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f457509a480> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 32191, "rnd-b": 192}')
[1698938498684]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f457509a480> ret: None
[1698938498684]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f4574e24400> ret: None
[1698938498698]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f457509a840> ()
[1698938498698]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f457509a840> ret: None
[1698938498699] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-02 15:21:34,653 - TEST - INFO - OP take: 1007.094 ms
2023-11-02 15:21:34,657 - TEST - INFO - Connected with result code: 0
2023-11-02 15:21:34,664 - TEST - INFO - OP take: 10.13 ms
2023-11-02 15:21:35,665 - TEST - INFO - ------- 1. Set register 8 to value 62413 from server side
2023-11-02 15:21:35,665 - TEST - INFO - [dev] => { '8' : '62413' }
2023-11-02 15:21:35,669 - TEST - INFO - OP take: 0.006 ms
2023-11-02 15:21:36,669 - TEST - INFO - ------- 2. Set register 8 to value 43671 from device side
2023-11-02 15:21:36,675 - TEST - INFO - OP take: 0.005 ms
2023-11-02 15:21:37,678 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 5401, 'rnd-b': 48884} from server side
2023-11-02 15:21:37,679 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 5401, 'rnd-b': 48884}' }
2023-11-02 15:21:37,682 - TEST - INFO - OP take: 0.005 ms
2023-11-02 15:21:38,682 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 32191, 'rnd-b': 192} from device side
2023-11-02 15:21:38,696 - TEST - INFO - OP take: 10.15 ms
2023-11-02 15:21:38,710 - TEST - WARNING - Disconecting from broker
2023-11-02 15:21:38,712 - TEST - WARNING - Disconecting from broker