Please download the offline version of RS. from the official website https://bucket-download.slamtec.com/wordpress/RoboStudio%20v1.7.5_rtm.rar
a).Check whether the serial port driver is installed in Device Manager. You can find the driver compressed file in the \rplidar_sdk\tools\cp2102_driver directory, and select the installation file according to your operating system after extraction: 64-bit operating systems use CP210xVCPInstaller_x64 files to install drivers, 32-bit operating systems use CP210xVCPInstaller_x86 files to install drivers.
b).Check whether the serial port adapter board is used correctly, and replace the serial port adapter board for testing.
c).Replace the USB port, it is possible that the USB port is unable to support the power. The USB power cord and the Micro-USB are connected at the same time. You can also use a 5V 2A mobile phone charger to supply power separately. You can also verify the problem of insufficient power supply of computer USB.
d).Check if there are other serial port tools connected to the Lidar at the same time, and the Lidar cannot be opened by two serial port tools at the same time.
e).Check whether the Lidar serial port line is in good contact, you can remove the bottom cover to see if the serial port line comes off.
f).Overvoltage protection prevents the Lidar from starting, and the supply voltage is between9V and 5.2V. The overvoltage protection values can be tested using the wiring method below.
g).If the above is normal, it means that the serial port of the Lidar circuit board is damaged or broken, it needs to be returned to the factory for repair. RS cannot be connected to a Lidar with a network port accessory board.
a)Check whether the IP address of the network port accessory board can be pinged, and if it cannot be pinged, check whether the IP address of the local machine is set to the same network segment. You can also restore to the factory settings by pressing the button, and the button near the Lidar power port can initialize the accessory board, after initialization, you need to reflash the firmware and set up a new IP. Check whether the network port accessory board is used correctly.
S2 network port accessory board:
b).If the above is normal, there may be a problem with the network port adapter board, you can replace the network port adapter board to verify, or you can use the serial port adapter board to verify the quality of the Lidar, for details, refer to: RS cannot connect the Lidar with serial port accessory board.
c).How to connect when flashing firmware
Existing Lidars do not support Ubuntu 22.04, customers are advised to use Ubuntu 20.04
The Lidar is not fog-proof and cannot be used normally in dense fog.
Insufficient Lidar voltage.
Apart from A1M8, other Lidars have corresponding network port accessory versions, but use the network port accessory version corresponding to the Lidar baud rate.
It can be used, but it will cause some damage to the Lidar motor, and it is not recommended to do so.
After connecting to RS to complete the scan, you can click to download the Lidar data (TXT file format)
Lidar USB external wiring is not recommended to exceed 1M, if the wiring is too long will cause insufficient power supply, you can use the network port accessory version or the network port version of the Lidar.
Properly connect the USB adapter of the Lidar and the USB port of the power cable.
Visual Studio 2022 is not supported and customers are advised to use Visual Studio 2019 or 2010.
Plug and unplug the power cord and the USB cable of the USB adapter at the same time. Ensure that the two USBs are plugged and unplugged at the same time (within 3 seconds), and restart to check whether the power supply voltage meets the power requirements.
Check whether the USB is authorized (if the virtual machine needs to restart the serial port accessory board, select Connect to the virtual machine): ls -l /dev |grep ttyUSB
Licensed USB: sudo chmod 666/dev/ttyUSB0
16.Common commands for serial port tools (A series Lidar)
Interpretation:
You can modify the node.cpp to achieve the effect that you want. Node.cpp in the directory
/home/pan/Desktop/S2ROS1/src/rplidar_ros-master/src
Follow the image below to add it
else
{
ROS_ERROR("Can not start scan: %08x!", op_result);
}
bool is_first_scan=true;
ros::Time start_scan_time;
if (op_result == SL_RESULT_OK) {
if(is_first_scan){
drv->setMotorSpeed(600);//rpm
is_first_scan=false;
}
op_result = drv->ascendScanData(nodes, count);
float angle_min = DEG2RAD(0.0f);
float angle_max = DEG2RAD(360.0f);
Take the A3M1 Lidar, for example
In /S2ROS120221020/src/rplidar_ros-master/launch/, modify the rplidar_a3.launch file, and modify the respective mode at the bottom. ROS can be started to verify that the mode modification is successful.