Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The RawSerial application allow the user to send API commands as raw hex bytes to a mote or manager and see the responses.  It does not perform HDLC encoding.

...

No Format
Raw Serial Application - (c) Dust Networks
SmartMesh SDK 1.0.5.138

> help
Available commands:
 - help (h): print this menu
 - info (i): information about this application
 - quit (q): quit this application
 - uptime (ut): how long this application has been running
 - connect (c): connnect to a serial port
 - baudrate (b): set the baudrate
 - tx (tx): transmit a number of bytes, represented in hexadecimal (e.g. "ab12eb44")
> 

 

Use As an example, use the connect command to connect to the manager's API port:

...

You can then use the tx command to send a Hello packet:. You can use the HdlcTool to do the encapsulation of the raw API payload.

No Format
> tx 7e00010003040000f7ce7e
> 

...

This will cause the manager to respond with a helloResponse packet:. Again you can use HdlcTool to decapsulate the response.

No Format
rxByte: 7e
rxByte: 00
rxByte: 02
rxByte: 00
rxByte: 05
rxByte: 00
rxByte: 04
rxByte: 00
rxByte: 00
rxByte: 00
rxByte: e3
rxByte: dc
rxByte: 7e

...