Telnet to UART gateway got double character on any input #15775
-
I connected my ESP32 to the UART port on an SBC because I wanted to connect to its U-Boot. I ran the following code on my ESP32: https://gist.github.com/cwt/ddf0bb4f4eda86df862c8630629c9857 However, every time I type anything, the characters are displayed twice. For example, What could be the possible problem in my code, and how can I fix it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
FYI: It wasn't local echo problem, local echo was disabled on my telnet client. |
Beta Was this translation helpful? Give feedback.
-
Please try to add a line (after line 47): if conn is None:
conn, addr = s.accept()
print('Client connected from', addr)
_ = conn.recv(256) # ignore connection handshake/header
conn.setblocking(False) to ignore the connection "TELNET LINEMODE" negotiation. Maybe this will solve your problem. |
Beta Was this translation helpful? Give feedback.
Please try to add a line (after line 47):
to ignore the connection "TELNET LINEMODE" negotiation. Maybe this will solve your problem.