All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Bake a Pi
PostPosted: Sat Apr 08, 2017 9:05 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 1980
Location: Toronto CYYZ
Click on the options to see detailed instructions.
Alternatively, scroll down to see all these options


OPTION-1 :
Piaware 3.5 image with integral dump1090-fa and Piaware data feeder

OPTION-2:
Raspbian Jessie Lite + dump1090-fa + Piaware 3.5 (add on) feeder

OPTION-3:
Raspbian Jessie Lite + dump1090-mutability + Piaware 3.5 (add on) feeder

ADDITIONAL DATA FEEDERS
1) Flightradar24
2) Planefinder


Last edited by abcd567 on Mon Apr 10, 2017 12:26 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sat Apr 08, 2017 9:07 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 1980
Location: Toronto CYYZ
OPTION-1:
Piaware 3.5 image with integral dump1090-fa and Piaware data feeder


1) Insert microSD Card in your Desktop/Laptop’s card slot (or use a card reader plugged into USB Port).
2) Format microSD Card
3) Download Piaware 3.5 image (zip) on your Desktop/Laptop and unzip downloaded file
4) Write the unzipped Piaware 3.5 image to microSD Card.

5) After image is written, and microSD card is still in card reader of Desktop/Laptop, in Windows Explorer, double click the drive letter of microSD card. This will open the folder /boot and show lots of files and some folders.

    (a) To enable SSH: Right click in /boot folder, and create a new blank file named ssh or ssh.txt

    (b) To enable Wifi on first boot (if required): In /boot folder, open file piaware-config.txt using a text editor like Notepad, and scroll down till you see this text:

    wireless-ssid MyWifiNetwork
    wireless-password s3cr3t99

    Replace MyWifiNetwork by your router’s wifi ssid, and s3cr3t99 by your router’s wifi password

    (c) If you are replacing old Pi by a new one, and want to assign your old station’s ID and stats to new Pi, then:

      (i) If old Pi was registered to Flightaware before March 20, 2017, edit /boot/cmdline.txt file. This file has only one line given below:

      Dwc otg.lpm enable=0 console=serial0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline fsck.repair=yes net.ifnames=0 root=/dev/mmcblk0p2 rootfstype=ext4 rootflags=errors=remount-ro,noatime rootwait quiet splash plymouth.ignore-serial-consoles

      At the end of this line, add (without line break) following:

      smsc95xx.macaddr=xx:xx:xx:xx:xx:xx

      use your OLD Pi’s MAC address in place of xx:xx:xx:x:xx:xx (you can find it from Flightaware Stats page for your OLD Pi)

      (ii) If old Pi was registered with Flightaware on or after March 20, 2017, you have to first find old Pi’s Site Identifier. You can find it from any of these three places:

      https://flightaware.com/adsb/stats/user/yourusername
      From Old Pi’s microSD card: cat /var/log/piaware.log
      From Old Pi’s microSD card: cat /var/cache/piaware/feeder_id

      Once you have Site Identifier, give following command to assign old Pi’s Site Identifier to new Pi:
      Method 1: While the microSD Card is still in Desktop/Laptop's card reader, open file /boot/piaware-config.txt by a text editor like Notepad, and add following line at the end of file:

      feeder-id 12345678-1234-1234-1234-123456789abc

      (replace “12345678-1234-1234-1234-123456789abc” by Site Identifier of your Old Pi)

      Method 2:After booting and SSH,
      Code:
      #Assign Site Identifier by piaware-config command below
      # replace “12345678-1234-1234-1234-123456789abc” by Site Identifier of your Old Pi
      piaware-config feeder-id 12345678-1234-1234-1234-123456789abc

      #Restart piaware
      sudo systemctl restart piaware



7) For a new station, claim your Pi by logging in to your account and go to page:
https://flightaware.com/adsb/piaware/claim


