Commit Graph

667 Commits

Author SHA1 Message Date
Andreas Eversberg 0ebd53ac69 C-Netz: Minor fixes to pulse shaping code 2021-11-07 20:00:42 +01:00
Andreas Eversberg 3e5326f891 Eurosignal: Removed useless channel check 2021-11-07 20:00:42 +01:00
Andreas Eversberg b0b0046ad3 Fixed minor compiler warning 2021-11-07 20:00:42 +01:00
Andreas Eversberg 423bc42429 Refactoring validity check and prefix processing of dialed number
Command line help shows how many digits and what prefixes can be dialed.

Giving a station ID via command line will be checked for being valid.

The number to call the mobile statione will be checked for being valid.

Prefixes that are defined for a nework will be removed from station ID

Multiple station ID lengths are supported:
 * C-Netz: 7 or 8 digits, depending on area code length
 * A-Netz: 5 or 7 digits; number is truncated to last 5 digits.
 * IMTS/MTS: 5 or 7 digits, depending on phone's selector switch.
2021-11-07 20:00:42 +01:00
Andreas Eversberg 3a73f31d7e Fixed crash bug in dialing console 2021-11-07 20:00:41 +01:00
Andreas Eversberg 465445aac5 Add Magnetic card emulation for C-Netz
Emulation can be done with a coil connected to sound card.

Alternatively an Attiny85 can be used to control a coil.
2021-11-07 20:00:41 +01:00
Andreas Eversberg 922b4af362 Refactoring ASCCI-Art image printing 2021-11-07 08:55:46 +01:00
Andreas Eversberg 6fa74a1296 Refactor global variables for signal processing
These are:
	device, sample rate, buffer, latency
Called now:
	dsp_device, dsp_samplerate, dsp_buffer, dsp_latency
Call audio device:
	call_device, call_samplerate, call_buffer
