Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

SmartMesh IP mote software contains both CLI (human interaction) and API (programmatic machine interaction) commands for configuring persistent parameters that may be unique per mote. Typically these would be set during manufacturing, or in the field in a commissioning installation step.

There are commands for setting/getting:

  • Network ID
  • Join key - set only
  • Join duty cycle
  • MAC address - can be used in place of the hardware serial number
  • Power source info
  • Routing mode
  • Transmit power
  • Advertisment key - allows per-vendor (manufacturing step) or per-installation (commissioning step) advertisement authentication

The OCSDK library provides CLI commands for setting/getting all these parameters using the mset command, which is available to any application that exposes the CLI.  However, there is no built in API in the OCSDK, so customers wanting to provide programmatic support will need to implement their own.  

The 02-uart sample application in the

On-Chip Software Development Kit

 serves as a starting point for any such application - it consists of an example mote project and a Python application.  The application presents a human readable interface on the CLI UART that allows the user to send and receive strings from the Python application via the HDLC-encoded API UART, and vice versa.  

Encoding of the commands to set parameters is left to the application developer. Some options include:

  • Directly mirror the IP Mote Serial API
  • Tag-Length-Value Tuples
  • Binary encoding of a set of parameters

 

  • No labels