8000 Connect CygLidar to UART on RPi4 doesn't work. · Issue #24 · CygLiDAR-ROS/cyglidar_d1 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Connect CygLidar to UART on RPi4 doesn't work. #24

New issue

Have a question about this project? 8000 Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Thanasispapam opened this issue Mar 30, 2022 · 4 comments
Open

Connect CygLidar to UART on RPi4 doesn't work. #24

Thanasispapam opened this issue Mar 30, 2022 · 4 comments

Comments

@Thanasispapam
Copy link
Thanasispapam commented Mar 30, 2022

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)?

@cygbot
Copy link
Contributor
cygbot commented Apr 4, 2022

We've answered by e-mail.

thank you.

@mrezzaaa
Copy link
mrezzaaa commented Sep 1, 2022

why not answered here? we need solutions too

@cygbot
Copy link
Contributor
cygbot commented Sep 23, 2022

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.

@MallakAbunimeh
Copy link

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:

image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants