Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Newline of debug output

Newline of debug output

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 2 Posters 1.2k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Malte Deiseroth
    wrote on last edited by Malte Deiseroth
    #1

    Hey when one tries to read the serial output of a gateway/node directly, it doesn't seem to send a correct newline char at the end of a line.

    I tried reading the output of a gateway /dev/ttyUSB0 with:

    picocom -b 115200 /dev/ttyUSB0
    

    But the output looks like:

    0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
                                                    0;255;3;0;9;TSM:INIT
                                                                        0;255;3;0;9;TSF:WUR:MS=0
                0;255;3;0;9;TSM:INIT:TSP OK
                                           0;255;3;0;9;TSM:INIT:GW MODE
                                                                       0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
                             0;255;3;0;9;MCO:REG:NOT NEEDED
                                                           0;255;3;0;14;Gateway startup complete.
                 0;255;0;0;18;2.1.1
                                   0;255;3;0;9;MCO:BGN:STP
                                                          0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    
    

    I have also tried Using minicom and screen. All show the same

    EDIT:
    I found out, that I can use cat if I first set the baudrate correctly:

    stty -F /dev/ttyUSB0 115200
    cat /dev/ttyUSB0
    

    This works, but I wonder what is going on in the case if picocom

    EDIT:
    Okay, I found the solution. I guess its the same for minicom as well.

    picocom -b 115200 /dev/ttyUSB1 --imap lfcrlf
    

    the --imap lfcrlf maps line feed to line feed and carriage return. This then gives the desired formatting.

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      If you compile an ethernet gateway, you can use myscontroller to debug

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      13

      Online

      12.0k

      Users

      11.2k

      Topics

      113.4k

      Posts


      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular