xbee s2c spi operation with raspberry pi

Hey, I am having trouble getting spi working to communicate with the xbee devcice using raspberry pi. I am using python with the spidev library to try and communicate with the xbee. I configured the xbee using XCTU in API 1 mode and enabled the relevant SPI pins. The devices work using uart, but not with spi.

Basically, I am trying to send a frame to read the hardware version from the xbee device(7E 00 04 08 01 48 56 58). All I get as a response is (FF FF FF…).

The only time I actually get a frame as a response is after disconnecting and connecting the xbee, which case I get (7E 00 02 8A 00 75), which is a frame for modem status saying modem status is hardware reset. This tells me that spi is working, but I am not sure why I don’t get a response when I send frame to get hardware version.

Would really appreciate some help, if anyone has any experience with getting spi working with an xbee device.

1 Like

Did you ever get this to work? I’m starting to try and use SPI to communicate with the xbee and I also get the FF FF FF values (supposedly: nothing). I was wondering if we require to send the AT Command Response (0x88) to get the response…