VMgr_OAPsend
This application was added in REL-1.1.0.
Introduction
This example script is used to configure SmartMesh IP motes running in Master mode using the OAP protocol described in the SmartMesh IP Tools Guide. The sample script can be used to:
- Change the rate at which the mote reports Temperature
- Configure the mote to send arbitrary packets through the PKgen module
- Turn the blue LED of an eval kit mote ON or OFF
The script connects to a Manager using the Python library and does the following:
- Prompts the user for the VManager IP address and mote to work with. An address of FF-FF-FF-FF-FF-FF-FF-FF will send via broadcast messages to all motes.
- Prompts for which action to take
- Sends the command to the mote(s)
It connects to:
- The SmartMesh IP VManager
- Requires SmartMesh IP motes running in Master mode
Running
You can run the VMgr_OAPsend.py
application:
- By double-clicking on its source files at
/vmanager_apps/VMgr_OAPsend.py
VMgr_OAPsend Example (c) Dust Networks SmartMesh SDK 1.1.0.1 Enter the IP address of the manager (e.g. 10.70.48.69 ):127.0.0.1 Enter MAC address of mote to send to (e.g. FF-FF-FF-FF-FF-FF-FF-FF ): Enter the desired command; 1=Temperature ON/OFF 2=PKGen ON/OFF or service only 3=LED ON/OFF 3 Turn Blue LED ON or OFF?off Sending string "BQAC/wIDAgABAA==" to FF-FF-FF-FF-FF-FF-FF-FF Sending string "BQAC/wIDAgABAA==" to FF-FF-FF-FF-FF-FF-FF-FF Sending string "BQAC/wIDAgABAA==" to FF-FF-FF-FF-FF-FF-FF-FF Script ended normally