Connect CygLidar to UART on RPi4 doesn't work.
Hello everyone, I have issues with the Cyglidar when i am trying to connect and use it with a UART connection. I have changed all the dependencies in the launch file, in the code cyglidar_pcl_publisher.cpp and the rules. Also i have changed the baudrate of the UART on RPi4 to 3000000, which is required for the sensor. I am able to power it up, the red lights of the sensor are working and the back light is green. So it behaves like when it is connected in the USB port. The issue here is that, although all are working as supposed to, there are no data in the topics. Do you have any idea why is this happening and what might be the solution to this (if there is one)?
We've answered by e-mail.
thank you.
why not answered here? we need solutions too
I hope the article below is helpful to you.
https://www.cygbot.com/downloads How to connect CygLiDAR D1 directly to Raspberry Pi via UART without USB Converter.
Hello. I followed the steps of the article you provided in cygbot downloads website about how to connect CygLiDAR D1 directly to Raspberry Pi via UART without USB Converter but it didn't work for me. There were 3 codes provided to use and when I tried to run code 2 on RPI it's showing that it's sending the [90, 119, 255, 2, 0, 8, 0, 10] data bytes but it is not receiving any complete data. So, I tried to run code2 on ubuntu instead to check it using USB connection and I got the same issue. I checked the baud rate of the cyglidar, type of USB port am connecting to and installed the needed libraries but still am not being able to connect the lidar on RPI nor Ubuntu.
This is the output that I got on Ubuntu after running code2:
I added a print statement after the while loop to trace the code, and it showed after executing the code, but the code halted after this print statement, and it didn't get any complete data.
When I run the code on RPI, I got the same output as well.