You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: linux.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,22 +19,42 @@ The `tests/unit/assets` directory contains the following baseband recordings:
19
19
|`M17_test_baseband.raw`| Runtime demodulation; src callsign only |
20
20
|`M17_test_baseband_dc.raw`| Runtime demodulation; src callsign only |
21
21
22
+
**Note:** These test samples have a sample rate of 48kHz, and must be decimated to 24kHz before they can be demodulated with OpenRTX on Linux. See [below](#decimation) for details.
22
23
23
24
### Demodulating a raw baseband file with OpenRTX Linux
24
25
25
-
The Linux build uses a file source driver that reads, on loop, a raw 16-bit, little-endian, mono, 24 kHz file from `/tmp/baseband.raw`. Simply place the sample file in this location and launch the application in order for it to demodulate. Note that since the linux build has no audio driver, it is not expected that received audio can be heard.
26
+
The Linux build uses a file source driver that reads, on loop, a raw 16-bit, little-endian, mono, 24 kHz file from `/tmp/baseband.raw`.
27
+
28
+
#### Decimation
29
+
30
+
The OpenRTX M17 modulator works at a sample rate of 48 kHz, but the demodulator works at a sample rate of 24 kHz. Because the sample baseband files have a sample rate of 48 kHz, they must be decimated to 24 kHz first in order to be demodulated. This can be done easily using the `sox` audio utility, available in most packagers. To decimate a sample baseband file, run:
31
+
32
+
```bash
33
+
# Convert the sample baseband recording from 48 kHz to 24 kHz
Simply move the decimated file to `/tmp/baseband.raw` and launch the application in order for it to demodulate. Alternatively, you can set the output file path in `sox` to `/tmp/baseband.raw` directly and skip the copy step.
26
40
27
41
```bash
28
42
# Copy the sample to the path the file-source driver reads from:
0 commit comments