aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-03-16 18:21:29 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2016-03-26 17:35:20 +0100
commit0aa749d27b1c95997a6e324694a7e624988faacc (patch)
tree89d771adcba9d176ea856a9b779774bbf364b49b
parenta5db02775e318d1b51a6db5558ce2f013c74a7af (diff)
WIP: NMT docs
-rw-r--r--README1
-rw-r--r--docs/index.html1
-rw-r--r--src/nmt/dsp.c1
-rw-r--r--src/nmt/nmt.c2
4 files changed, 4 insertions, 1 deletions
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
<li><a href="headset.html">Connecting headset</a></li>
<li><a href="a-netz.html">Using A-Netz phone</a></li>
<li><a href="b-netz.html">Using B-Netz phone</a></li>
+ <li><a href="nmt.html">Using NMT phone</a></li>
</ul>
</center>
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: