15 February 2019 at 3:46 PM #36629lorenzo.bottaccioliParticipant
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:123456from digi.xbee.devices import ZigBeeDevicePORT = "/dev/ttyUSB0" #or "/dev/ttyS0"BAUD_RATE = 9600device = ZigBeeDevice(PORT, BAUD_RATE)device.open()
On the RPi3
I get “invalid operation mode exception”
On desktop works fine
If I do:123456import serialfrom xbee import ZigBeeserial_port = serial.Serial('/dev/ttyUSB0', 9600) # or serial_port = serial.Serial('/dev/ttyS0', 9600)zb = ZigBee(serial_port)data=zb.wait_read_frame()
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?
- You must be logged in to reply to this topic.