I've been beating my head on the table for days trying to figure this out. For the life of me I cannot seem to get my Raspberry Pi 3 serial port to communicate with the Xbee Series 2.
I checked my /boot/cmdline.txt
and there are no references to AMA0 in the file.
Here is what is current in there:
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblkOp2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
EDIT: PI 3 does not AMA0. It uses S0. I've removed entry console=serial0,115200
Since this is the Jessie update, there is no inittab. In which I've read that I need to do the following (which I've done):
sudo systemctl stop serial-getty@AMA0.service
sudo systemctl disable serial-getty@AMA0.service
sudo systemctl mask serial-getty@AMA0.service
After doing all of this, I open up cutecom, set it to 9600 baud rate, read/write, 8 bit data, 1 bit stop, and set the device to /dev/ttyAMA0.
When I hit connect and type:
+++
to enter the configuration mode I get:
write returned 0 errno: 11
write : Resource temporarily unavailable
I'm not sure what I'm doing wrong here... I know that the Xbee is functional because I'm able to configure it using XCTU software via a serial-to-USB breakout board. But on the Pi connected via the GPIO serial pins I get no response.
Any ideas?
The Xbee is hooked up to a Spark Fun Xbee Regulated Explorer
I'm also having issues doing this with my Raspberry Pi 2 (Which is where the Pi 3 will be communicating to). On the Pi 2, I've edited the cmdline.txt file and removed references to AMA0:
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblkOp2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
And I've ran through the earlier mentioned systemctl commands on the Pi2.
Currently when I open a session using cutecom (S0 for Rpi3 AMA0 for Rpi2) I get no output. I type +++
in to the input line, I see the TX light blink on my Regulated Explorer but I get no output inside cutecom, nor any message in the terminal window.
console=serial0,115200
parameter fromcmdline.txt
. Although it isn't a reference toAMA0
, it is pretty obviously a reference to a serial console, which could only be the one on the GPIOs. Make sure you leave that file as all one line! – goldilocks Apr 08 '16 at 19:46ttyS0
w/ the Xbee instead as well then. – goldilocks Apr 09 '16 at 19:46sudo minicom -b 9600 -D /dev/ttyS0
I don't get anything. It shows the minicom welcome message showing the Options and such, but no status at the bottom of the terminal and I can't type anything. When I use cutecom with the same settings I don't get any output either (nothing in console saying its unavailable or anything). – Myg0t Apr 09 '16 at 19:49+++
into the cutecom input line and hitenter
I can see the TX light on my Xbee blink. So I know it's receiving something... – Myg0t Apr 09 '16 at 19:55