wiedehopf / readsb

ADS-B decoder swiss knife
Other
321 stars 70 forks source link

Add HackRF support #51

Closed tjmullicani closed 6 months ago

tjmullicani commented 7 months ago

Sample run:

tim@sdr1:~/readsb$ ./readsb --device-type hackrf --gain 32 --hackrf-vgagain 48 
invoked by: ./readsb --device-type hackrf --gain 32 --hackrf-vgagain 48
[2023-11-19 03:17:59.572 UTC] readsb starting up.
readsb version: 3.14.1606 wiedehopf git: ca544e7 (committed: Sun Nov 19 02:58:34 2023 0000)
Opening HackRF: (null)
HackRF successfully initialized (AMP Enable: 0, LNA Gain: 32, VGA Gain: 48).
*5dabb2d5737f37;
hex:  abb2d5   CRC: 000000 fixed bits: 0 decode: ok
RSSI:     -9.9 dBFS   reduce_forward: 1
Score: 750
receiverTime:                   989309.00us
utcTime: 03:18:00.565 epoch: 1700363880.565
DF: 11 AA:ABB2D5 IID:0 CA:5
 All Call Reply
  ICAO Address:  ABB2D5 (mode_s)
  Air/Ground:    airborne

*8dabb2d5ea428867af5c0846a7ea;
hex:  abb2d5   CRC: 80665f fixed bits: 1 decode: ok
RSSI:    -12.7 dBFS   reduce_forward: 1
Score: 900
receiverTime:                  1439307.00us
utcTime: 03:18:01.015 epoch: 1700363881.015
DF: 17 AA:ABB2D5 CA:5 ME:EA428867AF5C08
 Extended Squitter Target state and status (V2) (29/1)
  ICAO Address:  ABB2D5 (adsb_icao)
  Air/Ground:    airborne
  NIC-baro:      1
  NACp:          10
  SIL:           3 (p <= 0.00001%, unknown type)
  Selected heading: 331.2
  MCP selected altitude:      34016 ft
  QNH:                     1013.6 millibars