mhostetter / gr-adsb

GNU Radio OOT module for demodulating and decoding ADS-B packets
GNU General Public License v3.0
143 stars 43 forks source link

I'm inquiring about the "CRC Failed" error. #58

Open hee910224 opened 7 months ago

hee910224 commented 7 months ago

Hello, I'm asking because I haven't solved the problem in a few days. I used a translator because I was not good at English.

I'm trying to do "ni USRP 2900" ads-b communication in window 10.

I installed gnuradio directly from Windows 10 and USRP from ni, so I use it without Cmake or any other build work you uploaded.

When I used the code you posted on the git, the message below appeared and overflow continued. "Ousrp_source :error: In the last 758 ms, 3 overflows occurred." Then, I changed the sample rate and several values, and when I first run the program, I get the data as shown below.

[INFO] [UHD] Win32; Microsoft Visual C++ version 14.2; Boost_107800; UHD_4.4.0.0-release [INFO] [B200] Detected Device: B200 [INFO] [B200] Operating over USB 3. [INFO] [B200] Initialize CODEC control... [INFO] [B200] Initialize Radio control... [INFO] [B200] Performing register loopback test... [INFO] [B200] Register loopback test passed [INFO] [B200] Setting master clock rate selection to 'automatic'. [INFO] [B200] Asking for clock rate 16.000000 MHz... [INFO] [B200] Actually got clock rate 16.000000 MHz. [INFO] [B200] Asking for clock rate 40.000000 MHz... [INFO] [B200] Actually got clock rate 40.000000 MHz. [INFO] ---------------------------------------------------------------------- [INFO] Datetime: 2023-11-10 02:17:34.567997 UTC [INFO] SNR: 15.80 dB [INFO] Downlink Format (DF): 26 Reserved [DEBUG] DF: 26 Unknown DF [INFO] ---------------------------------------------------------------------- [INFO] Datetime: 2023-11-10 02:17:34.568097 UTC [INFO] SNR: 11.22 dB [INFO] Downlink Format (DF): 25 Reserved [DEBUG] DF: 25 Unknown DF [INFO] ---------------------------------------------------------------------- [INFO] Datetime: 2023-11-10 02:17:34.571209 UTC [INFO] SNR: 13.69 dB [INFO] Downlink Format (DF): 16 Long Air-Air Surveillance (ACAS) [INFO] CRC: Failed Unrecognized AA from AP [INFO] Address Announced (AA): 40ced8 [DEBUG] FEC: Conservative error correction lookup failed to get syndrome Ousrp_source :error: In the last 1129 ms, 1 overflows occurred. [INFO] ---------------------------------------------------------------------- [INFO] Datetime: 2023-11-10 02:17:34.575103 UTC [INFO] SNR: 16.10 dB [INFO] Downlink Format (DF): 6 Reserved [DEBUG] DF: 6 Unknown DF

As this data appears, the message CRC Failed continues to appear.

If you change the parameter value, the message below appears.

" [DEBUG] DF: 8 Unknown DF [DEBUG] DF: 3 Unknown DF [DEBUG] DF: 0 Unknown DF Ousrp_source :error: In the last 758 ms, 3 overflows occurred. [DEBUG] DF: 11 Unknown DF O[INFO] ---------------------------------------------------------------------- [INFO] Datetime: 2023-11-08 08:06:59.909242 UTC [INFO] SNR: 11.04 dB [INFO] Downlink Format (DF): 18 Extended Squitter/Non-Transponder [INFO] CRC: Failed PI^CRC = 16553477 [DEBUG] DF: 25 Unknown DF [DEBUG] DF: 3 Unknown DF O[INFO] ---------------------------------------------------------------------- [INFO] Datetime: 2023-11-08 08:07:00.077605 UTC [INFO] SNR: 8.57 dB [INFO] Downlink Format (DF): 19 Military Extended Squitter [INFO] CRC: Failed PI^CRC = 14293493 [DEBUG] DF: 28 Unknown DF [DEBUG] DF: 27 Unknown DF [INFO] ---------------------------------------------------------------------- [INFO] Datetime: 2023-11-08 08:07:00.147801 UTC [INFO] SNR: 5.91 dB [INFO] Downlink Format (DF): 17 Extended Squitter [INFO] CRC: Failed PI^CRC = 13570376 [DEBUG] DF: 0 Unknown DF [DEBUG] DF: 31 Unknown DF [INFO] ---------------------------------------------------------------------- [INFO] Datetime: 2023-11-08 08:07:00.222440 UTC [INFO] SNR: 10.50 dB [INFO] Downlink Format (DF): 18 Extended Squitter/Non-Transponder [INFO] CRC: Failed PI^CRC = 178647 OOusrp_source :error: In the last 841 ms, 4 overflows occurred. [DEBUG] DF: 8 Unknown DF OOO[DEBUG] DF: 23 Unknown DF [DEBUG] DF: 27 Unknown DF O[DEBUG] DF: 27 Unknown DF [DEBUG] DF: 11 Unknown DF Ousrp_source :error: In the last 832 ms, 5 overflows occurred. O[DEBUG] DF: 22 Unknown DF OO[DEBUG] DF: 14 Unknown DF [DEBUG] DF: 10 Unknown DF [DEBUG] DF: 16 Unknown DF O[DEBUG] DF: 11 Unknown DF " gnu adsb.zip

I don't know if this is a problem because the plane doesn't pass in my area or if it's an error in the code.

I can't find an answer when I Google "CRC error" from gnuradio.

Have you experienced any of the same problems with implementing ads-b?

I really want to solve it. Please help me!

mhostetter commented 7 months ago

You need to lower the sample rate to reduce the overflows. The overflows will drop samples, which can corrupt packets and lead to CRC failures.