Test Report : TEST-reg_value_exchange_test-20240422015252.xml

  • reg_value_exchange_test

Test Suite: reg_value_exchange_test-20240422015252

Results

Duration6.564 sec
Tests1
Failures0

Tests

reg_value_exchange_test

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

Suite stdout:

[1713750772318] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1713750772318] [INFO] FW-UPD  Initialized
[1713750772318]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f14209e0680> (<uclient.hub.HUB object at 0x7f1420860f90>,)
[1713750772318]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f14209e0680> ret: None
[1713750772318]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f1420c5afc0> ('<48:3f:da:55:07:5b/status', '-1')
[1713750772318]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f1420c5afc0> ret: None
[1713750772318]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f1420c5ad40> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f1420860f90>>,)
[1713750772318]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f1420c5ad40> ret: None
[1713750772318]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f1420c5ae80> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f1420860f90>>,)
[1713750772318]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f1420c5ae80> ret: None
[1713750772318] [WARN] HUB  Try to connect without uri-schema
[1713750772318]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f1420c5a700> ('x.ks.ua',)
[1713750773323] [INFO] HUB  Connected
[1713750773323]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1420c5a980> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1420860f90>>)
[1713750773367]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1420c5a980> ret: None
[1713750773367]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1420c5a980> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1420860f90>>)
[1713750773410]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1420c5a980> ret: None
[1713750773410] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713750773410]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1420c5a980> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1420860f90>>)
[1713750773454]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1420c5a980> ret: None
[1713750773454] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713750773454]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1420c5a980> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1420860f90>>)
[1713750773498]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1420c5a980> ret: None
[1713750773498] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713750773498]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1420c5a980> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1420860f90>>)
[1713750773542]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1420c5a980> ret: None
[1713750773542] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713750773542]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1420c5a980> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1420860f90>>)
[1713750773586]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1420c5a980> ret: None
[1713750773586] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713750773586]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1420c5a980> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1420860f90>>)
[1713750773630]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1420c5a980> ret: None
[1713750773630]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f1420c5a700> ret: None
[1713750773631]  [DBG] HUB  Step, state: 0 (next: 1713750774631)
[1713750773631] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1713750773631]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1420c5a840> ('/reg', '48:3f:da:55:07:5b')
[1713750773675]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1420c5a840> ret: None
[1713750773718] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1713750773677 }
[1713750773718] [INFO] HUB  Registration finish, time: 1713750773677
[1713750773718]  [DBG] FW-UPD  enter <function device_base.register at 0x7f14209e0b80> (1713750773,)
[1713750773718] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1713750773
[1713750773718] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713750773718]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1420c5a980> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1420860f90>>)
[1713750773762]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1420c5a980> ret: None
[1713750773762]  [DBG] FW-UPD  exit <function device_base.register at 0x7f14209e0b80> ret: None
[1713750774631]  [DBG] HUB  Step, state: 1 (next: 1713750775631)
[1713750774631]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f14209e1440> ()
[1713750774631]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f14209e1440> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713750773}}
[1713750774631] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d98ab4d8ece41a102d19b961364f22d5e93d21ca", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713750773}}]} }
[1713750774631]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1420c5a840> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d98ab4d8ece41a102d19b961364f22d5e93d21ca", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713750773}}]}')
[1713750774631]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1420c5a840> ret: None
[1713750775817] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 2156 }
[1713750775817]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f14209e0cc0> ('8', 2156)
[1713750775818] [INFO] FW-UPD  Set REG[8] = 2156
[1713750775818]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f14209e0cc0> ret: None
[1713750776829]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f14209e0900> (8, 28350)
[1713750776829] [INFO] HUB  Publish message: { topic: 3996365522/8, value: 28350 }
[1713750776829]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1420c5a840> ('<48:3f:da:55:07:5b/3996365522/8', '28350')
[1713750776830]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1420c5a840> ret: None
[1713750776832]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f14209e0900> ret: None
[1713750777846] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 13504, "rnd-b": 46538} }
[1713750777846]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f14209e0cc0> ('9', {'rnd-a': 13504, 'rnd-b': 46538})
[1713750777846] [INFO] FW-UPD  Set REG[9] = {'rnd-a': 13504, 'rnd-b': 46538}
[1713750777846]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f14209e0cc0> ret: None
[1713750778852]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f14209e0900> (9, {'rnd-a': 57204, 'rnd-b': 45391})
[1713750778852] [INFO] HUB  Publish message: { topic: 3996365522/9, value: {"rnd-a": 57204, "rnd-b": 45391} }
[1713750778852]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1420c5a840> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 57204, "rnd-b": 45391}')
[1713750778853]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1420c5a840> ret: None
[1713750778856]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f14209e0900> ret: None
[1713750778867]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f1420c5ac00> ()
[1713750778867]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f1420c5ac00> ret: None
[1713750778868] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-04-22 01:52:54,636 - TEST - INFO - OP take: 1004.882 ms
2024-04-22 01:52:54,807 - TEST - INFO - Connected with result code: 0
2024-04-22 01:52:54,814 - TEST - INFO - OP take: 174.486 ms
2024-04-22 01:52:55,814 - TEST - INFO - ------- 1. Set register 8 to value 2156 from server side
2024-04-22 01:52:55,814 - TEST - INFO - [dev] => { '8' : '2156' }
2024-04-22 01:52:55,826 - TEST - INFO - OP take: 10.107 ms
2024-04-22 01:52:56,827 - TEST - INFO - ------- 2. Set register 8 to value 28350 from device side
2024-04-22 01:52:56,843 - TEST - INFO - OP take: 10.16 ms
2024-04-22 01:52:57,844 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 13504, 'rnd-b': 46538} from server side
2024-04-22 01:52:57,845 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 13504, 'rnd-b': 46538}' }
2024-04-22 01:52:57,848 - TEST - INFO - OP take: 0.007 ms
2024-04-22 01:52:58,849 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 57204, 'rnd-b': 45391} from device side
2024-04-22 01:52:58,866 - TEST - INFO - OP take: 10.135 ms
2024-04-22 01:52:58,873 - TEST - WARNING - Disconecting from broker
2024-04-22 01:52:58,887 - TEST - WARNING - Disconecting from broker