Go Down

Topic: Xstick - XBEE series 2 communication (Read 466 times) previous topic - next topic

seemakumar8

Apr 07, 2015, 04:10 pm Last Edit: Apr 07, 2015, 04:37 pm by seemakumar8
Hi,

I am trying a very simple setup. But, I am unable to get through.

I have Xstick ZB which works as coordinator in API mode. And, there is a XBEE series 2 in router API mode.

Configuration:
- Both on same PAN ID (Used X-CTU for configuration)
- Changed API level to 2 on both

The Arduino code on XBEE is:

#include <XBee.h>
XBee xbee = XBee();

uint8_t payload[] = {'H', 'e', 'l', 'l', 'o'};

XBeeAddress64 addr64 = XBeeAddress64(0x0013a200, 0x40b12345);
ZBTxRequest zbTx = ZBTxRequest(addr64, payload, sizeof(payload));

void setup() {
  Serial.begin(9600);
  xbee.setSerial(Serial);
}

void loop() {
  xbee.send(zbTx);
  int x = txStatus.getDeliveryStatus();
  Serial.println(x,HEX);
   
  delay(3000);
}

The status on serial output is weird. I get FB. Or 251 in decimal.
Also when I try the series2_tx sample sketch from xbee-arduino, it enters the last else statement, which says "local XBee did not provide a timely TX status response"

Kindly appreciate any positive feedback. I expect some packets being received on xctu console of xstick.

Thanks

seemakumar8

It worked. I had to change the "serial select" switch on the Wireless SD shield from USB to MICRO mode. Only in MICRO mode the shield sends data over XBEE wirelessly and serially to the PC.

Go Up