8 ): ADD TERRAIN LIMIT RINGS
Dump1090-fa can display terrain limit rings using data obtained from the website http://www.heywhatsthat.com.

    (a) First you have to generate a panorama for your location. To do this, follow the steps in first post of the following thread:
    What is the Maximum Range I can Get?

    (b) Once your panorama is generated, look near the top left of your newly created panorama page. You will see URL of your panorama there. The URL will be http: // www . heywhatsthat . com/?view=XXXXXXXX where XXXXXXXX is the ID for your panorama.

    See screenshot below.


    Image


    (c) Use following command to download the generated panorama's JSON file "upintheair.json" to your RPi, and save it in the folder "/usr/share/dump1090-fa/html" (replace XXXXXXXX in the command below by your panorama's ID).
    Code:
    sudo wget -O /usr/share/dump1090-fa/html/upintheair.json "http://www.heywhatsthat.com/api/upintheair.json?id=XXXXXXXX&refraction=0.25&alts=3048,12192"


    You can create as many rings as you want by adding elevations (in meters) at the end of URL given in the wget command above after "&alts=", separated by commas.

    10,000 ft = 3048 m
    20,000 ft = 6096 m
    25,000 ft = 7620 m
    30,000 ft = 9144 m
    40,000 ft = 12192 m

    Hence if you want to add all the 5 elevation rings noted above, the string at the end of wget URL will become "&alts=3048,6096,7620,9144,12192"

    To keep map un-cluttered, I have used only 2 rings in the wget command above. i.e. the 10,000 feet (3048 meters), and 40,000 feet (12192 meters).
    Important:
    Use altitude in meters in the wget URL above.
    Do NOT use feet.

    (d) Reload your browser. Clear browser cache if necessary



Last edited by abcd567 on Wed Apr 12, 2017 4:04 pm, edited 4 times in total.

Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sat Apr 08, 2017 9:13 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 1980
Location: Toronto CYYZ
OPTION-2:
Jessie Lite image + dump1090-fa + Piaware data feeder


1) Insert microSD Card in your Desktop/Laptop’s card slot (or use a card reader plugged into USB Port).
2) Format microSD Card
3) Download Jessie Lite image (zip) on your Desktop/Laptop and unzip downloaded file
4) Write the unzipped Jessie Lite image to microSD Card.

5) After image is written, in Windows Explorer, double click the drive letter of microSD card. This will open the folder /boot and show lots of files and some folders.
    (a) To enable SSH: Right click in this folder create a new blank file named ssh or ssh.txt

    (b) To configure Wifi (if required): Right click in /boot folder and create a new blank file named wpa_supplicant.conf. If your Desktop/Laptop does not show file extensions, configure Windows File explorer to show file extensions. If the file has a hidden extension .txt, it will not enable wifi.
    Alternatively you can create this file by giving following command in Windows command prompt console, which will create file with correct extension:
    C:\Windows\System32>echo > M:\wpa_supplicant.conf
    (Replace letter M by drive letter of your microSD Card in Windows)
    Open file wpa_supplicant.conf in a text editor like Notepad, and copy paste following text.
    Code:
    network={
        ssid="YOUR_SSID"
        psk="YOUR_PASSWORD"
    }

    Replace YOUR_SSID by your router’s wifi ssid, and YOUR_PASSWORD by your router’s wifi password.
    Save file. On boot, wifi login info will be automatically copied into file /etc/wpa_supplicant/wpa_supplicant.conf, enabling wifi on first boot.

6) Remove microSD card from card reader, insert into Pi, and power up.

7) Install Piaware 3.5 data feeder (add-on package install)
Code:
wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.5.0_all.deb
sudo dpkg -i piaware-repository_3.5.0_all.deb
sudo apt-get update
sudo apt-get install piaware
sudo piaware-config allow-auto-updates yes
sudo piaware-config allow-manual-updates yes


8 ) Install dump1090-fa (add-on package install)
Code:
sudo apt-get install dump1090-fa
sudo reboot


(9) If you are replacing old Pi by a new one, and want to assign your old station’s ID and stats to new Pi, then

    (i) If old Pi was registered to Flightaware before March 20, 2017, edit /boot/cmdline.txt file. This file has only one line given below:
    dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

    At the end of this line, add (without line break) following:
    smsc95xx.macaddr=aa:aa:aa:aa:aa:aa
    use your OLD Pi’s MAC address in place of aa:aa:aa:aa:aa:aa (you can find it from Flightaware Stats page for your OLD Pi)

    (ii) If old Pi was registered with Flightaware on or after March 20, 2017, you have to first find old Pi’s Site Identifier. You can find it from any of these three places:
    https://flightaware.com/adsb/stats/user/yourusername
    From Old Pi’s microSD card: cat /var/log/piaware.log
    From Old Pi’s microSD card: cat /var/cache/piaware/feeder_id
    Once you have Site Identifier, give following command to assign old Pi’s Site Identifier to new Pi:
    #Assign Site Identifier by piaware-config command below
    #In command below, replace “12345678-1234-1234-1234-123456789abc” by Site Identifier of your Old Pi
    Code:
    piaware-config feeder-id 12345678-1234-1234-1234-123456789abc
    #Restart piaware
    sudo systemctl restart piaware


