The SLAMBOX
configuration can be configured via serial communication with ascii texts
Working with Unix OS, use minicom
to configure the SLAMBOX
Install minicom
Add group to user
Need to add user to group dialout
for using the USB or serial port without sudo
permission.
Then reboot your pc to update the user group
Set port and baudrate
First, plug in the USB2TTL module
Check device path.
Set the serial port and baudrate of your PC. In this tutorial, ${SERIAL_PORT}
is /dev/ttyUSB0
Set Hardware Flow Control to No
. It can be done by pressing <Ctrl>+a
-> o
-> Serial port setup -> Press f
.
Once you set Hardware Flow Control
to NO, presse <Enter>
-> <ESC>
to escape setting menu.
For your convinience, turn Local echo on by pressing <Ctrl>+a
-> z
-> e
. Minicom does not show you what you type if Local echo is off.
Then, start configuration as your needs by following below section.
NOTE Once you have finished setup process, minicom must be exited in order to continue on next step.
Minicom can be exited by pressing <Ctrl>+a
-> x
-> <Enter>
Install ComPortMaster
Working with Windows OS, use ComPortMaster to configure the SLAMBOX
Install the ComPortMaster from the link
Connect to SLAMBOX serial
Please follow settings as below screenshot. Device
name might be different depending on your OS condition.
If you successfully open port, start configuration as your needs by following below section.
NOTE Once you have finished setup process, you must disconnect connection on ComPortMaster to continue on next step.
Use ascii command to change configuration of SLAMBOX
$
and ends with #
which is header and ender of the command$CONFIG#
NOTE The Baudrate of serial connection for setting is fixed to 115200
You can see current cofiguration status on SLAMBOX by following command.
SERIAL_ENABLE
with option 0
or 1
. 0
means to disable and 1
means enable this optionSERIAL_BAUD
with option baudrate.NOTE: The maximum and minimum baud rate could be different depands on your USB2TTL device. NOTE Regardless of whether you disable serial communication, this configuration mode will always work with baudrate 115200.
Available baud rate |
---|
9600 |
19200 |
57600 |
115200 |
230400 |
921600 |
1000000 |
1152000 |
1500000 |
2000000 |
2500000 |
3000000 |
3500000 |
4000000 |
Example) Enable serial communication
Example) Set baudrate of serial communication to 921600
NOTE If you set both Serial
and UDP
communication enabled, pointcloud will only be sent via UDP
communication.
ETH_ENABLE
with option 0
or 1
. 0
means to disable and 1
means enable this optionETH_PORT
with option port to connect. ex) 8888ETH_IP
with option IP of host. ex) 192.168.1.50Example) Enable ethernet communication
Example) Set ethernet communication port to 21580
NOTE If you set both Serial
and UDP
communication enabled, pointcloud will only be sent via UDP
communication.
MAVLINK_ENABLE
with option 0
or 1
. 0
means to disable and 1
means enable this optionMAVLINK_BAUD
with option baudrate.MAVLINK_TYPE
with options 0
to 1
option | type |
---|---|
0 | px4 |
1 | ardupilot (apm) |
NOTE Please check the Avaiable baud rate table
Example) Enable Mavlink communication
Example) Set baudrate of Mavlink communication
Example) Set Mavlink type for PX4
LIDAR_TYPE
with option 0
to 5
option | sensor |
---|---|
1 | mid360 |
2 | ouster32 |
3 | ouster64 |
4 | ouster128 |
5 | avia |
7 | velodyne_puck |
8 | ML-X |
Example) Set LiDAR type to mid360
NOTE Once you have changed LIDAR_TYPE
, restarting SLAMBOX device is required to take an effect.
NOTE If you are done with setting SLAMBOX, you must exit serial communication application.