Skip to content

SB9600 Retry Logic Needs Work #35

@W3AXL

Description

@W3AXL

Looks like the SB9600 RX buffer can get out of sync when we need to retry a TX:

[12:28:21.412 ERR] Failed to verify SB9600 message TX. Sent 053B005757, Recieved 0100000A00. (2 attempts left)
[12:28:21.419 ERR] Failed to verify SB9600 message TX. Sent 053B005757, Recieved 57053B0057. (1 attempts left)
[12:28:21.427 ERR] Failed to verify SB9600 message TX. Sent 053B005757, Recieved 57053B0057. (0 attempts left)
[12:28:21.436 ERR] Invalid CRC received. Expected 113, got 29
[12:28:21.437 ERR] Failed to decode SB9600 message 570100011D
[12:28:21.437 ERR] Got exception in SB9600 thread
System.Exception: Failed to decode SB9600 message!
   at moto_sb9600.SB9600.serialLoop(Object _token) in /home/axel/RadioConsole2/daemon/SB9600.cs:line 1781

Note that in retries 2 & 3, the buffer is shifted by 1 byte and the decoding routine fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions