View previous topic :: View next topic |
Author |
Message |
pankaj13 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Sep 2019 Posts: 29
|
Posted: Mon Feb 08, 2021 3:47 am Post subject: Serial port issues |
|
|
Hi,
I am trying to flash Tasmota on a Sonoff motherboard and managed to do that succefully. Thereafter I connected the device to my computer using USB to initiate a serial port session for further configuration.
Both "screen" and "cu" connects to the device as I can see the output from the motherboard but I am unable to type anything on the console for both screen and cu.
Any pointers on what I might be doing wrong here?
Thanks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gentoo_ram Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 25 Oct 2007 Posts: 513 Location: San Diego, California USA
|
Posted: Tue Feb 09, 2021 6:00 pm Post subject: |
|
|
I've had some simple devices that don't implement XON/XOFF which could cause issues. Also, you will want to make sure your character setting is correct. Is it 7-Bit? Is it 8-bit? Parity?
If it's 8-bit, try this:
screen /dev/ttyUSB0 115200,cs8,-ixon
Replace the 115200 with whatever baud rate you need. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54834 Location: 56N 3W
|
Posted: Tue Feb 09, 2021 8:44 pm Post subject: |
|
|
pankaj13,
Disconnect the USB to serial pert converter from the Sonoff motherboard and connect its Tx and Rx wires together.
That's a loopback test. The serial port setting don't matter much as the PC can not support split baud rates.
8 bit, no parity, 1 stop bit is traditional. That's written 8n1.
If the loopback test fails, your converter is probably faulty.
Are you expecting the Sonoff motherboard to echo what you type?
No all systems do that. You need to enable local echo if yours does not.
minicom is a nice serial port terminal. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pankaj13 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Sep 2019 Posts: 29
|
Posted: Wed Feb 10, 2021 9:21 am Post subject: |
|
|
@gentoo_ram & @NeddySeagoon
Thanks for your input and suggestions, let me try these options and revert back.
Since things were not working for me with serial port, I used a Windows machine and moved on but I have several more devices and would prefer not to have to switch to Windows machine for flashing and configuring these motherboard. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pankaj13 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Sep 2019 Posts: 29
|
Posted: Wed Feb 10, 2021 9:36 am Post subject: |
|
|
NeddySeagoon wrote: | pankaj13,
Disconnect the USB to serial pert converter from the Sonoff motherboard and connect its Tx and Rx wires together.
That's a loopback test. The serial port setting don't matter much as the PC can not support split baud rates.
8 bit, no parity, 1 stop bit is traditional. That's written 8n1.
If the loopback test fails, your converter is probably faulty.
Are you expecting the Sonoff motherboard to echo what you type?
No all systems do that. You need to enable local echo if yours does not.
minicom is a nice serial port terminal. |
Two questions:
I am really new at flashing so please excuse my naivety!
1) For loopback test, I can possibly snip and rig a connector cable to connect RX/TX, what am I looking for at this point?
2) On Sonoff interface, I did enable "local echo" and then could see my own typing but it never made the difference....almost like missing the "enter" key on keyboard
But all said and done, I am loving the experience of serial port console terminal !!! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54834 Location: 56N 3W
|
Posted: Wed Feb 10, 2021 10:28 am Post subject: |
|
|
The loopback test does what it says.
Everything going out of the Tx pin comes back on the Rx pin. You see whatever you type. If you have local echo on, you see it twice. Once due to the local echo and once due to the serial port working, sending and receiving characters.
Until loopback works, nothing else matters.
The signal is either 3.3v or 5v. Sowe bare wire connecting the Tx and RX pins is good enough.
A few rare people can feel 5v.
Is the Sonoff supposed to echo what it receives? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|