This is cool! I like the aviation applications! I'm still working on my VOR based positioning receiver -- slowly.

Anyway, I compiled on Win32 / MinGW with the following problems:

- uses getopt which wasn't part of my MinGW, but which is easy enough to find.

- unnecessarily includes "libusb.h". The code below does not actually call libusb; that's all encapsulated in rtl-sdr, so this isn't necessary (and I'm using the binary rtl-sdr lib downloaded from osmocom, so don't even have it to include)

- the Win32 pthread library doesn't have flockfile, funlockfile, getc_unlock

I just quick-and-dirty commented them out and I'm sure now the radio thread messages and ACARS messages will be intermixed, but mostly the radio spits out messages at the start. However, I think it would be easy to put a mutex around stdio for this purpose. (Didn't get a chance to try it yet.)

Seems to work! Good work!

Regards,
-- dave j





On 7/16/2013 3:00 AM, [email protected] wrote:
Send osmocom-sdr mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.osmocom.org/cgi-bin/mailman/listinfo/osmocom-sdr
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of osmocom-sdr digest..."


Today's Topics:

    1. ACARS decoder using rtl-sdr (Andreas Reinhardt)
    2. Re: ACARS decoder using rtl-sdr (Adam Nielsen)


----------------------------------------------------------------------

Message: 1
Date: Mon, 15 Jul 2013 17:54:00 +1000
From: Andreas Reinhardt <[email protected]>
To: [email protected]
Subject: ACARS decoder using rtl-sdr
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

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


------------------------------

Message: 2
Date: Tue, 16 Jul 2013 18:37:31 +1000
From: Adam Nielsen <[email protected]>
To: [email protected]
Subject: Re: ACARS decoder using rtl-sdr
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII

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.



------------------------------

_______________________________________________
osmocom-sdr mailing list
[email protected]
http://lists.osmocom.org/cgi-bin/mailman/listinfo/osmocom-sdr


End of osmocom-sdr Digest, Vol 20, Issue 4
******************************************


Reply via email to