Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: Show Timestamping lost in Serial Monitor

  1. #1
    Junior Member
    Join Date
    Nov 2020
    Posts
    2

    Show Timestamping lost in Serial Monitor

    Bonjour,

    In the serial Monitor, I have not the Show Time Stamping option.
    I used to have it before installing Teensyduino

    • Teensy 4.0
    • Arduino IDE 1.8.13
    • Teensyduino 1.53
    • windows 10



    Merci !
    FX

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    7,575
    If you change settings to an other Ardunio, it is still there..
    Teensy seems not to have it.

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,403
    In Teensy > Port, select the "Serial port" copy rather than the "Teensy port" version.

    Then Arduino's original serial monitor will be used. Just don't print too fast - it can't handle sustained maximum speed printing with Teensy 4.0.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,403
    Just to explain a bit further - a special highly optimized serial monitor is used when you select Teensy Ports in the Tools > Ports menu. Here is a blog article I wrote last year about that optimization work.

    https://www.pjrc.com/improving-ardui...r-performance/

    The part most relevant is "Direct Write Into FIFO Memory". With the normal serial monitor, a very traditional approach of reading data into a buffer, then passing or copying that buffer as it is passed between abstraction layers inside the Arduino IDE is used. That works fine for 1 Mbyte/sec data rates, but at 20 Mbyte/sec and higher which Teensy 4.0 can transmit, coping data between buffers and the repeated allocation and freeing of those buffers becomes too much overhead for the Java virtual machine, especially on older Macintosh computers.

    Rather than trying to read data and then checking how much arrived, the direct read approach first checks how much space is available in the FIFO memory. Then incoming data is read directly into the FIFO memory, where it will be used to refresh the screen. The newline characters are found after the data is put into the FIFO memory and a list of line offsets is updated. But data is never processed as individual lines. It's taken as blocks of incoming characters and put directly into the FIFO memory.

    Maybe someday we will find a way to add the timestamps, but it is not easy with this approach. We don't copy the data to temporary buffers where lines can be modified with extra info like the timestamps.

  5. #5
    Junior Member
    Join Date
    Nov 2020
    Posts
    2
    Bonjour Paul,

    Merci !
    It works like wonder.
    Click image for larger version. 

Name:	Capture.PNG 
Views:	3 
Size:	93.9 KB 
ID:	22755

    With the french IDE the choice must be "COMx (Teensy)" instead of "COMx Serial (Teensy 4.0)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •