User Manual
© 2017 Inertial Sense, LLC 7 11/30/2017
$ cmake ..
3. Compile using make.
$ make
4. Add current user to the "dialout" group in order to read and write to the USB serial communication ports:
$ sudousermod -a -G dialout $USER
$ sudousermod -a -G plugdev $USER
(reboot computer)
5. Run executable
$ ./bin/cltool
2.6.2 Compiling in Windows (MS Visual Studio)
1. Open Visual Studio solution file (<Path to SDK>/InertialSenseCLTool/VS_project/InertialSenseCLTool.sln).
2. Build (F7).
2.6.3 Running CLTool
The Windows executable is “cltool.exe” and the Linux/Mac executable is “cltool”.
2.6.3.1 Command Line Options
Run the CLTool with the “-h” option to display the command line options.
$ ./bin/cltool -h
DESCRIPTION
Command line utility for communicating, logging, and updating
firmware with Inertial Sense product line.
EXAMPLES
cltool -c=/dev/ttyS2 # stream post processing data (PPD) with INS2 (default)
cltool -c=/dev/ttyS2 -lon -lts=1 # logging to timestamp directory, stream PPD + INS2 data
cltool -c=/dev/ttyS2 -lon -msgSol=3 # logging, stream PPD + INS3 data
cltool -c=/dev/ttyS2 -baud=115200 -msgINS2 -msgGPS -msgBaro # stream multiple data sets at 115200 baud rate
cltool -c=/dev/ttyS2 -msgSol=0 # disable solution stream
cltool -rp=logs/20170117_222549 # replay log files from a folder
cltool -c=/dev/ttyS2 -b= fw/IS_uINS-3.hex # bootload firmware
cltool -c=* -baud=921600 # 921600 mbps baudrate on all serial ports
OPTIONS (General)
-h --help display this help menu
-c=COM_PORT select the serial port. Set COM_PORT to "*" for all ports and "*4"
to use only the first four ports. Not specifying this parameter is same as “-c=*”
-baud=BAUDRATE set serial port baudrate. Options: 115200, 230400, 460800, 921600, 3000000 (default)
-b=FILEPATH bootload firmware using .hex file FILEPATH
-q quite mode, no display
-s scroll displayed messages to show history
-stats display statistics of data received
OPTIONS (Solution Streaming)
-msgSol[n] Post Process Data (PPD) = DID_GPS + DID_MAGNETOMETER1 + DID_MAGNETOMETER2 +
DID_BAROMETER + DID_FLASH_CONFIG. Use -msgSol0 to disable solution streaming.
n= 1: PPD + DID_DUAL_IMU + DID_INS1
n= 2: PPD + DID_DUAL_IMU + DID_INS2 (recommended default)
n= 3: PPD + DID_DUAL_IMU + DID_INS3
n= 4: PPD + DID_DUAL_IMU + DID_INS4
n=11: PPD + DID_DELTA_THETA_VEL + DID_INS1
n=12: PPD + DID_DELTA_THETA_VEL + DID_INS2
n=13: PPD + DID_DELTA_THETA_VEL + DID_INS3
n=14: PPD + DID_DELTA_THETA_VEL + DID_INS4
INS output only without PPD
n=21: DID_INS1, n=22: DID_INS2, n=23: DID_INS3, n=24: DID_INS4
OPTIONS (Message Streaming)
-msgINS[n] message DID_INS_[n], where [n] = 1, 2, 3 or 4 (without brackets)
-msgIMU[n] message DID_IMU_[n], where [n] = 1 or 2 (without brackets)
-msgDualIMU message DID_DUAL_IMU
-msgDThetaVel message DID_DELTA_THETA_VEL
-msgMag[n] message DID_MAGNETOMETER_[n], where [n] = 1 or 2 (without brackets)
-msgBaro message DID_BAROMETER
-msgGPS message DID_GPS
-msgSensors message DID_SYS_SENSORS
OPTIONS (Logging to file, disabled by default)