10) For a new station, claim your Pi by logging in to your account and go to page:
https://flightaware.com/adsb/piaware/claim



11): ADD TERRAIN LIMIT RINGS
Dump1090-fa can display terrain limit rings using data obtained from the website http://www.heywhatsthat.com.

    (a) First you have to generate a panorama for your location. To do this, follow the steps in first post of the following thread:
    What is the Maximum Range I can Get?

    (b) Once your panorama is generated, look near the top left of your newly created panorama page. You will see URL of your panorama there. The URL will be http: // www . heywhatsthat . com/?view=XXXXXXXX where XXXXXXXX is the ID for your panorama.

    See screenshot below.


    Image


    (c) Use following command to download the generated panorama's JSON file "upintheair.json" to your RPi, and save it in the folder "/usr/share/dump1090-fa/html" (replace XXXXXXXX in the command below by your panorama's ID).
    Code:
    sudo wget -O /usr/share/dump1090-fa/html/upintheair.json "http://www.heywhatsthat.com/api/upintheair.json?id=XXXXXXXX&refraction=0.25&alts=3048,12192"


    You can create as many rings as you want by adding elevations (in meters) at the end of URL given in the wget command above after "&alts=", separated by commas.

    10,000 ft = 3048 m
    20,000 ft = 6096 m
    25,000 ft = 7620 m
    30,000 ft = 9144 m
    40,000 ft = 12192 m

    Hence if you want to add all the 5 elevation rings noted above, the string at the end of wget URL will become "&alts=3048,6096,7620,9144,12192"

    To keep map un-cluttered, I have used only 2 rings in the wget command above. i.e. the 10,000 feet (3048 meters), and 40,000 feet (12192 meters).
    Important:
    Use altitude in meters in the wget URL above.
    Do NOT use feet.

    (d) Reload your browser. Clear browser cache if necessary



Last edited by abcd567 on Sun Apr 09, 2017 5:19 pm, edited 4 times in total.

Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sat Apr 08, 2017 9:41 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 1980
Location: Toronto CYYZ
OPTION-3:
Jessie Lite image + dump1090-mutability + Piaware data feeder


1) Insert microSD Card in your Desktop/Laptop’s card slot (or use a card reader plugged into USB Port).
2) Format microSD Card
3) Download Jessie Lite image (zip) on your Desktop/Laptop and unzip downloaded file
4) Write the unzipped Jessie Lite image to microSD Card.

5) After image is written, in Windows Explorer, double click the drive letter of microSD card. This will open the folder /boot and show lots of files and some folders.

    (a) To enable SSH: Right click in /boot folder, and create a new blank file named ssh or ssh.txt

    (b) To enable Wifi on first boot (if required): Right click in /boot folder and create a new blank file named wpa_supplicant.conf. If your Desktop/Laptop does not show file extensions, configure Windows File explorer to show file extensions. If the file has a hidden extension .txt, it will not enable wifi.
    Alternatively you can create this file by giving following command in Windows command prompt console, which will create file with correct extension:
    C:\Windows\System32>echo > M:\wpa_supplicant.conf
    (Replace letter M by drive letter of your microSD Card in Windows)
    Open file wpa_supplicant.conf in a text editor like Notepad, and copy paste following text.
    Code:
    network={
        ssid="YOUR_SSID"
        psk="YOUR_PASSWORD"
    }

    Replace YOUR_SSID by your router’s wifi ssid, and YOUR_PASSWORD by your router’s wifi password.
    Save file. On boot, wifi login info will be automatically copied into file /etc/wpa_supplicant/wpa_supplicant.conf, enabling wifi on first boot.

6) Remove microSD card from card reader, insert into Pi, power up, and SSH.

