Commit Graph

148 Commits

Author SHA1 Message Date
Kamal Mostafa aa1124d6e7 minimodem: fix incorrect try_max_nsamples calculation 2012-09-02 14:25:43 -07:00
Kamal Mostafa fd45b5571c minimodem: restrict try_max_nsamples to 75% of a bit-width
... actually 125% of a bit width before acquiring carrier.
2012-09-02 14:27:04 -07:00
Kamal Mostafa 7b0e47ac4e minimodem: --binary-output 2012-09-01 00:09:32 -07:00
Kamal Mostafa a172268117 minimodem: auto get samplerate from audio files 2012-09-02 18:10:59 -07:00
Kamal Mostafa 0f3338a91b minimodem: match sync_byte in the fsk layer 2012-09-02 12:02:06 -07:00
Kamal Mostafa 9187dd60a7 minimodem: --rx same (NOAA SAME protocol) 2012-09-01 13:34:50 -07:00
Kamal Mostafa 04cc215640 minimodem: --sync-byte {0xXX} 2012-09-01 14:54:32 -07:00
Kamal Mostafa 82c72352ab minimodem: --startbits; deprecate -T 2012-09-01 13:33:49 -07:00
Kamal Mostafa e2a51f093a databits: split out the databits implementations
rename framebits to databits
added databits_binary decoder
2012-08-31 21:39:08 -07:00
Kamal Mostafa a7d1602c9d minimodem: calculate frame_bits_{mask,shift} 2012-08-31 20:42:05 -07:00
Kamal Mostafa cbd048aac6 minimodem: bfsk_nstartsbits variable
- FIXME: doesn't actually implement the proper expect_bits string
 - only useful for testing SAME decoder's hardcoded "dddddddd" expect_bits
2012-08-30 16:02:53 -07:00
Kamal Mostafa 7b34e89433 minimodem: --stopbits replaces --txstopbits; better bps metric
RX metrics account for fractional number of stop bits (e.g 1.5);
RX bps metric slightly more accurate (?).
2012-08-30 15:05:33 -07:00
Kamal Mostafa becf16761e minimodem: fsk confidence thresholds: thresh=1.5, limit=2.3
Note: fsk_confidence_thresh can now be reduced to 1.5 due to track_amplitude.
2012-08-26 15:16:49 -07:00
Kamal Mostafa 3447a994b7 minimodem: track_amplitude signal amplitude drop 2012-08-30 00:07:15 -07:00
Kamal Mostafa 0c022aca03 minimodem: --rx-one quits after first no-carrier 2012-08-30 10:17:55 -07:00
Kamal Mostafa b480b841da minimodem: --Xrxnoise=factor adds test noise
Injects random noise to input signal (in memory) before analysis.
2012-08-30 00:00:19 -07:00
Kamal Mostafa dd6040336d minimodem: stats report ampl={amplitude} 2012-08-25 09:17:05 -07:00
Kamal Mostafa 762a3ea788 minimodem: --volume sets tx amplitude 2012-08-25 00:32:11 -07:00
Kamal Mostafa 501ee25c7d fsk: expect_bits_string param, no start/stop bits required
fsk_find_frame() takes expect_bits_string  (e.g. "10dddddddd1"), as a
parameter supplied by the caller allowing for encodings which don't use
any start/stop bits (e.g. just "dddddddd").
2012-08-24 13:20:20 -07:00
Kamal Mostafa 6bb683a90b minimodem: fix broken -l switch 2012-08-23 19:23:33 -07:00
Kamal Mostafa 96ec6450bb minimodem: fix size_t %zu warnings on 32-bit platforms 2012-08-19 14:39:14 -07:00
Kamal Mostafa f81f069d95 minimodem: --limit (2.3) sets fsk_confidence_search_limit
Significant performance enhancements from fsk_confidence_search_limit:
runs far fewer FFT's when --limit (default 2.3) is less than INFINITY.
2012-08-18 21:24:01 -07:00
Kamal Mostafa bc30de33a4 minimodem: fix carrier_nsamples
All test cases (except 45.45 RTTY) get rate perfect!
2012-08-18 13:43:45 -07:00
Kamal Mostafa 18b1eb7457 minimodem: default confidence = 2.0 for SNR algo #5 2012-08-18 19:19:22 -07:00
Kamal Mostafa cf9ba20ee0 fsk: confidence algo #5 (SNR)
Computes SNR confidence value, where "signal" is the magnitude of the FSK
driven frequency, and "noise" is the magnitude of the non-driven frequency.

