Dear Dev,
I am afraid you missed my previous post; I made it clear that the SD cards where bought from you. The SD cards where bought directly from Libelium, this you can verify through your sales department. This ensures the quality and size, as mentioned in previous posts, should not be a factor anymore.
The SD card where formatted using GPARTED Boot disk as FAT16.
Size in top right application window (where you select device) shows as 1.87GiB
In disk properties shows as 1.86GiB
In windows 7:
Capacity is 2.001.403.904bytes
1.86GB
The radio we are using is ZigBeePRO (Model:XBEEPRO2)
The code in WaspMotes to test OTAP is:
Code:
#define key_access "LIBELIUM"
#define id_mote "WaspMOTE12345678"
long previous = 0;
void setup()
{
SD.ON();
USB.begin();
USB.println("Waspmote OTA Setup\n");
// 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,PRO);
xbeeZB.ON();
// CheckNewProgram is mandatory in every OTA program
xbeeZB.checkNewProgram();
}
void loop()
{
previous=millis();
while( (millis()-previous) < 60000 )
{
while( XBee.available() )
{
xbeeZB.treatData();
}
}
}
Using UNICAST mode firmware is uploaded in each WaspMote (we are using 2).
When using BROADCAST or MULTICAST there are too many errors and the process is very slow.
Thank you.