Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. # cat commands/save_bootstrap.hex | /usr/bin/python3 ./send.py -M serial -D /dev/ttyUSB2
  2. DEBUG:root:args Namespace(baudrate=115200, device='/dev/ttyUSB2', host='localhost', mode='serial', port=10000)
  3. DEBUG:root:hex: 01000b000000e900000AE900000AE90A0000AB0A0000AB0A0000AB0A0000AB0ACD00AB34383239393764373437313961616537613836316362326535616565316537663231643565396634323231353038306433373564633638633934366365353733
  4. INFO:root:sending b'\x01\x00\x0b\x00\x00\x00\xe9\x00\x00\n\xe9\x00\x00\n\xe9\n\x00\x00\xab\n\x00\x00\xab\n\x00\x00\xab\n\x00\x00\xab\n\xcd\x00\xab482997d74719aae7a861cb2e5aee1e7f21d5e9f42215080d375dc68c946ce573{"configuration":{"certificates":{"deviceCertificate":"string","rootCertificate":"string"},"ioTHubHostname":"string","userName":"string","port":0,"cloudToDeviceEndpoint":"string","deviceToCloudEndpoint":"string"},"checkSum":"string"}'
  5. INFO:root:received b'\x01\x00\x0b\x00\x00\x00\x13\x00\x00\n\xe9\x00\x00\n\xe9\n\x00\x00\xab\n\x00\x00\xab\n\x00\xf0'
  6.  
  7. INFO:root:received message from /mci/service/response
  8. DEBUG:root:message: {'checkSum': 'string', 'configuration': {'deviceToCloudEndpoint': 'string', 'cloudToDeviceEndpoint': 'string', 'ioTHubHostname': 'string', 'certificates': {'rootCertificate': 'string', 'deviceCertificate': 'string'}, 'userName': 'string', 'port': 0}}
  9. input receive:
  10. INFO:root:publishing message to /mci/service/request:
  11.  
  12. 2019-09-20 06:15:00:DEBUG:wcd.serice:mci_service.py:81:processed msg: {'length': 233, 'direction': 'request', 'command': 'save', 'body': {'configuration': {'userName': 'string', 'port': 0, 'certificates': {'deviceCertificate': 'string', 'rootCertificate': 'string'}, 'cloudToDeviceEndpoint': 'string', 'deviceToCloudEndpoint': 'string', 'ioTHubHostname': 'string'}, 'checkSum': 'string'}, 'wcd_id': b'\n\x00\x00\xab\n\x00\x00\xab\n\x00\x00\xab\n\x00\x00\xab', 'request_id': b'\n\xcd\x00\xab', 'device_id': b'\x00\x00\n\xe9\x00\x00\n\xe9', 'sha': b'482997d74719aae7a861cb2e5aee1e7f21d5e9f42215080d375dc68c946ce573'}
  13. 2019-09-20 06:15:00:DEBUG:wcd.serice:mci_service_mqtt.py:30:publishing message with command save to /mci/service/response
  14. 2019-09-20 06:15:02:ERROR:wcd.serice:mci_service.py:22:service did not answer
  15. 2019-09-20 06:15:02:DEBUG:wcd.serice:mci_service.py:42:encoding {'length': 233, 'direction': 'request', 'command': 'save', 'body': {'Status': '408'}, 'wcd_id': b'\n\x00\x00\xab\n\x00\x00\xab\n\x00\x00\xab\n\x00\x00\xab', 'request_id': b'\n\xcd\x00\xab', 'device_id': b'\x00\x00\n\xe9\x00\x00\n\xe9', 'sha': b'482997d74719aae7a861cb2e5aee1e7f21d5e9f42215080d375dc68c946ce573'}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement