Radarspotting

Other Software => AcarsDeco2 => Topic started by: Radio2.0 on October 12, 2013, 06:58:33 PM

Title: AcarsDeco2 Development
Post by: Radio2.0 on October 12, 2013, 06:58:33 PM
How i can recive all ACARS Messages?
I know there is ACARSD but it dont work so good.
Planeplotter work perfect but there is no way to revice more than one Audio Channel.
Does i need for every Audio Channel one DVB-T Dongel?
THX
Title: Re: AcarsDeco2 Development
Post by: IanH on October 12, 2013, 08:42:15 PM
If you are using SDR# for receiving audio, there are addins that scan a range of frequencies. You might miss some transmissions but better than 1 dongle per audio channel.

Ian
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on October 12, 2013, 08:47:07 PM
I try it but the huge problem is when Squelch is Activate the first micro sec. are missing and the data are corrupt.
Or when i deactivate it then it turns mute on and that is not fast enough...

How about BorIP i hear this can splitt the Baseband?

I want to use 5 different Antenne to get 10 different Freqeny i cant buy 50 Dongel...
Title: Re: AcarsDeco2 Development
Post by: weird_joe on January 09, 2014, 10:55:12 PM
I am having the same problem, would like to decode 3 ACARS audio channels from 3 receivers, via a ultra low noise preamp and a splitter on one bicone antenna (double discone), but Plane Plotter can only handle one audio channel.
Now I am thinking of trying the free and old ACARSD (http://www.acarsd.org/) via my server, which has a few sound cards hooked up, but I am not sure if I can run the app as a service using a local port that may be assigned to a local console session in my Windows Server 2008 R2 with Hyper-V.
E.g. using any live streaming software with its input coming from sound card within a user session, it gets instantly disconnected from the card once switching the session to RDP access. I wonder if there is a workaround for that. I guess I have to learn how local audio resources are being managed by the OS.
Then again I'd be happy to have all the decoded ACARS data also within Plane Plotter ... I guess I can't have it all.

Anyway you don't need plenty of antennas to listen to different frequencies unless they are frequency wise very far apart or you need antennas in different directions for specific areas. But just for omnidirectional reception one antenna with a ultra low noise preamp and a cheapy 75Ohm TV cable splitter does perfectly well. If the pre-amp is really good, you will actually have a better signal on each RX as if you connect the antenna directly to it!!! Because the total noise figure of a system is being defined on its front end, which most DVB-T dongles or traditional scanner receivers are around 3-4 dB if you are lucky, while you can build or buy an inexpensive preamp with well below 1dB noise figure up into the ADS-B frequency band. Look for ready made preamps or kits that use the PGA-103+ MMIC by Mini Circuits, these are outstanding.

I have also had bad experience with squelched ACARS signals, even with SDR#, which could theoretically have a perfectly timed squelch, since the signals are being delivered to the audio interface with a delay of the decoding algorithm, which could be used to open it directly when detected, then reaching the output few milliseconds later could make it ideal, but sadly that is not the way it is being implemented. I always leave the RX open on my hardware receivers as well, so nothing can get chopped off. Doing so gives me the opportunity to decode even weak signals from planes that are over 200nm away, just making it over the horizon.

One other thing, does anyone know if there are VDL1/2/4 decoders available that are payable on a hobby budget, lets say under 200$?
I'd love to see the content of these massive signals on 136.975 and the other 136 MHz VDL channels.
So far I could not locate anything on the web, though it might be possible to be decoded via sound card and some very specific piece of software!
I wish I would be a really good programmer :-(.

Joe
Title: Re: AcarsDeco2 Development
Post by: Triple7 on January 10, 2014, 07:40:02 AM
Joe,

For VDL2 decoding, you may like to take a look at multipsk:

http://f6cte.free.fr/MULTIPSK_TEST_05_01_2014.ZIP

I think it runs for 5 mins without registering but costs around €30 for the package.

The interface is pretty brutal and the learning curve looks steep, I am just staring with this and a dongle but it's hard going - for me anyway. I'd also suggest you join the yahoo group 'multipsk' as there are some really helpful guys on there.

Good luck, if you crack it, a set of screen grabs showing set up would be most welcome!

Thanks,

Tim
Title: Re: AcarsDeco2 Development
Post by: Chris-G0WTZ on January 11, 2014, 09:24:40 AM
The new SDR Puck will monitor and decode up to 6 ACARS channels

This video shows setting up an SDR Puck with an SBS 1 but it will work as a standalone receiver

http://www.youtube.com/watch?v=E7cSPc0YCB4&list=UUtZqL1b7xQ_J8njJqfU3diA&feature=c4-overview

Regards
Title: Re: AcarsDeco2 Development
Post by: sergsero on April 05, 2014, 05:27:24 PM
AcarSDeco2 v.20180603

(http://i12.pixs.ru/storage/4/9/9/acarsdeco2_9029939_27281499.jpg)

AcarSDeco2 is a multi-channels ACARS decoder.
It supports direct input from a RTL2832U dongle in order to decode up to 4 channels simultaneously (within a ~1MHz band segment) or input/output data from network sources.

./acarsdeco2 --db /home/pi/data/basestation.sqb --frdb /home/pi/data/flightroute.sqb --pictures /home/pi/data/pictures --banners /home/pi/data/logos --silhouettes /home/pi/data/silhouettes --vrs-url http://192.168.1.10:80 --outServer sbs:30008 --outServer ad2:31008 --outConnectUdp pp:192.168.64.118:9742 --inConnect ad2:192.168.64.182:30008 --gain 38.6 --freq-correction 62 --freq 131550000 --freq 131725000 --http-port 8090

--gain 38.6 - setting gain for receiver R820T. Determine the optimal value for your receiving conditions once, for example, in SDRSharp,
--freq-correction 62 - correction of dongle internal oscillator. This is absolutely critical accurate adjustment for multi-channel receiver,
--freq 131550000 --freq 131725000 - frequency of ACARS channel (up to 4),
--http-port 8090 - set the port number for HTTP server. Default 8080,
--vrs-url http://192.168.1.10 - network address of VirtualRadarServer for getting aircraft pictures in the WEB window,
--outConnectUdp pp:192.168.64.118:9742 - set UDP client for transmitting ACARS data to PlanePlotter,
--outServer sbs:30008 - set TCP server for transmit data in Kinetic SBS-3 ACARS format on port 30008.

./acarsdeco2 --help
AcarSDeco2 v.20180603
Program options:
  -h [ --help ]         This help message
  --device-list         List available SDR devices
  --device-index arg    Select SDR device (default: 0)
  --device-serial arg   Select SDR device by serial number
  --gain arg            Set preamp gain of receiver, dB (default: auto)
  --freq-correction arg Set oscillator frequency correction, ppm (default: 0)
  --agc                 Enable automatic gain control in SDR chip (default:
                        off)
  --freq arg            Set receiver frequency, Hz
                        Specify option --freq multiple times to multiple
                        channels (Example: --freq XX --freq YY ...)
  --inConnect arg       Input connector. Format: (sbs|ad2):host:port
  --inConnectId arg     Named input connector. Format: (sbs|ad2):host:port:ID
  --inServer arg        Input server. Format: (sbs|ad2):port
  --inServerId arg      Named input server. Format: (sbs|ad2):port:ID
  --inServerUdp arg     Input UDP server. Format: (sbs|ad2):port
  --outServer arg       Output server. Format: (sbs|ad2|pp):port
  --outConnect arg      Output connector. Format (sbs|ad2|pp):host:port
  --outConnectUdp arg   Output UDP connector. Format: (sbs|ad2|pp):host:port
  --http-port arg       Set port for http server (default: 8080)
  --vrs-url arg         Set VirtualRadarServer url for additional aircraft data
                        Example: http://example.com (default: off)
  --pictures-url arg    Set aircraft pictures collection url
                        Example: http://site.com/path/to/ (default: off)
  --pictures arg        Set aircraft pictures collection local path
                        Example: http://site.com/path/to/ (default: off)
  --no-uplink           Don't display uplink messages (default: on)
  --no-sq               Don't display messages with SQ label (default: on)
  --no-empty            Don't display empty messages (default: on)
  --logfile arg         Set log filename (default: off)
  --frdb arg            Set path to flightroutes database file
  --db arg              Set path to basestation database file
  --silhouettes arg     Set path to directory of aircrafts' silhouettes
  --banners arg         Set path to directory of operators' logos
  --no-console          Disable logging on console (default: on)


(https://lh5.googleusercontent.com/-pl1OAyTtjew/Uf0Bdu_tTrI/AAAAAAAAB-4/CzRCoTOME1k/s64/microsoft_64_new.jpg)
Intel x86 Windows 7/8.1/10: acarsdeco2_windows_20180603.zip https://drive.google.com/open?id=1law3IL_LtILLjN8B0lnSM5IwWZ_t6EJg (https://drive.google.com/open?id=1law3IL_LtILLjN8B0lnSM5IwWZ_t6EJg)

(https://lh5.googleusercontent.com/-vqqCI6Mrg4w/UZo7x7P7TYI/AAAAAAAABk8/0S5t9wU7c8k/s64/arm.jpg)
Raspberry Pi 2/3 Raspbian GNU/Linux 9.0 (Stretch): acarsdeco2_rpi2-3_deb9_20180603.tgz https://drive.google.com/open?id=1Q5HdR3lYoPLVTm4m4dj_o-7lRCLm3tbZ (https://drive.google.com/open?id=1Q5HdR3lYoPLVTm4m4dj_o-7lRCLm3tbZ)
Raspberry Pi 2/3 Raspbian GNU/Linux 8.0 (Jessie): acarsdeco2_rpi2-3_20170914.tgz https://drive.google.com/open?id=0B7NYXizl0U6iS3BRT0NRWDl1UXc (https://drive.google.com/open?id=0B7NYXizl0U6iS3BRT0NRWDl1UXc)

Orange Pi PC 2 H5 64-bit Debian 9.0 (Stretch): acarsdeco2_aarch64_orange-pi-pc2_deb9_20180603.tgz https://drive.google.com/open?id=1DVnB9imzTe7l4oba66bxOaIclf_Hy2iv (https://drive.google.com/open?id=1DVnB9imzTe7l4oba66bxOaIclf_Hy2iv) (Linux 4.14.18-sunxi64 #26 SMP Fri Feb 9 17:14:48 CET 2018 aarch64 GNU/Linux)

(https://lh5.googleusercontent.com/-bxNinalbePI/UZHzGH8FBII/AAAAAAAABdo/VlAyYEbtGxo/s64-no/linux.jpg)
Ubuntu 18.04 Intel 64 bit: acarsdeco2_x86_64_20180603.tgz https://drive.google.com/open?id=1IpS47KyHxlYiaqtFyVq0U6xAuDa3h5_S (https://drive.google.com/open?id=1IpS47KyHxlYiaqtFyVq0U6xAuDa3h5_S)
Ubuntu 16.04 Intel 64 bit: acarsdeco2_x86_64_20170914.tgz https://drive.google.com/open?id=0B7NYXizl0U6iSXNkUGZhNFA5eTQ (https://drive.google.com/open?id=0B7NYXizl0U6iSXNkUGZhNFA5eTQ)

(https://lh5.googleusercontent.com/-Vmvyv0uu2nM/UcWva8Hwd8I/AAAAAAAABxs/HzK6e1kPhKw/s64/macosx_1.jpg)
macOS High Sierra: acarsdeco2_osx_20180603.tgz  https://drive.google.com/open?id=1-3gyWzUz-QIR6cGlyEwox2C9k8FD3D92 (https://drive.google.com/open?id=1-3gyWzUz-QIR6cGlyEwox2C9k8FD3D92) (Darwin Kernel Version 17.5.0: Fri Apr 13 19:32:32 PDT 2018; root:xnu-4570.51.2~1/RELEASE_X86_64)
macOS El Capitan:  acarsdeco2_osx_20170914.tgz https://drive.google.com/open?id=0B7NYXizl0U6iQVVRaDhEbXpNMkE (https://drive.google.com/open?id=0B7NYXizl0U6iQVVRaDhEbXpNMkE) (Darwin Kernel Version 15.6.0)

In the sub-folder "datasets" are the files that can be edited, if the information is outdated. Data should be separated by commas. Each data string must start on a new line with keeping the original format.
Title: Re: AcarsDeco2 Development
Post by: sergsero on July 12, 2014, 07:19:30 AM
One-time calibration of RTL dongle oscillator for AcarsDeco2

To successfully receiving ACARS signals by RTL dongle, in addition to using the proper antenna-feeder device, need to determine the true value of error correction of dongle oscillator in PPM.
RTL2832 tuner has oscillator error is 30...90 PPM, relatively stable once warmed up, and stable from day to day for a given dongle. Perform a one-time calibration of dongle oscillator is usually not difficult. This can be done in the program SDR#.

The signals may not appear exactly on, for example, 131550 kHz or 131725 kHz labels of tuning scale, since of error dongle oscillator. Move the red vertical line at the top of the FFT screen so that it was several left or right of the vertical axis of the window to avoid the effect of central peak near DC component.
At the top, at the dial scale set one of ACARS frequency, for example, 131.725.000.

To do calibration in SDR# desirable with parameters that are close to real, when acarsdeco2 will running. Set the receive mode to AM, bandwidth to 10.0 kHz. So, click on "Configure" and set the "Sample Rate" in 1.4 MSPS. Click "Play" to start it. Adjust slider bar "RF Gain" until you get good reception of the ACARS signals.
ACARS signals look like small horizontal multicolored lines on the waterfall and if you are listening to its through your speakers, they will just sound like blips of noise.

When you zoom its (Use "Zoom" knob to) becomes clearly visible the structure of the amplitude-modulated signal of two symmetrical sides (LSB/USB) and the carrier frequency in the center.
The optimal RF gain such that the signal is strong, but the noise floor is low.

Then start clicking the up/down arrows next to "Frequency correction (ppm)" until the actual signal lines up so that the red line is right in the middle of the line of the signal on signal-carrier frequency:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150718/acars_signals_sdrsharp_ppm_error_corr_1.jpg)

Once it lines up you should be good to go. Close the "Configure" screen, stop SDR# and cancel it.
Title: Re: AcarsDeco2 Development
Post by: sergsero on August 04, 2014, 12:14:26 PM
In the two message above of this thread (Reply #6) updated version of AcarsDeco2 to 20140729.

+ added by default the ability to take images of the aircrafts from the fixed local directory static/pictures. To do this, put your collection of images of aircrafts in the static/pictures directory. The image files must have the .jpg extension. If used the option --vrs-url <arg> in command line, then the ability to taking the images from local directory will disabled and they will be taken from the specified VRS.

+ added option --pictures-url <arg> for the ability to take images of the aircrafts from site, which can issue their by http requests

+ added option --no-empty for filtering messages without data, for example, Mode: 2 (50), Label: Q0 (ACARS link test)

+ added picture-plug for aircraft for which there is no image in the collection

+ changed filtering uplink messages from ground stations

Thanks,
sergsero
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on August 04, 2014, 12:21:19 PM
mybe in a next version you can compare the data from 2 running .exe together into one?
Title: Re: AcarsDeco2 Development
Post by: sergsero on August 08, 2014, 04:07:00 PM
Hi Radio2.0,

if I understand you correctly, are you talking about the possibility of merging messages from multiple sources, receiving their data via network?
I'll think about it. However, soon I'll be on vacation and can something to try to do only in the next month.



By the way, in the #6 message of this thread updated version to 20140807.

+ added display of supplemental information and live data, extracted from ADS-B messages the same aircraft. If simultaneously with the ACARS this aircraft transmits ADS-B messages and they are received and processed by VRS, then specifying its URL, you can see some of this information in acarsdeco2 WEB server.

+ added by default the ability to take images of the aircrafts from the fixed local directory static/photos. To do this, put your collection of images of aircrafts in the static/photos directory. The image files must have the .jpg extension. If used the option --vrs-url <arg> in command line, then the ability to taking the images from local directory will disabled and they will be taken from the specified VRS.

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20140807/acarsdeco2_20140807.png)

I will be grateful to all for its testing.

Thanks,
sergsero
Title: Re: AcarsDeco2 Development
Post by: sergsero on September 06, 2014, 05:06:02 PM
 In the #6 message of this thread updated version AcarsDeco2 to 20140905.

+ modified algorithm for determining multiple instances of RTL devices with different serial numbers, that are simultaneously connected to the computer
+ fixed message format for data transfer over UDP protocol in accordance with the requirements of PlanePlotter. Thank you Bev for clarification of program requirements
+ added option --device-serial <arg> for identify the instance of the dongle via the serial number
+ removed software limitations on the number of simultaneously receiving channels. Now their number is limited computing power of the computer. The spacing between the channels with the minimum and maximum frequency is up to 0.73 MHz
+ changed length of the border lines between messages to 80 characters

Now if program was run with the option --device-list, it's allows you to determine the connected devices with their serial numbers:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20140906/acarsdeco2_device_list_a.png)

To run multiple copies acarsdeco2 with different dongles, you need to specify the it unique serial id number in the option --serial-number for each program:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20140906/acarsdeco2_sn13_sn15_r11.png)

If some dongles (s/n 15) already in the works, this will be indicated:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20140906/acarsdeco2_device_list_already_in_use.png)

When you try to run the program with dongle, which is already used (s/n 15), you will receive the following message:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20140906/acarsdeco2_sn15_sn15_not_found.png)
Title: Re: AcarsDeco2 Development
Post by: maximus_mike on December 17, 2014, 03:31:15 AM
Hi Sergsero,

I have been using your Modesdeco2 for some time now, and just found your Acarsdeco2 and must just thank you for this great decoder. It seems to work better than any of my other ACARS decoders, ACARSD, MultiPSK, SBS3 ACARS module and the Winradio ACARS decoder. Of these, the Winradio decoder always gave the most decodes, however your new Acarsdeco2 now gives more decodes than any of the others.

I have also discovered that as you included the ability to output the data in SBS3 ACARS format via port 30008, it is also compatible with the SBS3 ACARS module in my Display-Launcher suite of freeware programs as under.

http://www.rstools.info/Public/acarsdisplay.jpg (http://www.rstools.info/Public/acarsdisplay.jpg)

Mike

Title: Re: AcarsDeco2 Development
Post by: Anmer on December 17, 2014, 08:25:17 AM
Quote from: maximus_mike on December 17, 2014, 03:31:15 AM
I have also discovered that as you included the ability to output the data in SBS3 ACARS format via port 30008, it is also compatible with the SBS3 ACARS module in my Display-Launcher suite of freeware programs as under.

Mike

I don't mind members posting messages with links to their software utilities.  However, are they still including a banner advert for the Radarspotters Forum?
Title: Re: AcarsDeco2 Development
Post by: Sun Worshipper on December 17, 2014, 11:12:54 AM
QuoteHowever, are the still including a banner advert for the Radarspotters Forum?

Stone them, I say! ;)
Title: Re: AcarsDeco2 Development
Post by: IanH on December 17, 2014, 11:27:34 AM
Just downloaded and tried it and yes the SBS3_ACARS page looks like the screenshot WITH THE BANNER.

And ACARSD page has:

"For ACARS support see R**********RS" - be waiting a long time for that

Other pages seem to have no banner.
Title: Re: AcarsDeco2 Development
Post by: Anmer on December 17, 2014, 06:50:36 PM
Thanks Ian.

From memory.someone paid for that advert!
Title: Re: AcarsDeco2 Development
Post by: IanH on December 17, 2014, 09:12:08 PM
Both banners go to an unavailable web page on the other site. So support now abandoned  ::)  Time to move on.
Title: Re: AcarsDeco2 Development
Post by: maximus_mike on December 17, 2014, 10:30:06 PM
Sorry about that folks, that banner has been on the page for a couple of years, I will remove it now as it is out of date.

Mike
Title: Re: AcarsDeco2 Development
Post by: IanH on December 17, 2014, 11:21:09 PM
Hope you realise that it's not a problem with your software but rather a banner for a website that many of us used to frequent until it was devalued.

Indeed having been unaware of your software previously, I hope to investigate further.

Ian

Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on December 17, 2014, 11:34:09 PM
is sergsero death?
Title: Re: AcarsDeco2 Development
Post by: sergsero on December 18, 2014, 01:33:32 AM
Radio2.0,

в чем вопрос?
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on December 18, 2014, 10:34:34 AM
спасибо за вашу большую работу.  ;D
Title: Re: AcarsDeco2 Development
Post by: maximus_mike on December 21, 2014, 10:23:03 PM
I have uploaded another update to PC-HFDL-Display and HFDL-Display on my site, both  now at version v2.0.22

Fixes a couple of problems with the 'Show active freq' screen, including fixing a crash which happened if you selected Load and then changed your mind.

And to avoid being stoned by some users here, I have removed the banners which caused angst amongst you  :)

