Power & Source of Big Ideas

NanoPI NEO Uarts Showing Garbage

Moderators: chensy, FATechsupport

I have NaoPI Neo, just opened it out of the box yesterday and was testing the uarts.

I'm hooked to pins 6 (gnd), 8 (tx) and 10 (rx), running to my PC's pin's 2/3/5 (9-pin serial port).

My serial port is setup as:

# root@NovusOne:~# stty -F /dev/ttyS1
speed 9600 baud; line = 0;

I'm running Putty on my computer, serial port is set to 9600/8/N/1.

On the Nano, I do a simple:

# cat /dev/ttyS1

Which dumps out whatever shows up at the com port. On the Putty, I dump a small text file (I'm lazy). I get garbage.

# cat /dev/ttyS1
5�Wy_�_=9)��Y5�����g5#����囋�_!
��g!9='��}!�;5�=/5�!
%;/5�m_�=9)�����7���s'=1����Wy_�_!9)��Y5�����}9)�����g5#���噋�g!9='��_!
5�Ya9)�g=
5#�9!%��#���y!##-!#��y'!5��#�廡�#��嗋���}5=�!!�%=#

It's consistent at any baud rate with any bit/parity setting. I was unable to get ttyS0 to work at all [no response]. Device Tree file has been untouched. An interesting effect is I get the same pattern of garbage if I continue to repeat the paste operation. So, that tells me it's some kind of configuration.

Anyone have any idea what is going on?! Is my nanopi broke?

Thanks
UPDATE:

I ran minicom on the port instead of doing a "cat /dev/ttyS2". Minicom is spewing out garbage as well. I played with all the parity and stop bit settings.. no luck. I even checked my cable for continuity and connections... all is fine.

Anyone have any clues?
And the baud rate? Try 115200
Okay, from what I can tell the Nano is bit flipping every bit. All 1's are turned to 0 and vise versa. Is there some kind of Linux setting to do this? (I've never heard of it)
Had to Google <serial port inverted> seems a few people have had this issue.

However, I went back and re-read your original post ... specifically about how you are wiring these two units. As far as I am aware a DB9 connector on a PC is a real RS-232 item, ie voltage levels like +/-15 Volts and you can not just wire them up to a UART running probably 3V.

So, do you have something between thee two units to provide a proper voltage interface?
https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=22258
Maybe, this sheds light on the potential problem space.
bwilcutt wrote:
I'm hooked to pins 6 (gnd), 8 (tx) and 10 (rx), running to my PC's pin's 2/3/5 (9-pin serial port).
Anyone have any idea what is going on?! Is my nanopi broke?

For DB9 to the NanoPi serial Port you need a TTL-Levelshifter and 115.200 Baud

Attachments

Thanks for the heads up! I didn't realize I need a voltage leveler. Is there any place I can readily pick up one?
FriendlyArm's PSU-ONECOM

Good chance your NEO's UART has been damaged.
davef wrote:
FriendlyArm's PSU-ONECOM

http://www.friendlyarm.com/index.php?ro ... duct_id=89

Attachments

Who is online

In total there are 12 users online :: 0 registered, 0 hidden and 12 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 12 guests