(Also includes unused algo #4 code, which may not compile anymore.)
2012-08-14 22:31:30 -07:00
Kamal Mostafa df80c98e22 minimodem: fsk_frame_overscan replaces FSK_SCAN_LAG 2012-08-16 01:03:54 -07:00
Kamal Mostafa fbc99e54fb simpleaudio: benchmarks cpu id 2012-08-15 12:00:17 -07:00
Kamal Mostafa 67eb9821be update copyright dates 2012-08-13 21:51:53 -07:00
Kamal Mostafa a9c2258706 minimodem: use sine lookup table of 1024, or --lut={tx_sin_table_len} 2012-08-13 21:17:03 -07:00
Kamal Mostafa d273828f80 minimodem: --float-samples: short arg -F deprecated 2012-08-13 15:55:57 -07:00
Kamal Mostafa bd08b9002c minimodem: --benchmarks: runs internal performance tests 2012-08-13 15:51:04 -07:00
Kamal Mostafa 9948e7c7dd minimodem: --tx uses S16 samples by default, --float-samples overrides 2012-08-12 15:47:59 -07:00
Kamal Mostafa 4d326a8c82 simpleaudio: generalized simpleaudio_open_stream 2012-08-12 14:24:55 -07:00
Kamal Mostafa 3053ea78bc simpleaudio: SA_SAMPLE_FORMAT framework 2012-08-11 21:00:37 -07:00
Kamal Mostafa 8d90e839d7 minimodem: --samplerate sets the audio sample rate 2012-08-11 10:24:28 -07:00
Kamal Mostafa 22317f54fc simpleaudio: handle any audio sample rate 2012-08-11 10:07:12 -07:00
Kamal Mostafa b78828ea11 minimodem: usage message fix 2012-08-08 20:18:52 -07:00
Kamal Mostafa 4b926d58bb minimodem: --alsa selects ALSA at runtime
./configure now enables --with-pulseaudio and --with-alsa by default;
either can be disabled.

minimodem --alsa: uses ALSA at runtime instead of the default PulseAudio.
2012-08-08 20:10:55 -07:00
Kamal Mostafa 95d7a87ce1 minimodem: configure --with-alsa for ALSA instead of Pulseaudio 2012-08-08 14:26:39 -07:00
Kamal Mostafa 7d8c62cf5e configure: new opts --without-{pulseaudio,sndfile}
./configure --without-pulseaudio or --without-sndfile (but not both)
to preclude those dependencies.

Sources use config.h defines USE_PULSEAUDIO and USE_SNDFILE.
2012-08-06 13:14:26 -07:00
Kamal Mostafa 777b57dd3a minimodem: do not do interactive signal handling with --tx --file 2011-07-15 20:37:13 -07:00
Kamal Mostafa 93405a3751 minimodem: default 1.5 stop bits for rtty only 2011-07-15 19:00:20 -07:00
Kamal Mostafa 2efe4bac19 minimodem: set reasonable default mark/space for high baud rates 2011-07-15 17:56:02 -07:00
Kamal Mostafa 7686acc38e minimodem: transmit interactive zero latency; fix leader/trailer 2011-07-13 20:37:17 -07:00
Kamal Mostafa 9a85232c96 minimodem: --quiet 2011-07-08 18:08:52 -07:00
Kamal Mostafa 695c628427 minimodem: --auto-carrier off by default
No longer on by default for <= 300 baud.
2011-07-08 17:42:19 -07:00
Kamal Mostafa 633153916b minimodem: --confidence param 2011-07-08 13:16:06 -07:00
Kamal Mostafa 7a5aea88df minimodem: rate analysis fixes ("rate perfect")
adjust MIN_CONFIDENCE
2011-07-08 13:03:00 -07:00
Kamal Mostafa 47ced96ccf minimodem: version message to stdout 2011-07-08 09:48:52 -07:00
Kamal Mostafa 726b284afc minimodem: CARRIER_AUTODETECT_THRESHOLD reduced to 0.001 2011-07-08 09:26:25 -07:00
Kamal Mostafa 845c3e1be6 fsk: CONFIDENCE_ALGO 3 (worst divergence)
CONFIDENCE_ALGO 3 (worst divergence):
 - single worst diverging bit in the frame
 - amplitude normalized
 - drop AVOID_TRANSIENT
2011-07-08 08:03:31 -07:00
Kamal Mostafa fd0546d80d fsk expect_bits 2011-07-07 13:31:10 -07:00
Kamal Mostafa e02172087c simpleaudio: improve open err msg 2011-07-03 08:59:15 -07:00
Kamal Mostafa 8161a48e10 minimodem: add --version switch 2011-07-02 14:22:06 -04:00
Kamal Mostafa b1a0a0f7c1 cleanup 2011-06-23 23:06:46 -07:00
Kamal Mostafa 702c0be223 minimodem licenced as GPL3+ 2011-06-22 17:10:50 -07:00
Kamal Mostafa 6a00252c42 minimodem: default --txstopbits 1.5 for RTTY 2011-06-22 13:43:49 -07:00
Kamal Mostafa 27bc5f5ca7 minimodem --txstopbits M.N variable stop bits 2011-06-22 13:43:24 -07:00
Kamal Mostafa 3a22116159 fsk: new confidence algo 2011-06-22 10:06:19 -07:00
Kamal Mostafa 65d0232c46 minimodem: make leader tone 2.0 bits long 2011-06-21 20:28:17 -07:00
Kamal Mostafa 243af5da56 fsk: floating point band_width 2011-06-21 20:27:51 -07:00
Kamal Mostafa 12565ff39a minimodem: reduce FSK_SCAN_LAG to 0.4 for improved decode 2011-06-21 16:09:44 -07:00
Kamal Mostafa e1b8082e4c minimodem cleanup 2011-06-21 14:01:16 -07:00
Kamal Mostafa 118722249b minimodem: allow for band_width > bfsk_data_rate 2011-06-21 12:20:11 -07:00
Kamal Mostafa 1ab9d2783c minimodem: rx rate measurement 2011-06-21 12:18:33 -07:00
Kamal Mostafa 15bb83ee9b minimodem: fix segfault on unrecognized option 2011-06-20 19:18:38 -07:00
Kamal Mostafa 7e01e77d5e minimodem cmdline options reorg 2011-06-20 10:22:11 -07:00
Kamal Mostafa 5c281ad28f simpleaudio-sndfile file write 2011-06-19 09:40:49 -07:00
Kamal Mostafa 2a7f8214df minimodem -T rtty (baudot RTTY transmit) 2011-06-18 21:03:20 -07:00
Kamal Mostafa 286879cfb3 baudot cleanup 2011-06-18 11:55:48 -07:00
Kamal Mostafa e36594ca47 minimodem cleanup 2011-06-18 11:47:58 -07:00
Kamal Mostafa 952962dde3 minimodem -T stdin transmitter 2011-06-18 11:29:48 -07:00
Kamal Mostafa 31eb95afe8 simpleaudio: sa_stream_direction 2011-06-17 14:21:31 -07:00
Kamal Mostafa 1bfd5ada5b fix nbytes= output label s.b. ndata= 2011-06-12 08:59:27 -07:00
Kamal Mostafa 1739f7bfd6 frame_process virtualized 2011-06-12 08:42:19 -07:00
Kamal Mostafa 35f03b742e minimodem: rtty and cmdline band_width
* 'rtty' cmdline parm enables 45.45 baud 5-bit Baudot
 * band_width cmdline parm
2011-06-10 18:09:47 -07:00
Kamal Mostafa 8a6847195e minimodem: f.p. decode_rate and more
* floating point decode_rate
 * switch cmdline argument order
 * other misc
2011-06-10 18:19:40 -07:00
Kamal Mostafa 439b606a97 minimodem 0.2.0 2011-06-08 14:00:22 -07:00
Kamal Mostafa 54f8efde20 minimodem: use fsk.h API 2011-06-08 13:21:12 -07:00
Kamal Mostafa c790603bf6 use hypotf 2011-06-03 17:30:08 -07:00
Kamal Mostafa d93537d128 minimodem decode_filter_width = decode_rate
This doesn't really seem to help anything.
2011-05-30 20:23:32 -07:00
Kamal Mostafa e5fb5f4b75 minimodem: NRZI code (not enabled) 2011-05-30 18:57:19 -07:00
Kamal Mostafa e43deedd44 minimodem cd tweaks: perfect 300, perfect 1200 2011-05-30 18:55:05 -07:00
Kamal Mostafa 09083fc035 minimodem 300 baud band_width=50 2011-05-30 18:54:02 -07:00
Kamal Mostafa f750e47e5e minimodem run 2% fast 2011-05-30 15:23:01 -07:00
Kamal Mostafa d74cb0eea0 minimodem CD tweaks 2011-05-30 10:42:49 -07:00
Kamal Mostafa fe52354af9 minimodem fix bugged shift calcs 2011-05-30 10:21:16 -07:00
Kamal Mostafa 0a47a37a06 minimodem: use simpleaudio 2011-05-29 22:22:20 -07:00
Kamal Mostafa bc9c6234c7 minimodem cleanup 2011-05-29 12:57:15 -07:00
Kamal Mostafa 1ba9f7aa6f minimodem catch-up shift just 1 frame 2011-05-29 12:52:23 -07:00
Kamal Mostafa d1ce25db02 minimodem auto-set tones per baud-rate 2011-05-29 12:44:10 -07:00
Kamal Mostafa f9085e84cb minimodem cosmetics 2011-05-29 12:41:36 -07:00
Kamal Mostafa a429eff466 fixed black magic and rx rate calc 2011-05-28 08:55:42 -07:00
Kamal Mostafa a5492bbc6a minimodem fixed black magic 2011-05-26 23:24:39 -07:00
Kamal Mostafa 9e4ad3a2f7 minimodem carrier detect 2011-05-25 17:02:50 -07:00
Kamal Mostafa 4aa97884c4 minimodem trick detect 2011-05-25 16:41:57 -07:00
Kamal Mostafa 62dbd2c27c minimodem uses tscope_print 2011-05-25 15:26:13 -07:00
Kamal Mostafa cdde307640 minimodem, miniscope: initial implementation 2011-05-24 21:36:49 -07:00