At this point I can get everything working, including the connection via basestation format to virtualradar except the correct connection between client and server. I don’t understand what I’m wrong, could you please read the log I posted above that I can’t interpret it?
In practice I seem to understand from it that the client continues to disconnect from the server but I’m not sure.
Now i try your setup
EDIT: I simply added --no-udp to my setup and solved several problems, but on mlat-client I still get this error: Fri Feb 21 19:44:56 2020 Beast-format results connection with 127.0.0.1:3018: [Errno 111] Connection refused while on mlat-server I don’t get any more errors.
You are connecting the results to the mlat server.
The mlat results are meant for dump1090-fa so they can be displayed.
Use my command line please … port 30004 is the port you want to connect to so they get sent to dump1090-fa
Really you need to try and understand what the connections do.
mlat client connects to dump1090 on 30005 to get the actual data you receive from the aircraft.
mlat client also connects to dump1090 on 30004, to provide it with mlat results.
mlat client also needs to connect to the mlat server to send it messages and the server will on the same connection send it back results.
Now you need to understand this basic setup or you won’t be able to configure it properly.
Giving the same address port for two different functions demnonstrates that you really don’t seem to know what the arguments mean.
Maybe now you understand why this can’t work.
Thanks a lot, I don’t really know how to thank you!
Now I don’t get any more errors.
However I think I have finally understood everything.
I wanted to ask you a couple of technical questions?
To leave mlat-server and mlat-client on all day, even when I close the session I have to use screen, as I already do for virtualradar?
In addition, the server returns data only when it manages to perform multilateration, so when I have at least 4 clients connected, or am I wrong?
@ssrdc is running his custom MLAT setup on a Pi 4. I’m running PiAware and Virtual Radar Server under Mono on a Pi 3B under tmux and I’m not seeing any evidence of it using up all my CPU or interfering with my MLAT stats while I have the website open.
Mono ticks along showing around 10% CPU usage, sometimes increasing to around 30%. This is with the VRS map open and active, flags and silhouettes rendering, ADS-B and MLAT data coming from localhost via the PiAware platform, tile server caching active and default process priority, as well as SkyAware also open and active in another browser and socat constantly feeding a remote server VRS instance.
Do you have a mechanism for measuring the effect VRS is having on MLAT, compared to when VRS is not running, since I’m seeing no impact or errors reported?
If desired, Mono’s default process priority can be lowered by increasing its niceness to, say, 10. Start it with:
FWIW, in theory the only semi-real-time-performance-sensitive part of mlat is the dump1090 demodulator itself, and the default install will nice it to a higher priority: dump1090/dump1090-fa.service at master · flightaware/dump1090 · GitHub … though if VRS is indeed taking all the remaining CPU then that will only mitigate the problem so far.
Indeed I noticed it was at -5 instead of 0. There is fa-mlat-client at 0 but it hangs around 0.7% CPU on my 3B. As you say dump1090-fa is the thing that is active and that hovers around 15-20% here. Mono and VRS don’t add much and I’ve not seen them screw up MLAT timing by consuming all the CPU resource or by any other means. I’m not aware of a way to measure any effect though, I’m just going by the lack of problems with MLAT and the CPU being far from maxed out.