Skip to content

Splittig UART packages #13

@ghost

Description

Hi, wondering about when one HDLC frame is in two UART packages or if 2 HDLC frames are in 1 UART package. Should we implement splitting and concatenating UART packages (HDLC frames) ourself or should this be part of this library ?

In this example, I have to send the same frame twice as it is not recognized, because it is in 2 UART packages:

send data: b'~\xff\x10\x08\x01"!\x10\x00\x1a\x15\x08\x00\x10\x00\x18\x00"\x05extra*\x06gitrev"\x06\x08\x00\x10\x00\x18\x00\x1dU~' of len: 43
read data: b'~\xff\x01\x0e\xe1~~\xff\x10\x08\x01".\x10\x86' of len: 15
read data: b'\x12\x1a\x16\x08\x00\x10\x04\x18\x00"\x04-rc1*\x084354d098"\x11\x08\xb2\x80\xd0\x02\x10\xac\xc4\xaa\x93\x06\x18\xee\xd8\x91\xe3\x06\\\xa9~' of len: 47
send data: b'~\xff\x10\x08\x01"!\x10\x00\x1a\x15\x08\x00\x10\x00\x18\x00"\x05extra*\x06gitrev"\x06\x08\x00\x10\x00\x18\x00\x1dU~' of len: 43
read data: b'~\xff\x01\x0e\xe1~~' of len: 7
read data: b'\xff\x10\x08\x01".\x10\x86\x12\x1a\x16\x08\x00\x10\x04\x18\x00"\x04-rc1*\x084354d098"\x11\x08\xb2\x80\xd0\x02\x10\xac\xc4\xaa\x93\x06\x18\xee\xd8\x91\xe3\x06\\\xa9~' of len: 55
send data: b'~\xff!\x0c\xc0~' of len: 6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions