From 0aa749d27b1c95997a6e324694a7e624988faacc Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Wed, 16 Mar 2016 18:21:29 +0100 Subject: [PATCH] WIP: NMT docs --- README | 1 + docs/index.html | 1 + src/nmt/dsp.c | 1 + src/nmt/nmt.c | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README b/README index 90906f9..d048ecd 100644 --- a/README +++ b/README @@ -5,6 +5,7 @@ and from mobile phone. Currently supported networks: * A-Netz base station * B-Netz (ATF-1) base station + * NMT (Nordic Mobile Telephone) USE AT YOUR OWN RISK! diff --git a/docs/index.html b/docs/index.html index 8d8d475..35e96f8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -23,6 +23,7 @@ A base station emulator for classic mobile networks. All these networks use anal
  • Connecting headset
  • Using A-Netz phone
  • Using B-Netz phone
  • +
  • Using NMT phone
  • diff --git a/src/nmt/dsp.c b/src/nmt/dsp.c index 64ff38d..79403b9 100644 --- a/src/nmt/dsp.c +++ b/src/nmt/dsp.c @@ -83,6 +83,7 @@ int dsp_init_sender(nmt_t *nmt) int16_t *spl; int i; + /* attack (3ms) and recovery time (13.5ms) according to NMT specs */ init_compander(&nmt->cstate, 8000, 3.0, 13.5); if ((nmt->sender.samplerate % (BIT_RATE * STEPS_PER_BIT))) { diff --git a/src/nmt/nmt.c b/src/nmt/nmt.c index 561167e..1e8166e 100644 --- a/src/nmt/nmt.c +++ b/src/nmt/nmt.c @@ -441,7 +441,7 @@ static int match_area(nmt_t *nmt, frame_t *frame) traffic_area = ((frame->area_info & 0x3) << 4) | frame->traffic_area; if (nmt->sysinfo.traffic_area != 0 && (nmt->sysinfo.traffic_area & 0x3f) != traffic_area) { - PDEBUG(DNMT, DEBUG_NOTICE, "Received traffic 6 bits of traffic area (0x%02x) does not match the 6 bits of base station's traffic area (0x%02x), ignoring.\n", nmt->sysinfo.traffic_area & 0x3f, traffic_area); + PDEBUG(DNMT, DEBUG_NOTICE, "Received 6 bits of traffic area (0x%02x) does not match the 6 bits of base station's traffic area (0x%02x), ignoring.\n", nmt->sysinfo.traffic_area & 0x3f, traffic_area); return 0; } skip_area: