# Mavproxy script issues

**URL:** <https://discuss.bluerobotics.com/t/mavproxy-script-issues/5969>\
**Category:** Blue Robotics Software\
**Created:** [September 10, 2019, 2:46pm UTC](https://discuss.bluerobotics.com/t/mavproxy-script-issues/5969 "2019-09-10T14:46:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pclement28](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pclement28](https://discuss.bluerobotics.com/u/pclement28)\
**Post date:** [September 10, 2019, 2:46pm UTC](https://discuss.bluerobotics.com/t/mavproxy-script-issues/5969/1 "2019-09-10T14:46:16Z")

</div>

Hello,

Recently I wanted to devellop some script for controlling the ROV from the RPI. I have cloned the SD card and I was working on a copy, every thing was working perfectly the computer companion was able to launch my script and they were working perfectly but it was a bad quality sd card, she got corrupted. I redit the script on the original sd card but now they are working only when the ROV is connected to the surface computer.

I launch them with crontab or manually from the rpi with a keyboard, I see the process working on the process list (ps -ef) but nothing is hapenning when the ROV isn’t connected with the surface computer. I think the probleme is with the mavproxy port but I don’t know where I added  
“–out udpout:localhost:9000  
–out udp:localhost:9000”

On “192.168.2.1:2770/mavproxy”

And in my script I use "master = mavutil.mavlink\_connection(‘udp:0.0.0.0:9000’).

For exemple when I try to lauch my script who make the light blinking ( while true with send manual input with the light\_cycle) the lights didn’t blink when disconnected but when I reconnect to the surface computer QGC display a light level = 13%.

Someone have faced this problem?

---

<div class="post-metadata">

**Author:** ![pclement28](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pclement28](https://discuss.bluerobotics.com/u/pclement28)\
**Post date:** [September 12, 2019, 6:20pm UTC](https://discuss.bluerobotics.com/t/mavproxy-script-issues/5969/2 "2019-09-12T18:20:42Z")

</div>

Up

I’m totally lost with that problem. The script keep working while connected to surface computer but when it’s not connected they don’t work

---

<div class="post-metadata">

**Author:** ![patrickelectric](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/patrickelectric/32/2162_2.png) [@patrickelectric](https://discuss.bluerobotics.com/u/patrickelectric)\
**Post date:** [September 14, 2019, 6:50pm UTC](https://discuss.bluerobotics.com/t/mavproxy-script-issues/5969/3 "2019-09-14T18:50:45Z")

</div>

Hi,

Check the example code and comments of **[Run pyMavlink on the companion computer](https://www.ardusub.com/developers/pymavlink.html)**.