2021-10-24 06:25:10 +02:00
Andreas Eversberg de685b3cb6 Minor changes at timer.c: Improved precision 2021-10-24 06:25:11 +02:00
Andreas Eversberg 8a1c5a1a5b SoapySDR uses time stamps to prevent gaps/overflows in transmit stream
A common option for both UHD and SoapySDR allows to turn off time stamps.
2021-09-24 17:20:27 +02:00
Andreas Eversberg 35ed2d5138 Added locking to debug output, to prevent race condition between threads 2021-09-24 17:20:27 +02:00
Andreas Eversberg 1b16029ac6 B-Netz: Improved detection of tone/frame
- Be less tollerant to levels when detcting tones.
- Squelch applies to tone detector also
2021-09-17 16:17:05 +02:00
Andreas Eversberg 4974e39999 Osmo-CC: Conversion function between values and their names
Allows to convert integer values into their names and vice versa.
2021-09-17 16:17:05 +02:00
Andreas Eversberg 29ec9b67d4 FUVST: Minor output improvements 2021-09-17 16:16:28 +02:00
Andreas Eversberg 3293dfb500 C-Netz: Fix calls to 8-digits subscriber numbers 2021-09-17 16:16:20 +02:00
Andreas Eversberg 3fce0403fd C-Netz: Updated base station list 2021-09-17 16:16:10 +02:00
Andreas Eversberg 17908076a9 Optionally output date with each debug line 2021-09-17 16:15:32 +02:00
Andreas Eversberg 1dff336ea2 Add message tracing to Osmo-CC 2021-09-17 16:12:22 +02:00
Andreas Eversberg 6aa8a237db SoapySDR: Fixed API change from version 0.7.1 2021-06-23 16:06:36 +02:00
Andreas Eversberg 24e39ae268 MPT1327: Correctly assign channel on calls towards radio unit 2021-06-20 19:06:53 +02:00
Andreas Eversberg 8d4d48aa08 Add MPT1327 / Regionet43 (Buendelfunk) network 2021-06-06 11:50:35 +02:00
Andreas Eversberg ef88fea8a0 libosmocc: Add support for individual session config (per endpoint) 2021-04-03 23:00:01 +02:00
Andreas Eversberg 046834ac97 libomsocc: Add function to check if interface is attached 2021-04-03 23:00:01 +02:00
Andreas Eversberg 2d1b5fb437 SIM: Option to write sniffed PDU to file 2021-04-03 23:00:01 +02:00
Andreas Eversberg e671b21812 libosmocc: Don't route on redirecting number 2021-03-28 13:17:54 +02:00
Andreas Eversberg fe6b5cdbcf libosmocc: SDP parser ignores broken codec descriptions
Thenx to Cisco.
2021-03-28 13:06:09 +02:00
Andreas Eversberg 65b7d3f2e7 Make Alsa sound interface indipendent from libmobile 2021-03-28 13:05:58 +02:00
Andreas Eversberg 6ed53c5699 Add new debug class 2021-03-28 13:05:50 +02:00
Andreas Eversberg 089a012b06 libmobile: Do not send 'proceeding', if call gets answered right after 'setup' 2021-03-20 11:24:57 +01:00
Andreas Eversberg 68fbf1ae69 Osmo-CC: The 'local' socket peer is also used as default rtp-peer 2021-03-20 11:20:23 +01:00
Andreas Eversberg 7670b22118 Using "--limesdr" or "--limesdr-mini" will also set device to "lime"
This is useful, if SoapySDR supports other SDR devices, like sound card. In
this case "--sdr-device-args driver=lime" must be given at command line. Now
this is done automatically with "--limesdr" or "--limesdr-mini".
2021-03-20 11:19:43 +01:00
Andreas Eversberg 3d9481177b Config file path can be changed by command line option "--config <path>" 2021-03-20 11:19:37 +01:00
Andreas Eversberg ca9d531643 Fix some minor compiling issues 2021-03-20 11:19:29 +01:00
Andreas Eversberg f82244ed37 Fixed broken --osmocc-cross option
Thaks to Markus for pointing to this bug.
2021-03-07 10:39:13 +01:00
Andreas Eversberg e470138657 Osmo-CC: Add telephone-event selection to helper 2021-03-07 10:39:05 +01:00
Andreas Eversberg 91979b7ad4 osmo-cc: Improve network type information element 2021-03-07 10:38:58 +01:00
Andreas Eversberg daae95ee05 Fix libdebug to be used with all osmo-cc projects 2021-03-07 10:38:52 +01:00
Andreas Eversberg 6650631b4f libmobile: Minor fixes 2021-03-07 10:38:45 +01:00
Andreas Eversberg 8c0a25f3b0 Added special strdup to liboptions, to prevent memory leaks for option strings
If you are doing memory leak debugging you don't want to see any leaks when
stopping the program.
2021-03-07 10:38:38 +01:00
Andreas Eversberg 22cb70fb1b Rename the parameter "coherent" to "FFSK" which is the correct meaning. 2021-03-07 10:37:17 +01:00
Martin Hauke a07764f0d9 Fixed typos in cli output and source code comments 2021-01-03 09:57:03 +01:00
Andreas Eversberg 97636aac1e OsmoCC: Limit number of default socket ports to 20 2021-01-03 09:50:36 +01:00
Andreas Eversberg 255c28830a Fix IMTS timings according to new documents found 2020-12-29 11:11:41 +01:00
Andreas Eversberg 14b95ab3e2 datenklo: Only compile if FUSE and ALSA is supported
Minor fix
2020-12-29 11:11:41 +01:00
Andreas Eversberg 2cb2d5f3ac Replaced MNCC by OSMO-CC 2020-12-29 11:11:41 +01:00
Andreas Eversberg d0d14e2acf Add G.711 codec (alaw / ulaw conversion) 2020-12-29 11:11:41 +01:00
Andreas Eversberg ad8a7be345 Add Osmo-CC library to replace MNCC 2020-12-29 11:11:41 +01:00
Andreas Eversberg 59119f380f C-Netz: Implementation of a Funkvermittlungsstelle (FuVSt)
Useful to connect with a Funkfeststation (FuFSt).
2020-12-21 08:38:44 +01:00
Andreas Eversberg b5016d52ba SS7 MTP Layer 2/3 Implementation (partly) 2020-12-21 08:38:44 +01:00
Andreas Eversberg 6a18c924fb V.27ter Modem emulation (partly) 2020-12-21 08:38:44 +01:00
Andreas Eversberg 5070bc70bd Added FIR filter to libfilter 2020-12-21 08:38:44 +01:00
Andreas Eversberg 55a5a4ea2b Initialize jitter buffer delay with half of its size
Also add a function to reset jitter buffer
2020-12-21 08:38:44 +01:00
Andreas Eversberg 118b0260bc C-Netz: Fix scheduling of frames when there is nothing to send 2020-12-21 08:38:44 +01:00
Andreas Eversberg 09f8473c3b Zeitansage: Disable SDR 2020-10-29 08:02:54 +01:00
Andreas Eversberg 3111f8f250 libwave: wave_read() returns the actual samples read 2020-10-29 08:02:44 +01:00
Andreas Eversberg 167b7ea52f AMPS: Suggest to use channel 333 (SID 1 = Chicago) by default
Channel 334 seems to make Problems with my Dynatac.
2020-10-29 08:02:12 +01:00
Andreas Eversberg a662fb822e Options: Add support for quotes and escape sequences 2020-10-29 08:02:00 +01:00
Andreas Eversberg 76c6304ae3 libdebug: Remove dependency on MAX_DISPLAY_WIDTH 2020-10-29 08:01:46 +01:00
Andreas Eversberg f37dfbe4ee DTMF: Correctly handle frequency marging (percent not hertz!) 2020-10-29 08:01:37 +01:00
Andreas Eversberg 51204b55a9 Fix: Support multiple parameters in config file 2020-10-29 08:01:11 +01:00
Andreas Eversberg 8929b332cb Sound: Recover broken audio connection by closing and reopening the device 2020-10-29 08:00:27 +01:00
Andreas Eversberg ed72e29dbb Add tx-gain option 2020-10-29 07:39:27 +01:00
Andreas Eversberg 49c4793106 Add option (global flag) to disable check of channel numbers at sender.c
This is required for channels that do not belog to actual radio transceivers.
2020-10-29 07:38:28 +01:00
Andreas Eversberg 79e11d54a6 Add option (global flag) to disable use of SDR
This is required for channels that do not belog to actual radio transceivers.
2020-10-29 07:38:19 +01:00
Andreas Eversberg 2c82b83993 Allow disabling MNCC Console when using a digit length of 0 2020-10-29 07:38:03 +01:00
Andreas Eversberg 3764f76efb Ignore pending audio frames when there is no transaction (anymore). 2020-10-29 07:37:32 +01:00
Andreas Eversberg 2a435abb43 C-Netz SIM: Terminate phone number string at first 0xf 2020-10-29 07:37:11 +01:00
Andreas Eversberg faf7c7c5c2 C-Netz: Display "Bahn MS", "Bahn BS" and "Datenbetrieb" with messages 2020-10-29 07:36:40 +01:00
Andreas Eversberg ff498d10e1 C-Netz: Added option to define time slots of OgK 2020-10-29 07:36:26 +01:00
Andreas Eversberg f468b2dd9f C-Netz: Minor fixes 2020-10-29 07:36:14 +01:00
Andreas Eversberg 7189984bbb C-Netz: At correct timeslot switch channel mode
Without this, the first BQ(K) message came to early, so that BSA 51
released when receiving ZFZ(K) one frame too early.
2020-10-29 07:35:50 +01:00
Andreas Eversberg a98b05beb0 SIM: several fixes 2020-10-29 07:33:30 +01:00
Andreas Eversberg 0cbabc39b1 Debug: Fix display of debug levels greater 31 2020-10-29 07:33:16 +01:00
Andreas Eversberg 28de2a54ca SIM: Fix output of numbers >32767 when using EBD program mode
A shift of an unsigned char is interpreted as signed char, which causes
all bits above the shift result to become 1, if bit 7 of the char is 1.
2020-10-29 07:32:23 +01:00
Csaba Sipos da54ca68ad Adds country specific settings for Hungary. 2020-10-29 07:17:27 +01:00
Andreas Eversberg 8fea1ef7bf Added SIM card emulator/sniffer for C-Netz 2020-05-24 16:46:39 +02:00
Andreas Eversberg cc49a3c674 Options with multiple parameters are now correctly shown at debug message 2020-05-24 16:46:39 +02:00
Andreas Eversberg e18f7dbc1f Make debug output aliged
Debug output position dependes on the length of the line number.
Now the line number is filled with spaces, so it always has four
digits. Now the following messages in each line are alinged.
2020-05-23 14:25:34 +02:00
Andreas Eversberg 63a2bc8a6b C-Netz: Allow dialing 8-digit numbers (FuVSt > 9) 2020-05-23 14:25:34 +02:00
Andreas Eversberg dd95a49fc9 Added local library for serial port access 2020-05-23 14:25:34 +02:00
Andreas Eversberg 6b07d8b274 A string is used to define what digits can be dialed via console
By default it is "0123456789". This is used by "eurosignal" to add
special A..E digits.
2020-04-04 16:34:39 +02:00
Andreas Eversberg fa6a73a2e1 Eurosignal: Allow dialing (paging) of Spare Digits 2020-03-27 17:28:03 +01:00
Andreas Eversberg 89602822e6 C-Netz: Correct check for valid channel numbers 2020-02-18 19:03:03 +01:00
Andreas Eversberg 69ef3b76bc osmotv: Added special cable network channels (Sonderkanaele) 2020-01-31 17:56:32 +01:00
Andreas Eversberg b2089bb529 Implementation of German "Zeitansage", spoken by Elvira Bader 2020-01-18 18:54:28 +01:00
Andreas Eversberg b1ea4e574f Add option to allow early audio towards call interface 2020-01-12 16:46:17 +01:00
Andreas Eversberg 1e899a522d Don't core dump, if measurements are not defined 2020-01-12 11:17:58 +01:00
Andreas Eversberg ddce867821 Fixed compiler error for old GCC 2020-01-12 11:17:58 +01:00
Andreas Eversberg f132059edf Add clock function to call interface
Implementations will have a clock to play tones, if no clock is
available from a transceiver.
2020-01-12 11:17:58 +01:00
Andreas Eversberg 570b2a5bca C-Netz: Added new list of base station names and IDs
List contains 1991 and 1999 bwase stations
2020-01-04 09:22:02 +01:00
Andreas Eversberg 4cd9cb787e C-Netz: --ms-power defines power level (not P-bits)
Also the level 8 can be selected. Actually level 6 is selected, but
reduced to 8 when making a call.
2020-01-02 09:45:33 +01:00
Andreas Eversberg 5c8919a78b eurosignal: Fixed and simplified notification (beep) on received ID 2019-12-24 15:20:55 +01:00
Andreas Eversberg b1e36be99f MNCC: Add cause name for 'invalid callref' 2019-12-24 15:19:51 +01:00
Andreas Eversberg 5dc05576db osmoradio: Play audio and record wave simultaniously 2019-12-22 08:29:07 +01:00
Andreas Eversberg b38bb16adc osmoradio: Display wave form 2019-12-22 08:13:40 +01:00
Andreas Eversberg 99a4bfc7f0 osmoradio: Fix disabling of emphasis 2019-12-22 06:46:31 +01:00
Andreas Eversberg 90c47658c1 Add support for "Eurosignal", a classic paging service 2019-12-10 20:43:00 +01:00
Andreas Eversberg 4af2dca10d Add power control to AM (power on/off per sample) 2019-12-08 17:26:47 +01:00
Andreas Eversberg 150a77b69d Add support for AM to libmobile and libsdr 2019-12-08 17:26:44 +01:00
Andreas Eversberg c2f14834e5 Rename dbm0 (level) to speech (level)
In mobile communications we use speech level instead of milliwatts.
The deviation (FM) is always based on speech level, not on 1 milliwatt.
2019-12-08 17:24:36 +01:00
Andreas Eversberg c3da4a77d4 Audio level of patterns were too loud. 2019-12-04 17:26:50 +01:00
Andreas Eversberg 1bc3da9258 Datenklo: Fix display input level and wave form
Also display them, if DTR is low.
2019-12-04 17:25:17 +01:00
Andreas Eversberg 7e25e191af Modem emulator for "Datenklo" with AM7910/AM7911 emulation 2019-11-29 15:58:59 +01:00
Andreas Eversberg db1fee9698 minor code cleanup 2019-11-29 15:58:59 +01:00
Andreas Eversberg 23bb88ef6e Describe if audio device exists, but does not support both directions 2019-11-29 15:58:32 +01:00
Andreas Eversberg 2fde5025af New color for options debugging 2019-11-29 15:58:32 +01:00
Andreas Eversberg 860f91af6f Bugfix: Correct handling of n in strncat() 2019-11-29 15:58:32 +01:00
Andreas Eversberg 830794bae4 FSK demodulator: Also report bits that have duration < 0.5 2019-11-29 15:58:32 +01:00
Andreas Eversberg 445af0c0a2 Add filter switch to FSK modulator 2019-11-29 15:58:32 +01:00
Andreas Eversberg 6dcc8baad4 Split FSK modem code into separate modulator and demodulator 2019-11-29 15:58:32 +01:00
Andreas Eversberg 360729d270 C-Netz: Added list of base station names and IDs
Automatic polarity detection is now done by using the polarity of last
transmitted message. We cannot use two base station IDs anymore, to
detect the polarity. Now we deal only with the defined base station ID.
2019-11-29 15:58:32 +01:00
Andreas Eversberg 008bca784b C-Netz: Show if emergency call is made 2019-11-29 15:58:32 +01:00
Andreas Eversberg 195f7481d8 C-Netz: Correctly synchronize time stamp of SpK to OgK
Even if the SpK is not used (yet), it must count time stamp (bit_time) so that
SpK keeps in sync with the OgK, until frames are received from mobile station.
2019-10-26 16:57:01 +02:00
Andreas Eversberg 6dd9999dc8 C-Netz: Fixup for broken Authentication patch
MT calls did not work.
2019-10-26 16:57:01 +02:00
Andreas Eversberg 99bafb6880 MTS/IMTS: (Improved) Mobile Telephone Service
Implementation of the 0G Mobile Phone Network of US and Canada

