Test Report : TEST-reg_value_exchange_test-20231108214854.xml

  • reg_value_exchange_test

Test Suite: reg_value_exchange_test-20231108214854

Results

Duration6.467 sec
Tests1
Failures0

Tests

reg_value_exchange_test

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

Suite stdout:

[1699480134795] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1699480134795] [INFO] FW-UPD  Initialized
[1699480134795]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f6e465c0360> (<uclient.hub.HUB object at 0x7f6e46603d10>,)
[1699480134795]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f6e465c0360> ret: None
[1699480134795]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f6e4683aca0> ('<48:3f:da:55:07:5b/status', '-1')
[1699480134795]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f6e4683aca0> ret: None
[1699480134795]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f6e4683aa20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f6e46603d10>>,)
[1699480134795]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f6e4683aa20> ret: None
[1699480134795]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f6e4683ab60> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f6e46603d10>>,)
[1699480134795]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f6e4683ab60> ret: None
[1699480134795]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f6e46839e40> ('x.ks.ua', 1883)
[1699480135799] [INFO] HUB  Connected
[1699480135799]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6e4683a660> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6e46603d10>>)
[1699480135840]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6e4683a660> ret: None
[1699480135840]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6e4683a660> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6e46603d10>>)
[1699480135884]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6e4683a660> ret: None
[1699480135885] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1699480135885]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6e4683a660> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6e46603d10>>)
[1699480135928]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6e4683a660> ret: None
[1699480135928] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1699480135928]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6e4683a660> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6e46603d10>>)
[1699480135972]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6e4683a660> ret: None
[1699480135972] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1699480135972]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6e4683a660> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6e46603d10>>)
[1699480136016]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6e4683a660> ret: None
[1699480136016] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1699480136016]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6e4683a660> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6e46603d10>>)
[1699480136061]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6e4683a660> ret: None
[1699480136061] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1699480136061]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6e4683a660> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6e46603d10>>)
[1699480136105]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6e4683a660> ret: None
[1699480136105]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f6e46839e40> ret: None
[1699480136105]  [DBG] HUB  Step, state: 0 (next: 1699480137105)
[1699480136105] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1699480136105]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f6e4683a520> ('/reg', '48:3f:da:55:07:5b')
[1699480136151]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f6e4683a520> ret: None
[1699480136192] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1699480136150 }
[1699480136192] [INFO] HUB  Registration finish, time: 1699480136150
[1699480136192]  [DBG] FW-UPD  enter <function device_base.register at 0x7f6e465c0860> (1699480136,)
[1699480136192] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1699480136
[1699480136192] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1699480136192]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6e4683a660> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6e46603d10>>)
[1699480136237]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6e4683a660> ret: None
[1699480136237]  [DBG] FW-UPD  exit <function device_base.register at 0x7f6e465c0860> ret: None
[1699480137105]  [DBG] HUB  Step, state: 1 (next: 1699480138105)
[1699480137105]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f6e465c1120> ()
[1699480137105]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f6e465c1120> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1699480136}}
[1699480137105] [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": 1699480136}}]} }
[1699480137105]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f6e4683a520> ('/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": 1699480136}}]}')
[1699480137105]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f6e4683a520> ret: None
[1699480138190] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/8, value: 55732 }
[1699480138190]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f6e465c09a0> ('8', 55732)
[1699480138190] [INFO] FW-UPD  Set REG[8] = 55732
[1699480138190]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f6e465c09a0> ret: None
[1699480139194]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f6e465c05e0> (8, 55640)
[1699480139194] [INFO] HUB  Publish message: { topic: 3996365522/8, value: 55640 }
[1699480139194]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f6e4683a520> ('<48:3f:da:55:07:5b/3996365522/8', '55640')
[1699480139194]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f6e4683a520> ret: None
[1699480139194]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f6e465c05e0> ret: None
[1699480140207] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/9, value: {"rnd-a": 58447, "rnd-b": 32996} }
[1699480140207]  [DBG] FW-UPD  enter <function device_base.hnd_msg at 0x7f6e465c09a0> ('9', {'rnd-a': 58447, 'rnd-b': 32996})
[1699480140207] [INFO] FW-UPD  Set REG[9] = {'rnd-a': 58447, 'rnd-b': 32996}
[1699480140207]  [DBG] FW-UPD  exit <function device_base.hnd_msg at 0x7f6e465c09a0> ret: None
[1699480141214]  [DBG] FW-UPD  enter <function device_base.set_reg at 0x7f6e465c05e0> (9, {'rnd-a': 50784, 'rnd-b': 50410})
[1699480141214] [INFO] HUB  Publish message: { topic: 3996365522/9, value: {"rnd-a": 50784, "rnd-b": 50410} }
[1699480141214]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f6e4683a520> ('<48:3f:da:55:07:5b/3996365522/9', '{"rnd-a": 50784, "rnd-b": 50410}')
[1699480141215]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f6e4683a520> ret: None
[1699480141215]  [DBG] FW-UPD  exit <function device_base.set_reg at 0x7f6e465c05e0> ret: None
[1699480141227]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f6e4683a8e0> ()
[1699480141228]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f6e4683a8e0> ret: None
[1699480141229] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-08 21:48:57,110 - TEST - INFO - OP take: 1004.859 ms
2023-11-08 21:48:57,184 - TEST - INFO - Connected with result code: 0
2023-11-08 21:48:57,188 - TEST - INFO - OP take: 72.587 ms
2023-11-08 21:48:58,189 - TEST - INFO - ------- 1. Set register 8 to value 55732 from server side
2023-11-08 21:48:58,189 - TEST - INFO - [dev] => { '8' : '55732' }
2023-11-08 21:48:58,192 - TEST - INFO - OP take: 0.005 ms
2023-11-08 21:48:59,192 - TEST - INFO - ------- 2. Set register 8 to value 55640 from device side
2023-11-08 21:48:59,204 - TEST - INFO - OP take: 10.22 ms
2023-11-08 21:49:00,205 - TEST - INFO - ------- 3. Set register 9 to value {'rnd-a': 58447, 'rnd-b': 32996} from server side
2023-11-08 21:49:00,206 - TEST - INFO - [dev] => { '9' : '{'rnd-a': 58447, 'rnd-b': 32996}' }
2023-11-08 21:49:00,210 - TEST - INFO - OP take: 0.007 ms
2023-11-08 21:49:01,210 - TEST - INFO - ------- 4. Set register 9 to value {'rnd-a': 50784, 'rnd-b': 50410} from device side
2023-11-08 21:49:01,227 - TEST - INFO - OP take: 11.816 ms
2023-11-08 21:49:01,240 - TEST - WARNING - Disconecting from broker
2023-11-08 21:49:01,261 - TEST - WARNING - Disconecting from broker