Test Report : TEST-reg_value_exchange_test-20240130082802.xml

  • reg_value_exchange_test

Test Suite: reg_value_exchange_test-20240130082802

Results

Duration6.529 sec
Tests1
Failures0

Tests

reg_value_exchange_test

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

Suite stdout:

[1706603282235] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1706603282235] [INFO] FW-UPD  Initialized
[1706603282235]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fb97d3a4360> (<uclient.hub.HUB object at 0x7fb97d240dd0>,)
[1706603282235]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fb97d3a4360> ret: None
[1706603282236]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fb97d616ca0> ('<48:3f:da:55:07:5b/status', '-1')
[1706603282236]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fb97d616ca0> ret: None
[1706603282236]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fb97d616a20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fb97d240dd0>>,)
[1706603282236]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fb97d616a20> ret: None
[1706603282236]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fb97d616b60> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fb97d240dd0>>,)
[1706603282236]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fb97d616b60> ret: None
[1706603282236] [WARN] HUB  Try to connect without uri-schema
[1706603282236]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fb97d615e40> ('x.ks.ua',)
[1706603283386] [INFO] HUB  Connected
[1706603283386]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb97d616660> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb97d240dd0>>)
[1706603283427]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb97d616660> ret: None
[1706603283427]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb97d616660> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb97d240dd0>>)
[1706603283471]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb97d616660> ret: None
[1706603283471] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1706603283471]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb97d616660> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb97d240dd0>>)
[1706603283515]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb97d616660> ret: None
[1706603283515] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1706603283515]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb97d616660> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb97d240dd0>>)
[1706603283559]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb97d616660> ret: None
[1706603283559] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1706603283559]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb97d616660> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb97d240dd0>>)
[1706603283603]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb97d616660> ret: None
[1706603283603] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1706603283603]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb97d616660> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb97d240dd0>>)
[1706603283647]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb97d616660> ret: None
[1706603283647] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1706603283647]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb97d616660> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb97d240dd0>>)
[1706603283691]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb97d616660> ret: None
[1706603283691]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fb97d615e40> ret: None
[1706603283692]  [DBG] HUB  Step, state: 0 (next: 1706603284692)
[1706603283692] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1706603283692]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb97d616520> ('/reg', '48:3f:da:55:07:5b')
[1706603283736]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb97d616520> ret: None
[1706603283779] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1706603283738 }
[1706603283779] [INFO] HUB  Registration finish, time: 1706603283738
[1706603283779]  [DBG] FW-UPD  enter <function device_base.register at 0x7fb97d3a4860> (1706603283,)
[1706603283779] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1706603283
[1706603283779] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1706603283779]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb97d616660> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb97d240dd0>>)
[1706603283823]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb97d616660> ret: None
[1706603283823]  [DBG] FW-UPD  exit <function device_base.register at 0x7fb97d3a4860> ret: None
[1706603284692]  [DBG] HUB  Step, state: 1 (next: 1706603285692)
[1706603284692]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fb97d3a5120> ()
[1706603284692]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fb97d3a5120> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1706603283}}
[1706603284692] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240129;master;2ef3211e388ad8de8753e73738ad72b1dbe8c3e9", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1706603283}}]} }
[1706603284692]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb97d616520> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240129;master;2ef3211e388ad8de8753e73738ad72b1dbe8c3e9", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1706603283}}]}')
[1706603284692]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb97d616520> ret: None
[1706603285710] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 50048 }
[1706603285710]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7fb97d3a49a0> ('8', 50048)
[1706603285710] [INFO] FW-UPD  Set REG[8] = 50048
[1706603285710]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7fb97d3a49a0> ret: None
[1706603286717]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7fb97d3a45e0> (8, 61711)
[1706603286717] [INFO] HUB  Publish message: { topic: 3996365522/8, value: 61711 }
[1706603286717]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb97d616520> ('<48:3f:da:55:07:5b/3996365522/8', '61711')
[1706603286721]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb97d616520> ret: None
[1706603286721]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7fb97d3a45e0> ret: None
[1706603287736] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 3349, "rnd-b": 47557} }
[1706603287736]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7fb97d3a49a0> ('9', {'rnd-a': 3349, 'rnd-b': 47557})
[1706603287736] [INFO] FW-UPD  Set REG[9] = {'rnd-a': 3349, 'rnd-b': 47557}
[1706603287736]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7fb97d3a49a0> ret: None
[1706603288742]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7fb97d3a45e0> (9, {'rnd-a': 23525, 'rnd-b': 39033})
[1706603288742] [INFO] HUB  Publish message: { topic: 3996365522/9, value: {"rnd-a": 23525, "rnd-b": 39033} }
[1706603288742]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb97d616520> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 23525, "rnd-b": 39033}')
[1706603288745]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb97d616520> ret: None
[1706603288747]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7fb97d3a45e0> ret: None
[1706603288757]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fb97d6168e0> ()
[1706603288757]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fb97d6168e0> ret: None
[1706603288758] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-01-30 08:28:04,697 - TEST - INFO - OP take: 1005.277 ms
2024-01-30 08:28:04,702 - TEST - INFO - Connected with result code: 0
2024-01-30 08:28:04,709 - TEST - INFO - OP take: 10.145 ms
2024-01-30 08:28:05,709 - TEST - INFO - ------- 1. Set register 8 to value 50048 from server side
2024-01-30 08:28:05,710 - TEST - INFO - [dev] => { '8' : '50048' }
2024-01-30 08:28:05,712 - TEST - INFO - OP take: 0.005 ms
2024-01-30 08:28:06,712 - TEST - INFO - ------- 2. Set register 8 to value 61711 from device side
2024-01-30 08:28:06,731 - TEST - INFO - OP take: 10.104 ms
2024-01-30 08:28:07,732 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 3349, 'rnd-b': 47557} from server side
2024-01-30 08:28:07,735 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 3349, 'rnd-b': 47557}' }
2024-01-30 08:28:07,739 - TEST - INFO - OP take: 0.004 ms
2024-01-30 08:28:08,740 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 23525, 'rnd-b': 39033} from device side
2024-01-30 08:28:08,757 - TEST - INFO - OP take: 10.119 ms
2024-01-30 08:28:08,763 - TEST - WARNING - Disconecting from broker
2024-01-30 08:28:08,764 - TEST - WARNING - Disconecting from broker