FlightAware Discussions

Feeding data from Piaware into Basestation

I am using a FlightAware Prostick and feeding data using PiAware on a Raspberry Pi to FlightAware. Does anyone know how I could feed the data from PiAware into Basestation for viewing the data? Any help and simple instructions (I’m not very computer literate would be greatly appreciated.

Thank you

PiAware produces Basestation-port-30003-format output on port 30003, or Beast binary output on port 30005. Basestation may be able to consume one of these. (But interoperating with other systems is not Basestation’s strong point, from what I’ve seen second-hand)

Download, install and configure modesmixer2 (RPix version) from here (xdeco.org/?page_id=48) in order to send Basestation 10001 out onto your network. In Basestation configure hardware network, not USB, for the IP address of your RPi. It works pretty well.

Thanks for the advice. I’ve downloaded this version onto my PC: modesmixer2_rpi3_20160119.tgz but can’t seem to do anything with it - get it to run. Should it run on my PC or should this be installed on the Pi? If so, how? Sorry about all the questions.

afther download you need decompress it :
sudo tar -xvf modesdeco2_rpi_yyyymmdd.tgz replace with correct name, after decompressed tipe: ls
you should see modesdeco2 in green text means it is executable, or maybe with another name, so just type :
./modesdeco2 (replace with correct file name)

cheers :beers:

Sent from my SM-N910F using Tapatalk

Thanks. I’ve downloaded the tgz file onto my pc. Should that be on the Pi? Then issue the commands that you suggest?

It runs on the Pi, not your PC. Move the file over, then run the above commands on the Pi.
Good luck,

easy via ssh connected to the rpi right click on the file tgz download link choose copy link, on rpi create a directory for example sudo mkdir adsb go inside the directory cd adsb
now put, sudo wget (and paste the Download link) voila file on the rpi, now do the rest of steeps.
cheers :beers:

Sent from my SM-N910F using Tapatalk

Hi I have followed the various instructions to get modesmixer2 onto my pi but when I try to decompress it I get the following error message:

pi@piaware:~ cd adsb pi@piaware:~/adsb sudo tar -xvf modesmixer2_rpi3_20160119_tgz
tar: modesmixer2_rpi3_20160119_tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
pi@piaware:~/adsb$

Any suggestions/advice greatly received.

Thank you

Give following command and post the output



cd ~
dir adsb


Thanks…this is it:

pi@piaware:~ cd ~ pi@piaware:~ dir adsb
open?id=0B7NYXizl0U6iTG9leDFnWnVZb00
pi@piaware:~$

The installation file is not in adsb directory. Download it by following command:



cd ~/adsb
sudo wget https://docs.google.com/uc?authuser=0&id=0B7NYXizl0U6iYnZZdVRzRHcxbFU&export=download

#This will download the .tgz file
#now check if the file has actually downloaded
dir

#the output should show file "modesdeco2_rpi3_20160520.tgz"


In tried the download command and got the following error message

pi@piaware:~/adsb$ sudo wget docs.google.com/uc?authuser=0&i … t=download
[1] 2970
[2] 2971
pi@piaware:~/adsb$ --2016-10-04 21:49:48-- docs.google.com/uc?authuser=0
Resolving docs.google.com (docs.google.com)… 216.58.208.174, 2a00:1450:4009:813::200e
Connecting to docs.google.com (docs.google.com)|216.58.208.174|:443… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: docs.google.com/uc [following]
–2016-10-04 21:49:49-- docs.google.com/uc
Reusing existing connection to docs.google.com:443.
HTTP request sent, awaiting response… 400 Bad Request
2016-10-04 21:49:49 ERROR 400: Bad Request.

The wget command got split in two lines when you copy-pasted it.
See the output in red below which shows [1] and [2], i.e. two commands.

pi@piaware:~/adsb$ sudo wget docs.google.com/uc?authuser=0&i … t=download
[1] 2970
[2] 2971

Copy paste again the wget command, and check carefully to make sure it is ONE LINE from sudo to =download. Increase the width of SSH window to make it easier to judge if the line is broken.

Hi

I’m still getting an error and I typed it out in full into a full window

pi@piaware:~/adsb$ sudo wget docs.google.com/uc?authuser=0&i … t=download
[1] 3031
[2] 3032
pi@piaware:~/adsb$ --2016-10-04 22:14:19-- docs.google.com/uc?authuser=0
Resolving docs.google.com (docs.google.com)… 216.58.208.174, 2a00:1450:4009:809::200e
Connecting to docs.google.com (docs.google.com)|216.58.208.174|:443… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: docs.google.com/uc [following]
–2016-10-04 22:14:20-- docs.google.com/uc
Reusing existing connection to docs.google.com:443.
HTTP request sent, awaiting response… 400 Bad Request
2016-10-04 22:14:20 ERROR 400: Bad Request.

I get the same error message so alternatively:

Use just the link address (docs.google.com/uc?authuser=0&i … t=download) and download it to your PC.

Apart from PUTTY the other most valuable tool in your PC to RPi arsenal should be WinSCP. This utility allows you to copy files across your network using a nice GUI. Download it from here (winscp.net/eng/download.php) and then copy the tar file from your PC to your RPi and follow the instructions about decompressing it.

When I first started out in this crazy hobby it took me ages to do this sort of stuff but it helps build your character, accept tolerance and patience and above all teaches you how to get stuff done, so don’t despair! Help will arrive.

I seem to have modesmixer2 installed correctly on the Pi now but not sure how you then get it to start feeding the data to Basestation

OK assuming you have piaware running and collecting signals and sending them off to FA? Correct?

On your RPi run this command in the directory where modesmixer2 resides:



chmod 766 modesmixer2


This will make the file executable. Then run this:



./modesmixer2 inConnect localhost:30005 outServer sbs10001:10001 &


This command is case sensitive so make sure you get the “C” and “S” UPPERCASE correct. This command will connect to dump1090 port 30005 (Beast format) and output Basestation format 10001 on port 10001.

On your Basestation PC connect using the network port 10001.

Let’s see how that goes.

Many thanks for your help. Still not working. This is the output from my Pi

pi@piaware:~ cd modes pi@piaware:~/modes chmod 766 modesmixer2
pi@piaware:~/modes$ ./modesmixer2 inConnect localhost:30005 outServer sbs10001:10001 &
[1] 5099
pi@piaware:~/modes$ 2016-10-05 17:40:35.135 INFO ModeSMixer2 v.20150825

In Basestation I have set the network address as the local IP for my Pi and used 10001 as the port.

Check your modesmixer command structure. I think it should be --inConnect localhost:30005 --outServer sbs10001:10001