You may need to press F5 in your browser to clear the cache to see new versions.

Regards, Mike Simpson
Penrith, NSW, Australia
http://www.rstools.info
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on December 24, 2014, 12:47:05 PM
Does anyone try the new dll files?
http://www.rtl-sdr.com/testing-keenerds-rtl-sdr-drivers/
Title: Re: AcarsDeco2 Development
Post by: sergsero on January 17, 2015, 04:57:03 PM
Test version of AcarSDeco2 specifically for the Raspberry Pi SoC architecture: acarsdeco2_rpi_20150115.tgz - v.20150115

+ optimized for use with receiver chips R820T or R820T2
+ added support for dongle's serial numbers with an arbitrary value format, such as mnf: Realtek prod: RTL2838UHIDIR serial: 00000013 and Generic prod: RTL2832U serial: 77771111153705700 (NooElec)

Inside the archive there's this picture:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150115/acars_signals_sdrsharp_ppm_error_corr.jpg)

For effective simultaneous receiving on multiple frequencies should be to precisely adjusted the error frequency of the generator in ppm, as shown in the picture. You can use SDRSharp. "To precisely adjusted" is means that the set-point frequency channel (the red vertical line, in this case at 131725000 Hz) must pass exactly through the middle of the ACARS signal. Use Zoom knob (top right) stretch the signal to better see his form.

Make once after ~30 minute warm-up of dongle.

The optimal value of the gain must also be adjusted experimentally for the specific conditions of receiving and your ACARS antenna-feeder device.

Thanks,
sergsero
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on January 17, 2015, 04:58:39 PM
How many Frequency/ Dongle can the Pi handle at the same time?
Title: Re: AcarsDeco2 Development
Post by: sergsero on April 19, 2015, 11:02:57 AM
In the #6 message of this thread updated version to 20150419 for some of platforms: Windows, Intel Linux 32/64, Raspberry Pi 2, OSX.

+ Fixed some bugs.
+ Increased valid channel spacing (maximum frequency spread) up to ~1450 kHz. For example, fmin=131100000 Hz and fmax=132550000 Hz. The frequency with DC spike will be 131825000 Hz. Program has compensation algorithm of IQ phase imbalance at this frequency. But it is better to avoid getting the channel on this frequency. If that happens, then to log will be issued a warning.
+ Increased the number of simultaneously received channels to 4 (within the band from fmin to fmax up to 1450 kHz).
+ Uses own internal driver to control of dongle and library rtlsdr.dll from osmocom.org is no longer required.

Feeding ACARS messages in PlanePlotter can be via UDP Protocol on the default port 9742 with use option --udp IP:Port.
Remember to include your correct Plane Plotter PC's IP address, and the appropriate ppm correction for your own dongle. Be sure that in the Options, I/O settings, Input data panel, the box UDP/IP from net is checked.


[Attachment deleted by Admin to save file space]
Title: Re: AcarsDeco2 Development
Post by: herrmann-s on April 19, 2015, 12:45:13 PM
is there any chance to get arcarsdeco running on radarcape?
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on April 19, 2015, 12:46:29 PM
if it work with SDR# maybe.
Title: Re: AcarsDeco2 Development
Post by: Keef on April 21, 2015, 12:04:51 AM
Once again thanks for your contributions sergsero, you've produced and kept on improving some really useful applications.

I really appreciate your effort.
Title: Re: AcarsDeco2 Development
Post by: Breitling on April 22, 2015, 08:55:43 PM
Hi sergsero, really appreciate your work.

I've seen on a screenshot from you decoded and formatted departure and arrival airports. I can't manage to get them. Do I need any special switch on the command line?
Title: Re: AcarsDeco2 Development
Post by: sergsero on April 23, 2015, 03:06:46 AM
Hello,

I thank you for your kind words about the program.

The current version is designed to work with VRS (Virtual Radar Server). When you use the option --vrs-url <http://ip:port>, program asks the VRS additional data for specific aircraft, namely: picture, coordinates at the moment of receiving the ACARS message, heading (true track), speed, vertical speed, altitude and route of flight.
If all the data or part of them available in VRS, they will be obtained in response to a query and displayed in the WEB window of acarsdeco2. The VRS receives flight routes from his home server.

In the new version acarsdeco2 I plan to make the ability to add local file of routes, as is already done in modesdeco2/modesmixer2. In this case we will have opportunity to update the information of flight routes and/or add new ones.
Title: Re: AcarsDeco2 Development
Post by: Breitling on April 23, 2015, 08:49:14 AM
Thank you very much, I'll give it a try.
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on April 23, 2015, 07:08:03 PM
cool!
Can you make a screenshot how it look like?
Maybe you can make some Virtual ACARS Server who allow everyone to share the Messages 1:1 to other People.
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on May 25, 2015, 10:06:23 AM
here is the current Version: http://forum.planefinder.net/threads/acarsdeco2-up-to-3-channels-acars-sdr-receiver-for-rtl2832-dongle.157/
Title: Re: AcarsDeco2 Development
Post by: sergsero on July 19, 2015, 02:46:51 PM
Hello,

There is upgrade version 20150718 in msg. #6 this forum thread.  Mostly the changes have occurred in optimizing code for ARM CPU and fixed errors.

Regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on July 19, 2015, 05:55:16 PM
no chance for win?
How about my ideas?!
Title: Re: AcarsDeco2 Development
Post by: tonkepen on July 27, 2015, 08:42:32 PM
+ added option --pictures-url <arg> for the ability to take images of the aircrafts from site, which can issue their by http requests

Please anyone I could give an example, of how you have to put this function?

The truth is not like putting it.

Thank you
Title: Re: AcarsDeco2 Development
Post by: sergsero on July 28, 2015, 10:12:38 AM
Hi tonkepen,

There are three possible variants to add source of pictures.

1. Images can be placed on the same computer where the program runs. Just put their into existing subdirectory pictures which is inside the static folder:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150728/pictures_the_same_comp.jpg)

No options are required:
acarsdeco2 --gain 38.6 --freq-correction 64 --freq 131550000 --freq 131725000 --http-port 8880


2. If anywhere in network there is a HTTP server, then images can be placed on it. For example, put their in the web folder pictures. Check access to pictures via browser:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150728/pictures_http.png)

To use add the command line option: --pictures-url http://192.168.64.160/pictures/
acarsdeco2 --gain 38.6 --freq-correction 64 --freq 131550000 --freq 131725000 --http-port 8880 --pictures-url http://192.168.64.160/pictures/


