Skip to content

Serial monitor prints data with the wrong timestamp #391

Closed
@silvanocerza

Description

@silvanocerza

Describe the bug

The Serial Monitor doesn't print the value just received with the correct timestamp but with the one of the previous received value.

If the board sends A at time 1 and B at time 2 this would be the output, first:

1 -> A
1 ->

then:

1 -> A
1 -> B
2 ->

Changing the baud rate to a lower or higher one doesn't change a thing.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Sketch with the following code:
void setup()
{
  Serial.begin(2400);
  while (!Serial);
}

void loop()
{
  static byte x = 0;
  Serial.println(x);
  delay(10000);
  x++;
}
  1. Upload it to your board
  2. Open the Serial Monitor
  3. Set the baud rate to 2400
  4. Click Toggle Timestamp if not already on

Notice how the timestamp for the value printed now is not correct but reference to the previous one.
Also the first value is printed two times.

Expected behavior

I expect the values to be printed on the correct timestamp when it's received by the PC.

Screenshots

issue.mp4

Desktop (please complete the following information):

  • OS: Linux
  • Version: 2.0.0-beta.7

Additional context

This issue has been original reported on the Arduino Forum: https://forum.arduino.cc/t/serial-monitor-gives-wrong-time-stamp

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions