Xbee Wifi with Wireless Proto Shield

Hello,
I am trying to get an Arduino to talk to a smart phone. For now I am just trying to receive data with netcat on a laptop.
I am trying to use this library

and this example

to talk to the XBee S6B.
The command

xbee.init(XBEE_SELECT, XBEE_ATN, XBEE_RESET, XBEE_DOUT)

fails so I am checking the pins.
Shield manual: http://www.arduino.cc/en/uploads/Main/arduino_WirelessShield_Proto_v3-schematic.pdf
XBee manual: http://ftp1.digi.com/support/documentation/90002180_K.pdf
Initially they were set to

#define XBEE_RESET 20
#define XBEE_ATN 2
#define XBEE_SELECT SS
#define XBEE_DOUT 23

And I looked on the xbee pin signal page for similar acronyms...
It looks like I want pins 5, 19, 17, and 2 on the xbee, which seem to be mapped to pins

#define XBEE_RESET 5
#define XBEE_ATN 9
#define XBEE_SELECT 7
#define XBEE_DOUT 2

but xbee.init return false (I print an error in the serial monitor).
I am trying to monitor the signal like this.

$ nc -luv 9750

Thank you for any help.

I personally tried to use SPI for communication between an Arduino Leonardo and Xbee wifi S6B. I gave up as it was causing too many headaches and just used UART instead. Its never been a problem especially when using the Wireless Proto Shield. It is far simpler too.

What I did to resolve my problem and get it working (I was sending data to a Node JS server) was configure the Xbee device to transparent mode and using UART serial interface. To send the data over Wi-Fi I configured the Xbee to listen to a certain port and set a destination IP address and port number (which was the server/PC whose address was reserved to Network Router so never changed). This then allowed my Arduino code to be fairly straight forward by just sending my data using the Software serial library via UART to the Xbee, which did all the difficult stuff.

A full breakdown of what I did is here:

http://www.electronicsupgrade.com/connecting-an-adruino-to-a-server-over-wi-fi

Hope this helps :slight_smile: