Go Down

Topic: xbee pro series 1 and arduino.. (Read 705 times) previous topic - next topic

nekidfrog

Mar 15, 2013, 01:53 am Last Edit: Mar 15, 2013, 02:05 am by nekidfrog Reason: 1
Code: [Select]
#include <XBee.h>

XBee xbee = XBee();

uint8_t payload[] = { 255 };

Tx16Request tx = Tx16Request(0x6556, payload, sizeof(payload));

void setup() {
  xbee.begin(38400);
}

void loop() {
  xbee.send(tx);
  delay(1000);
}


I have a coordinator and end point. I'm using that code on the end point to send a simple data to the coordinator. The first api packet looks fine!

7E 00 06 81 65 57 24 00 FF 9F

Second packet for unknown reasons gets changed to rx 64?

7E 00 0C 80 00 13 A2 00 40 93 A9 9F 24 00 FF 8C

both devices are set to 6556 coordinator and 6557 for end point, api = 1, pan is 3332 and ch is C. DH and DL are both 0.

can anyone explain why the second time I send a packet, even tho using the tx16 it magically changes to rx 64 on coordinators side?

nekidfrog


Go Up