Skip to content

STX not escaped in transmit() #18

@brocci

Description

@brocci

transmit() does not DLE-escape STX (0x02) data bytes, which can cause the CMRInet host to misinterpret output data as start-of-text and desynchronise.

Example

With a 1-byte output buffer containing {0x02}:

  • Current: FF FF 02 41 54 02 03 → host sees 02 in data → misinterpreted as STX
  • Should be: FF FF 02 41 54 10 02 03 → DLE-STX correctly interpreted as data value 0x02

Reference

CMRInet spec LCS-9.10.1 v1.1, §Data Link Escape (DLE) Processing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions