xbee_ansic_library icon indicating copy to clipboard operation
xbee_ansic_library copied to clipboard

SPI Operation

Open ahmetakman opened this issue 4 years ago • 3 comments

Hi guys, I am trying to use the XBee Pro S2c module with its SPI bus using Arduino IDE . Is there any useful resource or reference code ( might be C C++ it is okay) for this operation other than the datasheet? (which I think is quite poor in terms of SPI documentation)

ahmetakman avatar Aug 21 '21 09:08 ahmetakman

There are some host libraries in other languages (Java, Python), but I'm not aware of any of those libraries including a SPI implementation. Maybe @mikewadsten knows about some SPI-related Python code that Digi has made (or would make) available to customers?

tomlogic avatar Aug 30 '21 02:08 tomlogic

Driving SPI from a host device, especially if you're targeting a PC, is very dependent on using some kind of chipset to implement the SPI hardware interface and move data between the PC and the SPI slave. In other words, there is no off-the-shelf Python (or Java) code for that.

@ahmetakman Since you say you're trying to use the Arduino IDE, you'll want to look for sample code for using SPI on an Arduino device as a starting point.

mikewadsten avatar Aug 30 '21 14:08 mikewadsten

Since the XBee's SPI interface is rarely used, the documentation isn't as detailed as you might want if implementing it from scratch. You could also try asking on Digi's Forum for XBee Hardware questions.

tomlogic avatar Aug 30 '21 15:08 tomlogic