MTS or IMTS mode is selectable, als well as 5 or 7 digit mode.
2019-08-30 17:17:10 +02:00
Andreas Eversberg 31fca59294 Fixed performance issue with IIR filter
Passing samples with zero value (0.0) causes very slow processing of
IIR filter on my test machine 'nuedel'. I don't know why.
To solve this, I add a very small number to each input sample.
2019-08-26 21:10:39 +02:00
Andreas Eversberg f86adf4bb5 Fixed an unitialized-buffer bug. 2019-08-26 21:10:37 +02:00
Andreas Eversberg b9fe47e85d Fixed use-after-free bug (config file handling) 2019-08-26 21:10:34 +02:00
Andreas Eversberg af4bcb1522 Remove useless debug lines 2019-08-26 21:10:33 +02:00
Andreas Eversberg 1a76aebbc4 SDR: Use greater offset from center frequency, if only one channel is used. 2019-08-26 21:10:31 +02:00
Andreas Eversberg 3139c7a349 Move American tones into a lib, so that it can be used by IMTS also 2019-08-26 21:10:28 +02:00
Andreas Eversberg d6579c1244 Allow giving alphanumeric channels (Prepare for IMTS) 2019-08-26 21:10:20 +02:00
Martin Hauke 75765d49b7 Fixed many typos in output and source code comments 2019-07-15 21:14:52 +02:00
Andreas Eversberg c357ab5ad5 Allow dialing national and international prefix for AMPS/TACS 2019-07-06 07:30:18 +02:00
Andreas Eversberg 41ee8239df Radio: Add option to change volume of transmission/reception 2019-07-05 21:50:24 +02:00
Andreas Eversberg 1eac087935 Output ASCII art image after all init functions (inside main_mobile.c) 2019-06-30 14:51:01 +02:00
Andreas Eversberg 13245c56f6 C-Netz: Add authentication support (process only)
No real authentication, since the algorithm and the keys inside the cards
are not known. A challenge can be specified and optionally the response
can be verified.
2019-06-30 14:51:01 +02:00
Andreas Eversberg 5d9a9b59c3 OsmoTV: Generate correct amplitude of color signal (hopefully) 2019-06-01 19:15:06 +02:00
Andreas Eversberg 4362c78f38 SDR: Display DC line (center frequency) in the spectrum view 2019-05-30 21:08:23 +02:00
Andreas Eversberg 831b68401a SDR: Move center frequenc (DC) away from channels
If one channel is used, shift the center frequency down by half of the bandwidth.

