gyrotech
Posts: 4
Joined: Tue Apr 26, 2016 5:11 am

GPIO Serial on RPi3

Tue Apr 26, 2016 6:13 pm

Hi,

So, I'm trying to get the RS-485 shield working from http://store.linksprite.com/rs485-gpio- ... aQodAEwAJg , and it's not behaving like I expected (I'm a total newbie here with this). Everything I've read says that I should be reading from ttyAMA0, but I'm only getting data on TTYS0. I've tinkered with all of the settings I've found online (remove console from tty, enable_uart), and it just seems to be tied to TTYS0. I wouldn't care about that, but the data I'm getting seems wrong. When I start reading from the port, I initially get good data, but then it seems to be garbled. The garbling is consistent, so maybe it's a baud rate issue??

I'm clueless at what my next step should be (other than go to RPi2)? Is there anything else I should try?

rzusman
Posts: 347
Joined: Fri Jan 01, 2016 10:27 pm

Re: GPIO Serial on RPi3

Tue Apr 26, 2016 7:10 pm

On the Pi3, pins 14 and 15 are now uart1, so ttys0 is correct.

Some discussion here:
https://openenergymonitor.org/emon/node/12311

and here:
viewtopic.php?f=44&t=143371

gyrotech
Posts: 4
Joined: Tue Apr 26, 2016 5:11 am

Re: GPIO Serial on RPi3

Tue Apr 26, 2016 8:54 pm

Okay, that's great to know.

Now, I guess it's just sorting out the garbled data. If it starts off clean, then gets garbled, is that indicative of a baud rate issue?

gyrotech
Posts: 4
Joined: Tue Apr 26, 2016 5:11 am

Re: GPIO Serial on RPi3

Tue Apr 26, 2016 8:59 pm

I just learned about device tree and shutting off bluetooth on that first post you linked. I'm going to try that tonight! Looks promising.

Thanks again.

Return to “Troubleshooting”