I am researching creating simulated aircraft flight data and displaying it in the moving map alongside actual flights coming in off the receiver. I was considering using the piaware setup, since it’s likely to be the least buggy. Any ideas on where the best and least intrusive insertion point would be?
My initial idea was to create two dump1090 instances. One to receive from the radio and to write beast data out to a port. say port 30010 and another dump1090 instance to receive data from port 30010. Then I hoped to write my simulated data from a separate program out to port 30010 as well. I was hoping this would be the easiest path to integrating simulated and real data into the same map.
This is essential if feeding simulated data directly to dump1090-fa .
However if simulated data and dump1090-fa data are both fed to a mixer, then the mixer provides an added protection as the ports of mixer are configured as below so the piaware with default settings wont pick any data from the mixer.
Thanks for the note guys, I have turned off piaware.
I finished setting up dump1090-fa and I noticed that it is listening on port 30004 for beast mode comms. I tried sending some data to it…
This is a position report:
echo -e -n “\x1\x0\x1C\x0\x0\x0\xD\x27\x30\x41\x1\xB8\xB2\xF9\xFF\x4D\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0” | nc localhost 30004
and something received it, because it completed. However, I am not seeing anything on my map.
sudo journalctl -u dump1090-fa
yielded zero information. Interestingly, when I set receiver = none, it says it is in net only mode, but it does not receive any data. It is listening on port 30004 though. I get success results when netcat’ing data in.
Or you can use the “AVR” format to a “raw” input port (which IIRC is disabled by default)
I would suggest running dump1090-fa from the CLI with --device-type none --net-bi-port 12345 (or --net-ri-port for AVR format), feed your data to that port, and look at the CLI output; without --quiet dump1090 will emit decoded messages to stdout so you can check if your data is arriving correctly.
@obj
I tried this by first storing 30 seconds of raw (avr) data in a file, then stopped dump1090-fa, and ran dump1090-fa in CLI using --net-only, --net-ri-port 30001 and --ifile parameters. The skyaware map showed nothing What I have done wrong?
Yes, you are right. Your suggested command line worked OK.
I have now used your command line, but have wrapped it in: while read -r line; do [your command line]; done < filename
to read line-by-line the raw data from file instead of directly inputting it in the command line. Please see screenshot below