Incompatibility problems between Wifly and Xbee

Hi, All

My project is create a wireless sensor network (wsn) based in Xbee S1 and using an arduino with xbee shield (wrl 09954) and wifly shield (wrl-10854). My wsn has more than one sensor and I am using the Xbee API mode because I need to indentify the origin of the informations. The arduino concentrate the information and transmit the information thru the wifly shield to cloud. When I monitory the information came from sensor (using the function 17 to polling)I have received the information normally:

Sensor network Greco

Arduino Base - 01

7E,0,14,97,1,0,13,A2,0,40,A1,B,9,50,3,49,53,0,1,2,0,3,FF,C9,

Function Code =97

Sensor Address =5003

AD0 value =1023

When I use the command below to create my adHoc network the base does not receive the information transmitted by sensor network

WiFly.createAdHocNetwork(ssid))

So I changed the parameter of the WiFly.createAdHocNetwork(ssid) routine library at wifly device library to not have flow control because the Xbee API work with no flow control but nothing happened .

sendCommand(F(“get uart”), false, “Flow=0x00”); // library modification

Follow bellow My network configuratio:

Sensor configuration:

ID PAN = 10

DL = 5001

MY = 5003

API = 0

D0 =2

Base (arduino) configuration:

ID PAN = 10

DL = 5003

MY = 5001

API = 1

Wifly configuration:

Using the default configuration give by WiFly.createAdHocNetwork(ssid)) give only the parameter ssid = Greco

Please, does anyone have any idea what’s going on?

Wifly and Xbee WILL NOT talk to each other. WiFly uses protocol IEEE 802.11 whereas XBee uses 802.15.4

Dear Waltr

The architecture is different that you are understood. My network are composed by sensor that use a Xbee modules (802.15.4) that send information to other xbee module mounted over arduino. The arduino receive information from xbee modules and retransmit by wifly shield (802.11) to the cloud thru http protocol. The problem is compatibility with xbee shield and wifly shield mounted together at the same arduino using wifly like adHoc network. The arduino works like a gateway between the networks 802.15.4 and network 802.11.

Thanks

What makes you think there is an incompatibility between the 2 shields? They communicate with the arduino over 2 entirely different methods , namely SPI and UART. They do not share i/o pins.

Have you tried to use each shield individually in your code? Can you connect your Wifly setup with and without accessing the Xbee shield? Leaving it only attached. Does it even work without any Xbee shield attached?

If the 2 shields are close to eachother (on top of eachother) RF jamming seems likely. But I’m no expert in this.