If more channels are used, select a center frequency between two channels close to the center, but equal distance.

Show the spectum layout on startup.

This patch reverts f1292a985b
2019-05-30 21:07:41 +02:00
Andreas Eversberg 37406db7e3 Minimum frequency must be 8000 Hz 2019-05-30 18:19:06 +02:00
Andreas Eversberg 8c6f78fd63 B-Netz: Make debug text more plausible 2019-05-30 18:17:55 +02:00
Andreas Eversberg b9cc33c6ec OsmoTV: Added more test patterns for TV repair
- improved FUBK
- red screen for DY adjustment
- crosses and dots for convergence adjustment
- EBU color bars
- natural color image
2019-05-12 21:08:09 +02:00
Andreas Eversberg e4314749fd Fixup for fast mathm
Because users of libfm do always call fm_init and fm_exit, it must be
included in every build.
2019-03-23 07:57:28 +01:00
Andreas Eversberg e4fcc080df NMT: Fixed traffic area (Y1Y2) digit conversion 2019-03-09 09:51:09 +01:00
Andreas Eversberg 1321f66456 C-Netz: Add option to control voice deviation 2019-01-02 15:58:34 +01:00
Andreas Eversberg f1292a985b SDR: Move channel away from center frequency, to avoid bad RX 2019-01-02 15:57:54 +01:00
Andreas Eversberg 5311f44daa minor fixes of some prints; fix NMT message counter bug 2018-12-23 19:53:28 +01:00
Andreas Eversberg e16a2dd548 B-Netz: Add base stations of the Netherlands 2018-12-23 19:26:59 +01:00
Andreas Eversberg 32025915d5 Make run faster on ARM CPUs using fast math approximation
Use --fast-math to use sine/cosine tables and approximate atan2.
2018-11-10 15:18:28 +01:00
Andreas Eversberg e8429166c3 Radio: Minor fixes 2018-11-10 15:18:28 +01:00
Andreas Eversberg 73757ba083 NMT: Fix test of SMS code for different time zones 2018-11-10 15:18:28 +01:00
Andreas Eversberg 2cff22ef54 Added little INSTALL document and fixed some compiler issues 2018-11-02 09:28:48 +01:00
Andreas Eversberg e5c4e1f638 NMT: Fixed support for NMT-F (France; SFR)
Works now with Nokia Talkman 520 TMF-1FR
2018-10-30 20:04:21 +01:00
Andreas Eversberg 9444fcdb91 NMT: Fix channel encoding for interleaved 2018-10-30 20:01:59 +01:00
Andreas Eversberg e9a7f610ee Compandor: Remove unused option for unaffected level 2018-10-14 13:07:25 +02:00
Andreas Eversberg 56d8df5351 Rework of displaying supervisory info: NMT and AMPS
Using lower rate to show debug info of supervisory signal.

Display supervisory info for NMT and AMPS at measurement display screen.
2018-08-31 20:05:38 +02:00
Andreas Eversberg eac19ddab1 C-Netz: Allow SDR using C-Netz without calibration options
Crystals on SDRs are accurate enough for C-Netz (< 1ppm).
2018-08-26 08:47:56 +02:00
Andreas Eversberg 279dd25b15 SDR: Add presets for LimeSDR-Mini 2018-08-25 10:25:25 +02:00
Andreas Eversberg b2210cd698 Radio: Abort, if no RX sink is specified 2018-08-25 10:22:55 +02:00