7) Install dump1090-mutability v1.15~dev
It is important that first dump1090-mutability is installed, and data feeders are installed after dump1090-mutability has been installed.

Below is a step-by-step method to built & install dump1090-mutability_1.15~dev from source code, and then steps to install data feeders FR24, FA, and PF.
    STEP-1: UPDATE THE OPERATING SYSTEM
    Code:
    sudo apt-get update


    STEP-2: INSTALL PRE REQUISIT PACKAGES (needed to build, and needed to fulfill dependencies)
    Code:
    sudo apt-get install -y git
    sudo apt-get install -y build-essential
    sudo apt-get install -y debhelper
    sudo apt-get install -y rtl-sdr
    sudo apt-get install -y librtlsdr-dev
    sudo apt-get install -y libusb-1.0-0-dev
    sudo apt-get install -y pkg-config
    sudo apt-get install -y fakeroot
    sudo apt-get install -y curl
    sudo apt-get install -y cron
    sudo apt-get install -y lighttpd


    STEP-3: DOWNLOAD / CLONE THE SOURCE FILES TO YOUR RPi
    Code:
    cd ~/
    sudo mkdir install-dump
    cd install-dump
    sudo git clone https://github.com/mutability/dump1090.git


    STEP-4: BUILD THE DUMP1090-MUTABILITY PACKAGE
    Note: This is a lengthy process, and seems to freez at several occasions. Please be patient, and let the process take it's time to finish.
    Code:
    cd ~/install-dump/dump1090
    sudo dpkg-buildpackage -b


    STEP-5: INSTALL THE DUMP1090-MUTABILITY PACKAGE
    Code:
    cd ~/install-dump
    sudo dpkg -i dump1090-mutability_1.15~dev_*.deb


    STEP-6: CONFIGURE THE WEB SERVER
    Code:
    sudo lighty-enable-mod dump1090
    sudo systemctl force-reload lighttpd


    STEP-7: DUMP1090-MUTABILITY POST INSTALLATION CONFIGURATION
    Code:
    sudo dpkg-reconfigure dump1090-mutability

    For most settings, accept default settings by pressing "Enter".
    For following settings, enter values as shown:
    (a) RTL-SDR dongle to use: 0
    (b) Your receiver's Latitude (in decimal format): xx.xxxx
    (c) Your receiver's Longitude (in decimal format): yy.yyyy
    (d) Interface address to bind to (blank for all interfaces): remove default 127.0.0.1 and leave blank.

    For advance users:Alternatively, you can change the settings by editing the configuration file shown below:
    Code:
    sudo nano /etc/default/dump1090-mutability
    #after making changes, save file and exit
    #restart dump1090-mutability
    sudo systemctl restart dump1090-mutability


8) ADD TERRAIN LIMIT RINGS
Dump1090-mutability v1.15~dev can display terrain limit rings using data obtained from the website http://www.heywhatsthat.com.

    (a) First you have to generate a panorama for your location. To do this, follow the steps in first post of the following thread:
    What is the Maximum Range I can Get?

    (b) Once your panorama is generated, look near the top left of your newly created panorama page. You will see URL of your panorama there. The URL will be http: // www . heywhatsthat . com/?view=XXXXXXXX where XXXXXXXX is the ID for your panorama.

    See screenshot below.


    Image


    (c) Use following command to download the generated panorama's JSON file "upintheair.json" to your RPi, and save it in the folder "/usr/share/dump1090-mutability/html" (replace XXXXXXXX in the command below by your panorama's ID).
    Code:
    sudo wget -O /usr/share/dump1090-mutability/html/upintheair.json "http://www.heywhatsthat.com/api/upintheair.json?id=XXXXXXXX&refraction=0.25&alts=3048,12192"


    You can create as many rings as you want by adding elevations (in meters) at the end of URL given in the wget command above after "&alts=", separated by commas.

    10,000 ft = 3048 m
    20,000 ft = 6096 m
    25,000 ft = 7620 m
    30,000 ft = 9144 m
    40,000 ft = 12192 m

    Hence if you want to add all the 5 elevation rings noted above, the string at the end of wget URL will become "&alts=3048,6096,7620,9144,12192"

    To keep map un-cluttered, I have used only 2 rings in the wget command above. i.e. the 10,000 feet (3048 meters), and 40,000 feet (12192 meters).
    Important:
    Use altitude in meters in the wget URL above.
    Do NOT use feet.

    (d) RESTART dump1090-mutability
    Code:
    sudo systemctl restart dump1090-mutability



