Ok, that’s good. That means that mavlink-router is routing the telemetry from the serial port to over udp.
What commands? The apsync img file is preconfigured. No extra commands are required.
You don’t need to use the --baud option when using a udp source
Generally, you should only run as root when making system modifications that require it.
Looking at the Communicating with Raspberry Pi via MAVLink — Dev documentation, those instructions are quite old and probably don’t work anymore. They need updating (thanks for pointing that out!). Hopefully I’ll have some time over the Christmas break to update them.
Rpanion is a completely different software with a different img file to download and install. You can have Rpanion or Apsync running on your Pi, not both.
Oops, that was a typo. I meant the SERIAL1_PROTOCOL (set to 2)
APSync uses mavlink-router to distribute the telemetry, and is already set to auto-start in the imgfile. You don’t need to use MAVProxy for that.
That would mean your Wifi connection is cutting out. I’m not sure why.
The Wifi range would be the limiting factor. From what I recall the Pi’s Wifi range isn’t brilliant. The exact range would depend on the Pi’s mounting in the vehicle and any potential interference from other devices. You’d need to measure it yourself for an accurate number.
All of it. Apsync will talk with any controller that runs Ardupilot.
I wrote Rpanion-server, so I’m probably a bit biased Rpanion-server is designed to be easier to use and install, but it’s quite new software so there may still be a few bugs in it.
I have my RPI zero w connected to my pixhawk 4 mini telem port and get the same error as the original post.
I only connected the tx & rx of my pi. The pi it’s powered on USB. Is GND necessary for a stable connection?
Hi guys. I have a rpi4 with the same link 1 down issue on ttyS0. Any idea how to get a link. on the web portal I can get read all the parameters and stuff. Just can’t connect via MAVProxy.
Is there anyone working on Pixhawk with Jetson Xavier NX. I have the issue that the command mavproxy.py --master=/dev/tthTHS0 --out=udp:192.168.0.119:14550 --cmd='set shownoise 0'
works sometimes, while sometimes not. Moreover, even when it does, it only works for a few min , then showing "link 1 down’ as the pic show below.
While I’m connecting the Jetson Xavier NX to Pixhawk Cube with arducopter v3.6.11 via TX RX GND to pixhawk cube telem2
Does anyone have any idea about this?
Dear ardupilot community, we are two German computer scientist guys working on a bachelor thesis for programming a drone to fly automatically through a room while measuring it. We found the following tutorial using a raspberry pi, the navio2 hat and the ardupilot software including mavlink. (Integration of ArduPilot and VIO tracking camera (Part 4): non-ROS bridge to MAVLink in Python) Unfortunately we are not able to make the raspberry pi communicate with the navio2 board via the serial0 / ttyS0 connection, although the system is correctly up and running. We always get the error “MAV link1 down” and no connection is established. As you can see from our shell, all components seem to be quite updated and running correctly. Do you have any idea what we can try next to make it working? Any help is very appreciated! Thanks in advance and regards from Germany! Stay healthy.
Same problem here …
i’ve been trying to connect a pixhawk cube black to a RPI4B . i did all the steps on mavling documentation already 3 times as i am really fresh on raspberry .
changed the serial port as said, added the line droverlay=disable-bt on boot config. after the MAV> link 1 down i can switch flighht modes but have no return. rebuilt the cable 2 times already…
Any sollutions?
trac@raspberrypi:~ $ mavproxy.py --master=/dev/ttyAMA0
WARNING: You should uninstall ModemManager as it conflicts with APM and Pixhawk
Connect /dev/ttyAMA0 source_system=255
Log Directory:
Telemetry log: mav.tlog
Waiting for heartbeat from /dev/ttyAMA0
MAV> link 1 down
MANUAL
Cheers
EDIT
i “purged” modemmanager as shown on the message above. now;
Connect /dev/serial0 source_system=255
Log Directory:
Telemetry log: mav.tlog
Waiting for heartbeat from /dev/serial0
MAV> link 1 down
I’m having the exact same problem with Jetson Nano
it runs fine but after some time i get :
RTL> no link
link 1 down
no link
no link
… repeated forever…
My problem was with the wiring of my gh1.25 connector,
try using other port e.g. connecting the telemetry port through TTL to usb to your computer,
also, flimsy power connection may cause the link to drop.