Hi everyone,
I have combined "rtl_fm" with Thierry Leconte's (GPL'ed) acarsdec library code and created "rtl_acars" which can directly decode ACARS flight info messages to the console. Confirmed to compile on OSX 10.6 (not possible for me to check if it also compiles under Windows and *nix). Feel free to add it as another proof of concept to your distro unless you consider it too much of a quick&dirty hack.
Grab the code from: http://pastebin.com/kLJHyQWt
Best regards, Andreas
Confirmed to compile on OSX 10.6 (not possible for me to check if it also compiles under Windows and *nix).
This is great, thanks for posting! It compiles and runs under Linux with this command:
$ gcc -o rtl_acars rtl_acars.c `pkg-config --cflags --libs librtlsdr libusb` -lpthread -lm
$ ./rtl_acars -f 131550k Found 1 device(s): 0: Realtek, RTL2832U, SN: 00000991
Using device 0: Generic RTL2832U (e.g. hama nano) Found Elonics E4000 tuner Oversampling input by: 21x. Oversampling output by: 1x. Buffer size: 8.13ms Tuned to 131802000 Hz. Sampling at 1008000 Hz. Output at 48000 Hz. Exact sample rate is: 1008000.009613 Hz Tuner gain set to automatic. RX_IDX: 0 ACARS mode: B, message label: H1 Aircraft reg: .VH-VYE, flight id: QF0975 Block id: 55, msg. no: D12A Message content:- #DFBYBTLYBBN AMDAR3AU0138 AJ0LPS3KKSH:LX.9AQD - L///9AJIKN RKLEHCZRU : K///9 U 4 T Q0LCJDDSI V Y///9A M F LKLCJDDS0 U L///9 A Z 5 Q0L7JELS5 Y K///9U P P N0L30FTS2 . V///9 A 8 W OKKYZHKSW W L///9A G O LKKVS ----------------------------------------------------------[16/07/2013 08:35]
RX_IDX: 1 ACARS mode: B, message label: H1 Aircraft reg: .VH-VYE, flight id: QF0975 Block id: 56, msg. no: D12B Message content:- #DFBIBRE M M///9
----------------------------------------------------------[16/07/2013 08:35]
Cheers, Adam.
Adam,
I've compiled rtl_acars.c with this:
gcc -o rtl_acars rtl_acars.c `pkg-config --cflags --libs librtlsdr libusb` -lpthread -lm
without any error. It produced an executable file named rtl_acars
However when I enter
./rtl_acars -f 131550k
I get this error message : bash: ./rtl_acars: Permission denied
What can be wrong? I use ubuntu 12.04 (sorry I am new to Linux)
Appreciate your help. Regards,
However when I enter
./rtl_acars -f 131550k
I get this error message : bash: ./rtl_acars: Permission denied
What can be wrong? I use ubuntu 12.04 (sorry I am new to Linux)
Do you have the right access level to use the USB device? Try running as the root user to see if that works. If not, see if you can use the rtl_fm program first, and try rtl_acars again once rtl_fm is working. (Just because Google will be more help for rtl_fm issues since more people have used it.)
Cheers, Adam.
Le 15/07/2013 09:54, Andreas Reinhardt a écrit :
Hi everyone,
I have combined "rtl_fm" with Thierry Leconte's (GPL'ed) acarsdec library code and created "rtl_acars" which can directly decode ACARS flight info messages to the console.
Hey that's great news! I just bought a rtl card for fun recently and subscribe to this list . Very happy to see someone use my very old acars decoder code :-)
will try it very soon !