-
-
Notifications
You must be signed in to change notification settings - Fork 431
Serial Plotter requires \r\n line endings #1360
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
Comments
Thanks for your report @sellensr. This bug is being tracked in the repository that hosts the Serial Plotter codebase: arduino/arduino-serial-plotter-webapp#8 Even though this is a duplicate of that one, I will leave it open for now because I think it will serve as a more effective way of documenting this defect, since users are less likely to be aware of the existence of the |
@per1234 arduino/arduino-serial-plotter-webapp#8 is closed now, can we consider this as closed or is there some testing that needs to be done? Further, the OP has written that the Serial Plotter should handle all kinds of linebreaks, whereas the Serial Plotter protocol recognises LF "\n" as the only allowed linebreak character. Should this be captured somewhere in the documentation for users? It is unlikely that users will look at the protocol for their answer. |
Even though it is resolved, the reason I left this issue open despite there being another in the plotter's repository was with the idea of documenting the bug for Arduino IDE users. Those users will still be affected until there is a release of the
Testing is always welcome. I did some today, but it is possible others might catch something I missed.
Even though not mentioned explicitly in the current documentation,
This is also the case in the Arduino IDE 1.x Serial Plotter, and in fact the example code in the "SerialPlotter protocol" document relies on that support ( So the only line ending not supported is
Excellent point! This important information is not at all easy for the users to find. I think the correct place to document it here: https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-serial-plotter The source of that content is hosted here: You are welcome to submit an issue to the |
Describe the problem
Plotter appears to ignore lines that don't end with both
\r
and\n
in that order. Previous versions worked with lines ending in\n
, as does the serial monitor.I'm not sure if this is an intended behaviour. It isn't mentioned in the tutorial at https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-serial-plotter
To reproduce
Serial.printf("A:%d,Var2:%d\n",random_variable,static_variable);
and look for output on Serial Plotter. Then change to
Serial.printf("A:%d,Var2:%d\r\n",random_variable,static_variable);
Expected behavior
I would expect the plotter to function with any permutation of line endings, e.g. detect
\r
or\n
as an ending, then discard any additional\r
or\n
until new line begins.Arduino IDE version
IDE 2.0 rc9.2
Operating system
macOS
Operating system version
12.5.1
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: