Skip to content
New issue

Have a question about this project? 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

C1 does not work with ultra_simple tests #127

Open
alfem opened this issue Mar 13, 2024 · 3 comments
Open

C1 does not work with ultra_simple tests #127

alfem opened this issue Mar 13, 2024 · 3 comments

Comments

@alfem
Copy link

alfem commented Mar 13, 2024

Hi!

I am testing a brand new C1 Lidar.

I downloaded master branch today, compiled it in a Jetson Orin (Ubuntu 20.04) and then

sudo ./ultra_simple --channel --serial /dev/ttyUSB0

After a second, this message comes up:


Ultra simple LIDAR data grabber for SLAMTEC LIDAR.
Version: 2.1.0
Error, cannot bind to the specified serial port /dev/ttyUSB0.

Lidar does nothing at all (no noise, buzzs...). Only a green light in the serial-USB board lights up.

Any clue?

@alfem
Copy link
Author

alfem commented Mar 13, 2024

Tested in windows, with robotstudio, and lidar works. Also tested sdk in a linuxmint laptop, and does not work.

@ss32
Copy link

ss32 commented Mar 29, 2024

It's trying to bind to an IP and it doesn't appear that they've added support for serial ports. custom_baudrate is the only app that works, and only if you pass it the default baud of 460800

#128

@ss32
Copy link

ss32 commented Mar 29, 2024

I was able to get the sample apps working by applying the patch in #125 and running custom_baudrate first

$ ./output/Linux/Debug/custom_baudrate /dev/ttyUSB0 460800
Baudrate negotiation demo for SLAMTEC LIDAR.
Try to establish communication to the LIDAR using the baudrate at /dev/ttyUSB0@460800 ...
The baudrate detected by the pair is 0 bps. Error: 100.000 %
Warning, actual BPS error is too large. Communication based on this baudrate may fail.
Wow, we just communicate with the LIDAR using non-standard baudrate : 460800!.
SLAMTEC LIDAR S/N: **************************
Model ID: 65

Firmware Ver: 1.01
Hardware Rev: 18
$ ./output/Linux/Debug/simple_grabber --channel -s /dev/ttyUSB0 460800
Try to connect to the /dev/ttyUSB0 with the baudrate at 460800...
SLAMTEC LIDAR S/N: **************************
Version:  SL_LIDAR_SDK_VERSION 
Firmware Ver: 1.01
Hardware Rev: 18
Lidar health status : OK. (errorcode: 0)
waiting for data...
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                         **
        **   **  **************************************                  **
***************************************************************************
---------------------------------------------------------------------------

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

2 participants