Hello,
We have been doing some tests with OTAP over the following Zigbee (XBEE PRO S2) devices:
1 x Waspmote gw (Coordinator)
1 x Waspmote End device
This is the output obtained:
Code:
root@bt:~/otap# ./otap -scan_nodes --mode BROADCAST --time 10
----------------------------------------------------------------
Total Nodes: 1 - Time elapsed: 17s
0 - Node 007d33a200406972 - ?WASPMOTE0000000 - x?????? - READY
The mac displayed is not correct (only some bytes match the real value), either the Mote id and the program name.
The program on the waspmote is the following:
Code:
#define key_access "LIBELIUM"
#define id_mote "WASPMOTE00000001"
long previous = 0;
void setup()
{
USB.begin();
USB.println("Waspmote OTA Setup");
// Write Authentication Key in EEPROM memory
for(int i=0;i<8;i++)
{
Utils.writeEEPROM(107+i,key_access[i]);
}
// Write Mote ID in EEPROM memory
for(int i=0;i<16;i++)
{
Utils.writeEEPROM(147+i,id_mote[i]);
}
// Initialize Xbee module
xbeeZB.init(ZIGBEE,FREQ2_4G,NORMAL);
xbeeZB.ON();
// CheckNewProgram is mandatory in every OTA program
xbeeZB.checkNewProgram();
// Blink LED1 while messages are not received
Utils.setLED(LED1,LED_ON);
delay(100);
Utils.setLED(LED1,LED_OFF);
delay(100);
}
void loop()
{
previous=millis();
while((millis()-previous) < 6000)
{
while( XBee.available() )
{
xbeeZB.treatData();
}
}
}
The xbee.conf is as follows:
Code:
# port where the xbee moduel is connected
port = /dev/ttyUSB0
# auth key of network
auth_key = LIBELIUM
# pan ID of network
panID = 0x1020
#xbeeModel = 802.15.4, ZB, DM, 868, 900
xbeeModel = ZB
# channel number
#channel = between 0xB and 0x1A
channel = 0x12
# encryption of network
encryption = off
# encryption key of network
encryptionKey = 1234567890123456
# name of the file where discarded data goes
#discardedDataFile = data.txt
Does anybody know how to fix it?
Thanks in advance