Please forgive me if I've missed another forum post that already includes this information but I've struggled to find anything definitive.
I have a device that requires us to use a 3.3 TTL interface to it. It states in it's documentation: Baud rate – 9600 Data bytes – 8 Parity – None Stop bits - 1 Handshake – None.
I have successfully communicated with it when I use a FTDI USB to TTL Serial Cable (3.3V) but I would like to use one of the PI's UART outputs to do this.
I've gone through the stages of adding to my boot/config.txt
Code: Select all
enable_uart=1
dtoverlay=pi3-disable-bt Code: Select all
GPIO 14: level=1 fsel=4 alt=0 func=TXD0
GPIO 15: level=1 fsel=4 alt=0 func=RXD0Code: Select all
lrwxrwxrwx 1 root root 7 Jul 30 17:10 serial0 -> ttyAMA0Code: Select all
stty -F /dev/ttyAMA0
speed 9600 baud; line = 0;
-brkint -imaxbelCode: Select all
stty -F /dev/ttyAMA0 9600 cs8 -parenb -cstopb -crtscts -ixonspeed 9600 baud; line = 0;
-brkint -imaxbe
update:
I was missing the -a argumen on stty, however I can see the flags set but I still can't communicate with the device.
So, is the above config possible using the on-board UARTS? Is there something else interfering with them that I might have missed?
Thanks