Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACARSDEC 4.0 update needs --soapysdr= #108

Open
AndrewMohawk opened this issue Oct 1, 2024 · 0 comments
Open

ACARSDEC 4.0 update needs --soapysdr= #108

AndrewMohawk opened this issue Oct 1, 2024 · 0 comments

Comments

@AndrewMohawk
Copy link
Contributor

Heya,

In this update: ed85121

It appears that ACARS_CMD+=("-d" "$SOAPYSDR") has been replaced by just ACARS_CMD+=("$SOAPYSDR") however it appears that the option should be --soapysdr from looking at acarsdec --help:

Usage: acarsdec  [-t secs] [-A] [-b 'labels,..'] [-e] [-i station_id] [--statsd host=ip,port=1234] --output FORMAT:DESTINATION:PARAMS [--output ...] [--skip-reassembly] [ [rtlopts] | [airspyopts] | [soapyopts] <f1> [<f2> [...]] ]

 <f1> [<f2> [...]] are given in decimal MHz, e.g. 131.525

 -i <stationid>         : station id used in acarsdec network format (default: hostname)
 -A                     : don't output uplink messages (ie : only aircraft messages)
 -e                     : don't output empty messages (ie : _d,Q0, etc ...)
 -b <filter>            : filter output by label (ex: -b "H1:Q0" : only output messages  with label H1 or Q0)
 -t <seconds>           : set forget time (TTL) to <seconds> for flight routes (affects monitor and routejson, default: 600)
 --skip-reassembly      : disable reassembling fragmented ACARS messages
 --statsd host=<myhost>,port=<1234>     : enable statsd reporting to host <myhost> on port <1234>

 Use "--output help" for available output options

 Available inputs:

 rtlopts:
 --rtlsdr <device>      : decode from rtl dongle number <device> or S/N <device>
 -g <gain>              : set rtl gain in db (0 to 49.6; >52 and -10 will result in AGC; default is AGC)
 -p <ppm>               : set rtl ppm frequency correction (default: 0)
 -m <rateMult>          : set rtl sample rate multiplier: 160 for 2 MS/s or 192 for 2.4 MS/s (default: 160)
 -B <bias>              : enable (1) or disable (0) the bias tee (default is 0)
 -c <freq>              : set center frequency to tune to in MHz, e.g. 131.800 (default: automatic)

 airspyopts:
 --airspy <device>      : decode from airspy dongle number <device> or hex serial <device>
 -g <linearity_gain>    : set linearity gain [0-21] (default: 18)

 soapyopts:
 --soapysdr <params>    : decode from a SoapySDR designed by device_string <params>
 -g <gain>              : set gain in db (-10 will result in AGC; default is AGC)
 -p <ppm>               : set ppm frequency correction (default: 0)
 -c <freq>              : set center frequency to tune to in MHz, e.g. 131.800 (default: automatic)
 -m <rateMult>          : set sample rate multiplier: 160 for 2 MS/s or 192 for 2.4 MS/s (default: 160)
 -a <antenna>           : set antenna port to use (default: soapy default)

I dont want to just do the change because it would break backward compatibility, what I have done to resolve this on my side is to change the selection to:

SOAPYSDR: --soapysdr=rtlsdr,serial=${ACARS_RTL_SERIAL2}

otherwise you will get an error Missing input similar to this:

root@a2f6b6c06407:/# /usr/local/bin/acarsdec -i ACARSDEC2 --output json:udp:host=127.0.0.1,port=5550  driver=rtlsdr,serial=ACARS130-02 -p 0.5 -g -10 -m 160 131.125 131.250 131.425 131.450 131.475 131.525 131.550 131.650 131.725 131.825 131.850
Missing input
Acarsdec 4.0 Copyright (c) 2022 Thierry Leconte, (c) 2024 Thibaut VARENE
(libacars 2.2.0)

Usage: acarsdec  [-t secs] [-A] [-b 'labels,..'] [-e] [-i station_id] [--statsd host=ip,port=1234] --output FORMAT:DESTINATION:PARAMS [--output ...] [--skip-reassembly] [ [rtlopts] | [airspyopts] | [soapyopts] <f1> [<f2> [...]] ]

<f1> [<f2> [...]] are given in decimal MHz, e.g. 131.525

-i <stationid>         : station id used in acarsdec network format (default: hostname)
-A                     : don't output uplink messages (ie : only aircraft messages)
-e                     : don't output empty messages (ie : _d,Q0, etc ...)
-b <filter>            : filter output by label (ex: -b "H1:Q0" : only output messages  with label H1 or Q0)
-t <seconds>           : set forget time (TTL) to <seconds> for flight routes (affects monitor and routejson, default: 600)
--skip-reassembly      : disable reassembling fragmented ACARS messages
--statsd host=<myhost>,port=<1234>     : enable statsd reporting to host <myhost> on port <1234>

Use "--output help" for available output options

Available inputs:

rtlopts:
--rtlsdr <device>      : decode from rtl dongle number <device> or S/N <device>
-g <gain>              : set rtl gain in db (0 to 49.6; >52 and -10 will result in AGC; default is AGC)
-p <ppm>               : set rtl ppm frequency correction (default: 0)
-m <rateMult>          : set rtl sample rate multiplier: 160 for 2 MS/s or 192 for 2.4 MS/s (default: 160)
-B <bias>              : enable (1) or disable (0) the bias tee (default is 0)
-c <freq>              : set center frequency to tune to in MHz, e.g. 131.800 (default: automatic)

airspyopts:
--airspy <device>      : decode from airspy dongle number <device> or hex serial <device>
-g <linearity_gain>    : set linearity gain [0-21] (default: 18)

soapyopts:
--soapysdr <params>    : decode from a SoapySDR designed by device_string <params>
-g <gain>              : set gain in db (-10 will result in AGC; default is AGC)
-p <ppm>               : set ppm frequency correction (default: 0)
-c <freq>              : set center frequency to tune to in MHz, e.g. 131.800 (default: automatic)
-m <rateMult>          : set sample rate multiplier: 160 for 2 MS/s or 192 for 2.4 MS/s (default: 160)
-a <antenna>           : set antenna port to use (default: soapy default)
root@a2f6b6c06407:/# 
AndrewMohawk added a commit to AndrewMohawk/docker-acarsdec that referenced this issue Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant