communication lost between arduino and raspberry (rosserial)
Hello, im trying to publish msgs with the raspberry and i have an arduino card wich subscribe to these msg and send commands according to theses data to a wheelchair.
when i execute the program, it works for a moment, but few seconds later, the communication is lost between the arduino and the raspberry and also the arduino logs are not displayed.
knowing that the wheelchair works with the baud (115200)
in my program, i used also RpLidar and when i connect it to the raspberry the communication is lost earlier
it can be a problem of synchronization between the arduino and the raspberry ? baud or rosserial problem ?
Thanks !
Asked by robotham on 2019-07-26 03:11:00 UTC
Comments
Hi, Indded, it seems that you have a sync issue. Is jour Arduino code calling
nh.spinOnce()
often enough? Like every 100 ms? Maybe you should reduce your Arduino to code to a simple example and add it to your original post (if the issue is still here with that minimal code.Asked by rreignier on 2019-07-26 10:24:55 UTC
what is the CPU laod an your PI? is it a PI1 PI2 PI3 or PI3+
Asked by duck-development on 2019-07-26 11:11:32 UTC