Newline of debug output
-
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
andscreen
. All show the sameEDIT:
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.
-
If you compile an ethernet gateway, you can use myscontroller to debug
1 out of 2
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting • 26 Feb 2025, 00:32 • dpcons 26 Feb 2025, 06:22 -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 25 days ago • bocalexandru 23 days ago -
DHT22 wrong sensor type in Home Assistant
Troubleshooting • 3 days ago • Commodoreuno a day ago -
Ghost Child
Troubleshooting • 29 days ago • FcNanoLed 26 days ago -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28