3. If simultaneously with "ACARS" you are receiving  "ADS-B" from the same aircrafts in VirtualRadarServer:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150728/pictures_from_vrs.jpg)

add the command line option: --vrs-url http://192.168.64.85:80
acarsdeco2 --gain 38.6 --freq-correction 64 --freq 131550000 --freq 131725000 --http-port 8880 --vrs-url http://192.168.64.85:80

and you'll able to obtain pictures and other data from VRS in acarsdeco2's WEB:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150728/acarsdeco2.jpg)


Regards,
sergsero

http://xdeco.org/
Title: Re: AcarsDeco2 Development
Post by: sonicgoose on October 26, 2015, 12:24:20 PM
For some reason my acarsdeco2 web server has ceased to work this morning. It was running fine yesterday. The console app is running, the --http-port arg is specified in the batch file. I've rebooted both my router and the PC running acarsdeco2 but the web server simply won't come back up. IP address hasn't changed. I keep getting a 404 Not Found error in my browser. Any ideas?
Title: Re: AcarsDeco2 Development
Post by: Anmer on October 26, 2015, 12:47:07 PM
Have you tried deleting any old cookies?  Or is the browser url auto completing based on an old address?
Title: Re: AcarsDeco2 Development
Post by: Keef on October 26, 2015, 03:20:01 PM
If you have a firewall running on the PC it might be worth turning it off temporarily to see if the web page can then be displayed.
If so then you can turn it back on and let the port through the firewall, if it doesn't make any difference then it at least rules out a firewall as the issue.

I seem to recall having a similar problem some time ago and I'm not sure even if the problem was with acarsdeco2 or if it was something else generating a web page.
On that occasion I think the solution was to run the application with administrative privileges which sorted out the issue.
Whatever was going on the problem went away hence my vague recollection, but if the firewall thing doesn't help then it might be worth trying running acarsdeco2 with administrator privileges.
Title: Re: AcarsDeco2 Development
Post by: sonicgoose on October 26, 2015, 11:17:08 PM
Thanks for the replies. It isn't a browser cache issue as I'm having this problem on multiple computers. And on the machine running acarsdeco2, the firewall isn't even active. Between yesterday and today nothing has changed, yet yesterday it worked and today I get just 404 Not Found.
Title: Re: AcarsDeco2 Development
Post by: sonicgoose on October 28, 2015, 11:23:45 PM
Problem solved. I had scheduled acarsdeco2 to run via Task Scheduler but had forgotten to specify a Start In path (which is a ridiculous option because the path to the app is specified in the Start a Program action.). Once the path to the app was specified, the web page loaded again.
Title: Re: AcarsDeco2 Development
Post by: Anmer on October 29, 2015, 07:50:33 AM
Thanks for letting us know how you resolved this.  It may help others.
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on October 29, 2015, 03:41:49 PM
i think Sergsero dont support acarsdeco2 anymore...
Title: Re: AcarsDeco2 Development
Post by: Anmer on October 29, 2015, 03:57:56 PM
Quote from: Radio2.0 on October 29, 2015, 03:41:49 PM
i think Sergsero dont support acarsdeco2 anymore...

What makes you think that?
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on October 29, 2015, 04:13:40 PM
he replayed no answers.
Title: Re: AcarsDeco2 Development
Post by: shinesamuel on October 26, 2016, 12:44:16 PM
I am also getting the 404 not found  with Acars with using raspberry pi
Any solutions please.
Title: Re: AcarsDeco2 Development
Post by: sergsero on March 10, 2017, 05:19:10 AM
Hello,

In message #6 http://radarspotting.com/forum/index.php/topic,3182.msg17659.html#msg17659 (http://radarspotting.com/forum/index.php/topic,3182.msg17659.html#msg17659) of this thread updated version 20170309 of the program.

Regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on March 10, 2017, 12:42:14 PM
 ;D what is new?
Title: Re: AcarsDeco2 Development
Post by: sergsero on March 11, 2017, 01:27:24 AM
Made improvements for Windows 10.
Fixed some bugs in the code when working on ARM SoC.

There are no new user features in this version. They will be implemented in the next versions that are currently in development.

Regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: acarslogger on March 26, 2017, 08:55:14 PM
Hi sergsero,

Have you seen this request .. https://www.radarspotters.eu/forum/index.php?topic=7938.msg55597#msg55597 . Not many people appear to use that forum now so it's possible that you missed the request.

Adding carriage controls into your --net output would be great.

Thanks
Stuart
Title: Re: AcarsDeco2 Development
Post by: sergsero on March 28, 2017, 12:43:08 PM
Hi Stuart,

Thank you for the link.
I included implementation of this mode in the option '--net' for next release.

Regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: acarslogger on March 28, 2017, 08:04:45 PM
Thanks sergsero,

Looking forward to the next release.

Regards
Stuart
Title: Re: AcarsDeco2 Development
Post by: sergsero on May 08, 2017, 06:58:42 AM
Hello,

The new version AcarsDeco2 v.20170506 - now for testing only.

Regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: acarslogger on May 13, 2017, 04:52:29 PM
Hi sergsero,

I have the new version up and running on windows 10. Works OK and it's good to see that the new 'AD2' interface now maintains original formatting with inclusion of CR/LF.

Oceanic clearance now displays correctly in the 'AD2' TCP/IP interface as

BAW249 CLRD TO SBGL VIA UMLER
RANDOM ROUTE
PASAS 37N020W 30N025W BAMUX 20N028W
FM UMLER/1302 MNTN F340 M082
END OF MESSAGE

Thanks.
Stuart
p.s. minor typo - in the acarsdeco2.readme it states "For example: --outServer ad:30008". It should be "For example: --outServer ad2:30008"

Title: Re: AcarsDeco2 Development
Post by: sergsero on August 21, 2017, 03:03:00 PM
Hello,

Some time ago I started working on a new version of the program.
At the moment there is the first test version 20170819. I will be grateful for testing and feedback.

New capabilities of acarsdeco2:

- receive ACARS messages from external sources via network and transmit local data to remote users. The format of options similar to those used in ModeSMixer2.
  --inConnect <arg>       Input connector. Format: (sbs|ad2):host:port
  --inConnectId <arg>     Named input connector. Format: (sbs|ad2):host:port:ID
  --inServer <arg>        Input server. Format: (sbs|ad2):port
  --inServerId <arg>      Named input server. Format: (sbs|ad2):port:ID
  --inServerUdp <arg>     Input UDP server. Format: (sbs:ad2):port
  --outServer <arg>       Output server. Format: (sbs|ad2):port
  --outConnect <arg>      Output connector. Format (sbs|ad2):host:port
  --outConnectUdp <arg>   Output UDP connector. Format: (sbs|ad2):host:port


- support two message formats when transmitting via network: sbs  - without keeping original format of message and ad2 - with keeping format.
- obtaining an additional information: from basestation.sqb database file for aircraft, from flightroute.sqb for route of flight, full names of airports of departure and arrival.
  --frdb <arg>            Set path to flightroutes database file (read-only access to the database) (default: off)
  --db <arg>              Set path to basestation database file (read-only access to the database) (default: off)


- display on web pages a silhouette of aircraft, logo of airline and country flag of aircraft registration.
  --silhouettes <arg>     Set path to directory of aircrafts' silhouettes (default: off)
  --banners <arg>         Set path to directory of operators' logos (default: off)
  --pictures-url <arg>    Set aircraft pictures collection url. Example: http://site.com/path/to/ (default: off)
  --pictures <arg>        Set aircraft pictures collection local path. Example: http://site.com/path/to/ (default: off)


- the WEB interface (in the moment) has three pages and the table stores data of during 12 hours of observation.

If simultaneously with ACARS data you receiving ADS-B messages from the same aircraft and use VRS, I suggest to add to arguments for run the option --vrs-url <arg>, for example: --vrs-url http://192.168.1.10, for obtaining more information.

In this version temporarily disabled:
- transmission of data via UDP protocol to PlanePlotter,
- select SDR device instance by its serial number.


Best regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: sergsero on August 21, 2017, 03:05:53 PM
Example of the new WEB interface:

