Commit Graph

51 Commits

Author SHA1 Message Date
Andreas Eversberg
8d7c7f4425 callref: Move callref from 'sender' to individual implementation of a, b, c-netz
Cellular networks use transaction instances, so callref is now member of
transaction object.
2016-10-02 09:06:03 +02:00
Andreas Eversberg
7d111546c4 Alsa: Keep 8 samples in input buffer to avoid reading corrupted samples 2016-08-13 15:19:12 +02:00
Andreas Eversberg
541eafe59e Common code: Add call state debugging 2016-08-07 17:23:56 +02:00
Andreas Eversberg
362b1cbb61 Common code: Fix sound card reset 2016-08-07 17:22:24 +02:00
Andreas Eversberg
e69d74ac45 Send test tone towards mobile when no headphone sound device is selected 2016-08-03 12:03:55 +02:00
Andreas Eversberg
038ce9d1b7 Add info key 'i' to show some states.
Currently showing C-Netz attached subscribers
2016-08-03 12:03:49 +02:00
Andreas Eversberg
f729b32745 C-Netz: Fixed multi-transceiver mode and show channel in various logs 2016-07-31 18:48:19 +02:00
Andreas Eversberg
0593f7d066 Fix typos 2016-07-24 12:31:09 +02:00
Andreas Eversberg
6a5af9aeac Typos: acknowledgement -> acknowledgment signalling -> signaling 2016-07-24 12:31:08 +02:00
Andreas Eversberg
c273bbc5ff Remove console line before printing debugging and on exit 2016-07-24 12:31:08 +02:00
Andreas Eversberg
5807a49f49 Release active call, when disconnect is received from network
If early disconnect is received, the connecion is kept established, so the
announcement can be heared by mobile subscriber.
2016-07-24 12:31:08 +02:00
Andreas Eversberg
4745b29115 NMT: Caller ID support 2016-07-24 12:31:07 +02:00
Andreas Eversberg
b3b42e8bc4 Cleanup warnings at autoconfig files 2016-07-24 12:31:06 +02:00
Andreas Eversberg
e7fa08b6df NMT / SMS: Short Message Service support 2016-07-09 15:16:16 +02:00
Andreas Eversberg
64c829909b NMT / DMS: User data facility support (required for SMS) 2016-07-09 11:27:24 +02:00
Andreas Eversberg
62b3712ce5 common code: Check and ignore events without callref set 2016-07-09 11:27:02 +02:00
Andreas Eversberg
f39ee2f15a common code: Add support for main loop handler 2016-07-09 11:27:02 +02:00
Andreas Eversberg
26ab26db48 minor fix at MNCC socket 2016-07-09 11:27:02 +02:00
Andreas Eversberg
f3fd01ebcd ALSA code: Fixed corrupted sample at the end of a read
The last sample may get corrupted. It seems that this depends on the
card that is used. To fix this, the snd_pcm_avail is checked and
one sample less than available is read using snd_pcm_readi. This
sample remains in RX buffer until next read. Then it is not corrupted.
2016-07-02 08:04:43 +02:00
Andreas Eversberg
2ee51022f4 Rename 'compander' to 'compandor' 2016-06-20 19:37:56 +02:00
Andreas Eversberg
d851c37eac common code: Release MNCC call 30 seconds after listening to announcement 2016-06-19 17:46:56 +02:00
Andreas Eversberg
b45b0c6bac common code: Minor fix in main loop 2016-06-19 17:43:48 +02:00
Andreas Eversberg
4d52f955b3 common code: Add processing interval option to decrese CPU usage 2016-06-18 19:33:08 +02:00
Andreas Eversberg
d2c4ca4fa9 Implementation of Advanced Mobile Phone Service (AMPS) 2016-06-17 17:03:29 +02:00
Andreas Eversberg
7d5d3da8d3 Add function to display wave form from input/loop
Use 'w' to toggle display.

