-
Notifications
You must be signed in to change notification settings - Fork 6
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
Document or make optional the emission of leading END bytes #45
Comments
Thanks for bringing up this issue. I'm on a short trip right now, but will look into this next week. |
Thanks for the quick feedback. Yes, definitely adding a toggle would be even better (hence why I included "or make optional" in the issue title 😉). There is absolutely no hurry for me, the issue on the Arduino side is already fixed with a test for zero-length packets. Enjoy your trip! |
sliplib in Python emits END bytes at the start of packets. See rhjdjong/SlipLib#45
sliplib in Python emits END bytes at the start of packets. See rhjdjong/SlipLib#45
sliplib in Python emits END bytes at the start of packets. See rhjdjong/SlipLib#45
sliplib in Python emits END bytes at the start of packets. See rhjdjong/SlipLib#45
Solved in release v0.7.0 |
Currently
sliplib.encode
inserts anEND
(0xc3
) byte at the start as well as the end of the SLIP packet:Reading the "nonstandard" https://datatracker.ietf.org/doc/html/rfc1055.html I see:
The next paragraph does suggest the possibility of starting packets with an
END
byte:Note that this variant relies on the opposite party throwing away zero-length packets, which is not necessarily obvious now that SLIP is not only (if ever) used for IP packet encoding.
I'm working on an app that uses
sliplib
to interface with an Arduino running https://github.com/bakercp/PacketSerial . That library does not drop the 0-length packets thatsliplib
in effect inserts, which can be a problem if the receiving code does not expect them. I know they are very easy to ignore once you know about them, I'm just pointing out a potential "footgun".I suggest that the
sliplib
documentation should at least point out the choice of this "deviation" from RFC1055.The text was updated successfully, but these errors were encountered: