If you installed the correct drivers, you only have to insert the USB port in your computer: The manager will power up and start creating a network automatically.
Similar to the mote via the interface board, you should now see 4 new serial ports, where the third and fourth give you access to the CLI and API, respectively.
Factory Default Values
By default the manager is shipped with a well-known network ID and join key that your application will need to connect to its network, so you do not need to configure anything. However, it is useful to know about certain commands available through the CLI. These commands are presented in the next section, while relevant default values for its configuration parameters are listed in Table 4.
Useful CLI Commands
With the manager connected to your computer via USB:
- Just like with the mote, identify the correct serial port name and connect to the CLI with a serial terminal of your choice (again, see Table 1 for configuration details).
Unlike the mote, you will first have to login to have access to the commands we want:
- You now have access to a wide range of commands, where the most interesting ones are shown below.
sm: Displays information about the motes in the network. The manager itself will always be the first one listed (with MoteID 1)
> sm
MAC MoteId State Nbrs Links Joins Age StateTime
00-17-0D-00-00-60-39-35 1 Oper 1 21 1 0 4-05:25:14
00-17-0D-00-00-58-63-C1 2 Oper 1 9 49 4 0-00:28:39
trace motest on: Turns on a trace which shows mote state transitions as they connect to or drop from the network.
> trace motest on
> 103190771 : Mote #2 State: Lost -> Negot1
> 103192421 : Mote #2 State: Negot1 -> Negot2
> 103195937 : Mote #2 State: Negot2 -> Conn1
> 103197989 : Mote #2 State: Conn1 -> Conn2
> 103202092 : Mote #2 State: Conn2 -> Oper
set config <param>=<value>: Set a configuration parameter in the Manager. This change is persistent, but only takes affect after a reboot.
show config: Show the persistent configuration parameters
> show config
netid = 1229
txpower = 8
frprofile = 1
maxmotes = 33
basebw = 9000
dnfr_mult = 1
numparents = 2
cca = 0
channellist = 00:00:7f:ff
autostart = 1
locmode = 0
bbmode = 0
bbsize = 1
license = 00:00:00:00:00:00:00:00:00:00:00:00:00
ip6prefix = fe:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00
ip6mask = ff:ff:ff:ff:ff:ff:ff:ff:00:00:00:00:00:00:00:00
radiotest = 0
bwmult = 300
onechannel = 255
set acl mac=<macAddr> key=<joinKey>: Add an Access Control List entry for the given MAC address and mote specific join key. This change is persistent, but only takes affect after a reboot.
> set acl mac=01-23-45-67-89-AB-CD-EF key=000102030405060708090A0B0C0D0E0F
Set OK
show acl: Show the motes currently whitelisted on the manager Access Control List.
> show acl
ACL:
MAC: 01-23-45-67-89-AB-CD-EF
----
delete acl <macAddress | all>: Remove all entries in the Access Control List or the one specified by the given MAC address.
> delete acl all
Delete all ACL records
reset system: Software reset (reboot) of the manager.
> reset system
Reset initiating. Please wait
> Disconnecting; 1
70978 : Lost
71702 : Lost
72425 : Lost
73148 : Lost
73871 : Lost
74594 : Lost
75318 : Lost
SmartMesh IP Manager ver 1.2.4.1. (x100)
829 : **** AP connected. Network started