Skip to content

Commit ba836d5

Browse files
wiedehopffredclausen
authored andcommitted
add airspy support without soapy
not sure airspy is really a good fit but everyones needs are different
1 parent 012d55d commit ba836d5

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ services:
5454
| `RTL_SERIAL` | The rtlsdr device serial that identifies your dongle. | No | Blank |
5555
| `BIASTEE` | Enable biastee when using RTL_SERIAL (doesn't work with SOAPY). | No | Blank |
5656
| `SOAPYSDR` | The SoapySDR device string that identifies your dongle. See below for supported soapy sdr types. | No | Blank |
57+
| `AIRSPY_SERIAL` | The airspy device serial that identifies your dongle (LNA recommended, really just use an rtl-sdr maybe). | No | Blank |
5758
| `FEED_ID` | Used by the decoder to insert a unique ID in to the output message | Yes | Blank |
5859
| `FREQUENCIES` | Semicolon-separated or space-separated list of frequencies in MHz for the decoder to listen to | Yes | Blank |
5960
| `PPM` | Parts per million correction of the decoder | No | 0 |

rootfs/etc/s6-overlay/scripts/01-acarsdec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ if [[ -n "${GAIN}" ]] && [[ "$(awk '{if ($1 > 0 && $1 < 100) printf "%i", $1 * 1
5050
exit 1
5151
fi
5252

53-
if [[ -z "${SOAPYSDR}" ]] && [[ -z "${RTL_SERIAL}" ]] && [[ -z "${SERIAL}" ]] ; then
54-
"${s6wrap[@]}" echo "Either RTL_SERIAL or SOAPYSDR must be set, exiting"
53+
if [[ -z "${SOAPYSDR}" ]] && [[ -z "${RTL_SERIAL}" ]] && [[ -z "${SERIAL}" ]] && [[ -z "${AIRSPY_SERIAL}" ]]; then
54+
"${s6wrap[@]}" echo "Either RTL_SERIAL or SOAPYSDR or AIRSPY_SERIAL must be set, exiting"
5555
fi
5656

5757
mkdir -p /run/acars

rootfs/etc/s6-overlay/scripts/acarsdec

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ if [[ -n "${RTL_SERIAL}" ]]; then
5656
fi
5757
fi
5858

59+
if [[ -n "${AIRSPY_SERIAL}" ]]; then
60+
ACARS_CMD+=("--airspy" "${AIRSPY_SERIAL}")
61+
if chk_enabled "${BIASTEE}"; then
62+
ACARS_CMD+=("-B" "1")
63+
else
64+
ACARS_CMD+=("-B" "0")
65+
fi
66+
fi
67+
5968
if [ -n "${PPM}" ]; then
6069
ACARS_CMD+=("-p" "$PPM")
6170
fi

0 commit comments

Comments
 (0)