Welcome to Radarspotting. Please login or sign up.

May 19, 2024, 11:19:50 PM

Login with username, password and session length

New Members

New Members

You should get an activation email when you join.  If not, please use the Contact option.

AcarsDeco2 Development

Started by Radio2.0, October 12, 2013, 06:58:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hobbyd

#135
I have it on my RPi and did the following:
Under Windows I downloaded the appropriate .tgz file depending on the OS you run on the RPi.
I run `stretch´ which is the latest version so I donwloaded acarsdeco2_rpi2-3_deb9_20171115.tgz.

Next I created an acarsdeco2 directory on the RPi.
Then I copied the .tgz to that directory on the RPi.
Finally unpacked the .tgz using this command:
tar -xzvf acarsdeco2_rpi2-3_deb9_20171115.tgz

Just found a much easier and direct way to do this.
On your RPI:
- mkdir acarsdeco2
- cd acarsdeco2
- wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=1afHXuPtu4oajHWQc8QNYa6v59Nn4wwMz' -O acarsdeco2_rpi2-3_deb9_20171115.tgz
- tar -xzvf acarsdeco2_rpi2-3_deb9_20171115.tgz


That's all.

Cheers,
Dick

PS.
Found the instructions to direct download from Google drive to RPi here:
https://unix.stackexchange.com/questions/136371/how-to-download-a-folder-from-google-drive-using-terminal/148674

acarslogger

Hi Dick,

I didn't know about ..
https://unix.stackexchange.com/questions/136371/how-to-download-a-folder-from-google-drive-using-terminal/148674

Makes getting the download even easier.

Thanks for the information.
Stuart

thebaldgeek

#137
Quick 'how-to' for running remote feeders for AcarsDeco2. 
   
On your remote feeder pi, include the command line option;
--outConnectUdp sbs:hostname:9999

Make sure hostname is a fully qualified hostname, like noip.duckduckgo.com. Pick any port higher than 1024, I just chose 9999 in the example here.
At your central server site, add a port forward rule from UDP port 9999 to the IP address of your computer running AcarsDeco2.

On your central site, add this to your command line;
--inServerUdp sbs:9999

That's it. Now your remote sites will stream their data to your central server and be decoded and displayed on the web interface.

In my case, my feeder sites send ADSB data as well as ACARS, and my central server runs VRS and AcarsDeco2, so now I have a really sweet one stop url for both programs.

We are processing around fifteen thousand ACARS messages a day!!! (Covering Phoenix Arizona and Southern California).

Thanks so much sergsero for your work. Awesome software!

Hobbyd

Just a small question about your "Note. If you are running more than one remote site, each should be on a different port."

As these are UDP messages why do you need a different port for each remote site?
I would expect they all could send the data to the same port..

Cheers,
Dick

thebaldgeek

Correct. Sorry, I should perhaps edit that post.... I filter all the messages and having each remote site on a different port makes it possible for me to know what area what message came from.

Thanks for pointing that out.

Hobbyd

Thanks,  that makes perfect sense.

" I should perhaps edit that post.... "
Sounds like a good idea, just for those readers that don't read on  ;)

Cheers,
Dick

enzv99

Sergsero,

Thanks for creating an excellent decoder. It is very sensitive and has a great web interface. 
I notice that squitters are formatted differently, perhaps because some are not correctly identified as uplinks.  Sita squitters are formatted like this by AcarsDeco2:

SOURCE: AIR
RX_ID: 902, Freq: 131.725MHz
Mode: v NACKLabel: SQ (Link test message) Block ID: 
REG:       

Message content:-
00XS
-------------------------------------------------------[2018-06-24 00:08:50.118]

Mode 2 squitters are formatted like this by AcarsDeco2:

SOURCE: AIR
RX_ID: 2, Freq: 131.825MHz
Mode: 2 NACKLabel: SQ (Link test message) Block ID:  , Msg No: 01XA
Flight ID: SVGENZ REG:       

Message content:-
V2ARINC
-------------------------------------------------------[2018-06-24 08:22:53.639]

The correct formatting, in line with your formatting of the other squitters, would be:

SOURCE: AIR
RX_ID: 2, Freq: 131.825MHz
Mode: 2 NACKLabel: SQ (Link test message) Block ID: 
REG:

Message content:-
01XASVGENZV2ARINC
-------------------------------------------------------[2018-06-24 08:22:53.639

Hope you can look into that in a next release?

Cheers,
Kjell

Hobbyd

#142
Hi Sergsero,
Upgraded from jessie to stretch
Starting acarsdeco2 resulted in:
Using device:  1 mnf: Realtek prod: RTL2838UHIDIR serial: 00000005
Error: sdr_open(): Device or resource busy

This was odd as other programs like acarsdec, dumpvdl2 and vdlm2dec (all in github) using the same dongle worked fine.
At some point acarsdeco2 did start, so this needed further investigation.

When I run acarsdeco2 after a reboot it does not work.
When I run acarsdeco2 after running acarsdec it works.
I noticed that acarsdec does a "Detached kernel driver" so I guess that is why it will always work.

I found and read your explanation on this "Device or resource busy" and blacklisting devices:
https://radarspotting.com/forum/index.php/topic,3182.msg36116.html#msg36116

And I am sure blacklisting does fix the problem (as Stuart proved), but to keep things simple maybe you can add a "Detached kernel driver" in your program.

Cheers,
Dick

Hobbyd

Hello Sergsero,

I am not sure which is the latest acarsdeco2 version.
https://radarspotting.com/forum/index.php/topic,3182.msg36094.html#msg36094
mentions 20171115 but
https://radarspotting.com/forum/index.php/topic,3182.msg17659.html#msg17659
a post from 2014 mentions 20180603.

Maybe you can post new versions in a specific subject so they are easy to find.

Cheers,
Dick

IanH

THe post originated in 2014 but is updated by sergsero (date of post does not change).

Looking here: http://xdeco.org/?page_id=30 you will see that the 20180603 version is the latest.

Not sure having new posts each time helps.


Radio2.0

I have 3x Pi2 and everytime when I plug them in extreme noise show up on my laptop.  :-\
The Pi2 is in an Metal Case and I tried 3 different Cellphone Plugs.

Acarsdeco2 (an very old one) run on an Win Pc who have quite no noise.  :o
>>> I looking for People who want exchange the VRS Data with me. <<<
I life near LOWW / VIE and see Ground Traffic too.

Hobbyd

#146
Quote from: IanH on June 29, 2018, 09:22:55 PM
THe post originated in 2014 but is updated by sergsero (date of post does not change).
The date not changing is very unfortunate...

Quote from: IanH on June 29, 2018, 09:22:55 PM
Looking here: http://xdeco.org/?page_id=30 you will see that the 20180603 version is the latest.
So far I always downloaded versions using the links in the posts.
Wasn't aware of the website.
So thanks..

Quote from: IanH on June 29, 2018, 09:22:55 PM
Not sure having new posts each time helps.
Well I would appreciate a new post with just a reference to the website and optionally the changes that were  made.

Cheers,
Dick

Hobbyd

Quote from: Radio2.0 on June 29, 2018, 10:49:33 PM
  I tried 3 different Cellphone Plugs.
What do you mean with that?
What connections are there between your Pi and you laptop?
What are you using to power the Pi?


Hobbyd

#148
Hi Sergsero,

Running version 20180603 on an RPi using Stretch.
The timezone on the RPi is set to Amsterdam UTC+1 and daylight savings.  So currently the local time is UTC+2.

The midnight rollover occurs at midnight local time.
I guess it would be better to have it occur at midnight UTC or add an option to choose between UTC and Local Time.

I also noticed that the messages received in the first minute after midnight Local Time (between 00:00 and 00:01) are written to the old (yesterday) log and not to the new log.
So the old log ends with this:
2018-06-29,21:59:40,131.825,2,A6-EGY,,BA,2,L96A,EK0026,/MSTEC7X.DR1.A6-EGY1F11
2018-06-29,22:00:10,131.725,E,PH-HZL,,Q0,6,S15A,HV1408,
2018-06-29,22:00:13,131.825,2,D-AEAF,,Q0,0,0017,QY1239,
2018-06-29,22:00:30,131.825,2,D-AEAF,,Q0,0,0017,QY1239,

And the new log starts like this:
2018-06-29,22:01:48,131.725,X,G-EUUK,,10,3,M03A,BA2673,MET01STN   
2018-06-29,22:01:53,131.725,X,G-EUUK,J,_d,4,S25A,BA2673,
2018-06-29,22:01:56,131.725,X,G-EUUK,K,_d,5,S26A,BA2673,

This seems a small bug.

Have a nice weekend.

Radio2.0

Quote from: Hobbyd on June 30, 2018, 10:55:31 AM
Quote from: Radio2.0 on June 29, 2018, 10:49:33 PM
  I tried 3 different Cellphone Plugs.
What do you mean with that?
What connections are there between your Pi and you laptop?
What are you using to power the Pi?
You know you can EDIT your Posts? Its very rude to write 3 Posts in a row!

230V -> 5V to power the Pi up.
I have an Outdoor Antenna and an 3x Output Splitter. When I have connect the Laptop to Port 1 with the SDR and Power the Pi up who is connect to Port 3 on the Splitter (2 is the other Dongle who is connected to my Laptop) I can see in SDR# how the Noise increase instantly.  ???
I believe everyone who do receive Messages will everything do to have an very low noise floor!
>>> I looking for People who want exchange the VRS Data with me. <<<
I life near LOWW / VIE and see Ground Traffic too.