(http://i12.pixs.ru/storage/4/9/9/acarsdeco2_9029939_27281499.jpg)

(http://i12.pixs.ru/storage/5/9/6/acarsdeco2_2876744_27281596.jpg)
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on August 21, 2017, 10:20:55 PM
Hi Sergsero,
Just gave it a very quick go and it seems that --device-index arg is not working (as I would expect).

This is what I did/tried:
./acarsdeco2 --device-list
AcarSDeco2 v.20170819
Available Devices:
0 mnf: Realtek prod: RTL2838UHIDIR serial: 00000011


./acarsdeco2 --device-serial 00000011 --freq 131525000 131725000 131825000
AcarSDeco2 v.20170819
Device not found.


./acarsdeco2 --device-serial 11 --freq 131525000 131725000 131825000
AcarSDeco2 v.20170819
Device not found.

Cheers,
Dick
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on August 21, 2017, 10:38:16 PM
Hi Sergsero,
This is probably a newbie question.

The help states:
--no-sq               Don't display messages with SQ label (default: on)

I understand that this means that messages with an SQ label are not logged.
What should I do when I DO want to log the Squitter messages?

Cheers,
Dick
Title: Re: AcarsDeco2 Development
Post by: sergsero on August 21, 2017, 10:55:13 PM
Hi Dick,

Thank you for testing.
Indeed, in this version was temporarily disabled capability of using a dongle via the serial number. It will be included in the next test version.

If I understand correctly, you want to keep Squitter messages but not display its?
I will try to implement it in next version.

Regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on August 22, 2017, 07:12:32 AM
Hi Sergsero,

Well, I would like to find the SQ messages in the log, because to me it is interesting to see DX squitters.
I live too far from the airport to see all the squitters, so I only catch a few and most of them are DX..
You will be surprised to see how far an SQ signal on 131 MHz can travel :-)

I feed the data to Planeplotter and use a headless RPi, so I never see the SQ on the screen. They do appear in the PP log, but as it are only a few that is OK for me.

Thanks,
Dick
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on August 22, 2017, 07:56:39 AM
Hi Sergsero,
As to the
" --no-sq               Don't display messages with SQ label (default: on)"

I was confused by the " --no-sq" and the "(default: on)".
Looking at the log I now understand that when " --no-sq" is not used the SQ messages are displayed and appear in the log.
So the "on" in "(default: on)" does not mean the option is true / "on" but it means that the SQ messages are displayed.

Maybe it is just me but I always have a problem understanding 'negative options' (like " --no-sq" ) and their = true or false state.
In this example it might be better to mention:
" --no-sq               Don't display messages with SQ label (default: these are displayed)".
Likewise it might be more clear to say:
"--no-empty            Don't display empty messages (default: empty messages are displayed)".

Thank you for your patience,
Dick
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on August 22, 2017, 08:50:58 AM
One more observation:
I run acarsdeco2 like this:
./acarsdeco2  --no-console --freq-correction +4 --freq 131525000 131725000 131825000 --http-port 8888 --logfile test &

When I connect to port 8888 the Log tab shows
RegNo: PH-EZO Callsign: KL085F
But the Flights tab only shows the Regno, not the Callsign.

Cheers,
Dick

[Attachment deleted by Admin to save file space]
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on August 22, 2017, 08:59:33 AM
Does anything on the Reception change?
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on August 22, 2017, 02:51:18 PM
One more observation.
As most users I did not read the readme globally not carefully.
So I defined the 3 frequencies this way
--freq 131525000 131725000 131825000
And that works fine.

The .readme and the --help state that the correct way is --freq XX --freq YY, but  --freq XX YY .... also works.

  --freq arg            Set receiver frequency, Hz
                        Specify option --freq multiple times to multiple
                        channels (Example: --freq XX --freq YY ...)

Cheers,
Dick
Title: Re: AcarsDeco2 Development
Post by: evangel on August 25, 2017, 02:23:33 AM
Hi Sergsero

excellent work ! works ok my end with

cmd /c acarsdeco2.exe --gain 38.6 --freq-correction -9 --http-port 8282 --vrs-url http://127.0.0.1:8484 --db f:\db\bs.sqb --frdb f:\db\fr.sqb --silhouettes f:\db\silhouettes --pictures f:\db\pictures --banners f:\db\logos --outServer ad2:31108  --freq 131550000 131725000 130450000 131475000 --logfile c:\adsb\acarsdeco2017\acars.log


(//)


A nice add-on will be to have a 'Log Playback'  feature/button.

brgds/evangel

[Attachment deleted by Admin to save file space]
Title: Re: AcarsDeco2 Development
Post by: HF-GCS on August 25, 2017, 10:58:08 PM
Hi Forum, hello Sergsero,

at the first - thank you, for the new version, the webinterface is really beautiful!

It works so far, but i noticed some issues.
(Testing only the Windows versions)

Got this only with the versions 20170819 and 20170309, version 20150718 is great and the message rate is noticeable higher!
My PC-Clock is ok and i use the Meinberg NTP tool for accurate time sync.
After running the program for a short time, the time difference in the meanwhile are up to 4 minutes (please have a look on the screenshot)

I'm using Windows 10 with the latest updates!
I hope this feedback helps!?

[Attachment deleted by Admin to save file space]
Title: Re: AcarsDeco2 Development
Post by: sergsero on August 26, 2017, 01:52:06 AM
Hello,

Thank you for testing and for reporting about detected errors in the program. I carefully check and will try to fix it in next test version.

Best regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on August 26, 2017, 08:23:23 AM
Does the Decoder Change?
Title: Re: AcarsDeco2 Development
Post by: sergsero on September 08, 2017, 09:26:28 AM
Hello,

Thank you very much for testing!

Best regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: sergsero on September 10, 2017, 12:57:21 PM
Hi,

Let me remind that for a successful receive ACARS messages you should be using the 'Frequency Correction' field in the configuration popup of SDRSharp to correct the frequency variation of a particular dongle.
Typically, once it's set it doesn't vary much from day to day. But you must do it after the dongle has been powered on for a while.

The difference between carrier frequency of the aircraft's transmitter and tuning frequency of the receiver should be minimal after about a 30 minute warm up.

Here is picture, which shows a method of exact adjustment of the frequency of dongle oscillator.

Regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: AcarsDeco2 Development
Post by: Nigel on September 10, 2017, 02:42:12 PM
The new test version is working fine for me. Thanks for the PlanePlotter fix. The new Web interface is excellent.

Many thanks

Nigel
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on September 11, 2017, 11:42:57 AM
Hi Sergsero,
Thanks for the new version and you ongoing effort to enhance the program.

Although I considered myself a software guy I am a bit confused.
I do understand the client-server model as well as UDP messaging.
So the options --outServer and  --outConnectUdp are clear to me.
But I would appreciate some explanation on what you mean with this --outConnect option.
As its arguments holds a 'host' value it looks like an UPD or ar least some sort of push protocol, were "host:port" is the target machine.

Cheers,
Dick
Title: Re: AcarsDeco2 Development
Post by: sergsero on September 11, 2017, 02:23:37 PM
Hi Dick,

1. The name of connection is determined depending on data direction in relation to the acarsdeco2 program: (--in...) means "input" and (--out...) means "output".

Although other network protocols exist, now we say about a TCP/IP network. Using this method, the computer sending the data connects directly to the computer it is sending the data it to, and stays connected for the duration of the transfer. With this method, the two computers can guarantee that the data has arrived safely and correctly, and then they disconnect the connection.

2. The program has two methods of obtaining an external data:  (--inServer) – when listener (local server sockets) opens a port on the network and then waits for clients to connect to that port. Client pushes it data to program.
And (--inConnect) – when the program as a client makes handshake, establishes a connection and pulls a data from remote server.

3. Similarly own data of the program can be rebroadcast over network by two methods: (--outServer) –  sender (local server sockets) opens a port on the network and then waits for clients to connect to that port. In this case client pulls a data from the program.
And (--outConnect) – when the program as a client makes handshake, establishes a connection and pushes a data to remote server.

4. If instead of a standard TCP/IP protocol connection uses connectionless  datagram over UDP/IP, in options name add "Udp" --inServerUdp or --outConnectUdp.

Although in the case of UDP, this name --outConnectUdp is not entirely correct since with UDP the program can send messages, in this case referred to as datagrams, to other hosts without establishing connection in hopes that they are accepted via the specified remote address and port. This method of transmission does not provide any guarantee that the data you send will ever reach its destination.


In --help's description a host is a computer that is accessible over a network. It can be a client or a server. It is understood that each host has a unique identifier called a hostname that allows other computers to access it. Depending on the network protocol, a computer's hostname may be a domain name or IP address.

Best regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on September 11, 2017, 09:17:05 PM
Hello Sergsero,

Thank you for the extended response. Much appreciated.

Cheers,
Dick
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on September 16, 2017, 10:50:10 AM
Hello Sergsero,
New version looking good.
I have one question and observations.
Question: is there some documentation on the web interface? Would like to know the meaning of the green/blue bullets inthe most right column.

Observations:
1. I use the command from a script on a headless RPi and start it with crontab or using SSH:
/home/pi/acarsdeco2_20170907/acarsdeco2  --no-console --device-serial 12 --freq-correction -2 --freq 131525000 131725000 131825000 --http-port 8888 --logfile /home/pi/acarsdeco2_20170907/logs/test >> "/home/pi/acarsdeco2_20170907/logs/process-acarsdeco2.log" &
I was hoping/expecting to see all (except the acars messages) in the file "process-acarsdeco2.log". However some program messages are displayed on the console and not in the file.
Did I do something wrong? 

2. The flights/records on the web interface do not seem to timeout.
All records since starting the program (10 hours ago) are still there.
Is that working as designed or is there a timeout setting I can use and have missed?

See attached screenshots.

Cheers,
Dick

[Attachment deleted by Admin to save file space]
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on September 16, 2017, 11:10:11 AM
Hi Sergsero,

As to the first observation:
I changed the end of the command from" & " into " 2>&1 &".
Now all program output is redirected to the file specified behind the "  >>  ".

Cheers,
Dick
Title: Re: AcarsDeco2 Development
Post by: acarslogger on September 16, 2017, 05:01:56 PM
Hi sergsero

Thanks for your latest version of acarsdeco2. I'm using release 20170907 on windows and monitoring the output using the --OutServer and --OutConnectUdp parameters.

The OutServer options are OK. I get an ascii output in comma separated format
date,time,frequency,mode,registration,ack/nak,label,blockid,msgno,flightid,acarsmessage

The sbs format contains spaces in place of carriage return/line feed.
The ad2 format retains the CR/LF.

When I use the --OutConnectUdp ad2 parameter I get an ascii output in the same format as above, with CR/LF retained.
However when I use the --OutConnectUdp sbs parameter I get an ascii output in the following format using space separated

ADmode registration ack/nak label blockid msgno flightid acarsmessage

The acars message has CR/LF replaced with a space. But there is no date and time.

Should the OutConnectUdp sbs format be comma separated and include date and time fields ?

Regards
Stuart
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on September 16, 2017, 07:56:57 PM
Hello Sergsero,
Two observations:
1. all log entries contain "SOURCE: AIR", also the uplinks like squitters.
If that is correct then what does "SOURCE" mean?

2. The process log where all program messages are redirected to is filled with records like these:
"2017-09-16 14:12:47.603  ERROR    AircraftCache::getAircraftsList(): regno in DB but not in cache"

Cheers,
Dick

Title: Re: AcarsDeco2 Development
Post by: sergsero on September 17, 2017, 05:26:11 AM
Hi Dick,

The option --no-console disables display of received messages on the screen, but not a service information of the program. Use additional redirection in the command line if you want to redirect all. However, remember that the "1" denotes standard output (stdout) and the "2" denotes standard error (stderr). So 2>&1 says to send standard error to where ever standard output is being redirected as well.

The color of bullets indicates the time interval in minutes since the last message was received - green: 0 < t < 5 min, blue: 5 < t < 60 and grey: t > 60 min.

The program keeps in memory the information about the received messages for 12 hours (± 5 min).
Note. In this version, uniqueness of the record is determined only by a registration number of the aircraft. In next versions will additionally use the flight number.

Source here means that the data were been obtained through own receiver (AIR) or via a network (NETWORK).

I'm working on the issue "error AircraftCache::getAircraftsList(): regno is in DB but not in cache" in program code. Although not able to reproduce it in my tests.

Regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: sergsero on September 17, 2017, 06:11:21 AM
Hi Stuart,

The formats of output messages via a network.

In the current test version 20170914 (see below) I added new format for PlanePlotter as pp. So now, in some options you can use three different formats: sbs | ad2 | pp.

I check the order of characters in the program's formats based on output to network data in the original programs Basestation.exe and Planeplotter.exe.

On the first screenshot, messages were decoded and sent via network by two sources: Planeplotter.exe using its audio input (at the bottom) and receiver SBS-3 through the program Basestation.exe (at the right top).

The second screenshot is internal representation of the same messages within these programs. The timestamp of message received is present in Planeplotter, but it's not sending via network.

Now you will be able to use UDP protocol to transmit messages, which have comma separated components and include date and time fields - the third screenshot.

Regards,
sergsero


[Attachment deleted by Admin to save file space]
Title: Re: AcarsDeco2 Development
Post by: sergsero on September 17, 2017, 10:02:08 AM
Hello,

Thank you very much for testing!

Best regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on September 17, 2017, 10:57:15 AM
Hello Sergsero,
Thank you for the extended explanation.
As always much appreciated.

As to the `regno in DB but not in cache` messages±
A closer look in the process log shows that there is only one set of 2050 of these message. It seems some sort of loop.
The time of the first error message:
"13:39:02.540  ERROR    AircraftCache::getAircraftsList(): regno in DB but not in cache"

is only milliseconds after this message:

SOURCE: AIR
RX_ID: 1352, Freq: 131.525MHz
ACARS mode: t (116), label: SQ (Link test message)
Block id:   (32)
Aircraft reg:       

Message content:-
02XSCDGLFPG04901N00233EV136975/
-------------------------------------------------------[2017-09-16 13:39:02.295]

There is only one "label: SQ" message in this log.
Maybe it is related?

Cheers,
Dick 
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on September 17, 2017, 11:07:59 AM
@Hobbyd
I reccommend to use that freq: --freq 131525000 --freq 131550000 --freq 131725000 --freq 131825000 --freq 131850000

So I ask again:
1) does anything change on the Decoder?
2) Can you add an output thing to put it out as an CSV File? It would make my life easier.
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on September 17, 2017, 11:52:33 AM
Hello Radio.2

I am confused by your

"@Hobbyd
I reccommend to use that freq: --freq 131525000 --freq 131550000 --freq 131725000 --freq 131825000 --freq 131850000 "

In my area there are only 3 active acars freq's and I have them configured like this:
"--freq 131525000 131725000 131825000" which works fine.

The two questions you ask (again) can only be answered by Sergsero.

Cheers,
Dick
Title: Re: AcarsDeco2 Development
Post by: acarslogger on September 17, 2017, 11:59:57 AM
Hi sergsero,

Thanks for response regarding the sbs | ad2 | pp output options.

I'll test the new test version.

Thanks
Stuart
Title: Re: AcarsDeco2 Development
Post by: sergsero on September 17, 2017, 01:01:46 PM
Hi,

In these test versions in code completely rewritten the network part and interface. In decoder was made optimization computing for Intel CPU and now used some intrinsics, that refers to functions that are built-in and most standard library functions that the compiler can/will generate inline instead of calling an actual function in the library.
Perhaps, if time allows, I'll make improvements in the code for ARM processors.

Data output to file in CSV will be realized in next versions.

I note, that unfortunately, in my area not available for receiving messages from ground stations (ground-to-air) and the associated functionality is not tested in practice.

I'll be waiting on tests results and feedback.

Regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on September 17, 2017, 01:19:34 PM
Hi Sergsero,

Version v.20170914 up and running.

Two observations:
1. again got a large set of "AircraftCache::getAircraftsList(): regno in DB but not in cache" messages.
The time of the first one again equeals to the time of an "Message label: SQ" message.
That cannot be a coincidence, can it ;-)

2. I was trying to get a logfile without any prefix.
So I tried this:
--logfile /home/pi/acarsdeco2_test/logs/
which resulted in this:
-20170917-115027.log

Would it be possible to remove the "-" when the --logfile option only contains a directory name?

PS.
I very much like the INFO records in the process log like these:

2017-09-17 11:50:21.707  INFO     outConnectUdp(PP:10.0.1.2:9742) started
2017-09-17 11:50:22.305  INFO     outConnectUdp(PP:10.0.1.2:9742) start sending

Very helpfull.

Cheers,
Dick

Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on September 17, 2017, 01:42:37 PM
QuoteIn my area there are only 3 active acars freq's and I have them configured like this:
"--freq 131525000 131725000 131825000" which works fine.
In Europe normally more freq are in use.
There are also ACARS on 136.XXX
QuoteI note, that unfortunately, in my area not available for receiving messages from ground stations (ground-to-air) and the associated functionality is not tested in practice.
is there a list where the upload station are? On the Airport?

QuoteData output to file in CSV will be realized in next versions.
pls add an option to have monthly files like: 010917.csv for better storage.
Title: Re: AcarsDeco2 Development
Post by: shall698 on November 05, 2017, 12:21:32 AM
Evangel,

Can you tell me please? Do you already have aircraft pictures in your folder f:\db\pictures?

Or is it finding them from online source?

Thanks in advance.

shall





quote author=evangel link=topic=3182.msg35214#msg35214 date=1503624213]
Hi Sergsero

excellent work ! works ok my end with

cmd /c acarsdeco2.exe --gain 38.6 --freq-correction -9 --http-port 8282 --vrs-url http://127.0.0.1:8484 --db f:\db\bs.sqb --frdb f:\db\fr.sqb --silhouettes f:\db\silhouettes --pictures f:\db\pictures --banners f:\db\logos --outServer ad2:31108  --freq 131550000 131725000 130450000 131475000 --logfile c:\adsb\acarsdeco2017\acars.log