9) Install Piaware 3.5 data feeder (add-on package install)
Code:
wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.5.0_all.deb
sudo dpkg -i piaware-repository_3.5.0_all.deb
sudo apt-get update
sudo apt-get install piaware
sudo piaware-config allow-auto-updates yes
sudo piaware-config allow-manual-updates yes


Last edited by abcd567 on Wed Apr 12, 2017 9:45 am, edited 6 times in total.

Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sat Apr 08, 2017 10:01 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 1980
Location: Toronto CYYZ
ADDITIONAL DATA FEEDERS

1) INSTALLATION OF FR24 DATA FEEDER:
Install FR24 feeder using command below.
After installation is done, it will present a signup wizard, asking for email, sharing key, latitude, longitude, antenna height etc.
Code:
sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"
The above method is current as on April 08, 2017.
For latest instructions, please visit this page: https://www.flightradar24.com/raspberry-pi.


Post Install configuration/Re-configuration of FR24 feeder
METHOD-1: The FR24 Feeder can be configured on the page http://<IP of RPi>:8754/settings.html.
The "Receiver" and "Host/IP" setting should be either "ModeS Beast(TCP), 127.0.0.1:30005" or "AVR(TCP), 127.0.0.1:30002"

METHOD-2: Re-configuration can also be done through SSH
Code:
~ $ sudo fr24feed --reconfigure

It will ask choice for receiver configuration. ENTER VALUES SHOWN IN RED BELOW
Quote:
Step 4.1 - Receiver selection:
1 - DVBT Stick (USB)
-----------------------------------------------------
2 - SBS1/SBS1er (USB/Network)
3 - SBS3 (USB/Network)
4 - ModeS Beast (USB/Network)
5 - AVR Compatible (DVBT over network, etc)
6 - microADSB (USB/Network)
7 - SBSx via Basestation (localhost:30006)
Enter your receiver type (1-7)$: 4


Step 4.2 - Please select connection type:
1 - Network connection
2 - USB directly to this computer
Enter your connection type (1-2)$: 1


Step 4.3A - Please enter your receiver's IP address/hostname
$: 127.0.0.1

Step 4.3B - Please enter your receiver's data port number
$: 30005


Step 5.1 - Would you like to enable RAW data feed on port 30002 (yes/no)$:no

Step 5.2 - Would you like to enable Basestation data feed on port 30003 (yes/no)$:no

Step 6A - Please select desired logfile mode:
0 - Disabled
1 - 48 hour, 24h rotation
2 - 72 hour, 24h rotation
Select logfile mode (0-2)$:0

Step 6B - Please enter desired logfile path (/var/log):
$:/var/log


After reconfiguration, restart fr24feed
Code:
~$ sudo service fr24feed restart

.
.
.
.

2) INSTALLATION OF PLANEFINDER DATA FEEDER:
To install Plane Finder Client, enter these commands in console:
Code:
wget http://client.planefinder.net/pfclient_3.7.1_armhf.deb
sudo dpkg -i pfclient_3.7.1_armhf.deb

The above version is current as on April 08, 2017.
For latest version check this page: https://planefinder.net/sharing/client

CONFIGURE
After installation is complete as above, type http: //<ip address of RPi on your network>:30053/setup.html in your browser, and follow instructions on the page opened. The <ip address of RPi on your network> will be something like 192.168.2.12 and can be found from your router setup.

Choose option to request sharecode, if you don't already have one. Planefinder will send it to you by email. After you receive sharecode, you can enter it on above page and complete your configuration.

During configuration,enter:
Sharecode
Receiver Lat: Your Latitude in decimal format
Receiver Lon: Your Longitude in decimal format
Click "Assign Share Code"


This will open a new page. On this page enter:
Receiver Data Format: Beast
How are you connecting to your receiver: Network
IP Address: 127.0.0.1
Port Number: 30005
Click "Complete configuration"

