This application was added in REL-1.0.5.
Introduction
AclCommissioning is a command-line (non graphical) tool that allows you to automatically construct an Access Control List (ACL) on a SmartMesh IP Manager.
It connects to:
- The SmartMesh IP Manager
- The SmartMesh IP Mote running in slave mode - motes are connected in sequence as prompted to add them to the list.
Mote modes are discussed in the SmartMesh IP User's Guide.
Running
You can run the AclCommissioning application:
- by double-clicking on the Windows executable at
/win/AclCommissioning.exe
- by double-clicking on its source files at
/src/
bin/AclCommissioning/AclCommissioning.py
(may require additional steps on non-windows OSes)
Description
The AclCommissioning application demonstrates that network commissioning (setting network ID and join key) can be done automatically using the manager and mote APIs. The program flow is as follows:
- It prompts the user for the manager API COM port, connects to the manager, and sets the manager network ID
- It prompts the user for the mote API COM port, connects to the mote, retrieves its MAC address, randomly generates a join key and sets it on the mote.
- It then adds the mote's MAC and join key to the manager's ACL, then prompts the user to attach the next mote, etc.
The network ID can be changed by modifying the Python source.
=================================================== ACL Commissioning (c) Dust Networks SmartMesh SDK 1.0.5.138 serial port of SmartMesh IP Manager (e.g. COM11): COM11 ok. connected to manager at COM11. ==== Setting the network ID on Manager to --> 2560 Tuple_dn_setNetworkConfig(RC=0) serial port of SmartMesh IP Mote (e.g. COM15): COM15 ok. connected to mote at COM15. ==== Retrieving the Mote MAC address Mote MAC is --> [0 ,17 ,d ,0 ,0 ,38 ,33 ,59] ==== Setting the network ID on Mote to --> 2560 Tuple_dn_setParameter_networkId(RC=0) ==== Programming the Mote join key as follows --> [131, 98, 192, 58, 207, 246, 155, 101, 95, 119, 124, 154, 241, 108, 161, 218] Tuple_dn_setParameter_joinKey(RC=0) ==== Programming the Manager ACL with this Mote information Tuple_dn_setACLEntry(RC=0) Remove the mote, connect the next one and hit any key. <Ctrl>+C to quit ...