VMgr_OTAPCommunicator
This application was added in REL-1.1.0.
Introduction
This script is a reference utility to update the firmware on SmartMesh IP motes motes in a network using the built-in Over The Air Program (OTAP) feature.
The script connects to a Manager using the Python library and does the following:
Connects to a VManager
Gets the list of operational motes in the network
Performs the OTAP function
It connects to:
The SmartMesh IP VManager
Running
You can run the VMgr_OTAPCommunicator.py application:
By double-clicking on its source files at
/vmanager_apps/VMgr_OTAPCommunicator.py(may require additional steps on non-windows OSes)By launching it in a console window (to override default options)
VMgr_OTAPCommunicator.py takes the following options:
VMgr_OTAPCommunicator.py [--verbose] [--host] [-m|--mote] [--delay] [--nostart]
where
--verbose: Prints verbose messages to the screen
--host: enter the IP address of the VManager instance
--mote: List of mote(s) (separated by spaces) to be OTAPed
--delay: interpacket delay. The default is 1 second
--nostart: Don't start running the OTAP process automatically, i.e use interactive mode
> python VMgr_OTAPCommunicator.py --verbose mote_ip_1_3_3_1_oski.otap2
Welcome to the OTAP communicator console
Loading mote_ip_1_4_0_79_oski.otap2
Starting OTAP for mote_ip_1_4_0_79_oski.otap2
Starting handshake with 1 motes
[OTAPCommunicator:INFO] Starting handshake with 1 motes
[ReliableCmd:INFO] ORC sending cmd 22 to 00-17-0D-00-00-60-08-DC
[ReliableCmd:INFO] ORC (re)sending cmd to 00-17-0D-00-00-60-08-DC, attempt 0
[ReliableCmd:INFO] ORC received cmd 22 from 00-17-0D-00-00-60-08-DC
[OTAPCommunicator:INFO] Got Handshake response from 00-17-0D-00-00-60-08-DC
Handshake completed, 1 motes accepted
[OTAPCommunicator:INFO] Handshake completed, 1 motes accepted
Starting data transmission of 2313 blocks, 1 motes left
[OTAPCommunicator:INFO] Starting data transmission of 2313 blocks, 1 motes left
[OTAPCommunicator:INFO] Sending block 0 to 00-17-0D-00-00-60-08-DC
[OTAPCommunicator:INFO] Sending block 1 to 00-17-0D-00-00-60-08-DC
[OTAPCommunicator:INFO] Sending block 2 to 00-17-0D-00-00-60-08-DC
[OTAPCommunicator:INFO] Sending block 3 to 00-17-0D-00-00-60-08-DC
[OTAPCommunicator:INFO] Sending block 4 to 00-17-0D-00-00-60-08-DC
[OTAPCommunicator:INFO] Sending block 5 to 00-17-0D-00-00-60-08-DC
[OTAPCommunicator:INFO] Sending block 6 to 00-17-0D-00-00-60-08-DC
[OTAPCommunicator:INFO] Sending block 7 to 00-17-0D-00-00-60-08-DC
[OTAPCommunicator:INFO] Sending block 8 to 00-17-0D-00-00-60-08-DC
.
.
.