Posts: 1
Joined: Mon Feb 18, 2019 9:52 am

Xbee shield not working on RPi3

Mon Feb 18, 2019 9:56 am


I’m trying to make the Digi Shield work on a raspberry 3. I have tryed to connect the the shield equiped with Xbee PRO S2C Zigbee antenna with both GPIO and USB but I’m not able to read recived data. The strange thing is that if I connect to a desktop pc the Shield with USB everthing work. I have tried with digi-xbee python libary (https://xbplib.readthedocs.io/en/latest/) and with xbee-python library (https://python-xbee.readthedocs.io/en/latest/). On my desktop works fine on the RPi3 is not working.

If I do:

Code: Select all

from digi.xbee.devices import ZigBeeDevice

PORT = "/dev/ttyUSB0" #or "/dev/ttyS0"
BAUD_RATE = 9600
device = ZigBeeDevice(PORT, BAUD_RATE)
On the RPi3
I get “invalid operation mode exception”

On desktop works fine

If I do:

Code: Select all

import serial
from xbee import ZigBee

serial_port = serial.Serial('/dev/ttyUSB0', 9600) # or serial_port = serial.Serial('/dev/ttyS0', 9600)
zb = ZigBee(serial_port)
On the RPi3 I get no msg while on the PC desktop I revice msg.

I have also tried to use a Digi X-stick on the RPi3 and everithing works fine with the Digi Xstick.

How can I solve this?



Return to “General discussion”