question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on serial monitor console over Telnet

See original GitHub issue

What 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

  1. Build and upload project linked below
  2. Open the Serial Monitor
  3. 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:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ivankravetscommented, Mar 16, 2020

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! 😊

0reactions
ivankravetscommented, Jul 29, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found