Project

General

Profile

Isdnsync » History » Version 27

dexter, 02/19/2016 10:47 PM

1 7 dexter
== Abstract ==
2 6 dexter
3 11 dexter
In a state of the art telephone network everything is syncronized by a central, very high accuracy clock. The BTS also uses this clock for various things like channel allocation, frame clock, bitclock ect. If the clock gets a little bit incorrect (more than 50Hz) the BTS will transmit on a wrong frequency and there will be lots of other effects that might destabilize the radio transmission.
4 1 dexter
5 11 dexter
The BS11 is shipped with a precalibrated internal oscillator. If you are lucky the calibration (that is made over 10 years ago) in your BTS is still correct. If not your setup will not work unless you recalibrate the oscillator.
6 1 dexter
7 26 dexter
This document illustrates how you can use a ceap HFC-S card with the public telephone network as frequency standard for your E1 line.
8 1 dexter
9 7 dexter
== Modifieing the HFC-S Card ==
10 6 dexter
11 1 dexter
All in all we need 2 Signals from the HFC-S Card: F0IO and C4IO. This signals are provided by the HFC-S Chip on the card and can be taken from pin 55 (F0IO) and 54 (C4IO) at the HFC-S Chip. (See also Datasheet page 8).
12 2 dexter
13 4 dexter
[[Image(hfc-s_card.jpg, 20%)]]
14 5 dexter
15
All you need to do is to solder a wire to C4IO and F0I0. The following image shows our modified card:
16 1 dexter
17
[[Image(hfc-s_card_modified.jpg, 20%)]]
18 8 dexter
19 18 dexter
Note: We used an old led-wire from an old PC-Tower case. The green wire is connected to F0IO and the black one is connected to C4IO
20 1 dexter
21 20 dexter
After you have modified the card you should verify if the card works as expected. Start isdnsync and measure the signals with an oscillosope.
22
23
{{{
24
$ ./isdnsync 1
25
DL_INFORMATION (tei 0 sapi 0)
26
-> activating layer 2
27
PH_ACTIVATE
28
*** Sync available from interface :-)
29
DL_ESTABLISH
30
}}}
31
32
[[Image(hfc-s_C4IO_bitclock.jpg, 20%)]]
33
[[Image(hfc-s_F0IO_frameclock.jpg, 20%)]]
34
35
From left to right:  F0IO (4,096Mhz bitclock), C4I0 (8kHz frameclock)
36
37
38 9 dexter
== Connecting the modified HFC-S card to your E1 Card ==
39 1 dexter
40 18 dexter
Your HFC-E1 card has two so called PCM-Connectors. (the two connectors in the upper right corner of the card) The signal inputs for C4IO and F0IO can be found on Pin 9 and Pin 10 of the HFC-E1 card.
41 1 dexter
42 21 dexter
[[Image(hfc-e1_connected_to_hfc-s.jpg, 40%)]]
43 18 dexter
44 1 dexter
The image shows how plug from the HFC-S card is connected to the HFC-E1 card.
45 21 dexter
46
Note: We used an old led-wire from an old PC-Tower case. The green wire is connected to F0IO and the black one is connected to C4IO
47 18 dexter
48
Note: You should have received a printed documentation with your HFC-E1 card. You will find a detailed pinout of the PCM connectors there.
49
50 9 dexter
== Perform the calibration procedure ==
51 12 dexter
52 19 dexter
The calibration of the internal oscillator is an ongoing process. In a commerical telephone network the BTSs are calibrated at all times. In an experimental Setup it should be ok to operate the BTS in standalone mode and syncronize it from time to time just as shown here:
53 12 dexter
54
Things to do:
55 9 dexter
56 13 dexter
 * Connect the HFC-S Card to the S0 line. 
57 22 dexter
 * Add type=0x00800 to the modprobe hfcmulti ... commandline:
58
 * start isdynsync:
59
60
{{{
61
$ ./isdnsync 1
62
DL_INFORMATION (tei 0 sapi 0)
63
-> activating layer 2
64
PH_ACTIVATE
65
*** Sync available from interface :-)
66
DL_ESTABLISH
67
}}}
68
69
 * Configure your BTS from standalone to E1 locked:
70
71
{{{
72
dexter@da-laptop-w3:~/openbsc/openbsc/src$ ./bs11_config pll-e1-locked
73
bs11_config (C) 2009 by Harald Welte and Dieter Spaar
74
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
75
76
LMT LOGON: ACK
77
78
PHASE: 2 Maintenance          MBCCU0: Load        MBCCU1: Load        Abis-link: Down      
79
SET ATTRIBUTE ObjClass=0xa5 ObjInst=(7,0,0) ACK
80
LMT LOGOFF: ACK
81
}}}
82
83
 * start bsc_hack (just as normal)
