You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The time between accepted bytes in single cctalk packet cannot exceed 50ms. I want the internal buffer CCTalkParser.array to be reset if I get bytes after delay of more then 50ms.
Motivation
I have cctalk devices in my project. CCTalkParser is used to fetch data packets from serial device. It fetches packet LENGTH out of the header bytes, waits until LENGTH bytes is received, and gives back the whole packet.
And sometimes I get corrupted data on my data line. That is ok, I can check if the packet is correct using packet checksum. If the checksum is invalid, I ignore the packet.
The problems begin when I get corrupted LENGTH byte. The borders of different packets are mixed. And there is no way to fix it, I have to reopen the serial device connection to restore communication with my cctalk devices.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week no further activity occurs. Feel free continue the discussion or ask for a never-stale label to keep it open. If this is a support issue, consider sharing it on stack overflow to get more eyes on your problem.
💥 Proposal of cctalk parser
What feature you'd like to see
The time between accepted bytes in single cctalk packet cannot exceed 50ms. I want the internal buffer CCTalkParser.array to be reset if I get bytes after delay of more then 50ms.
Motivation
I have cctalk devices in my project. CCTalkParser is used to fetch data packets from serial device. It fetches packet LENGTH out of the header bytes, waits until LENGTH bytes is received, and gives back the whole packet.
And sometimes I get corrupted data on my data line. That is ok, I can check if the packet is correct using packet checksum. If the checksum is invalid, I ignore the packet.
The problems begin when I get corrupted LENGTH byte. The borders of different packets are mixed. And there is no way to fix it, I have to reopen the serial device connection to restore communication with my cctalk devices.
Pitch
I want it to be implemented directly as it is written in CCTalk protocol specification section 11.1.
The text was updated successfully, but these errors were encountered: