Test Report : TEST-reg_value_exchange_test-20240413182537.xml

  • reg_value_exchange_test

Test Suite: reg_value_exchange_test-20240413182537

Results

Duration6.53 sec
Tests1
Failures0

Tests

reg_value_exchange_test

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

Suite stdout:

[1713032737105] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1713032737106] [INFO] FW-UPD  Initialized
[1713032737106]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f39bddf4680> (<uclient.hub.HUB object at 0x7f39bdc74a10>,)
[1713032737106]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f39bddf4680> ret: None
[1713032737106]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f39be006fc0> ('<48:3f:da:55:07:5b/status', '-1')
[1713032737106]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f39be006fc0> ret: None
[1713032737106]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f39be006d40> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f39bdc74a10>>,)
[1713032737106]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f39be006d40> ret: None
[1713032737106]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f39be006e80> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f39bdc74a10>>,)
[1713032737106]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f39be006e80> ret: None
[1713032737106] [WARN] HUB  Try to connect without uri-schema
[1713032737106]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f39be006700> ('x.ks.ua',)
[1713032738270] [INFO] HUB  Connected
[1713032738270]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f39be006980> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f39bdc74a10>>)
[1713032738314]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f39be006980> ret: None
[1713032738314]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f39be006980> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f39bdc74a10>>)
[1713032738358]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f39be006980> ret: None
[1713032738358] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713032738358]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f39be006980> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f39bdc74a10>>)
[1713032738402]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f39be006980> ret: None
[1713032738402] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713032738402]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f39be006980> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f39bdc74a10>>)
[1713032738446]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f39be006980> ret: None
[1713032738446] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713032738446]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f39be006980> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f39bdc74a10>>)
[1713032738490]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f39be006980> ret: None
[1713032738490] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713032738490]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f39be006980> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f39bdc74a10>>)
[1713032738534]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f39be006980> ret: None
[1713032738534] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713032738534]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f39be006980> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f39bdc74a10>>)
[1713032738578]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f39be006980> ret: None
[1713032738578]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f39be006700> ret: None
[1713032738579]  [DBG] HUB  Step, state: 0 (next: 1713032739579)
[1713032738579] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1713032738579]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f39be006840> ('/reg', '48:3f:da:55:07:5b')
[1713032738622]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f39be006840> ret: None
[1713032738666] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1713032738624 }
[1713032738666] [INFO] HUB  Registration finish, time: 1713032738624
[1713032738666]  [DBG] FW-UPD  enter <function device_base.register at 0x7f39bddf4b80> (1713032738,)
[1713032738666] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1713032738
[1713032738666] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713032738666]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f39be006980> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f39bdc74a10>>)
[1713032738710]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f39be006980> ret: None
[1713032738710]  [DBG] FW-UPD  exit <function device_base.register at 0x7f39bddf4b80> ret: None
[1713032739579]  [DBG] HUB  Step, state: 1 (next: 1713032740579)
[1713032739579]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f39bddf5440> ()
[1713032739579]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f39bddf5440> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713032738}}
[1713032739579] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713032738}}]} }
[1713032739579]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f39be006840> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713032738}}]}')
[1713032739579]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f39be006840> ret: None
[1713032740603] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 38294 }
[1713032740603]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f39bddf4cc0> ('8', 38294)
[1713032740603] [INFO] FW-UPD  Set REG[8] = 38294
[1713032740603]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f39bddf4cc0> ret: None
[1713032741608]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f39bddf4900> (8, 23952)
[1713032741608] [INFO] HUB  Publish message: { topic: 3996365522/8, value: 23952 }
[1713032741608]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f39be006840> ('<48:3f:da:55:07:5b/3996365522/8', '23952')
[1713032741610]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f39be006840> ret: None
[1713032741610]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f39bddf4900> ret: None
[1713032742612] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 18091, "rnd-b": 20103} }
[1713032742612]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f39bddf4cc0> ('9', {'rnd-a': 18091, 'rnd-b': 20103})
[1713032742612] [INFO] FW-UPD  Set REG[9] = {'rnd-a': 18091, 'rnd-b': 20103}
[1713032742612]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f39bddf4cc0> ret: None
[1713032743618]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f39bddf4900> (9, {'rnd-a': 43950, 'rnd-b': 57087})
[1713032743618] [INFO] HUB  Publish message: { topic: 3996365522/9, value: {"rnd-a": 43950, "rnd-b": 57087} }
[1713032743618]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f39be006840> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 43950, "rnd-b": 57087}')
[1713032743619]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f39be006840> ret: None
[1713032743621]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f39bddf4900> ret: None
[1713032743631]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f39be006c00> ()
[1713032743632] [WARN] HUB  Disconecting from broker
[1713032743632] [WARN] MQTT  Reconnecting in 1s
[1713032743633]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f39be006c00> ret: None

Suite stderr:

2024-04-13 18:25:39,587 - TEST - INFO - OP take: 1008.122 ms
2024-04-13 18:25:39,596 - TEST - INFO - Connected with result code: 0
2024-04-13 18:25:39,600 - TEST - INFO - OP take: 10.106 ms
2024-04-13 18:25:40,601 - TEST - INFO - ------- 1. Set register 8 to value 38294 from server side
2024-04-13 18:25:40,602 - TEST - INFO - [dev] => { '8' : '38294' }
2024-04-13 18:25:40,605 - TEST - INFO - OP take: 0.007 ms
2024-04-13 18:25:41,606 - TEST - INFO - ------- 2. Set register 8 to value 23952 from device side
2024-04-13 18:25:41,610 - TEST - INFO - OP take: 0.002 ms
2024-04-13 18:25:42,610 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 18091, 'rnd-b': 20103} from server side
2024-04-13 18:25:42,611 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 18091, 'rnd-b': 20103}' }
2024-04-13 18:25:42,616 - TEST - INFO - OP take: 0.008 ms
2024-04-13 18:25:43,616 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 43950, 'rnd-b': 57087} from device side
2024-04-13 18:25:43,631 - TEST - INFO - OP take: 10.138 ms
2024-04-13 18:25:43,634 - TEST - WARNING - Disconecting from broker
2024-04-13 18:25:43,635 - TEST - WARNING - Disconecting from broker