Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid data after cpc reset #43

Open
darkxst opened this issue Jul 28, 2023 · 1 comment
Open

Invalid data after cpc reset #43

darkxst opened this issue Jul 28, 2023 · 1 comment

Comments

@darkxst
Copy link
Contributor

darkxst commented Jul 28, 2023

This is probably harmless, but I have noticed some spurious? data being received between CPC Reset and entering bootloader. I was wondering if the CPC connection should be closed at this point? after receiving response from reset command?

Here is a log snippet from ZBDongle-E:

2023-07-28 13:59:30 xps1520 universal_silabs_flasher.common[1200716] DEBUG Received data b'\x14\x00\x16\x00\xc4W\xe5\x06\x00\x10\x00\x03\x00\x00\x00\x04\x00\x00\x00\x03\x00\x00\x00\x01\x00\x00\x00\r\x14'
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.cpc[1200716] DEBUG Parsed frame UnnumberedFrameType.POLL_FINAL CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_IS: 6>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.SECONDARY_CPC_VERSION: 3>, value=bytearray(b'\x04\x00\x00\x00\x03\x00\x00\x00\x01\x00\x00\x00'))))
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.flasher[1200716] INFO Detected ApplicationType.CPC, version '4.3.1' at 460800 baudrate (bootloader baudrate 115200)
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.common[1200716] DEBUG Connection made: SerialTransport(<_UnixSelectorEventLoop running=True closed=False debug=False>, <universal_silabs_flasher.cpc.CPCProtocol object at 0x7f273b924760>, Serial<id=0x7f273b924c10, open=True>(port='/dev/ttyACM1', baudrate=460800, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.cpc[1200716] DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_SET: 3>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.BOOTLOADER_REBOOT_MODE: 514>, value=b'\x01\x00\x00\x00')))
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.common[1200716] DEBUG Sending data b'\x14\x00\x0e\x00\xc4\x95\x0f\x03\x00\x08\x00\x02\x02\x00\x00\x01\x00\x00\x00%\xd6'
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.common[1200716] DEBUG Received data b'\x14\x00\x0e\x00\xc4\x95\x0f\x06\x00\x08\x00\x02\x02\x00\x00\x01\x00\x00\x00\x84\xd8'
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.cpc[1200716] DEBUG Parsed frame UnnumberedFrameType.POLL_FINAL CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.PROP_VALUE_IS: 6>, command_seq=0, payload=PropertyCommand(property_id=<PropertyId.BOOTLOADER_REBOOT_MODE: 514>, value=bytearray(b'\x01\x00\x00\x00'))))
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.cpc[1200716] DEBUG Sending frame CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.RESET: 1>, command_seq=1, payload=ResetCommand(status=None)))
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.common[1200716] DEBUG Sending data b'\x14\x00\x06\x00\xc44\xa6\x01\x01\x00\x00\x84A'
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.common[1200716] DEBUG Received data b'\x14\x00\n\x00\xc4U\xd3\x01\x01\x04\x00\x00\x00\x00\x00\x13\xf9'
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.cpc[1200716] DEBUG Parsed frame UnnumberedFrameType.POLL_FINAL CPCTransportFrame(endpoint=<EndpointId.SYSTEM: 0>, control=196, payload=UnnumberedFrame(command_id=<UnnumberedFrameCommandId.RESET: 1>, command_seq=1, payload=ResetCommand(status=<Status.OK: 0>)))
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.common[1200716] DEBUG Received data b'x\x00\x80x\xf8\x80x\xf8\xf8x\xf8x\xf8x\x80x\x80x\x80\x80\xf8x\x00\x80\x80x\x00\x80\x80xx\x80x\x00\x80x\x00x\x00\x80x\xf8\x00xxx\x00xxx\xf8x\x80\x80\x00x\xf8x\xf8x\xf8x\xf8x\xf8x\x00x\x80xxx\x80x\x80\x80\xf8x\x00\x80\x80xx\x80\x80\x80\x80\x80x\x00\x80\x00\x80x\x00\x80xx\x80\x80x\x00\x80x\xf8xx\xf8x\xf8x\x00x\x80x\x80\xf8\x80x\x00x\xf8x\xf8\x00\x80x\x80'
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.cpc[1200716] WARNING Failed to parse buffer bytearray(b'\x80'): ValueError('Invalid flag')
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.common[1200716] DEBUG Received data b'\x80\x80\x80x\x00\x80\x80\x80xxx\xf8x\xf8\x00\x80x\xf8\x80\x80\x80x\x00\x80x\x80x\x00x\xf8x\x80x\xf8x\xf8x\x80x\xf8x\xf8\x00\x80x\x80\x00x\x80x\x80\x80\x80\x00\x80\x00'
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.cpc[1200716] WARNING Failed to parse buffer bytearray(b'\x00'): ValueError('Invalid flag')
rcp-uart-802154-v4.3.0-zbdonglee-460800.gbl
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.common[1200716] DEBUG Connection made: SerialTransport(<_UnixSelectorEventLoop running=True closed=False debug=False>, <universal_silabs_flasher.gecko_bootloader.GeckoBootloaderProtocol object at 0x7f273b94a820>, Serial<id=0x7f273b924be0, open=True>(port='/dev/ttyACM1', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.common[1200716] DEBUG Sending data b'3'
2023-07-28 13:59:30 xps1520 universal_silabs_flasher.common[1200716] DEBUG Received data b'\r\nGecko Bootloader v1.12.00\r\n1. upload gbl\r\n2. run\r\n3. ebl info\r\nBL > \x00'
@Hedda
Copy link

Hedda commented Mar 15, 2024

Maybe related to these?

NabuCasa/silabs-firmware#6

#13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants