Home/Support/Support Forum/Communication coordinator API and end devices AT

Communication coordinator API and end devices AT

+1 vote
Hello,

I made the purchase the book "Home Automation with Arduino" in French version (Arduino pour la domotique)

But I am confronted with one of my XBee configuration problem
in chapter 8 of the book

I use:
1 arduino uno
1 XBee shield
2 xbee S2-004 XB24-Z7WIT revK
1 exbee explorer
1 Pir

Same of the book config

I realized my tests on a PC and MAC
I used different USB cables
I used xbee explorer different
I used different XBEE
and even different arduino

XCT-U for programming the XBee

I have an XBee ZB-XB24 configured with API function coordinator and firmware 21A7
here's the setup:

<?xml version="1.0" encoding="UTF-8"?>

<data>
<profile>
<description_file>XB24-ZB_21A7.xml</description_file>
<settings>
<setting command="ID">2712</setting>
<setting command="SC">FFFF</setting>
<setting command="SD">3</setting>
<setting command="ZS">0</setting>
<setting command="NJ">FF</setting>
<setting command="DH">0</setting>
<setting command="DL">FFFF</setting>
<setting command="NI">0x20</setting>
<setting command="NH">1E</setting>
<setting command="BH">0</setting>
<setting command="AR">FF</setting>
<setting command="DD">30000</setting>
<setting command="NT">3C</setting>
<setting command="NO">0</setting>
<setting command="CR">3</setting>
<setting command="PL">4</setting>
<setting command="PM">1</setting>
<setting command="EE">0</setting>
<setting command="EO">0</setting>
<setting command="KY"></setting>
<setting command="NK"></setting>
<setting command="BD">3</setting>
<setting command="NB">0</setting>
<setting command="SB">0</setting>
<setting command="D7">1</setting>
<setting command="D6">0</setting>
<setting command="AP">2</setting>
<setting command="AO">0</setting>
<setting command="SP">20</setting>
<setting command="SN">1</setting>
<setting command="D0">1</setting>
<setting command="D1">0</setting>
<setting command="D2">0</setting>
<setting command="D3">0</setting>
<setting command="D4">0</setting>
<setting command="D5">1</setting>
<setting command="P0">1</setting>
<setting command="P1">0</setting>
<setting command="P2">0</setting>
<setting command="PR">1FFF</setting>
<setting command="LT">0</setting>
<setting command="RP">28</setting>
<setting command="DO">1</setting>
<setting command="IR">0</setting>
<setting command="IC">0</setting>
<setting command="V+">0</setting>
</settings>
</profile>
</data>

and XBee ZB-XB24 in with AT function end devices and firmware 28A7
here's the setup:

<?xml version="1.0" encoding="UTF-8"?>

<data>
<profile>
<description_file>XB24-ZB_28A7.xml</description_file>
<settings>
<setting command="ID">2712</setting>
<setting command="SC">FFFF</setting>
<setting command="SD">3</setting>
<setting command="ZS">0</setting>
<setting command="NJ">FF</setting>
<setting command="JN">0</setting>
<setting command="DH">0</setting>
<setting command="DL">0</setting>
<setting command="NI">0x20</setting>
<setting command="NH">30</setting>
<setting command="BH">0</setting>
<setting command="DD">30000</setting>
<setting command="NT">3C</setting>
<setting command="NO">0</setting>
<setting command="CR">3</setting>
<setting command="SE">E8</setting>
<setting command="DE">E8</setting>
<setting command="CI">11</setting>
<setting command="PL">4</setting>
<setting command="PM">1</setting>
<setting command="EE">0</setting>
<setting command="EO">0</setting>
<setting command="KY"></setting>
<setting command="BD">3</setting>
<setting command="NB">0</setting>
<setting command="SB">0</setting>
<setting command="RO">3</setting>
<setting command="D7">1</setting>
<setting command="D6">0</setting>
<setting command="CT">64</setting>
<setting command="GT">3E8</setting>
<setting command="CC">2B</setting>
<setting command="SM">4</setting>
<setting command="ST">1388</setting>
<setting command="SP">20</setting>
<setting command="SN">1</setting>
<setting command="SO">0</setting>
<setting command="PO">0</setting>
<setting command="D0">1</setting>
<setting command="D1">0</setting>
<setting command="D2">0</setting>
<setting command="D3">0</setting>
<setting command="D4">0</setting>
<setting command="D5">1</setting>
<setting command="P0">1</setting>
<setting command="P1">0</setting>
<setting command="P2">0</setting>
<setting command="PR">1FFF</setting>
<setting command="LT">0</setting>
<setting command="RP">28</setting>
<setting command="DO">1</setting>
<setting command="IR">0</setting>
<setting command="IC">0</setting>
<setting command="V+">0</setting>
</settings>
</profile>
</data>

here is the source code for Arduino:

// Libraries
#include <SPI.h>
#include <aREST.h>

// Motion sensor ID
char * xbee_id = "2";

// Create ArduREST instance
aREST rest = aREST();

void setup() {

// Start Serial

Serial.begin(9600);

// Give name and ID to device
rest.set_id(xbee_id);

rest.set_name("motion2");
}
void loop() {
// Handle REST calls
rest.handle(Serial);
}

The FTDI drivers are installed perfectly on PC and MAC

When I make a discovery of XBEE network XCT-U, everything is OK and everything is discovered . no problem.

But when I want to test the project
using either coolterm, TeraTerm, the serial monitor IDE Arduino ,when entering /id, nothing is returned.
Same for /Digital/8/
But when I change my coordinator API in COORDINATOR AT it works.

I confess to not understanding where is the problem.
If you could look a bit my problem, that allow me to advance in my work

Kind regards and thank you for your response

Didier
asked Aug 31, 2015 in XBee Programmable Development by Dichkinn New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

+1 vote
The XBee ZB modules you are using do not support the Home Automation profile. You must use the XBee ZB SMT or the New XBee ZB S2C TH modules for the HA profile.
answered Aug 31, 2015 by mvut Veteran of the Digi Community (13,472 points)
...