(//)


A nice add-on will be to have a 'Log Playback'  feature/button.

brgds/evangel
[/quote]
Title: Re: AcarsDeco2 Development
Post by: shall698 on November 05, 2017, 02:22:51 AM
Radio 2 / Segsero,

When i enter frequencies based in the 136600000 range it shows frequency out of range!

Please help.

shall

Quote from: Radio2.0 on September 17, 2017, 01:42:37 PM
QuoteIn my area there are only 3 active acars freq's and I have them configured like this:
"--freq 131525000 131725000 131825000" which works fine.
In Europe normally more freq are in use.
There are also ACARS on 136.XXX
QuoteI note, that unfortunately, in my area not available for receiving messages from ground stations (ground-to-air) and the associated functionality is not tested in practice.
is there a list where the upload station are? On the Airport?

QuoteData output to file in CSV will be realized in next versions.
pls add an option to have monthly files like: 010917.csv for better storage.
Title: Re: AcarsDeco2 Development
Post by: evangel on November 07, 2017, 09:56:43 PM

@ shall698

whenever i see an aircraft that interest me (in VRS) i save an image (.jpg) then transfer it to /pictures folder.

regarding the frequencies, they cannot be spaced to more than 1 Mhz. that is you can have 4 frequencies in the 131.nnn range or 136.nnn range, but not 2 on 131.nnn and 2 on 136.nnn

brgds
Title: Re: AcarsDeco2 Development
Post by: Jonas300 on November 13, 2017, 03:26:50 PM
Hello!

I have a question how to change the callsign? From, for example, SN055W (DAT55W) in (BEL55W) ?? or
X3000 (HLX0000) in (TUI0000)
CL... in (CLH...)
A3... in (AEE...)
..
Thanks
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on November 14, 2017, 04:22:16 PM
 ;D yes that is a huge problem!

I use an "old" Version of ACARSdeco2 where it works.
Title: Re: AcarsDeco2 Development
Post by: sergsero on November 19, 2017, 04:58:11 AM
Hi,

The new version of the program in which I tried to implement some requests.

- Added option providing the ability to export messages to disk as comma separated value (CSV) files.
  It has two types:
--logfile-sbs <arg> for export original ACARS messages and
--logfile-esbs <arg> - the same with additional information from reference data sources.
  The argument requires a full path to and file name. The program will add a time stamp to the beginning and extension *.csv.
  Each type can only be used alternately, not simultaneously.

Example: if you're run the program 18.11.2017 at 17:01 UTC with option: --logfile-esbs ~/data/esbslog it's creates the file 20171118-1701-esbslog.csv in the directory ~/tmp for the current user with content:

Quote2017-11-18,17:01:11,131.550,2,B-7899,,Q0,4,S42A,CA0908,CCA908,1445,781008,China,Boeing,787 9,B789,34311,2016,Air China,SBGR-LEMD-ZBAA,57.397476,80.81955,119.7,39000,505.2,0,
2017-11-18,17:01:15,131.550,2,B-1567,,Q0,7,S63A,MF0812,CXA812,0155,7810A3,China,Boeing,787 9,B789,63041,2016,Xiamen Airlines,,56.98776,82.129802,117.7,38975,509.5,0,
2017-11-18,17:01:21,131.550,2,B-5977,,Q0,8,S82A,CA0962,CCA962,,780DFB,China,Airbus,A330 343E,A333,,2015,,,55.481232,86.931236,122.0,35000,497.8,64,
2017-11-18,17:01:23,131.550,2,B-7899,,Q0,4,S42A,CA0908,CCA908,1445,781008,China,Boeing,787 9,B789,34311,2016,Air China,SBGR-LEMD-ZBAA,57.386759,80.854413,119.6,38975,503.8,0,
2017-11-18,18:31:30,131.725,2,PH-BHH,,H1,0,D28A,KL0867,KLM867,0274,485342,Netherlands,Boeing,787 9,B789,38767,2016,KLM Royal Dutch Airlines,EHAM-RJBB,56.973887,79.600466,112.4,34975,523.3,0,#DFB(POS-KLM867  -5702N07919E/183022 F350  RMK/FUEL  34.1 M0.85)
2017-11-18,18:32:40,131.725,O,F-GSPN,,2F,9,M04A,AF0264,AFR264,3207,3949ED,France,Boeing,777 228ER,B772,29011,2000,Air France,LFPG-RKSI,56.106526,83.145475,115.3,34975,508.6,0,1832+5611+8314/35331

- Changed the file name when you export the console messages to a log file.

- Corrected ICAO and IATA airline codes compliance.

- Code cleanup.

Windows Intel x86: acarsdeco2_windows_20171115.zip https://drive.google.com/open?id=16dQZ7CJC0Io2L9b6z-7A64YHdYWzr31n (https://drive.google.com/open?id=16dQZ7CJC0Io2L9b6z-7A64YHdYWzr31n) (Windows 7-10)

Raspberry Pi 2/3 (Broadcom SoC BCM2836/37, quad-core):

Raspbian GNU/Linux 8.0 (Jessie): acarsdeco2_rpi2-3_20171115.tgz https://drive.google.com/open?id=18SzM5Ui6Pbouaz-J1Rfw2IBjAVaS7nYc (https://drive.google.com/open?id=18SzM5Ui6Pbouaz-J1Rfw2IBjAVaS7nYc)
Raspbian GNU/Linux 9.0 (Stretch): acarsdeco2_rpi2-3_deb9_20171115.tgz https://drive.google.com/open?id=1afHXuPtu4oajHWQc8QNYa6v59Nn4wwMz (https://drive.google.com/open?id=1afHXuPtu4oajHWQc8QNYa6v59Nn4wwMz)

OS X Intel x86: acarsdeco2_osx_20171115.tgz https://drive.google.com/open?id=1Mhwxs_TUILkwZ8uV0KnO9sz0vsSUJ8g0 (https://drive.google.com/open?id=1Mhwxs_TUILkwZ8uV0KnO9sz0vsSUJ8g0) (El Capitan, Darwin Kernel Version 15.6.0)

Ubuntu 16.04 Intel 64 bit: acarsdeco2_x86_64_20171115.tgz https://drive.google.com/open?id=1M0TElCdYnb2-p5HcbFxv_SXgKhbYB3DW (https://drive.google.com/open?id=1M0TElCdYnb2-p5HcbFxv_SXgKhbYB3DW)
Ubuntu 16.04 Intel 32 bit: acarsdeco2_i386_20171115.tgz https://drive.google.com/open?id=1zdoPrF3BSDFwMBhOjn5gMmrpuDRbebbx (https://drive.google.com/open?id=1zdoPrF3BSDFwMBhOjn5gMmrpuDRbebbx)

Best regards,
sergsero


[Attachment deleted by Admin to save file space]
Title: Re: AcarsDeco2 Development
Post by: acarslogger on November 19, 2017, 05:08:53 PM
Hi sergsero

Thanks for the the new version of AcarsDeco2 (20171115).

Observation 1

I see that the the log file naming has changed.
In the previous version I used the option --logfile C:\Users\....\acarsdeco2\logs\acarsdeco2
and this generated a log file suffixed with date and time. e.g. C:\Users\....\acarsdeco2\logs\acarsdeco2-20171103-123456.log
In this new version the log file is named C:\Users\....\acarsdeco2\logs\20171103-123456-acarsdeco2.log
I prefer the original "name-<date_and_time>.log".
This also applies to the other log file (--logfile) options generated by you new version.

Observation 2
You can generate either the --logfile-sbs or the --logfile-esbs output. Not both. I'm not sure why anyone would want to generate both, so maybe change the readme to clarify.

Possible request.
Could you enhance the program to create a new log file at midnight for those who run 7x24. Then there will be 1 file per day.

I've tried installing on my Raspberry Pi v3 (running Jessie) and get this error when I execute the program ...

Using device:  0 mnf: Realtek prod: RTL2838UHIDIR serial: xxxxxxxxx <<I've replaced my serial number with xxxxxxxxx>>
usb_claim_interface error -6
Error: sdr_open(): Device or resource busy

Searching the internet someone suggested using the following as part of the make process.

cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON

I'm not a Pi v3 / Linux expert so I've no idea what this means and whether it would enable me to run your program on my Pi v3.

Thanks for your continued support to your excellent program.

Regards
Stuart
Title: Re: AcarsDeco2 Development
Post by: evangel on November 19, 2017, 07:33:43 PM
hi Stuart

regarding error usb_claim_interface error -6
this is indicative of either
a. your device is in use by another program, or,
b. in /etc/modprobe.d/  there is no "blacklist-rtl28xx.conf", "rtl-sdr-blacklist.conf" file or similar.

fyi you cannot use the device for both acars and ads-b reception. it must be one or the other. 

rgds
evangel
Title: Re: AcarsDeco2 Development
Post by: acarslogger on November 19, 2017, 09:32:08 PM
Hi evangel

I've read about blacklisting devices, but AcarsDeco2 acts differently to other applications.

This is what I can do ...

I plug in my RTL-SDR (v3) into the Pi 3.
Reboot
I then start an application that uses the RTL-SDR; dumpVDL2.
It starts and decodes VDL2 data.
Reboot Pi.
Without touching the RTL-SDR, I then start another application; acarsdec.
It starts and decodes Acars data.
Reboot Pi
Without touching the RTL-SDR, I then start AcarsDeco2. It fails with the message
usb_claim_interface error -6
Error: sdr_open(): Device or resource busy

So why is acarsdeco2 different to other applications that have no problem starting?

Regards
Stuart


Title: Re: AcarsDeco2 Development
Post by: sergsero on November 20, 2017, 05:36:05 AM
Hi Stuart,

Thank you for testing the program.

About "Observation 1".
It's only an order of the fragments in the template name and its easy to fix.  Only need to decide on the final version because I have received other requests to change it exactly as it is now.

About "Observation 2".
I agree with you and also decided that a simultaneous export of data in two types only increase the code.

About "Possible request".
I think this should be done in the current version at 00:01 UTC the next day.

Regarding error.
As evangel explained in detail, for which I am very grateful, your issue is due to the device is unavailable for the program. Acarsdeco2 uses its own code to direct work with a dongle and it does not require the presence of third-party libraries as librtlsdr or other.

Please check and make only two things in your Raspberry Pi: 1. deactivate the kernel driver and 2. add permissions to allow users to access the rtl2832.

1. Do you have in the directory /etc/modprobe.d any named file with a .conf extension (for example, it can called "blacklist-rtl28xx.conf") with these contents:
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830

for disable using kernel's native driver?

p.s. Once you have created this blacklist file, you may need to unload the driver one last time if it was already running - the blacklist prevents it from loading but doesn't do anything if it's already running. The quickest solution is to simply unload the driver by console command:
sudo rmmod dvb_usb_rtl28xxu rtl2832

The solution you found on the Internet (cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON) is to recompile a programs and include support for asking the kernel driver to let go of the device, so it can be accessed.
This may not be ideal though, because you will still have the problem of the device being in use if you use other programs, in this case acarsdeco2, that do not support detaching of the kernel driver.

2. Because you successfully using other sdr programs, it is likely that in the directory /etc/udev/rules.d/ already contains the file rtl-sdr.rules. For example, if you were building the rtlsdr library from osmocom.org (https://osmocom.org/projects/sdr/wiki/rtl-sdr#Building-the-software).

If not and you've never setup your rtl2832 dongle in raspbian except from root, you'll need to add permissions to allow common users to access the rtl2832:
- download the archive https://github.com/steve-m/librtlsdr/archive/v0.5.3.zip (https://github.com/steve-m/librtlsdr/archive/v0.5.3.zip) (or https://github.com/steve-m/librtlsdr/archive/v0.5.3.tar.gz (https://github.com/steve-m/librtlsdr/archive/v0.5.3.tar.gz)) and extract from it the file rtl-sdr.rules,
- copy (as root) the file rtl-sdr.rules to your /etc/udev/rules.d/,
- set file permissions: sudo chmod u=rw,g=r,o=r rtl-sdr.rules
- refresh the udev rules: sudo udevadm control --reload-rules
- re-connect the dongle to the same USB port.

Best regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: acarslogger on November 20, 2017, 08:34:07 PM
Hi sergsero & evangel

Thanks for your help.

In my /etc/modprobe.d I had
blacklist-rtl8192cu.conf
blacklist-rtl8xxxu.conf

I changed blacklist-rtl8xxxu.conf to add

blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830

After reboot acarsdeco2 started OK. Thanks.

I have 3 of the new RTL-820 v3 each with its own unique serial number. So as an experiment I connected all 3 to the Pi v3, and ensured that the command line parameters of each application was assigned to a separate RTL-820 v3 serial number.
Started all 3 applications and it worked! I now have a Raspberry Pi v3 that can run 3 RTL-820 v3 each running and decoding a different application; acarsdeco2, acarsdeco and dumpvdl2. Amazing what the Pi v3 can do!

From 'top'
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
  989 pi        20   0   20084   9824   2904 S  55.7  1.0   8:27.58 dumpvdl2
1148 pi        20   0   40056   5280   1952 S  19.2  0.6   2:57.14 acarsdec
  991 pi        20   0   80888   8320   4964 S  16.0  0.9   2:28.34 acarsdeco2


Again, thanks for your help.
Regards
Stuart

Title: Re: AcarsDeco2 Development
Post by: evangel on November 21, 2017, 12:40:36 AM
 glad it worked  ;)
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on November 21, 2017, 01:02:42 PM
Hi Sergsero,
New version is up and running.
Problem with SQ is solved, thank you.

Below are a few new observations:

1.
Below is a SQ message and I think the source shoeld not be AIR but Ground.

SOURCE: AIR
RX_ID: 1345, Freq: 131.725MHz
ACARS mode: e (SITA, G2A) NACK Aircraft reg:       
Message label: SQ Block id: 


Message content:-
02XSGVALSGG04613N00606EV136975/
-------------------------------------------------------[2017-11-21 10:51:29.654]

2.
Regardsless of the mode ~ provider (SITA or ARINC)  the progam always shows (SITA, G2A).
I assume that SITA is meant as the provider name.
Not sure about the 'G2A'...

ACARS mode: G (SITA, G2A) NACK Aircraft reg: G-EUPM
ACARS mode: 2 (SITA, G2A) ACK, A2G Aircraft reg: N824NW

3.
The message contains either 'ACK, A2G' or 'NACK' like the two examples below.
I do understand the ACK and NACK but not the combination with A2G.
ACARS mode: E (SITA, G2A) ACK, A2G Aircraft reg: PH-BXG
ACARS mode: E (SITA, G2A) NACK Aircraft reg: PH-BXG

Cheers,
Dick
Title: Re: AcarsDeco2 Development
Post by: sergsero on November 22, 2017, 03:36:11 AM
Hi Dick,

1. The source field specifies how the message is received. It can be directly through the local SDR receiver (RTL2832 dongle). Then it will be marked as SOURCE: AIR. Or a message could be received over the network from remote stations. in this case (for real example) - SOURCE: NET NETID: inConnect(SBS:192.168.64.182:30008).
The abbreviation A2G means downlink direction "Air to Ground" and vice versa G2A means uplink "Ground to Air".

2. I'll check this point. The column 4 (after the time stamp) is a single letter and identifies the ground station.  Because identifier '2' are exclusively for ARINC:
QuoteThere are two families of ground station.  Those operated by SITA use alphabetical labels (eg 'X').  Those operated by ARINC use the identifier '2' exclusively.   If the ground station identifier is in upper case (eg 'H') then the message is from an aircraft address to the base station that has that identifier.  If the ground station identifier is in lower case (eg 'h') then the message is to an aircraft from the base station that has that identifier.  In the case of messages to and from ARINC stations the identifier is '2' in both directions.

3.  The column 6 is the acknowledgement symbol.
QuoteThe symbol '!' is used to denote NACK (not acknowledged) and other symbols denote ACK (message acknowledged).  The NACK symbol is also used in messages initiated by the sender that are not acknowledging any prior message.  The ACK symbols identify the message that is being acknowledged.  The ACK symbol is the same as the message identifier that was used in the message being acknowledged.  If the ACK symbol is a letter, then the message is from an aircraft that is acknowledging a message from the ground.  If the ACK symbol is a number, then the message is from a ground station that is acknowledging a message from an aircraft.

Regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on November 22, 2017, 10:51:46 AM
Hi Sergsero,
Thanks for the detailed explanation. Much appreciated.

Where can I find the quoted information??

Observation:
I have tried both --logfile-esbs <arg> and --logfile-sbs <arg> and tried to import the .csv files in Excel.

--logfile-esbs <arg> failed because:
a. some messages contained LF characters in the message text.
b. a lot of messages contain comma's in the message text.
c. some messages contained a semicolon although I told Excel to use the comma as column separator..

--logfile-sbs <arg> failed because:
a lot of messages contain comma's in the message text.

I think if you use a TAB instead of a comma as the column separator loading the file in a spreadsheet program (like Excel) would work much better.

Cheers,
Dick
Title: Re: AcarsDeco2 Development
Post by: acarslogger on November 22, 2017, 02:43:35 PM
Hi Dick & sergsero,

The acars csv file generated by the Kinetic SBS-3 encloses the actual acars message within 2 double quotes e.g

05/11/2017,09:14:31,131.725,E,F-HBXM,,16,6,M89A,YS1272,"091420,36036,1009,450.1, 6300,N5145.40 E00019.56"

Although the acars message contains commas, it loads into Excel with no problem (using my UK version of Excel).

In addition there is a well hidden option that can be used in the Kinetic SBS-3 configuration file (Basestation.ini) where you can change CR/LF found in the acars message into another character. I have chosen the vertical bar "|".
Now my SBS-3 acars csv file looks like ..

05/11/2017,09:35:56,131.725,G,N192DN,,B2,2,M67A,DL0179,"/PIKCLYA.OC1/CLA 0935 171105 EGGX CLRNCE 503|DAL179 CLRD TO KPDX VIA SUNOT|NAT B|SUNOT 58N020W 60N030W 61N040W 60N050W|URTAK|FM SUNOT/1058 MNTN F320 M080|END OF MESSAGEC344"

Again this loads into Excel.

Hope that helps.
Stuart
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on November 23, 2017, 09:26:31 PM
Aaah yes, double quotes around fields would 'solve' the 'comma in text' problem. 
Not sure if it would solve the 'LF in text' problem, but so far I have not seen an 'LF in text' when using the --logfile-sbs option.

Thanks Stuart, valuable observation.
(why didn't I think of that?)

Cheers,
Dick
Title: Re: AcarsDeco2 Development
Post by: acarslogger on November 24, 2017, 04:08:10 PM
Hi Dick (& sergsero),

It appears that the --logfile-sbs output already replaces the CR/LF with a space.

For a Shanwick oceanic clearance there is normally a CF/LF immediately after the clearance number and also before and after the NAT track identifier.

My Kinetic SBS-3 acars csv output which has CR/LF replaced with a "|" looks like ...
05/11/2017,09:35:56,131.725,G,N192DN,,B2,2,M67A,DL0179,"/PIKCLYA.OC1/CLA 0935 171105 EGGX CLRNCE 503|DAL179 CLRD TO KPDX VIA SUNOT|NAT B|SUNOT 58N020W 60N030W 61N040W 60N050W|URTAK|FM SUNOT/1058 MNTN F320 M080|END OF MESSAGEC344"

The AcarsDeco2 --logfile-sbs output looks like ...
2017-11-19,12:49:53,131.825,2,N790AN,,B2,9,M86A,AA0081,/PIKCLYA.CLA 1248 171119 EGGX CLRNCE 535 AAL81 CLRD TO KDFW VIA SUNOT NAT A SUNOT 58N020W 58N030W 58N040W 57N050W HOIST FM SUNOT/1414 MNTN F380 M084 END OF MESSAGE

Regards
Stuart
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on December 06, 2017, 10:33:51 AM
Hi Sergsero, all,

I found this line (an uplink message) in the log
2017-12-03,06:20:52,131.525,t,F-HBXO,,:;,W,,,131725

and was wondering..
- the Message label field contains ":;"
- the Block id: field contains a "W"
- the Msg. no field is empty.

Looking at all the messages that were exchange with F-HBXO (see attachment)  it seems that this uplink message instructed the aircraft to switch from 131.525 to 131.725.
Never have seen that before but maybe because I hardly get any uplinks..

Cheers,
Dick

[Attachment deleted by Admin to save file space]
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on December 10, 2017, 06:52:39 PM
And what I forgot to mention is that looking at the file attached at my previous post it shows that F-HBXO uses both SITA and ARINC ground stations.
I expected that an operator has a contract with one or the other, not with both.

Could you check to make sure this is not a bug?

Cheers,
Dick
Title: Re: AcarsDeco2 Development
Post by: Mike_n5pwp on December 28, 2017, 04:09:54 AM
I've just started with v.20171115 and I'm running it on Windows 7. I have read through this whole thread and Googled all over trying to find the answers to my questions:

1.  If I use the --vrs-url switch will it pass aircraft pictures from VRS? I'm running VRS and get pictures with most of the planes VRS captures. Unfortunately it doesn't pass them to ACARSDeco2. Is it supposed to pass pictures that VRS gets from the internet  (from some server) or will it only retrieve pictures that are stored locally on the PC I'm either running VRS/AD2 on or have it stored on another drive on my network? I get ICAO information/Flag/Operator and Route info but no pictures or silhouettes from VRS.

2.  Is there a way to add routes to AD2? I have basestation.sqb and flightroutes.sqb installed in the datasets directory but I'm looking for a way to add routes that seem to be missing on local flights (I'm in the USA). Should I use the sqlitebrowser to edit the flightroutes database and then lose those additions when the next flightroute.sqb file is released? Is there a local file I can add flightroutes that are local to my area? I know I should submit them to the folks that update the databases but those databases come from the UK and seem to be primarily focused on flights in the EU. Is there a flightroutes.sqb that tracks continental USA flights?

3.  When saving the AD2 logs I've seen older versions of the ad2.bat file that show storing the logs on the D: drive. I have my AD2 installed on the C: drive. That drive is an SSD and I don't want to be constantly writing to it and want to store the logs on another drive on my network. AD2 doesn't seem to let me store the logs anywhere else but on the same drive AD2 is installed. Am I missing something or is that by design?

I appreciate Sergesero and the forum members that provide input to keep AD2 being developed. I'm really having fun using the program. I hope to be able to contribute to this in some small way.

Thank you.
Mike
Title: Re: AcarsDeco2 Development
Post by: zicherka on January 23, 2018, 01:22:41 PM
Hi!
I have a problem with displaying photos / images of airplanes on the site that generachi AcarsDeco2. Flags, profiles and carriers' logos (banners) are displayed correctly.
Files with pictures of aircraft have the following name convention: AB-CDE.jpg. The access path to such a single file is: /home/radar/Photo/AB-CDE.jpg. Below is my entry, which launches AcarsDeco2:
./acarsdeco2 --gain 38.6 --freq-correction 2 --freq 131550000 --freq 131725000 --vrs-url http://123.456.789.666:8080 --pictures /home/radar/Photo --silhouettes /home/radar/Silhouettes --banners /home/radar/Logos --db /home/radar/acarsdeco2/BaseStation.sqb
Can you ask for help or directing what is wrong?
Regards.
Title: Re: AcarsDeco2 Development
Post by: sergsero on January 23, 2018, 01:50:35 PM
Hi,

At the first view it seems that everything is correct.  And what about the rights of access to these files?
They should be accessible for readable, preferably all with the attribute: rw-r-r.

Another point, please check a records of the registration numbers of aircraft in the file basestation.sqb - are they also have a form of uppercase letters?

On the other hand, if you use option  --vrs-url for additional data from VRS, than a pictures of aircraft will be issued from the local collection of VRS, from the same computer as VRS.

Regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: zicherka on January 23, 2018, 02:51:19 PM
Thanks for your quick response and interest
So yes:
1- Files with photos had the attributes rw ------- (but such attributes have the mentioned flags, silhouettes and banners that work / display correctly), I changed to rw-r - r--. CRTL + F5 in the browser - no more photos. All directories also have the same permissions (Photo, Silhouettes, Logos - rwx ------)
2- Aircraft registrations are saved with BIG LETTERS - see attached picture.
3- My VRS does not have a local database with photos - all pictures are downloaded from the Internet on an ongoing basis (defaults configuration takes pictures from airport-data.com and so it is with me).
3.1 - Regardless of whether you could suggest how to make the VRS save photos of aircraft on the computer - then AcarsDeco2 could download them.
4 -AcarsDeco2 and VRS are separate machines that work in different networks and locations.

[Attachment deleted by Admin to save file space]
Title: Re: AcarsDeco2 Development
Post by: sergsero on January 24, 2018, 03:16:09 AM
I know about this feature (or bug) of the program and I think that in future versions of this dependency will be removed.
And while I can advise to create a local collection of aircraft pictures in the VRS, then they will appear in both programs.

Unfortunately, as far as I know, in the moment used technology - if VRS found the necessary picture on some resource on the Internet, it just inserts the URL for direct display from the resource.

/sergsero
Title: Re: AcarsDeco2 Development
Post by: glenn68 on April 01, 2018, 02:47:48 PM
Will there ever be a map server for ACARSDECO2? Like there is on ModeSmixer2 or ModeSdeco2?
Title: Re: AcarsDeco2 Development
Post by: sergsero on April 01, 2018, 03:32:11 PM
Hello,

A map server needs coordinates of aircraft. However, the ARINC protocol does not provide for mandatory transfer of coordinates in ACARS's header section or messages (on VHF (AM) aircraft band 118 to 136 MHz), as in 1090 MHz Extended Squitter (ADS-B) messages.

Some operators periodically can include the coordinates in body of messages, but this happens on an irregular basis and without the standard protocol.

On the other hand, there is a test branch of modesmixer2 with indication and display of ACARS messages if it receives data from acarsdeco2 via network.

Regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on April 01, 2018, 04:10:06 PM
ACARS Messages often Contain an Flightplan and upcomming Nav Points.  :P
Title: Re: AcarsDeco2 Development
Post by: glenn68 on April 01, 2018, 08:59:02 PM
Quote from: sergsero on April 01, 2018, 03:32:11 PM
Hello,



On the other hand, there is a test branch of modesmixer2 with indication and display of ACARS messages if it receives data from acarsdeco2 via network.

Regards,
sergsero
How  do I use this test branch?
Title: Re: AcarsDeco2 Development
Post by: kidshare on May 09, 2018, 07:09:20 PM
Would it be possible for acarsdeco2 to accept input from spyserver?
Title: Re: AcarsDeco2 Development
Post by: tonkepen on May 25, 2018, 10:49:53 AM
Hello:

(In the beginning, sorry for my English).

Well, I have put in a rasperry2 (RASPBIAN STRETCH 4.14) (Acarsdeco2 V.20170115), with the following instructions:

In usr/local/ bin:

#!/bin/bash
cd /home/acarsdeco2
./acarsdeco2 --gain 49 --freq-correction 15 --freq 131511000 --freq 131711000 --freq 131811000 --http-port 8998 --banners /home/acarsdeco2/Logos --silhouettes /home/acarsdeco2/Siluetas --db /home/acarsdeco2/basestation.sqb --frdb /home/acarsdeco2/flightroute.sqb --outConnectUdp pp:192.168.1.128:9742 --outConnectUdp pp:127.0.0.1:9999


Situation 1: EXECUCION VIA CONSOLA...

Well as you can see in the screenshots that I leave below Acarsdeco2 works perfect running it via console:

They leave the messages in the console ....

https://imgur.com/a/nE0eBEt

Send messages to the web ....

https://imgur.com/a/QUzWry9

Send information to Planeplotter

https://imgur.com/a/qLAJI8G

And send information to another application of mine ...

https://imgur.com/a/LRV3t7S

Up to here everything perfect. everything sensational.

Situation 2: EXECUCION VIA Init.D or RC.Local or Clon...

This is when the problem comes, and I tried to execute acarsdeco2 in the three ways and it always gives me the same result.

Acarsdeco2 works and starts up well, sends the data to the acarsdeco website, and the information is displayed.

But do not send UDP to planeplotter, nor to my application in 127.0.0.1:9999

It's like when the automatic ports start, they close, or the commands --outConnectUdp pp: XXXXXX, do not work.

I've been doing experiments for a long time, but I can not make it work, if it starts automatically. Anyone please have some brilliant idea ?.

Thank you very much.

[Attachment deleted by Admin to save file space]
Title: Re: AcarsDeco2 Development
Post by: IanH on May 25, 2018, 04:01:54 PM
I found a post by sergsero on how to send data to PlanePlotter here: https://forum.planefinder.net/threads/acarsdeco2-up-to-3-channels-acars-sdr-receiver-for-rtl2832-dongle.157/

Important bit is to use --udp 127.0.0.1:9742 NOT --outConnectUdp pp:192.168.1.128:9742

Title: Re: AcarsDeco2 Development
Post by: sergsero on May 25, 2018, 04:05:46 PM
Hello tonkepen,

You're using Debian 9 Stretch so you have systemd that is a system and service manager for Linux. It is the default init system for Debian since Debian Jessie.
"/etc/rc.local" is outdated and uses a double backwards compatibility mechanism in systemd.

Systemd takes a very different approach from the sysv init scheme of organizing init scripts into directories by runlevel. Instead, it uses unit files to describe services that should run, along with other elements of the system configuration.
So make a service unit that describes as much as possible of the process setup and execution directly itself.

Your acarsdeco2.service file should look like this:
[Unit]
Description=acarsdeco2 service
After=network.target

[Service]
User=pi
Type=simple
ExecStart=/home/acarsdeco2/acarsdeco2 --gain 49 --freq-correction 15 --freq 131511000 --freq 131711000 --freq 131811000 --http-port 8998 --banners /home/acarsdeco2/Logos --silhouettes /home/acarsdeco2/Siluetas --db /home/acarsdeco2/basestation.sqb --frdb /home/acarsdeco2/flightroute.sqb --outConnectUdp pp:192.168.1.128:9742 --outConnectUdp pp:127.0.0.1:9999

WorkingDirectory=/home/acarsdeco2
StandardOutput=null
StandardError=inherit
TimeoutSec=30
Restart=on-failure
RestartSec=30
StartLimitInterval=350
StartLimitBurst=10

[Install]
WantedBy=multi-user.target


Do a few more steps (in console) to enable and use the acarsdeco2.service file:

1. Place it in /etc/systemd/system folder with say a name of acarsdeco2.service

2. Start it: sudo systemctl start acarsdeco2

3. Check the status of the service with sudo systemctl status acarsdeco2. You may see a warning that your must run sudo systemctl daemon-reload.

In my test system the console output looks like this:
Quote$ sudo systemctl status acarsdeco2
● acarsdeco2.service - acarsdeco2 service
   Loaded: loaded (/etc/systemd/system/acarsdeco2.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-05-25 21:31:22 +07; 47s ago
Main PID: 466 (acarsdeco2)
   CGroup: /system.slice/acarsdeco2.service
           └─466 /opt/ad2/acarsdeco2 --gain 38.6 --freq-correction 62 --http-port 8088 --silhouettes /home/pi/data/silhouettes --pictures /home/pi/data/pictures --db /home/pi/data/basestation.sqb ...

4. Enable it to launch during boot: sudo systemctl enable acarsdeco2

5. If you want to stop it: sudo systemctl stop acarsdeco2

6. To disable the service from starting automatically, you can type: sudo systemctl disable acarsdeco2

Best regards,
sergsero

Title: Re: AcarsDeco2 Development
Post by: sergsero on May 25, 2018, 04:17:01 PM
Hi IanH,

I think that tonkepen uses the latest version (20171115) of the program, in which the output options were added and/or their format a bit changed. Now it is like the same in modesmixer2:

Program options:
  -h [ --help ]         This help message
  --device-list         List available SDR devices
  --device-index arg    Select SDR device (default: 0)
  --device-serial arg   Select SDR device by serial number
  --gain arg            Set preamp gain of receiver, dB (default: auto)
  --freq-correction arg Set oscillator frequency correction, ppm (default: 0)
  --agc                 Enable automatic gain control in SDR chip (default:
                        off)
  --freq arg            Set receiver frequency, Hz
                        Specify option --freq multiple times to multiple
                        channels (Example: --freq XX --freq YY ...)
  --inConnect arg       Input connector. Format: (sbs|ad2):host:port
  --inConnectId arg     Named input connector. Format: (sbs|ad2):host:port:ID
  --inServer arg        Input server. Format: (sbs|ad2):port
  --inServerId arg      Named input server. Format: (sbs|ad2):port:ID
  --inServerUdp arg     Input UDP server. Format: (sbs|ad2):port
  --outServer arg       Output server. Format: (sbs|ad2|pp):port
  --outConnect arg      Output connector. Format (sbs|ad2|pp):host:port
  --outConnectUdp arg   Output UDP connector. Format: (sbs|ad2|pp):host:port
  --http-port arg       Set port for http server (default: 8080)
  --vrs-url arg         Set VirtualRadarServer url for additional aircraft data
                        Example: http://example.com (default: off)
  --pictures-url arg    Set aircraft pictures collection url
                        Example: http://site.com/path/to/ (default: off)
  --pictures arg        Set aircraft pictures collection local path
                        Example: http://site.com/path/to/ (default: off)
  --silhouettes arg     Set path to directory of aircrafts' silhouettes
  --banners arg         Set path to directory of operators' logos
  --frdb arg            Set path to flightroutes database file
  --db arg              Set path to basestation database file
  --no-uplink           Don't display uplink messages (default: on)
  --no-sq               Don't display messages with SQ label (default: on)
  --no-empty            Don't display empty messages (default: on)
  --logfile arg         Set path to log filename (default: off)
  --logfile-sbs arg     Set path to SBS CSV log filename (default: off)
  --logfile-esbs arg    Set path to extended SBS CSV log filename (default:
                        off)
  --no-console          Disable logging on console (default: on)


I'm a little confused about the used  frequency values (--freq 131511000 --freq 131711000 --freq 131811000), but apparently they are working.

Best regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: tonkepen on May 25, 2018, 08:43:33 PM
Mother of God, Mother of God, Sergsero,you will laugh, but I have been testing for 1 month to make it work.

Sensational, it works perfect, millions of thanks for your interest, I really do not know how to thank you. I was already crazy.

And with respect to the frequencies, well, I do not understand why they are these, but that's the way it is. These are where I receive the acars. Maybe it's the pencil that Chinese that I use, that invents the frequencies, haha.

PD.. Certainly it would be very interesting to put this type of boot in the manual of acarsdeco2 and modesmixer.

Finally Sergsero, really thank you very much.

[Attachment deleted by Admin to save file space]
Title: Re: AcarsDeco2 Development
Post by: tonkepen on May 25, 2018, 09:13:02 PM
Well now it turns out that it does not go, it happens exactly the same, if I run it via console with sudo systemctl start acarsdeco2, it works.

Once I give the order with sudo systemctl enable acarsdeco2 and restart, we are again the same, send data to the web, but not to planeplotter, nor to the other in 127.0.0.1

So false alarm, it still does not work, the shed,  :'( :'(
Title: Re: AcarsDeco2 Development
Post by: sergsero on May 26, 2018, 02:42:52 AM
In my experience - it works and all the functions of the program, including network, provide data exchange with external clients.

In the screenshots below, the program was started using 'systemd' 10 hours ago when I wrote you the first message. At the same time, acarsdeco2 sent messages via UDP datagrams to Planeplotter.
And it was worked during ~10 hours.

My morning (UTC+7), after reading your messages, I remotely restarted the Raspberry Pi.

After the restart, the program resumed as well as sending data to Planeplotter. Additionally it's evidenced by the newly requested status of the service.

'Systemd' keeps a log that you can view and check for error messages with the command: journalctl -u acarsdeco2.service
Perhaps for more informative you should change the value 'StandardOutput=null' in the settings.

/sergsero

[Attachment deleted by Admin to save file space]
Title: Re: AcarsDeco2 Development
Post by: tonkepen on May 26, 2018, 09:19:21 AM
If Serg ...., I know that Acarsdaco2 works, I use it since it came out, but in this case, it has gotten into my head to see why it does not work for me this time, thank you very much for your interest, I'll keep looking and I tell you.
Title: Re: AcarsDeco2 Development
Post by: tonkepen on May 26, 2018, 09:26:44 AM
An issue exists version of acarsdeco2 for beaglebone black ?, I have several, and if it exists I could put the acars in one of them.
Title: Re: AcarsDeco2 Development
Post by: thebaldgeek on June 08, 2018, 04:29:58 PM
@sergsero, thanks so much for your work on this program. It works very well.
I am using it to decode 3 frequencies on a Windows PC and am about to set up a Raspberry Pi at a remote location to feed into the central site (which is also running VRS - it's really nice to pull that information).
Two questions.
1. What are the green and blue circles showing?
2. I see aircraft images at home, but not over the internet. VRS has the box checked to show images over the internet, and VRS shows images over the internet Ok. Am I missing a setting somewhere? I am using the latest build (as best as I know - 20180603).
Title: Re: AcarsDeco2 Development
Post by: sergsero on June 08, 2018, 05:58:38 PM
Hello thebaldgeek,


Best regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: thebaldgeek on June 11, 2018, 03:59:24 PM
Thanks Sergsero, everything is working now. The hint with the images is great. It must be a fully qualified domain name.

If I could be bold and kindly ask for a feature request.... a map with the green and blue aircraft on it. I would love to see AcarsDeco2 become the VRS of ACARS.... A map like ModeSmixer2 would be fantastic. Click on the aircraft on the map to see their messages.
Thanks again for your help. I am now working on filtering the messages and automated emails on messages with keywords in them.
Title: Re: AcarsDeco2 Development
Post by: glenn68 on June 16, 2018, 10:03:39 PM
For some of us who dont have but very minimal knowledge on Linux, How can I install ACARSDECO2 on a Raspberry Pi or onto VM Box running Raspberry Pi Jessie?
Thanks.

Glenn
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on June 17, 2018, 10:04:43 AM
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
Title: Re: AcarsDeco2 Development
Post by: acarslogger on June 17, 2018, 12:31:47 PM
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
Title: Re: AcarsDeco2 Development
Post by: thebaldgeek on June 19, 2018, 06:08:16 PM
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!
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on June 19, 2018, 06:33:25 PM
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
Title: Re: AcarsDeco2 Development
Post by: thebaldgeek on June 19, 2018, 07:48:43 PM
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.
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on June 20, 2018, 09:18:59 AM
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
Title: Re: AcarsDeco2 Development
Post by: enzv99 on June 24, 2018, 01:08:44 PM
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
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on June 29, 2018, 11:28:22 AM
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 (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
Title: AcarsDeco2 latest version
Post by: Hobbyd on June 29, 2018, 11:50:50 AM
Hello Sergsero,

I am not sure which is the latest acarsdeco2 version.
https://radarspotting.com/forum/index.php/topic,3182.msg36094.html#msg36094 (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 (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
Title: Re: AcarsDeco2 Development
Post by: 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).

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.

Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on June 29, 2018, 10:49:33 PM
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
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on June 30, 2018, 10:51:09 AM
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
Title: Re: AcarsDeco2 Development
Post by: 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?

Title: 2 Midnight rollover observations
Post by: Hobbyd on June 30, 2018, 11:07:36 AM
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.
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on June 30, 2018, 01:37:44 PM
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!
Title: Re: Noise (was: AcarsDeco2 Development)
Post by: Hobbyd on June 30, 2018, 02:08:39 PM
Quote from: Radio2.0 on June 30, 2018, 01:37:44 PM
You know you can EDIT your Posts? Its very rude to write 3 Posts in a row!
Yes I know and I do.
But my last 3 posts where on different subjects and I tried to make that clear by using a different subject.
While on that subject, IMHO it would be better if the subject of a post was relevant to the content.
So I changed 'your' subject as it has nothing to do with Acarsdeco2 Development.

Quote from: Radio2.0 on June 30, 2018, 01:37:44 PM
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.  ???
So you have one antenna => splitter
port 1: SDR, laptop
port 2: dongle, Pi
port 3: dongle , laptop

It seems clear that the noise is from your Pi.
Now the question is,
- is it from the Pi and via the dongle on the Pi inserted by the splitter or
- is the Pi or dongle on the Pi radiating noise that is picked-up by the antenna.

What happens if you see the noise and disconnect the Pi-dongle from the splitter?

What kind/model splitter are you using?


Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on June 30, 2018, 02:29:21 PM
Nobody ever care about the subject.  ;)

QuoteSo you have one antenna => splitter
port 1: SDR, laptop
port 2: dongle, Pi
port 3: dongle , laptop
or an different order but the dont care.
QuoteWhat happens if you see the noise and disconnect the Pi-dongle from the splitter?
What kind/model splitter are you using?
I see also Noise. The noise is not there when I "just" Recharge my Phone via. the 230V -> 5V Dongle.
I dont know (now). Its from Ebay and it was in some Industrial Application. There are NO information about that. I am happy to got them. I know I should use "better" one but at the moment I have to build an System and see what kind of Software what can do and better how to decode it.
Title: Re: AcarsDeco2 Development
Post by: Anmer on June 30, 2018, 02:56:49 PM
Quote from: Radio2.0 on June 30, 2018, 01:37:44 PMYou know you can EDIT your Posts? Its very rude to write 3 Posts in a row!

It's totally acceptable to ask more than one question in the same post.

Please remain on topic and don't worry about moderating this forum.  That's my job.
Title: Re: Noise (was: AcarsDeco2 Development)
Post by: Hobbyd on June 30, 2018, 02:57:39 PM
Quote from: Radio2.0 on June 30, 2018, 02:29:21 PM
Quote
Nobody ever care about the subject.  ;)
That is unfortunate  :( as it makes clear what it is about without having to read all of it.
And I do! 

QuoteThe noise is not there when I "just" Recharge my Phone via. the 230V -> 5V Dongle.
Uhhh, so far I thought we meant 'RTL-SDR dongle' when the word dongle was used.
But now it seems you mean a charger.
Correct?

QuoteI know I should use "better" one but at the moment I have to build an System and see what kind of Software what can do and better how to decode it.
Try feeding your Pi via USB from your laptop. See if that makes a difference.

What type of RTL-dongle do you have?  A model v3 with the metal case or the older ones with plastic cases?

Just on a slightly different subject.
I see you live near LOWW.
Have you tried dumpvdl2 or vdlm2dec on your Pi using an RTL-SDR dongle?
Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on June 30, 2018, 03:17:25 PM
I use at the moment an N36L "Server" who run with 99% with 2x ACarsdeco + 2 ModeSdeco2 + CB Radio Data Transmission Software.  ;D
I cant plug in anything at the moment.
Hmm good Question.  :P I think for ADSB I use the Metal and for ACARS the Plastic Case.
I make my own Test and some other SDR Chipset had better results than the "we" common use. I dont know which one the are at the moment.

The Chipset was discontinued or something like this and I will wait for further Chipsets who are maybe better.
Title: Re: AcarsDeco2 Development
Post by: eddt38 on August 27, 2018, 12:28:37 PM
Hi,

I'm using acarsdeco2 on a Pi2 for a while and it's running very good.
VRS is on my PC and I have pictures and the extra informations on my ACARS. (LAT: 52.65230° LON: 13.97881° TRK: 285° GS: 409 kts V/S: -64 ft/m ALT: 38000 ft )

Now my questions:



And a question for Display-Launcher to create aircrafts_p.txt and aircrafts_s.txt:
I have only comma in by txt. Why?
At TOOLS I select my Basestaion.sqb,bu t no entries.

Can someone create some new files? Thank you.  ;)

Greetings from Berlin,
Marcus
Title: Re: AcarsDeco2 Development
Post by: yaniv on September 04, 2018, 10:36:24 AM
Hey guys,

I'm having a strange problem here.
AcarsDeco2 works great but few minute to an hour after starting it I get a db error and the app dies.

I'm on win10 and the SQB is on a share on an ubuntu machine at the same network (same switch and both ETH).
This is my setup:

acarsdeco2.exe --device-index 1 --gain 38.6 --freq-correction -1 --freq 131725000 --http-port 9999 --vrs-url http://test:test@192.168.1.3:8888 --db S:\Backups\BaseStation.sqb --silhouettes "D:\Cloud Storage\SkyDrive\Documents\VirtualServer_Sources\SilhouettesLogos" --banners "D:\Cloud Storage\SkyDrive\Documents\VirtualServer_Sources\OperatorLogos" --logfile G:\Downloads\Software\ADS-B\acarsdeco2_windows_20180603\logs\ARCAS --logfile-esbs G:\Downloads\Software\ADS-B\acarsdeco2_windows_20180603\logs\ARCAS


You can see the error messages at the attached image.
Would appreciate any help ...

[Attachment deleted by Admin to save file space]
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on September 04, 2018, 10:46:23 AM
The error suggest that:
a. the program has no rights to access the database.
Try to create a file in the directory the DB sits from you Win PC.
b. the database is configured as 'read-only'.

Is there a specific reason/requirement to have the program o Windows and the database on Unix?
In other words, why not run both on the same machine?

Cheers,
Dick

Title: Re: AcarsDeco2 Development
Post by: yaniv on September 04, 2018, 11:10:53 AM
Quote from: Hobbyd on September 04, 2018, 10:46:23 AM
The error suggest that:
a. the program has no rights to access the database.
Try to create a file in the directory the DB sits from you Win PC.
b. the database is configured as 'read-only'.

Is there a specific reason/requirement to have the program o Windows and the database on Unix?
In other words, why not run both on the same machine?

Cheers,
Dick

a. I can access the db with Sqlite browser from the win10 machine and there's no problem creating, modifying and deleting files from the same directory.
b. The db was created by VRS and to my knowledge there should be no restrictions. Tested modifying and deleting data from the win10 machine using the Sqlite browser.

I have no REAL reason for using my win10 for this except maybe for being my main system and more available to play with.
I'm getting a feeling that the crash happens when VRS and AcarsDeco2 both try to write to the db at the same time. One is probably getting a RO error. When it happens to VRS it copes and retries ... AcarsDeco2 on the other hand just crashes.
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on September 04, 2018, 05:49:09 PM
Hmmm, so it  is more complicated.

QuoteI'm getting a feeling that the crash happens when VRS and AcarsDeco2 both try to write to the db at the same time. One is probably getting a RO error. When it happens to VRS it copes and retries ... AcarsDeco2 on the other hand just crashes.

You could be right, so stop VRS for a couple of hours and see what happens.

On the other hand it seems odd (unexpected) that when both programs are writing to the db at the same time it would cause a RO exception.
Another exception would be much more appropriate.
Or did VRS set the DB to read-only while it was updating?

I guess we need the source of both programs to determine which of the two (or both) are not handling this situation correctly.
Or a transaction monitor to view what goes on, but I don't know if sqlite has such a tool..

Cheers,
Dick

Title: Re: AcarsDeco2 Development
Post by: yaniv on September 05, 2018, 08:26:08 AM
Quote from: Hobbyd on September 04, 2018, 05:49:09 PM
Hmmm, so it  is more complicated.

QuoteI'm getting a feeling that the crash happens when VRS and AcarsDeco2 both try to write to the db at the same time. One is probably getting a RO error. When it happens to VRS it copes and retries ... AcarsDeco2 on the other hand just crashes.

You could be right, so stop VRS for a couple of hours and see what happens.

On the other hand it seems odd (unexpected) that when both programs are writing to the db at the same time it would cause a RO exception.
Another exception would be much more appropriate.
Or did VRS set the DB to read-only while it was updating?

I guess we need the source of both programs to determine which of the two (or both) are not handling this situation correctly.
Or a transaction monitor to view what goes on, but I don't know if sqlite has such a tool..

Cheers,
Dick

OK, a little bit of VRS research revealed this:
Quote
SQLite doesn't lock the database file over the duration of a connection, it holds locks over the duration of read and write operations (see http://www.sqlite.org/lockingv3.html).

The first thing to note is that it is unsafe to write to SQLite files across the network - you will need to make sure that VRS and your program are both running on the same machine (see http://www.sqlite.org/lockingv3.html#how_to_corrupt). One symptom of writing SQLite files across a network is that you can end up with weird locking problems.

So ... AcarsDeco2 and the dongle regally moved to the ubuntu machine with the VRS and it seems that all are content with their db usage.
Title: Re: AcarsDeco2 Development
Post by: Hobbyd on September 05, 2018, 09:04:02 PM
Thanks for the update and info..
Good to know..

Cheers,
Dick
Title: Re: AcarsDeco2 Development
Post by: vortilon on September 10, 2018, 08:07:28 PM
This is a bit off the topic but concerning ACARS monitoring on acarsdeco2 software, while monitoring ACARS messages the following thread started appearing apart from standard messages:
"ERROR Aircraftcache :: getAircraftList <> regno in DB but not in cache"
it starts appearing every several seconds while acarsdeco2 is working  and receiving standard ACARS messages. Do you have any idea how to fix the bug, mayby you had heard something about it and know how to cope with it, maybe the software needs to be upgraded to the latest release date but I don't want to touch anything as not to make ACARS decoder working worse, due to situation may I ask for any assistance in that matter?

Thank you,
Martin

Title: Re: AcarsDeco2 Development
Post by: eddt38 on September 19, 2018, 08:39:08 PM
Hi,

looking for fresh versions of

aircrafts_s.txt
aircrafts_p.txt
airlines.tx.

Thank you,
Marcus
Title: Re: AcarsDeco2 Development
Post by: gonzalu on November 08, 2018, 12:59:03 AM
Quote from: vortilon on September 10, 2018, 08:07:28 PM
This is a bit off the topic but concerning ACARS monitoring on acarsdeco2 software, while monitoring ACARS messages the following thread started appearing apart from standard messages:
"ERROR Aircraftcache :: getAircraftList <> regno in DB but not in cache"
it starts appearing every several seconds while acarsdeco2 is working  and receiving standard ACARS messages. Do you have any idea how to fix the bug, mayby you had heard something about it and know how to cope with it, maybe the software needs to be upgraded to the latest release date but I don't want to touch anything as not to make ACARS decoder working worse, due to situation may I ask for any assistance in that matter?

Thank you,
Martin

If you look further back in this thread, the author states he is troubleshooting in his dev environment but he cannot reproduce it. So it is like that for now until fixed.
Title: Re: AcarsDeco2 Development
Post by: sergsero on December 08, 2018, 07:41:43 AM
Hello,

Version 20181201 is available for download from xdeco.org: http://xdeco.org/?page_id=30#ad2 (http://xdeco.org/?page_id=30#ad2)

- Fixed bug that caused a console message "ERROR Aircraftcache :: getAircraftList <> regno in DB but not in cache" when receiving G2A-messages from ground stations.
- Some changes in the code
- Code cleanup

Regards,
sergsero
Title: Re: AcarsDeco2 Development
Post by: CornmeisterNL on January 14, 2019, 07:32:30 PM
Hi sergsero,

I've installed the latest version of AcarsDeco2 on my raspberry pi, (v.20181201)
looks like its working, I am able to open the webpage, and see some data.

I have some issues, maybe you can help:

1: I'm not able to get the vrs data working, like flags etc. No error messages at the AD2 console, I see connections at vrs control panel.
2: When I add my AD2 instance as a vrs source (SBS), no data is received.
3: I cannot use all the ACARS freqs, eg 136.750MHz gives me an error: 'Error: Freqency out of range'

I start AD2 with the following info:

./acarsdeco2 --gain 49.6 --device-serial 00000001 --freq 131725000 --http-port 8090 --vrs-url http://192.168.0.5:80 --outServer sbs:30008


any ideas ?

tnx !
Title: Re: AcarsDeco2 Development
Post by: gonzalu on November 25, 2020, 10:09:48 PM
Restarting Topic in hopes not to have to start from scratch :)

sergsero, are you still maintaining this software?

If so, I'd like to ask about new feature to take more data from VRS. Since you already pull aircraft data from VRS, perhaps also get Logos, Flags, Side Views etc.

usually Operator Flag and Model Flag are

Type
http://127.0.0.1/VirtualRadar/images/File-AE270A%7CCGXCN35/Type.png

OpFlag
http://127.0.0.1/VirtualRadar/images/File-AE270A%7CUSCG_HC-144A/OpFlag.png

Obviously these have to be pulled from the particular database entry for the ADS-B ICAO HEX code.

Thank you!
Title: Re: AcarsDeco2 Development
Post by: keukenrol on April 28, 2022, 06:02:54 PM
Is there any news on the development of this software, or is it abandoned?
Title: Re: AcarsDeco2 Development
Post by: Anmer on April 28, 2022, 06:10:00 PM
Quote from: keukenrol on April 28, 2022, 06:02:54 PM
Is there any news on the development of this software, or is it abandoned?

We don't know for sure but I would assume all Sergsero's apps are either abandoned or in suspended development.

Sergsero hasn't logged onto this forum for nearly 12 months.

Title: Re: AcarsDeco2 Development
Post by: Radio2.0 on April 29, 2022, 12:37:42 PM
Yes I wish there would be an Win Version to.
Title: Re: AcarsDeco2 Development
Post by: AVDB on May 05, 2022, 05:11:55 AM
Quote from: Anmer on April 28, 2022, 06:10:00 PM
We don't know for sure but I would assume all Sergsero's apps are either abandoned or in suspended development.

Sergsero hasn't logged onto this forum for nearly 12 months.

Sad, I preferred the *deco UI over all the other solutions.

And this is a good example of why developers should just open source your project on something like Gitlab / Github.
So others may pick up on your work and continue it should you get bored and move on.

I found readsb + tar1090 to be actively developed solutions mid-2022 - https://github.com/wiedehopf
Title: Re: AcarsDeco2 Development
Post by: rikgale on May 05, 2022, 08:05:42 AM
EDIT: REMOVED by poster
Title: Re: AcarsDeco2 Development
Post by: Anmer on May 05, 2022, 08:40:36 AM
Quote from: rikgale on May 05, 2022, 08:05:42 AM
[For anyone with a Raspberry Pi and an SDR dongle, I can highly recommend following this detailed guide https://sdr-enthusiasts.gitbook.io/ads-b/ for setting up your own feeder all the major commercial flight tracking website as well as a raft of non-commercial tracking sites. This is just the start....

We're at risk of drifting off topic - "AcarsDeco2 Development"
Title: Re: AcarsDeco2 Development
Post by: Triple7 on May 05, 2022, 03:02:07 PM
Quote from: Radio2.0 on April 29, 2022, 12:37:42 PM
Yes I wish there would be an Win Version to.

There is, or was - 2015 version from my archive attached. There may very well be newer versions but as I don't do ACARS, this is the latetst one I have. I also have versions dated 19th April 2015 and 5th September 2014.

Tim

[attachment deleted reduce file load]
Title: Re: AcarsDeco2 Development
Post by: IanH on May 09, 2022, 09:16:12 PM
Our friend in Canada has various recent versions of sergsero's software including a 2018 Windows version of acarsdeco2

https://github.com/abcd567a/mm2/releases

Thank you abcd567 for the foresight in saving this file