Skip to content
Keoma Brun edited this page Sep 22, 2016 · 4 revisions

The MercatorCli application allows to manually test the firmware.

Run the application

python mercatorCli.py

Connect to the mote:

You must first connect to the mote to run the tx, rx, st, l, and id commands.

> c <serialport>

Where is the mote serial port (/dev/ttyUSB1, COM1 ...)

List the connection motes:

> c <serialport>

Tell the mote to start the transmission process:

> tx <serialport>

Tell the mote to start the reception process:

> rx <serialport>

Tell the mote to go in idle state:

> id <serialport>

Get the mote current status:

> st <serialport>

You should obtain something like:
{'status': 3, 'type': 2, 'mac': (5, 67, 50, 255, 2, 218, 19, 97), 'numnotifications': 1}
Refer to the firmware for the status code.