Previously I managed to run Ardupilot (client mode)->Mav Proxy(server mode, configured as proxy bypass)<-QuickGroundControl (client mode).
It worked, but I faced documentation issues (unclear syntax of IP configuration) and therefore had to use combination of UDP and TCP traffic, other combinations did not work.
My setup still had connection and reconnection issues and overall required efforts to industrialize it.
I want to try now Dynamic DNS.
Anyone tried it? How is the experience?
I believe Ardupilot will work as Client and my GCS as Server, right? Or it should be reverse?
Parameters Source, Recipient, Subject, Text, From are changeable.
Parameter Endpoint should not be changed - it tells “Pigeon” that this needs to go as an Email.
Note: hostname -i possibly will need to be changed as per RPi alternative command.
Note 2: I believe this could have been done without 3rd party web server (“Pigeon”), directly sending Email with Python. So if you prefer doing it that way - you can write/use some Python script for this.
I only now understood that my operator does not provide public IP; only internal IP.
So approach with direct connection for me not feasible.
It can be helpful for those with public IP though…
So I came back to using Mavproxy and tried to figure out what issues I was having.
So I found 2 things:
Not possible to have more than 1 “-A” option for Ardupilot - this is why my direct Wifi link was not working together with Mavproxy link.
On Internet server, I had to launch Mavproxy as root and with nohup.
Otherwise it was exiting when after some time after SSH disconnect.
So far setup is working without issues, but I need to monitor more - if Mavproxy crashes or exits on server.
/usr/bin/arducopter -A tcp:0.0.0.0:5760 -C udp:x.x.x.x:14550
Note: 0.0.0.0 should not be replaced. x.x.x.x is Mavproxy public IP on 3rd party server.
Navio2/RPi has wifi in AP mode and 3g modem.
It accepts QGroundControl connections directly over Wifi, and automatically connects to Mavproxy over 3g (and then QGroundControl can connect to same Mavproxy via Internet).
Everything is automatically starting.
I will post some details on 3g modem configuration bit later here.