Now several Connects work simultaneously. Both with UDP and TCP. Top!
I have tested like this:
Updated ESP32 in Dragonlink to v2.62.0
autom. connect from QGC via UDP
autom. connect from MP via UDP
If the flight mode is changed in QGC, it changes synchronously at MP! Top!
But there is still a problem when the tracker module should connect. This does not work yet. For TCP I have attached the monitor log. But it does not work with UDP either.
You would have to try if a module with WiFi-In can connect to a module with Wifi-Out, which worked yesterday, but not with v2.62.0.
Starting MavToPass_v2.62.0 …
Display support activated
EEPROM initialised successfully
EEPROM settings read and adopted
Target Board is ESP32 / Variant is Heltec Wifi Kit 32
Ground Mode
Battery_mAh_Source = 3 - Define battery capacities in the LUA script
RSSI Override for testing = 70%
Mavlink WiFi In
Mavlink Serial Out
WiFi mode is STA
Protocol is TCP/IP
No Bluetooth options selected, BT support not compiled in
Mavlink serial on pins rx = 27 and tx = 17
S.Port on ESP is inverted on tx pin = 14
Wi-Fi mode set to STA sucessfully
Trying to connect to RHS_FPV_MOBIL.
WiFi connected!
Local IP address: 192.168.4.94 port: 5760
WiFi RSSI:-42 dBm
Local outgoing tcp client connect failed, retrying
Local outgoing tcp client connect failed, retrying
Local outgoing tcp client connect failed, retrying
Local outgoing tcp client connect failed, retrying
Eric
I am using openhd with ardupilot 4.0.5. radio is taranis x9d & crossfire
As I really like yaapu script, can I use your converter in this way :
Piground (tx/rx) ===> your converter ===> taranis sport in the bay
Hi Reinhard, thanks for the kind words, but we are not quite there yet.
Mav2PT generally runs as a server. However, if Mavlink FC side I/O is selected, we become a client of the sending device. Mav2PT will host one, and only one, “outgoing” local tcp client session. Only one is possible, because you can logically only have one source of Mavlink telemetry to translate and pass on.
If we select Mavlink WiFi GCS side I/O, and remember we are a server, we now accept multiple “incoming” remote tcp client sessions. These could be QGC, MP and a tracker and so on. Each remote client device would need to initiate a proper tcp client session before it could receive and send tcp traffic over that socket.
To date we have not supported WiFi FC side I/O AND WiF GCS side I/O simultaneously, though the code is there if we choose to activate it. Mav2PT would then be a WiFi RELAY, in addition to a S.Port translator. In our options right now, both default and web settings, we make FC wifi I/O and GCS wifi I/O mutually exclusive.
Ok, I get it now. Sorry, it’s a bit hectic here right now. So I need to look at the “Local outgoing tcp client connect failed, retrying” message. Will do.
Starting MavToPass_v2.62.0 .....
Display support activated
EEPROM initialised successfully
EEPROM settings read and adopted
Target Board is ESP32 / Variant is Dev Module
Ground Mode
Battery_mAh_Source = 3 - Define battery capacities in the LUA script
RSSI Override for testing = 70%
Mavlink WiFi In
Mavlink Serial Out
WiFi mode is STA/AP
Protocol is TCP/IP
Mavlink serial on pins rx = 16 and tx = 17
S.Port on ESP is inverted on tx pin = 4
Wi-Fi mode set to STA sucessfully
Trying to connect to MavToPassthru.
WiFi connected!
Local IP address: 192.168.4.2 port: 5760
WiFi RSSI:-25 dBm
Local tcp client connected to remote server IP:192.168.4.1 remote Port:5760
TCP server started
Web support active on http://192.168.4.2
hb_count=1
hb_count=2
hb_count=3
Mavlink good!
EDIT: Maybe your boards were very close? Or there was some other interference?
With TCP, a server must be addressed by IP address. The Mav2PT server does not have the IP 192.168.4.1 but is a Wifi client in the network of the LTE router with the client ID 192.168.4.91.
Do I have to change the server IP address for the Mave2PT in the tracker?
With UDP a broadcast is sent, server/client connect automatically, there is no actual server IP, only the broadcast address .255. But also a UDP connection of Mav2PT in the tracker is not possible.
You can connect two Mave2PT modules to your own wifi network if available. There you see the problem.
If in your constellation your Mav2PT client wants to connect to 192.168.4.1 via WiFi, your Mav2PT server will run with the IP address 192.168.4.1 as access point. Correct?
But if your Mav2PT server is configured as STA/AP and is connected to a WiFi router as a client, what would you change on your Mav2PT client side to allow it to connect to the Mav2PT server?