Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enter serial commands? #2072

Closed
Zixim opened this issue Mar 3, 2018 · 12 comments
Closed

How to enter serial commands? #2072

Zixim opened this issue Mar 3, 2018 · 12 comments

Comments

@Zixim
Copy link

Zixim commented Mar 3, 2018

Hello,
when I connect to the serial console, Putty is displaying the serial log.
This leads me to believe that there's a good serial connection and that the sonoff (basic) is alive & well.

How would I go about sending a command over this serial connection ?
For instance, I type AP in the console, but nothing appears on screen... hit enter...nothing... hit any key....nothing.

What am I missing ?

@arendst
Copy link
Owner

arendst commented Mar 3, 2018

Make sure seriallog is at least set to 2

@Zixim
Copy link
Author

Zixim commented Mar 3, 2018

but, I am seeing the seriallog in Putty's window.

The thing is, I can't use the serial console to issue commands.

@arendst
Copy link
Owner

arendst commented Mar 3, 2018

Make sure these boxes are checked before submitting your issue - Thank you!

  • What hardware you are using
  • Provide the output of command status 0

@arendst
Copy link
Owner

arendst commented Mar 3, 2018

Use another tool like Termite

@Zixim
Copy link
Author

Zixim commented Mar 3, 2018

it is a Sonoff Basic, as mentioned in original post.
I try to type status 0 in the serial console, but nothing appears, only the Wifi connection status scrolls in window.

@Zixim
Copy link
Author

Zixim commented Mar 3, 2018

Thanks on the Termite tip. This works.... this must be the 1st time that Putty has let me down.

@yearski
Copy link

yearski commented Jan 24, 2019

PuTTY can work (but not "ideal"). There are two issues:

  1. You need local echo to see that typed characters are actually doing something: Configuration > Terminal > Local echo > Force on
  2. You need a LF line feed character to end the command. CTRL-J sends this.

There is currently no option in PuTTY to automatically send the LF with the Enter key (this is an option in Termite hence why it just works). I've sent a feature request to the PuTTY team for this. For the little use I have, just using CTRL-J is acceptable

@Race666
Copy link

Race666 commented Dec 21, 2020

May I ask developers: What was the design decision to use LF as "enter" and not CR like all others do?

@lalo-uy
Copy link
Contributor

lalo-uy commented Dec 21, 2020 via email

@Race666
Copy link

Race666 commented Dec 21, 2020

Sure? https://unix.stackexchange.com/questions/349214/enter-key-is-different-from-carriage-return-cr
I think you mean the new line in a file. I mean the character send by a terminal (like Putty). Thats quite different

@Race666
Copy link

Race666 commented Dec 21, 2020

This is defined in the ASCII Table https://www.rapidtables.com/code/text/ascii/ascii-enter.html CR = Enter

@eadmaster
Copy link

eadmaster commented May 28, 2024

for me the problem was the serial speed set uncorrectly (must be 115200)
e.g.
arduino-cli monitor --port /dev/ttyUSB0 --timestamp --config baudrate=115200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants