Pages: [1]   Go Down
Author Topic: xbee pro series 1 and arduino..  (Read 582 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
#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?
« Last Edit: March 14, 2013, 08:05:30 pm by nekidfrog » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

so no one has any idea ?
Logged

Pages: [1]   Go Up
Jump to: