-
Notifications
You must be signed in to change notification settings - Fork 255
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
*** buffer overflow detected ***: ./ultra_simple terminated #88
Comments
I am using the S2 and had to run it as sudo and also specify the baudrate as 1000000 -- this is specific to the LiDAR you're using. |
Hi tcexeexe, Did you manage to resolve the problem? Anyone with solution? |
I tried Only |
Did you change permission to 777, some are suggesting 666, but for me only 777 worked. |
Which model do you have? A2M12 has 256000, but check as mine has 257175 without errors. |
If you are still having problems please let me know and I will find my solution for it. Took me two days but problem solved. |
But cannot help with S2 model as I have only A2M12, so via USB. |
@LDec-AlmostHuman I'm jumping into the thread because I have an A2M12 as well and have been getting the buffer overflow error. Although, I seemed to have reached a state where I am back to a "cannot bind to the specified serial port /dev/ttyUSB0" error that I had been experiencing before. If I'm still having issues after I get through that, can I call on you to dig up the solution you found? |
I will do that on Sunday, the latest if you don't mind. My setup was Ubuntu 20.04 and not in docker. Having problems with docker exposing /dev even with --privileged, but when I will fix that issue I will post as well docker version of it. |
I was able to get this working on my raspberry pi 4 running ubuntu 22.04 without having to chmod /dev/ttyUSB0 or add myself to the dialout group. I did have to run "./ultra_simple --channel --serial /dev/ttyUSB0 256000" as sudo though as a result. I'm still having issues getting it to work on my jetson nano, which is running xubuntu 20.04. I'll have to look into where I went wrong there. |
@totenkatze |
@totenkatze I was testing above setup of Lidar with Jetson Nano with JetPack 4.6.1 and I have managed to spin Lidar, but couldn't see results as Nano froze and since I have a problem with powering via jack, only powering via USB seems to work. PSU is 5.2V 4A under full load and 5.22V without any load. No idea what happened, but will have time to work on it by the end of the month so will post as well Nano instructions. |
@LDec-AlmostHuman Thank you for sharing the instructions above. I'll give them a try on my nano this weekend. I have tried most of the items in the instructions without success, but I'm curious to see if adjusting the baud rate would help me out. Getting things running so effortlessly on my Pi with 22.04 while still having such difficulty on the nano makes be feel a bit less crazy. I haven't looked into the Orin yet. I'm just getting started with robotics as a hobby. I have a few old Raspberry Pis, two Jetson Nanos, and an Orange Pi 5 on the way. With the $XXXX dollars I've spent on robots and parts, I think that I should have just starting doing cocaine to save a bit of money. |
@totenkatze |
@totenkatze |
Anyone succeed with my guidance? If not please let me know. |
@LDec-AlmostHuman the link you provided is the same that I used to set up my nano a few weeks ago. Comments in the thread mention a B02 board a lot. Is that really a thing or are they confusing it with the B01? I have a B01 also, and I didn't have any trouble booting from the image without modifying extlinux.conf. I think I'll just start from a fresh image. It seems easier than trying to figure out if something I've done in the last several weeks has caused the issue. |
@totenkatze |
@totenkatze |
@LDec-AlmostHuman I started from fresh install of xubuntu and installed git, make, g++, etc. and after the compile, it worked when running as sudo. I chmod /dev/ttyUSB0 to 666 (any form of XX6 works) and it worked without sudo privileges. Now I have everything working on both my Pi and Nano =). |
Hello~
I use order
./ultra_simple --channel -s ttyUSB0 256000
to test the RPLIDAR S1 on jetson nano, but en error occurred thatl have had use the order 'sudo chmod a+rw /dev/ttyUSB0' to set the UART permission
There is any solution about this problem?
The text was updated successfully, but these errors were encountered: