compile/usage info update

pull/27/head
Zilog80 2020-01-25 00:22:03 +01:00
rodzic 94ae5fc20b
commit 4a07047f3b
4 zmienionych plików z 44 dodań i 4 usunięć

Wyświetl plik

@ -20,9 +20,23 @@ alternative decoders using cross-correlation for better header-synchronization
`gcc rs92mod.c demod_mod.o bch_ecc_mod.o -lm -o rs92mod` (needs `RS/rs92/nav_gps_vel.c`)
#### Usage/Examples
`./rs41mod --ecc2 --crc -vx --ptu <audio.wav>` <br />
`./dfm09mod --ecc -v --ptu <audio.wav>` (add `-i` for dfm06)<br />
`./rs41mod --ecc2 -vx --ptu <audio.wav>` <br />
`./dfm09mod --ecc -v --ptu <audio.wav>` (add `-i` for dfm06; or use `--auto`) <br />
`./m10mod --dc -vv --ptu -c <audio.wav>` <br />
`./lms6Xmod --vit --ecc -v <audio.wav>` <br />
IQ data:<br />
If the IQ data is downsampled and centered (IF band), use <br />
`./rs41mod --iq2 <iq_data.wav>` <br />
or with lowpass filter <br />
`./rs41mod --iq2 --lp <iq_data.wav>` <br />
For baseband IQ data, use
`./rs41mod --IQ <fq> <iq_data.wav>` <br />
where `<fq>` is the relative frequency in `-0.5 .. 0.5`;
e.g. if the receiver is tuned to 403MHz and the (complex) sample rate is 2MHz,
a signal at 402.5MHz would be -0.5MHz off, i.e. `<fq> = -0.5/2 = -0.25`. <br />
For IQ data (i.e. 2 channels) it is possible to read raw data (without wav header): <br />
`./rs41mod --IQ <fq> - <sr> <bs> <iq_data.raw>` <br />
&nbsp;&nbsp;&nbsp;&nbsp; `<sr>`: sample rate <br />
&nbsp;&nbsp;&nbsp;&nbsp; `<bs>=8,16,32`: bits per (real) sample (u8, s16 or f32)

Wyświetl plik

@ -2,7 +2,7 @@
/*
* rs41
* sync header: correlation/matched filter
* files: rs41mod.c bch_ecc_mod.c demod_mod.c demod_mod.h
* files: rs41mod.c bch_ecc_mod.c bch_ecc_mod.h demod_mod.c demod_mod.h
* compile, either (a) or (b):
* (a)
* gcc -c demod_mod.c

Wyświetl plik

@ -2,7 +2,7 @@
/*
* rs92
* sync header: correlation/matched filter
* files: rs92mod.c nav_gps_vel.c bch_ecc_mod.c demod_mod.c demod_mod.h
* files: rs92mod.c nav_gps_vel.c bch_ecc_mod.c bch_ecc_mod.h demod_mod.c demod_mod.h
* compile:
* (a)
* gcc -c demod_mod.c

Wyświetl plik

@ -0,0 +1,26 @@
## Radiosonde decoders
simultaneous decoding
#### Compile
`gcc -Ofast -c demod_base.c` <br />
`gcc -O2 -c bch_ecc_mod.c` <br />
`gcc -O2 -c rs41base.c` <br />
`gcc -O2 -c dfm09base.c` <br />
`gcc -O2 -c m10base.c` <br />
`gcc -O2 -c lms6Xbase.c` <br />
`gcc -O2 rs_multi.c demod_base.o bch_ecc_mod.o rs41base.o dfm09base.o m10base.o lms6Xbase.o -lm -pthread -o rs_multi`
#### Usage/Examples
`./rs_multi --rs41 <fq0> --dfm <fq1> --m10 <fq2> --lms <fq3> <iq_baseband.wav>` <br />
`./rs_multi --rs41 <fq0> --dfm <fq1> --m10 <fq2> --lms <fq3> - <sr> <bs> <iq_baseband.raw>` <br />
where <br />
&nbsp;&nbsp;&nbsp;&nbsp; `-0.5 < fq < 0.5`: (relative) frequency, `fq=freq/sr` <br />
&nbsp;&nbsp;&nbsp;&nbsp; `<sr>`: sample rate <br />
&nbsp;&nbsp;&nbsp;&nbsp; `<bs>=8,16,32`: bits per (real) sample (u8, s16 or f32) <br />
decodes up to `MAX_FQ=5 (demod_base.h)` signals. Decoding more signals than number of CPUs/cores is not recommended. <br />
c.f.
https://youtu.be/5YXP9LYUgLs