Error on serial monitor console over Telnet
See original GitHub issueWhat kind of issue is this?
- PlatformIO Core.
Configuration
PlatformIO on VSCode
Operating system:
MacOS Mojave
PlatformIO Version (platformio --version
):
Home: 3.1.1 Core: 4.2.1
Description of problem
While trying to access the serial console on a simulated device via telnet, when I open the serial monitor, I see some garbled characters. After hitting enter some times, I see the console output.
My config:
[env:hifive1]
platform = sifive
board = hifive1
framework = zephyr
## ----- Settings below are for Antmicro Renode integration ----- ##
# Monitor port for Renode integration
monitor_port = socket://localhost:1234
monitor_speed = 115200
...
The project is: https://github.com/carlosedp/ZephyrConsoleEchoSIM
> Executing task: platformio device monitor <
Looking for advanced Serial Monitor with UI? Check http://bit.ly/pio-advanced-monitor
--- Miniterm on socket://localhost:1234 115200,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
��␀��␁��␃��"*** Booting Zephyr OS version 2.1.0 ***
Hello! I'm running Zephyr 2.1.0 on hifive1, a riscv32 board.
Enter a line finishing with Enter:
>
Steps to Reproduce
- Build and upload project linked below
- Open the Serial Monitor
- See the weird characters, hit enter multiple times to get the correct output.
Actual Results
Expected Results
Console to open correectly. I’ve successfully got the console by using the telnet 127.0.0.1 1234
command.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Solved: Console port not working. - Cisco Community
I'm trying to configure a Catalyst 2960 Series PoE-24 by the console port using the hyperterminal, but it's not working. I verified the...
Read more >Esp8266 Serial monitor over webserver page? - SOLVED
Using Win10 I just had to open cmd.exe, and call "telnet 192.168.1.175" to connect. Unfortunately the disconnect command did not work, but one ......
Read more >Text-Terminal-HOWTO: Trouble-Shooting
If single characters are missing, perhaps the serial port is being overrun by too fast a speed. Try a slower baud rate. If...
Read more >Steps to troubleshoot serial ports on NodeGrid Serial Console
1) Open ssh session and login as admin user. 2) Verify serial statistics of specific port: show system/serial_statistics/<port number>. a) Example of port...
Read more >Telnet through a serial terminal server - Server Fault
If the device you are connecting to is already configured to work on a serial port (like console ports for network equipment) then...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It just prints what it receives. I’ll try to debug it later. We want to release PIO Core 4.3 this week, it would be great to have support for Renode!
You can’t imagine how I thankful for your examples and article! 😊
It’s a little bit difficult to implement telnet client over the PySerial (re-invent the wheel). @valeros will back soon with updates where we can use Renode’s device output as a native socket stream. He will describe solution in https://github.com/platformio/platformio-core/issues/3401