PF Client web interfaces:
After SETUP is complete and pfclient is up & running, you can see following in your computer's browser.
http:// <ip-address-of-RPi>:30053/map.html (shows planes on Google Map)
http:// <ip-address-of-RPi>:30053/stats.html (shows stats of your receiver)
http:// <ip-address-of-RPi>:30053/logs.html (shows logs of your receiver)

(<ip-address-of-RPi> will be something like 192.168.2.15 . Obtain exact value from your router settings)

.
.

        AND THAT IS ALL....... ENJOY!







.
.


Last edited by abcd567 on Sat Apr 15, 2017 6:43 pm, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sun Apr 09, 2017 3:22 am 
Offline
jluebbe - FlightAware user avatar

Joined: Mon Dec 12, 2016 12:26 pm
Posts: 9
A tutorial how to feed OpenSky Network can be found here:
https://opensky-network.org/community/p ... 090-feeder

For an existing dump1090 installation you just need these two commands:
Code:
wget https://opensky-network.org/files/firmware/opensky-feeder_latest_armhf.deb
sudo dpkg -i opensky-feeder_latest_armhf.deb

Then enter your position, altitude and your OpenSky user name.


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Mon Apr 10, 2017 10:40 am 
Offline
FlightAware Member
conligwx - FlightAware user avatar

Joined: Sat Mar 18, 2017 8:00 pm
Posts: 88
Location: EGAC/EGAD
jluebbe wrote:
Then enter your position, altitude and your OpenSky user name.


Thanks for this. looks like it could do with some more stations up north in the UK.


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Thu Apr 13, 2017 1:15 pm 
Offline
TomNJerry - FlightAware user avatar

Joined: Sat Mar 19, 2016 7:58 pm
Posts: 22
Location: Canada
Very easy step by step instructions to prepare a new Pi from scratch.
Tried all three options (option-1, option-2 & option-3).
All installs worked like a charm.


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Tue Apr 25, 2017 11:18 am 
Offline
FlightAware Member
conligwx - FlightAware user avatar

Joined: Sat Mar 18, 2017 8:00 pm
Posts: 88
Location: EGAC/EGAD
could the Admins make this thread Sticky?


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sun May 07, 2017 6:45 am 
Offline
BERspotterDE - FlightAware user avatar

Joined: Mon Mar 04, 2013 4:54 pm
Posts: 15
Hello my friends ;)

Is it possible to take the following USB sticks?

- Terratec Cinergy T-Stick (/lib/firmware/dvb-usb-af9015.fw)
- (noname) DVB-T USB Stick (/lib/firmware/af9005.fw)


I'm an owner of a RaspberryPi and I still have a couple of DVB-T sticks and since Germany replaced the old MPEG2 standard by MPEG4, I can't use the old sticks no longer for my local TV receiption. So I bought a newer DVB-T2 stick therefor.

And then I had an idea to try the old sticks inside the Raspberry to check some ADS-B receiption. I'm living close to the Berlin-Schoenefeld SXF airport (some people still believe in the bigger Berlin-Brandenburg airport BER right beside the old SXF) and would like to see and transmit my data to the FlightAware server.