84 1 dexter
 * use bs11_config to monitor the calibration process. The internal oscillator will now take over the E1 clock. You should see that the PLL values changing from time to time. If you see the PLL values leveling off, the calibration is done.
85 22 dexter
86
{{{
87
Here comes an example: 
88
89
bs11_config (C) 2009 by Harald Welte and Dieter Spaar
90
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
91
92
LMT LOGON: ACK
93
94
PHASE: 3 Normal               MBCCU0: Load        MBCCU1: Load        Abis-link: Up        
95
96
BS11 ATTRIBUTES:
97
	BS-11 ESN PCB Serial Number: 001107
98
	BS-11 ESN Hardware Code Number: 135-2044/03.07
99
	BS-11 ESN Firmware Code Number: 135-2044/03.07
100
	PLL Set Value=1047, Work Value=653
101
102
SITE MANAGER ATTRIBUTES:
103
	E1 Channel: Port=0 Timeslot=1 (Full Slot)
104
	TEI: 25
105
106
BS11 Line Interface ATTRIBUTES:
107
	PLL Mode: E1 Locked
108
109
BS11 CCLK ATTRIBUTES:
110
	CCLK Accuracy: Medium (0)
111
112
BS11 Power Amplifier 0 ATTRIBUTES:
113
	TRX Power: 30mW (GSM)
114
115
LMT LOGOFF: ACK
116
117 25 dexter
The output was taken from a BS11 that was totally misaligned. The misalignment
118
came from exidently operating the BS11 in E1-locked mode withoud a proper
119
frequency standard (the internal oscillator of the HFC-E1 card far from being
120
exact enough!). 
121 22 dexter
122
bs11_config (C) 2009 by Harald Welte and Dieter Spaar
123
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
124
125
LMT LOGON: ACK
126
127
PHASE: 3 Normal               MBCCU0: Load        MBCCU1: Load        Abis-link: Up        
128
129
BS11 ATTRIBUTES:
130
	BS-11 ESN PCB Serial Number: 001107
131
	BS-11 ESN Hardware Code Number: 135-2044/03.07
132
	BS-11 ESN Firmware Code Number: 135-2044/03.07
133
	PLL Set Value=1047, Work Value=1046
134
135
SITE MANAGER ATTRIBUTES:
136
	E1 Channel: Port=0 Timeslot=1 (Full Slot)
137
	TEI: 25
138
139
BS11 Line Interface ATTRIBUTES:
140
	PLL Mode: E1 Locked
141
142
BS11 CCLK ATTRIBUTES:
143
	CCLK Accuracy: Medium (0)
144
145
BS11 Power Amplifier 0 ATTRIBUTES:
146
	TRX Power: 30mW (GSM)
147
148
LMT LOGOFF: ACK
149
150 23 dexter
And that output was taken from the BS11 after operating it for about 1,5h with our
151
hfc-s/PSTN based frequency standard. As you can see the the Workvalue has changed
152
dramaticly.
153 1 dexter
154 23 dexter
With our testequipment we could verify that the frequency accuracy of the BS11 now
155
in the same range as the commercial BTS in the neigbourhood. 
156 1 dexter
}}}
157 22 dexter
158 23 dexter
 * Configure your BTS from E1 locked to standalone to finish the procedure.
159 1 dexter
160 23 dexter
{{{
161
dexter@da-laptop-w3:~/openbsc/openbsc/src$ ./bs11_config pll-e1-locked
162
bs11_config (C) 2009 by Harald Welte and Dieter Spaar
163
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
164 1 dexter
165 23 dexter
LMT LOGON: ACK
166 1 dexter
167 23 dexter
PHASE: 2 Maintenance          MBCCU0: Load        MBCCU1: Load        Abis-link: Down      
168
SET ATTRIBUTE ObjClass=0xa5 ObjInst=(7,0,0) ACK
169
LMT LOGOFF: ACK
170
}}}
171 1 dexter
172 23 dexter
173 14 dexter
Note: If you do this the first time it is higly recomended to check if valid signals are present at C4IO and F0IO.
174
175 22 dexter
Note: The process takes some time. We recommend to warm up the BTS before you start for at least one hour. It is important that the calibration takes place with work temperature.
176 14 dexter
177
178 15 dexter
== Sources: ==
179 14 dexter
 * http://lists.gnumonks.org/pipermail/openbsc/2009-June/000387.html
180
 * http://lists.gnumonks.org/pipermail/openbsc/2009-July/000627.html
Add picture from clipboard (Maximum size: 48.8 MB)