User guide
11 / 13
Flashing iSense Devices Wirelessly User Guide
coalesenses
research to innovate
To detect the presence of the devices to be programmed wirelessly, click on “Start presence
detection”. Nearby devices will then show up in the device list (4) if their program was compiled with
the OTAP feature enabled. Note that in order to be detectable, devices must have wake periods of at
least 300ms. For details on how to control whether devices are awake or not, please refer to the
Writing iSense Applications User Guide [3].
The application ID and the application revision displayed in the “Status” column are the ones that the
functions
//----------------------------------------------------------------------------
/** This method is used to identify an application.
* If you program devices over the air it eases the selection of the desired
* devices.
*
*/
virtual uint16 application_id (void);
//----------------------------------------------------------------------------
/** This method can be used to differentiate between different versions of
* the application. The number is also (in addition to the application id)
* shown in the OTAP-Plugin, so that the desired devices can be selected.
*
*/
virtual uint8 software_revision (void);
of your applications on the devices return. In case you did not implement (i.e. overwrite) the above
functions, their default values will be displayed (App. 0 rev. 0).
Devices that cannot be programmed wirelessly because
• the actual chip type and the chip type the software was build for do not match or
• their OTAP version is too old
will be displayed with grey font color, and will be excluded from wireless flashing.
Select the devices you want to program wirelessly by checking the corresponding checkbox left of the
device address in the device list. You can stop the presence detection by clicking on “Stop presence
detection”.
Note that the wireless programming only work within the direct neighborhood of the device that is
connected to the PC. Currently, multi-hop programming is not supported.
You can program up to 50 devices in one run.
The “Start” button (5) will become active if presence detection is running. After choosing the devices
to be programmed, click on “Start”. The programming process will start. The “Status” column and the
“Progress” column in the device list will inform you about the state of the different devices.
You can stop the programming process by clicking on “Stop” (the former “Start” button, 5). Devices
that did not complete the reprogramming will remain functional. However, their program flash
memory will be corrupted. Hence, they will not work properly after reboot or after being switched off
and on again.
After the programming completed, the devices that received the complete new program will reboot
automatically, and run the new program from now on. Devices that failed to receive the complete
program will not reboot, and keep running the old program. However, their program flash memory
will be corrupted. Hence, they will not work properly after reboot or after being switched off and on
again, either.
For devices that did not complete the program download, you can repeat the wireless programming
procedure.