Move terminal input processing and main loop to main_common.c
2016-06-17 17:03:28 +02:00
Andreas Eversberg
1d20119d85 common code: Call control allows to re-dial after disconnect
No hangup key required before that anymore.
2016-06-12 16:16:37 +02:00
Andreas Eversberg
7cfd11eb17 common code: Add feature to select debug category rather than showing all 2016-06-12 16:14:29 +02:00
Andreas Eversberg
4d22b11855 common code: Add debug #define for capture generated singal
Used for fundamental debugging of encoded signal
2016-06-12 16:11:20 +02:00
Andreas Eversberg
7aa2445b47 Move amplitude (level) debugging to debug.c 2016-05-15 20:37:06 +02:00
Andreas Eversberg
27e8b03df5 Fixup typo on jitter code 2016-05-13 09:37:02 +02:00
Andreas Eversberg
42eefe90bf common code: Fixed de-emphasis by adding high pass filter
This high-pass filter filters out DC and frequencies below 300 Hz.
Now de-emphases will not cause low frequencies to saturate audio level
range or cause too high levels on low frequencies.
2016-05-13 09:37:02 +02:00
Andreas Eversberg
57ba648ac4 C-Netz: Add tiny database to track if phones are online
Reject calls, if not online.

Use an interval to check if the phones are still online.
2016-05-08 15:53:00 +02:00
Andreas Eversberg
bae12156a2 common code: Add input gain option 2016-05-08 15:49:45 +02:00
Andreas Eversberg
7434e21dc2 Multi transceiver support
This can be multiple transceivers on multiple sound cards.

Two transceivers can be bundled on one sound device as well, using both channels.
2016-05-08 15:48:13 +02:00
Andreas Eversberg
28e7f1e9d1 common code: Remove DC level before using Goertzel filter
A DC level degrades the quality of the filtered result
2016-05-01 15:15:19 +02:00
Andreas Eversberg
0c99848120 common code: Make preemphasis 0 dB @ 1000 Hz 2016-05-01 15:14:57 +02:00
Andreas Eversberg
16acdbf59d Implementation of C-Netz (German mobile telephone system) 2016-04-24 15:19:00 +02:00
Andreas Eversberg
4b3e3385b5 common code: Fix sample rate conversion 2016-04-24 15:18:59 +02:00
Andreas Eversberg
4356c93afa common: Add pre and de emphasis, if the radio does not support it
Connect to the oscillator of the transmitter - good girl!
You need to enable pre emphasis in this case.

Connect to the discriminator of the receiver - good boy!
You need to enable de emphasis in this case.
2016-04-24 15:14:56 +02:00
Andreas Eversberg
2a092b8cf7 Fixing compander 2016-04-24 15:10:25 +02:00
Andreas Eversberg
9de121109d common code: Sample rate conversion now supports any rate above 8000 Hz 2016-04-17 16:49:39 +02:00
Andreas Eversberg
05402283df common code: Add function request information, if timer is running 2016-04-17 16:49:08 +02:00
Andreas Eversberg
4d84da31a8 Fixing timer handling
Usage of more than one timer caused a lock-up.
2016-03-27 17:56:04 +02:00
Andreas Eversberg
1146537d84 common code: Add feature to record received audio and replay it
-W <file.wav> writes a wave file of received audio
-R <file.wav> reads a wave file to feed into decoder

This way you can record a phone and later debug without a phone
and radio equipment.
2016-03-27 17:56:04 +02:00
Andreas Eversberg
a5db02775e fixup debug class definition: rename DFSK and DAUDIO to DDSP 2016-03-15 19:26:13 +01:00
Andreas Eversberg
57caa536cf Implementation of NMT (Nordic Mobile Telephoe) network 2016-03-13 19:42:19 +01:00
Andreas Eversberg
cbfc818cce Add compander to common part 2016-03-13 16:18:42 +01:00
Andreas Eversberg
4ab1cd5026 Add DTMF coder to common part 2016-03-13 13:38:35 +01:00
Andreas Eversberg
0dc81fe210 Prepare for NMT: Fixes and improvements at common code 2016-03-13 09:12:23 +01:00
Andreas Eversberg
d21be383a6 anetz/bnetz: Move option 'loss detection' from common code to individual code 2016-03-13 09:12:16 +01:00