aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-06-19 11:09:03 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2016-06-19 11:09:03 +0200
commit2b61a2ca4ae9f04852cc96c777537c3cb0217458 (patch)
tree2f02cb2abf6b717930522e067f7c0ac68425a485 /docs
parent673aa74e6c023532ac8e33c185510f0fcefa9c63 (diff)
Work on docs
Diffstat (limited to 'docs')
-rw-r--r--docs/amps.html231
-rw-r--r--docs/c-netz-c130.jpgbin0 -> 383462 bytes
-rw-r--r--docs/c-netz.html100
-rw-r--r--docs/index.html1
4 files changed, 321 insertions, 11 deletions
diff --git a/docs/amps.html b/docs/amps.html
new file mode 100644
index 0000000..c43f885
--- /dev/null
+++ b/docs/amps.html
@@ -0,0 +1,231 @@
+<html>
+<head>
+<link href="style.css" rel="stylesheet" type="text/css" />
+<title>osmocom-analog</title>
+</head>
+<body>
+<center><table><tr><td>
+
+<h2><center>AMPS</center></h2>
+
+<center><img src="amps.jpg"/></center>
+
+<ul>
+ <li><a href="#history">History</a>
+ <li><a href="#howitworks">How it works</a>
+ <li><a href="#basestation">Setup of a base station</a>
+</ul>
+
+<p class="toppic">
+<a name="history"></a>
+History
+</p>
+
+<p>
+*TBD*
+</p>
+
+<center><img src="amps-dynatac.jpg"/></center>
+
+<p>
+<ul>
+ <li>Frequency range:
+ <li>xxx voice channels
+ <li>Duplex distance: 45 MHz
+ <li>Channel spacing: 30 KHz
+ <li>Voice modulation: FM
+ <li>Signalling modulation: carrier FSK
+ <li>Frequency deviation: 8 KHz (FSK)
+ <li>Mobile station transmit power:
+ <li>Base station transmit power:
+</ul>
+</p>
+
+
+<p class="toppic">
+<a name="howitworks"></a>
+</p>
+
+<p>
+*TBD*
+</p>
+
+<p class="toppic">
+<a name="basestation"></a>
+Setup of a base station
+</p>
+
+<p>
+*TBD*
+</p>
+
+<pre>
+
+# amps -k 334 -F yes -E -e
+...
+Selected System ID (SID) 40 belongs to:
+ Salinas, CA (GTE Mobile)
+ San Francisco, CA (GTE Mobile)
+ San Jose, CA (GTE Mobile)
+ San Rosa, CA (GTE Mobile)
+ Santa Barbara, CA (GTE Mobile)
+amps.c:390 notice : You selected 'combined control &amp; paging &amp; voice channel'.
+This is a hack, but the only way to use control channel and voice channel on one transceiver.
+ Some phones may reject this.
+amps.c:481 info : Entering IDLE state, sending Overhead/Filler frames on combined control &amp; paging
+ &amp; voice channel.
+Base station on channel 334 ready, please tune transmitter to 880.020 MHz and receiver to 835.020 MHz.
+frame.c:3658 info : RX Level: 54% Quality: 66% Polarity: NEGATIVE
+frame.c:3658 info : RX Level: 53% Quality: 65% Polarity: NEGATIVE
+frame.c:3658 info : RX Level: 52% Quality: 60% Polarity: NEGATIVE
+
+</pre>
+
+<pre>
+
+frame.c:3630 info : RX RECC: DCC=0
+frame.c:2990 info : Received: Word A - Abbreviated Address Word
+frame.c:2990 info : Received: Word B - Extended Address Word
+frame.c:2990 info : Received: Word C - Serial Number Word
+amps.c:635 info : Registration 617XXXXXXX (ESN = 825b5f79, Class 6 / Discontinuous / 25 MHz)
+transaction.c:175 info : Transaction state IDLE -&gt; REGISTER ACK
+transaction.c:98 info : Created transaction '617XXXXXXX' for subscriber 'REGISTER ACK'
+amps.c:989 info : Sending Register acknowledge
+transaction.c:175 info : Transaction state REGISTER ACK -&gt; REGISTER ACK SEND
+frame.c:2691 info : Transmit: Word 1 - Abbreviated Address Word
+frame.c:2691 info : Transmit: Word 2 - Extended Address Word (SCC == 11)
+frame.c:2691 info : Transmit: Word 1 - Abbreviated Address Word
+frame.c:2691 info : Transmit: Word 2 - Extended Address Word (SCC == 11)
+frame.c:2691 info : Transmit: Word 1 - Abbreviated Address Word
+frame.c:2691 info : Transmit: Word 2 - Extended Address Word (SCC == 11)
+transaction.c:117 info : Destroying transaction for subscriber '617XXXXXXX'
+transaction.c:175 info : Transaction state REGISTER ACK SEND -&gt; IDLE
+
+</pre>
+
+<pre>
+
+frame.c:3630 info : RX RECC: DCC=0
+frame.c:2990 info : Received: Word A - Abbreviated Address Word
+frame.c:2990 info : Received: Word B - Extended Address Word
+frame.c:2990 info : Received: Word C - Serial Number Word
+frame.c:2990 info : Received: Word D - First Word of the Called-Address (Origination - Voice Service)
+amps.c:653 info : Call 617XXXXXXX -&gt; 5551212 (ESN = 825b5f79, Class 6 / Discontinuous / 25 MHz)
+transaction.c:175 info : Transaction state IDLE -&gt; CALL ASSIGN MOBILE ORIGINAT ING
+transaction.c:98 info : Created transaction '617XXXXXXX' for subscriber 'CALLASSIGN MOBILE ORIGINATING'
+amps.c:1003 info : Assigning channel to call from mobile station
+transaction.c:175 info : Transaction state CALL ASSIGN MOBILE ORIGINATING -&gt;
+CALL ASSIGN MOBILE ORIGINATING SEND
+frame.c:2691 info : Transmit: Word 1 - Abbreviated Address Word
+frame.c:2691 info : Transmit: Word 2 - Extended Address Word (SCC != 11)
+frame.c:2691 info : Transmit: Word 1 - Abbreviated Address Word
+frame.c:2691 info : Transmit: Word 2 - Extended Address Word (SCC != 11)
+frame.c:2691 info : Transmit: Word 1 - Abbreviated Address Word
+frame.c:2691 info : Transmit: Word 2 - Extended Address Word (SCC != 11)
+transaction.c:175 info : Transaction state CALL ASSIGN MOBILE ORIGINATING SEND -&gt; CALL
+amps.c:951 info : Staying on combined control + voice channel 334
+amps.c:959 info : Setup call to network.
+call.c:590 info : Incomming call from '617XXXXXXX' to '5551212'
+dsp.c:678 notice : SAT level 72.31% quality 98%p)
+dsp.c:678 notice : SAT level 78.63% quality 100%)
+dsp.c:678 notice : SAT level 78.76% quality 100%)
+amps.c:585 info : Detected SAT signal with quality=100.
+dsp.c:678 notice : SAT level 78.66% quality 100%)
+
+</pre>
+
+<pre>
+
+amps.c:525 info : Detected Signalling Tone with quality=100.
+transaction.c:117 info : Destroying transaction for subscriber '617XXXXXXX'
+transaction.c:175 info : Transaction state CALL -&gt; IDLE
+call.c:711 info : Call has been released with cause=16
+amps.c:481 info : Entering IDLE state, sending Overhead/Filler frames on combined control &amp; paging
+&amp; voice channel.
+
+</pre>
+
+<pre>
+
+call.c:457 info : Outgoing call to 617XXXXXXX
+amps.c:753 info : Call to mobile station, paging station id '617XXXXXXX'
+transaction.c:175 info : Transaction state IDLE -&gt; PAGE
+transaction.c:98 info : Created transaction '617XXXXXXX' for subscriber 'PAGE'
+amps.c:1025 info : Paging the phone
+transaction.c:175 info : Transaction state PAGE -&gt; PAGE SEND
+frame.c:2691 info : Transmit: Word 1 - Abbreviated Address Word
+frame.c:2691 info : Transmit: Word 2 - Extended Address Word (SCC == 11)
+frame.c:2691 info : Transmit: Word 1 - Abbreviated Address Word
+frame.c:2691 info : Transmit: Word 2 - Extended Address Word (SCC == 11)
+frame.c:2691 info : Transmit: Word 1 - Abbreviated Address Word
+frame.c:2691 info : Transmit: Word 2 - Extended Address Word (SCC == 11)
+transaction.c:175 info : Transaction state PAGE SEND -&gt; PAGE REPLY
+frame.c:3658 info : RX Level: 60% Quality: 90% Polarity: POSITIVE
+frame.c:3630 info : RX RECC: DCC=0
+frame.c:2990 info : Received: Word A - Abbreviated Address Word
+frame.c:2990 info : Received: Word B - Extended Address Word
+frame.c:2990 info : Received: Word C - Serial Number Word
+amps.c:655 info : Paging reply 617XXXXXXX (ESN = 825b5f79, Class 6 / Discontinuous / 25 MHz)
+transaction.c:175 info : Transaction state PAGE REPLY -&gt; CALL ASSIGN MOBILE TERMINATING
+amps.c:1012 info : Assigning channel to call to mobile station
+transaction.c:175 info : Transaction state CALL ASSIGN MOBILE TERMINATING -&gt;
+CALL ASSIGN MOBILE TERMINATING SEND
+frame.c:2691 info : Transmit: Word 1 - Abbreviated Address Word
+frame.c:2691 info : Transmit: Word 2 - Extended Address Word (SCC != 11)
+frame.c:2691 info : Transmit: Word 1 - Abbreviated Address Word
+frame.c:2691 info : Transmit: Word 2 - Extended Address Word (SCC != 11)
+frame.c:2691 info : Transmit: Word 1 - Abbreviated Address Word
+frame.c:2691 info : Transmit: Word 2 - Extended Address Word (SCC != 11)
+transaction.c:175 info : Transaction state CALL ASSIGN MOBILE TERMINATING SEND -&gt;
+CALL ALERT MOBILE TERMINATING
+amps.c:951 info : Staying on combined control + voice channel 334
+frame.c:2691 info : Transmit: Mobile Station Control Message Word 1 (SCC == 11)
+dsp.c:678 notice : SAT level 76.43% quality 98%
+frame.c:2691 info : Transmit: Mobile Station Control Message Word 1 (SCC == 11)
+dsp.c:678 notice : SAT level 77.44% quality 99%
+frame.c:2691 info : Transmit: Mobile Station Control Message Word 1 (SCC == 11)
+dsp.c:678 notice : SAT level 78.58% quality 99%
+amps.c:585 info : Detected SAT signal with quality=99.
+frame.c:2691 info : Transmit: Mobile Station Control Message Word 1 (SCC == 11)
+dsp.c:678 notice : SAT level 79.75% quality 100%
+amps.c:525 info : Detected Signalling Tone with quality=100.
+call.c:646 info : Call is alerting
+transaction.c:175 info : Transaction state CALL ALERT MOBILE TERMINATING -&gt;
+CALL ALERT MOBILE TERMINATING SEND
+dsp.c:678 notice : SAT level 67.88% quality 98%
+dsp.c:678 notice : SAT level 80.28% quality 99%
+dsp.c:678 notice : SAT level 80.39% quality 99%
+dsp.c:678 notice : SAT level 80.08% quality 100%
+
+</pre>
+
+<pre>
+
+mps.c:527 info : Lost Signalling Tone signal
+call.c:689 info : Call has been answered by '617XXXXXXX'
+transaction.c:175 info : Transaction state CALL ALERT MOBILE TERMINATING SEND -&gt; CALL
+
+</pre>
+
+<pre>
+
+call.c:479 info : Call hangup
+amps.c:836 info : Call has been released by network, releasing call.
+amps.c:866 info : Call control releases on voice channel, releasing towards mobile station.
+transaction.c:175 info : Transaction state CALL -&gt; CALL RELEASE
+amps.c:1048 info : Releasing call to mobile station
+transaction.c:175 info : Transaction state CALL RELEASE -&gt; CALL RELEASE SEND
+frame.c:2691 info : Transmit: Mobile Station Control Message Word 1 (SCC == 11)
+dsp.c:678 notice : SAT level 76.60% quality 100%
+transaction.c:117 info : Destroying transaction for subscriber '617XXXXXXX'
+transaction.c:175 info : Transaction state CALL RELEASE SEND -&gt; IDLE
+amps.c:481 info : Entering IDLE state, sending Overhead/Filler frames on combined control &amp;
+paging &amp; voice channel.
+
+</pre>
+
+
+[<a href="index.html">Back to main page</a>]
+</td></tr></table></center>
+</body>
+</html>
diff --git a/docs/c-netz-c130.jpg b/docs/c-netz-c130.jpg
new file mode 100644
index 0000000..63a4fd5
--- /dev/null
+++ b/docs/c-netz-c130.jpg
Binary files differ
diff --git a/docs/c-netz.html b/docs/c-netz.html
index 78a8475..6649825 100644
--- a/docs/c-netz.html
+++ b/docs/c-netz.html
@@ -22,12 +22,43 @@ History
</p>
<p>
-*TBD*
+C-Netz was the third mobile telephone network in Germany.
+It existed between 1984 (officially Mai 1985) and December 2000.
+It was the first cellular system, so frequencies could be used more efficiently.
+It offered handover capability, so moving phones can change cells during a call.
+New was the SIM card, which was similar to GSM.
+This card allowed to use phones by different subscribers with different subscriber numbers.
+Authentication was used to prevent fraud, but is was used only with SIM card phones.
+Extra services (e.g. conditional call forwarding, answering machine) were installed in the mobile network.
+A scrambler inside the phone and base station prevented eavedropping with radio scanners.
+Phones became smaller and portable, even handheld phones were available.
+It used full duplex radio link.
+All phones were available under a dedicated prefix, so the caller must to know the location of the phone anymore.
+
+</p>
+
+<center><img src="c-netz-c130.jpg"/></center>
+
+<p>
+<ul>
+ <li>Frequency range: 461.300 - 465.740 MHz (downlink); 451.300 - 465.740 MHz (uplink)
+ <li>222 voice channels
+ <li>237 voice channels since Mai 1988
+ <li>287 voice channels since September 1989
+ <li>1 organisation channel (call setup and paging)
+ <li>Duplex distance: 10 MHz
+ <li>Channel spacing: 10 KHz and optionally 12.5 KHz
+ <li>Voice modulation: FM
+ <li>Signalling modulation: carrier FSK
+ <li>Frequency deviation: 2.4 KHz (FSK)
+ <li>Mobile station transmit power: 50 mW up to 15 Watts
+ <li>Base station transmit power: 25 Watts
+</ul>
</p>
+
<p class="toppic">
<a name="howitworks"></a>
-How it works
</p>
<p>
@@ -56,7 +87,7 @@ We need to calibrate the speed of our transmit signal (and receive signal as wel
</p>
<p>
-First of all, we need a reference clock.
+First of all we need a reference clock.
Since most systems have standard crystals, we cannot use our system clock as reference without any help.
I decided to use the NTP daemon.
After running the system for several days, the clock speed should be accurate enough for our needs.
@@ -75,7 +106,7 @@ server ntp3.ptb.de
<p>
This clock provides time base for European radio clocks and most German clocks.
-It is perfect for this project, so please use this clock.
+It accurate enough for this project, so please use this clock.
</p>
<pre>
@@ -145,14 +176,25 @@ Let it run again for one hour and you will see that clock deviation is below 1 P
<font color="red">Importaint: We need to connect to PLL and discriminator!</font>
</p>
+<p>
+C-Netz does not use a modulated tone to carry bits of information, instead it modulates the carrier directly.
+This image shows the demodulated signal from a receiver:
+</p>
+
<center><img src="c-netz-burst_full.png"/></center>
<p>
-*TBD*
+Generally a receiver will do de-emphasis and filtering after demodulating the signal.
+We don't want that.
+It may work, but be sure to get a receiver with disciminator output.
+Many receivers can be modified, so search the Web for more infos.
</p>
<p>
-*TBD*
+On the transmitter we don't want to have filtering and pre-emphasis.
+It may work, but be sure to get a transmitter that allows to disable emphasis.
+I took the schematics of my transmitter and connected the sound card
+directly to the PLL.
</p>
<p>
@@ -165,22 +207,58 @@ Let it run again for one hour and you will see that clock deviation is below 1 P
C-Netz uses FSK (Frequency Shift Keying) by directly modulating the carrier, rather than modulating a tone, which is then transmitted via FM.
The advantage is much higher data rate.
The base station's carrier frequency is raised by 2.5 KHz to transmit a logical "1" and lowered by 2.5 KHz to transmit a logial "0".
-(The mobile station transmits reversed polarity.)
+(The mobile station transmits reversed polarity.)
The mobile station will only detect the correct polarity.
The three sync words of "11100010010", is shown in the picture above.
In the picture above, the polarity is wrong.
(The logical "1" points down and the logical "0" points up.)
-You must check, with what polarity your transmitter is doing a positive frequency deviation.
-Also you must check your sound card's polarity on positive value beeing sent.
-To change polarty, use command line option '-F yes' or '--flip-polarity yes'.
+To change polarty, use command line option '-F yes|no|auto' or '--flip-polarity yes|no|auto'.
(Note: don't confuse with '-P'!)
</p>
<p>
-This software does not care about what polarity it receives from the mobile station.
+The 'auto' option (default) will generate a signal of two base stations.
+Since we have time division multiplex on the main control channel, we can transmit a second base station easily.
+The second base station uses reversed polarity, so there is one base station with correct and one with wrong polarity.
+The two base stations have different time slots and different IDs.
+If a first registration message is received from the phone, we check which base station this response belongs to.
+Then we found the correct polarity and turn off the base station with the wrong polarity.
+</p>
+
+<p>
+The decoder itself does not care about what polarity it receives from the mobile station.
It just checks for sync words with both polarities and chooses right polarity automatically.
</p>
+<p>
+I have a transmitter and a receiver without emphasis, my soundcard has a clock error of about 19.2 PPM.
+To run the base station I the following command line options:
+</p>
+
+<pre>
+
+# cnetz -k 131 -E -e -S 19.25,19.25
+...
+cnetz.c:142 notice : You selected channel 131 ('Orga-Kanal') for combined callin
+g + traffic channel. Some phones will reject this.
+dsp.c:96 info : Using clock speed of 19.2 ppm (RX) and 19.2 ppm (TX) to correc
+t sound card's clock.
+cnetz.c:274 info : Entering IDLE state on channel 131.
+Base station on channel 131 ready, please tune transmitter to 465.090 MHz and re
+ceiver to 455.090 MHz.
+
+</pre>
+
+<p>
+The sofware complains about using control channel 131 for voice traffic too.
+This is the easiest way to use a single transmitter and receiver without switching.
+But this is not compliant, so especially newer phone will reject this, like the Nokia C130.
+Old phones like BSA, Storno or Phillips phones don't care.
+When we make a call and another phone is regisered, the phone will loose coverage when we switch from control channel to traffic channel.
+After the call, the other phone re-registers again.
+</p>
+
+
[<a href="index.html">Back to main page</a>]
</td></tr></table></center>
</body>
diff --git a/docs/index.html b/docs/index.html
index 89515eb..c686d5c 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -29,6 +29,7 @@ A base station implementation for classic mobile networks. All these networks us
<li><a href="b-netz.html">B-Netz</a></li>
<li><a href="c-netz.html">C-Netz</a></li>
<li><a href="nmt.html">NMT</a></li>
+ <li><a href="amps.html">AMPS</a></li>
</ul>
</center>