Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Image RemovedImage Added
Figure 3: The DC2274A SmartMesh IP USB Manager

...


Refer to the SmartMesh IP User's Guide for a complete list of default configuration parameters for the manager.

 

5.2 Useful CLI Commands

...


With the manager connected to your computer via USB:

  1. 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).
  2. Unlike the mote, you will first have to login to have access to the commands we want:

    Code Block
    languagetext
    titleLogin
    > login user
  3. You now have access to a wide range of commands, where the most interesting ones are shown below.

 

Anchor
sec_managerCLIcommands
sec_managerCLIcommands

Panel
titleCLI Commands
  • sm: Displays information about the motes in the network. The manager itself will always be the first one listed (with MoteID 1)

    Code Block
    languagetext
    titleShow Motes
    > 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.

    Code Block
    languagetext
    titleTrace Mote States On
    > 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.

    Code Block
    languagetext
    titleSet Configuration Parameter: Network ID
    > set config netid=1229
  • show config: Show the persistent configuration parameters

    Code Block
    languagetext
    titleShow Configuration
    > 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.

    Code Block
    languagetext
    titleAdd ACL Entry
    > 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.

    Code Block
    languagetext
    titleShow ACL
    > 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.

    Code Block
    languagetext
    titleDelete ACL Entry
    > delete acl all
    Delete all ACL records
  • reset system: Software reset (reboot) of the manager.

    Code Block
    languagetext
    titleReset 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
Info

Refer to the SmartMesh IP Embedded Manager CLI Guide for a complete list of available CLI parameters for the manager.