Home        Store        Learn        Blog

Sometimes ardusub on pixhawk doesn't start automatically

Hi everyone! I work with bluerow2 and I have some bug, for now, I just don’t know how to fix it. Sometimes, when I connect battery to ROV, raspberry has started, qgc started to show video to me, but pixhawk not responed. I tried to restart pixhawk from web-UI, doesn’t work. After it I start to reboot raspberry, pixhawk didn’t started either. Only force reconection of battery work. Is there some scripts or commands to force reboot pixhawk
from companion.

Hi @YuryArnaut,

What is your power supply to the Raspberry like? Do you have additional usb peripherals?

Hi William!
No, I have bought full constructed row. There is no other connections. I check autostart of mavproxy, it started. Only when I reboot row from qgc, it can’t regain connection. But when I stoped process (kill -9 pidOfProcess), it reconnected correctly, but it was ttyACM1 instead of 0 for symbolic link. Where is the script, where you make this symbolic link and add device to it?
Maybe I should change queue of started scripts?

We actually use an udev rule to create a link at /dev/autopilot, take a look here.

It still sounds like something is not right in your hardware. I’d say either the Pixhawk usb cable is faulty (causing it to lose connection and reconnect shortly after, changing the tty device) or the UBEC is not providing enough power for both the pixhawk and the pi.

Do you have another usb cable you could try?

Thank you William! I fix it by creating process which looking is ttyACM connected or not, and if it doesn’t connected it restart mavproxy.

1 Like