Pages: [1]   Go Down
Author Topic: Unicast using xbee-arduino lib in API mode  (Read 425 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I must see something over the head. My setup works using broadcasting addressing

Code:
XBeeAddress64 ALL_MAC = XBeeAddress64(0x0,0xFFFF);

xbee_tx = ZBTxRequest(ALL_MAC, xbee_payload, min(message.length(), xbee_buffer_size)+1);
xbee.send(xbee_tx);

but once I try unicast, nothing arrives on the reading node

Code:
XBeeAddress64 SPOOKY_MAC = XBeeAddress64(0x0013A200,0x409453AA);

xbee_tx = ZBTxRequest(SPOOKY_MAC, xbee_payload, min(message.length(), xbee_buffer_size)+1);
xbee.send(xbee_tx);

For the XBees Series2 I use ZNET 2.5 COORDINATOR and ROUTER/END DEVICE in API mode, but havent hardcoded any DH/DL addressing in the configuration. Looking at the threads in here, I cant see, what I'm doing different... what am I'm not aware of?
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 547
Posts: 45982
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
but havent hardcoded any DH/DL addressing in the configuration.
Each series 2 XBee comes with DH and DL values defined. Those are the values that you need to use in the code to talk to a specific XBee.
Logged

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 71
Posts: 3499
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
but havent hardcoded any DH/DL addressing in the configuration.
Each series 2 XBee comes with DH and DL values defined. Those are the values that you need to use in the code to talk to a specific XBee.

It looks like he has done that,
Code:
XBeeAddress64 SPOOKY_MAC = XBeeAddress64(0x0013A200,0x409453AA);

He is correct in saying that DH and DL do not need to be set, e.g. using X-CTU or whatever.,
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Pages: [1]   Go Up
Jump to: