communication lost between arduino and raspberry (rosserial)

asked 2019-07-26 03:11:00 -0600

robotham gravatar image

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 !

edit retag flag offensive close merge delete



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.

rreignier gravatar image rreignier  ( 2019-07-26 10:24:55 -0600 )edit

what is the CPU laod an your PI? is it a PI1 PI2 PI3 or PI3+

duck-development gravatar image duck-development  ( 2019-07-26 11:11:32 -0600 )edit