I am trying to communicate over uart, but running into some problems.
i can see that it is pin 8,10 (14 TX ,15 RX) and the following is how I am setup:
/boot/config.txt
enable_uart=1 from raspi-config
ls -l /dev/serial0 links to /dev/ttyAMA0 - this is correct right?
Do i need to disable Bluetooth?
Do i need to do anything to the speed value (ie, change from 250?)
Using Python 3.5
Thoughts?
UPDATE Looks like the answer was in the /boot/config.txt
I enabled the pi3-miniuart-bt
Allow UART and Bluetooth at the same time https://github.com/UbiquityRobotics/ubiquity_main/issue$
dtoverlay=pi3-miniuart-bt
Now the challenge is that on reboot, something is pausing my python.
Sounds strange but I am at a loss…
ubuntu@ubiquityrobot:~$ sudo lsof /dev/serial0
lsof: WARNING: can’t stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
motor_nod 1685 ubuntu 10u CHR 204,64 0t0 6182 /dev/ttyAMA0
python 2198 ubuntu 6u CHR 204,64 0t0 6182 /dev/ttyAMA0
UPDATE UPDATE
okay… it was my misunderstanding of what that actually means.
This according to the manual should disable Bluetooth and enable UART over 14/15 but what if I wanted to use the GPIO UART and Bluetooth? I might be missing something.
pi3-disable-bt