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

Pre-amble #19

Open
mfxpyro1 opened this issue Mar 30, 2020 · 1 comment
Open

Pre-amble #19

mfxpyro1 opened this issue Mar 30, 2020 · 1 comment

Comments

@mfxpyro1
Copy link

Not a big issue, more out of interest really, I was writing a Node.js script to send serial packets compatible with the ICSC format so "sniffed" the output of an Arduino sending a packet just to check it was correct and noticed that while the Readme says there is a pre-amble of four SOH characters, in reality only the one at the start of the actual packet seems to be used. It works fine with a single SOH character so I'm sticking with that but was wondering if this was a deliberate change or a bug?

@majenkotech
Copy link
Contributor

Only 1 SOH is needed for reception. You can send as many SOH characters as you like and only the last one is actually used as part of the detection window. All those before are just there as a guard to ensure separation from other packets. By default only 1 is sent, but it's actually configurable in the header:

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