But it doesn't work as it seems :'(
I always get the following message about the wrong hardware :(

$ dump1090-fa
Sun May 7 13:43:50 2017 CEST dump1090-fa 3.5.0 starting up.
rtlsdr: no supported devices found.


Eventually, somebody could help me to find the failure. So here you can see some informations about my hardware and software:

Hardware
RaspberryPi 3 Model B with 1GB RAM

$ uname -a
Linux RASPI 4.9.24-v7+ #993 SMP Wed Apr 26 18:01:23 BST 2017 armv7l GNU/Linux

$ lsusb
Bus 001 Device 005: ID 0ccd:0097 TerraTec Electronic GmbH Cinergy T RC MKII

$ dmesg | grep usb
[ 2.824195] usb 1-1.4: new high-speed USB device number 5 using dwc_otg
[ 2.959314] usb 1-1.4: New USB device found, idVendor=0ccd, idProduct=0097
[ 2.959336] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.959347] usb 1-1.4: Product: USB2.0 DVB-T TV Stick
[ 2.959355] usb 1-1.4: Manufacturer: NEWMI
[ 2.959363] usb 1-1.4: SerialNumber: 010101010600001
[ 2.966084] input: NEWMI USB2.0 DVB-T TV Stick as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.1/0003:0CCD:0097.0003/input/input2
[ 3.035125] hid-generic 0003:0CCD:0097.0003: input,hidraw2: USB HID v1.01 Keyboard [NEWMI USB2.0 DVB-T TV Stick] on usb-3f980000.usb-1.4/input1
[ 3.315350] usbcore: registered new interface driver brcmfmac
[ 3.462779] usb 1-1.4: dvb_usb_v2: found a 'TerraTec Cinergy T Stick RC' in cold state
[ 3.483004] usb 1-1.4: dvb_usb_v2: downloading firmware from file 'dvb-usb-af9015.fw'
[ 3.565543] usb 1-1.4: dvb_usb_v2: found a 'TerraTec Cinergy T Stick RC' in warm state
[ 4.084373] usb 1-1.4: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[ 4.121696] usb 1-1.4: DVB: registering adapter 0 frontend 0 (Afatech AF9013)...
[ 4.204806] input: TerraTec Cinergy T Stick RC as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/rc/rc0/input4
[ 4.205802] rc rc0: TerraTec Cinergy T Stick RC as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/rc/rc0
[ 4.205817] usb 1-1.4: dvb_usb_v2: schedule remote query interval to 500 msecs
[ 4.205833] usb 1-1.4: dvb_usb_v2: 'TerraTec Cinergy T Stick RC' successfully initialized and connected
[ 4.205970] usbcore: registered new interface driver dvb_usb_af9015

and the other stick...

$ lsusb
Bus 001 Device 005: ID 15a4:9020 Afatech Technologies, Inc.

$ dmesg | grep usb
[ 2.644247] usb 1-1.4: new full-speed USB device number 5 using dwc_otg
[ 2.790127] usb 1-1.4: New USB device found, idVendor=15a4, idProduct=9020
[ 2.790145] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.790153] usb 1-1.4: Product: DVBT
[ 2.790161] usb 1-1.4: Manufacturer: Afatech
[ 3.324314] usbcore: registered new interface driver brcmfmac
[ 4.435557] dvb-usb: found a 'Afatech DVB-T USB1.1 stick' in cold state, will try to load a firmware
[ 4.437582] dvb-usb: downloading firmware from file 'af9005.fw'
[ 4.807940] dvb-usb: found a 'Afatech DVB-T USB1.1 stick' in warm state.
[ 4.808453] dvb-usb: will use the device's hardware PID filter (table count: 32).
[ 4.815565] usb 1-1.4: DVB: registering adapter 0 frontend 0 (AF9005 USB DVB-T)...
[ 4.821406] dvb-usb: Afatech DVB-T USB1.1 stick successfully initialized and connected.
[ 4.821579] usbcore: registered new interface driver dvb_usb_af9005

thanks =)


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sun May 07, 2017 6:59 am 
Offline
FlightAware Staff
obj - FlightAware user avatar

Joined: Tue Sep 30, 2014 7:14 pm
Posts: 3463
BERspotterDE wrote:
Hello my friends ;)

Is it possible to take the following USB sticks?

- Terratec Cinergy T-Stick (/lib/firmware/dvb-usb-af9015.fw)
- (noname) DVB-T USB Stick (/lib/firmware/af9005.fw)

Unlikely. librtlsdr knows how to talk to a 2832 only.

(It is not the "DVB" part of the dongle that is interesting; someone worked out that the DAB digital radio support on 2832s was done by putting the 2832 into a basic SDR mode and doing the decoding in software, and it went from there)


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sun May 07, 2017 7:15 am 
Offline
BERspotterDE - FlightAware user avatar

Joined: Mon Mar 04, 2013 4:54 pm
Posts: 15
thank you =)

that means, both my sticks do not work, I guess :(


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sun May 07, 2017 11:46 am 
Offline
FlightAware Member
biekerc - FlightAware user avatar

Joined: Sat Jul 16, 2016 2:17 am
Posts: 59
BERspotterDE wrote:
thank you =)

that means, both my sticks do not work, I guess :(


I had an old msi stick with an af9015 and a terratec cinema xs stick, both did not work. This lead to buying a cheap usb stick on amazon marketplace, decided I liked flight tracking and have never looked back since...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Akissack, rjbiii13 and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: