ADS-B's broadcast and receiving

2018-08-20  本文已影响0人  你说的独品

1 RECEIVING

1.1 Hardware and Software you need

1.2 Steps

sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install python-setuptools
sudo easy_install pip
sudo apt-get install libzmq-dev
sudo apt-get install python-zmq

run python and type as follow

Python 2.7.12(default,Nov 19 2016,06:48:10)
[GCC 5.4.0 20160609] on linux2
Type “help”,“copyright”,“credits” or “license” for more information.
>>>import zmq
>>>zmq.zmq_version()
sudo uhd_images_downloader
uhd_usrp_probe

if you have this response, you are good to go


图片.png
modes_rx -A RX2 -K aircraft.kml
图片.png

This command can make collected signals into the aircraft.kml file.
let the equipment receive signal for a while and close this program.
Now you can open aircraft.kml with googleearth.

图片.png

2 BROASCAT

2.1 Hardware and Software you need

2.2 Steps

git clone --progress http://github.com/mossmann/hackrf.git
cd hackrf/host
mkdir build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make
sudo make install
sudo ldconfig

gethackrf_infoas follow

图片.png

① download hackrf-2017.02.1.tar.xz from https://github.com/mossmann/hackrf/releases
② unzip files into home catalog
③ move four files(cmak, hackrf-tools, libhackrf, CMakeLists.txt ) into hackrf-2017.02.1catalog from home catalog
④ type command as following

cd host
mkdir build
cmake ../ -DINSTALL_UDEV_RULES=ON
make
sudo make install
sudo ldconfig

⑤ get in firmware-bin catalog

hackrf_spiflash -Rw hackrf_one_usb.bin   //update SPI 
hackrf_cpldjtag -x hackrf_cpld_default.xsvf   //update  CPLD

now you can see three lights (USB、RX、TX) are twinkling, which means updating is succeed.
restart the HackRF before next step

ADSB_Encoder.py  0xABCDEF 12.34 56.78 9999.0   //Execute *ADSB_Encoder.py* script with `<ICAO>` `<Latitude>` `<Longtitude>` `<Altitude>` arguments:

dd if=Samples.iq8s of=Samples_256K.iq8s bs=4k seek=63  //Make the raw signal file aligned to 256K buffer size:

hackrf_transfer -t Samples_256K.iq8s -f 1090000000 -s 2000000 -x 10 -R //Transmit the signal into air:

you will see the picture in the end if you succeed.


图片.png

you also can check README to get more informations.
now you can use USRP to receive your signal and check it with googleearth.

3 Upgrade

target:

  1. send some different signals ( different between ICAO, Latitude ,Longitude, Altitude)
    deliberately.
  2. collect signal, and select that you just broadcasted.
  3. use googleearth confirm it.

3.1 Steps

图片.png
上一篇 下一篇

猜你喜欢

热点阅读