Project

General

Profile

Bs11 config » History » Version 7

dexter, 02/19/2016 10:48 PM

1 1 laforge
bs11_config is a small commandline program that can be used to configure the [wiki:BS-11] BTS using its RS232 link.
2
3
It can perform a subset of the functions that are typically performed using the Siemens LMT (Local Maintenance Terminal) software, such as
4 5 laforge
 * querying some essential configuration values
5
 * creating and deleting TRX1 objects
6 1 laforge
 * download of SAFETY LOAD software
7
 * download of BTS software
8
 * creating an initial configuration (such as creating BBSIG,CCLK,PA,... objects)
9
 * setting the Tx output power of the RF amplifier
10
11
== Reference ==
12 5 laforge
13
=== Querying the BS-11 ===
14
15
{{{
16
$ ./bs11_config -p /dev/ttyUSB0 query
17
bs11_config (C) 2009 by Harald Welte and Dieter Spaar
18
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
19
20
LMT LOGON: ACK
21
22
PHASE: 3 Normal               MBCCU0: Load        MBCCU1: Load        Abis-link: Restoring 
23
24
BS11  ATTRIBUTES:
25
        BS-11 ESN PCB Serial Number: 001107
26
        BS-11 ESN Hardware Code Number: 135-2044/03.07
27
        BS-11 ESN Firmware Code Number: 135-2044/03.07
28
29
SITE MANAGER  ATTRIBUTES:
30
        E1 Channel: Port=0 Timeslot=1 (Full Slot)
31
        TEI: 25
32
33
BS11 Power Amplifier 0  ATTRIBUTES:
34
        TRX Power: 30mW (GSM)
35
36
BS11 Power Amplifier 1  ATTRIBUTES:
37
        TRX Power: 30mW (GSM)
38
}}}
39
40
=== Disconnect ===
41
42
This puts the BTS out of Normal mode into Maintenance mode and disconnects it from the BSC
43
44
{{{
45
$ ./bs11_config -p /dev/ttyUSB0 disconnect
46
bs11_config (C) 2009 by Harald Welte and Dieter Spaar
47
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
48
49
LMT LOGON: ACK
50
51
PHASE: 3 Normal               MBCCU0: Load        MBCCU1: Load        Abis-link: Restoring 
52
PHASE: 2 Maintenance          MBCCU0: Load        MBCCU1: Load        Abis-link: Down      
53
}}}
54
55
=== Reconnect ===
56
57
This puts the BTS out of Maintenance mode into Normal mode and reconnects it to the BSC
58
59
{{{
60
$ ./bs11_config -p /dev/ttyUSB0 reconnect
61
bs11_config (C) 2009 by Harald Welte and Dieter Spaar
62
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
63
64
LMT LOGON: ACK
65
66
PHASE: 2 Maintenance          MBCCU0: Load        MBCCU1: Load        Abis-link: Down      
67
PHASE: 3 Normal               MBCCU0: Load        MBCCU1: Load        Abis-link: Restoring 
68
}}}
69 1 laforge
70 3 laforge
=== Download SMU Safety Load ===
71 1 laforge
72 3 laforge
{{{
73
$ ./bs11_config -p /dev/ttyUSB0 -S /path/to/my/BTSBMC76.SWI
74
}}}
75
76 7 dexter
Note: When the SMU Safety download has completed and the minimal configuration has been created you should let the BS11 boot the first time. The power LED will light up red - this is normal. After the boot you will be able to query the BS11. Bring it into the maintenance (disconnect) mode and proceed with the software download.
77
78
79 4 laforge
'''NOTE: The OpenBSC/bs11-abis project is not providing any Firmware images for the BS-11, as they are copyrighted material'''
80 3 laforge
81
=== Minimal Configuration ===
82
83
The minimal configuration is automatically created if the BS-11 enters the ''MINIMAL CONFIG REQUIRED'' state after the SMU safety load is installed.
84
85
=== Download Software Load ===
86
87
{{{
88
$ ./bs11_config -p /dev/ttyUSB0 -s /path/to/my/HS011106.SWL
89
}}}
90
91
If the BS-11 is not in Maintenance State, it first needs to be detached from the BSC (using -D option)
92
{{{
93
$ ./bs11_config -p /dev/ttyUSB0 -D -s /path/to/my/HS011106.SWL
94
}}}
95
96
If you want to force a download, just add the ''-f'' parameter.
97
98 6 laforge
The described procedure lasts for about a hour and should generate the following output:
99
{{{
100
./bs11_config -s bs11-flash/HS011106.SWL software
101
bs11_config (C) 2009 by Harald Welte and Dieter Spaar
102
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
103
104
LMT LOGON: ACK
105
106
PHASE: 2 Maintenance          MBCCU0: No Load     MBCCU1: No Load     Abis-link: Down      
107
Mon May 18 20:51:34 2009 <0020> abis_nm.c:1337 Software Load (BTS 0, File "bs11-flash/HS011106.SWL")
108
Software Load Initiate ACK
109
Software Download Progress: 88%
110
Software Download Progress: 100%
111
Mon May 18 20:51:37 2009 <0020> abis_nm.c:1261 Software Load End (BTS 0)
112
Mon May 18 20:51:37 2009 <0020> abis_nm.c:1337 Software Load (BTS 0, File "bs11-flash/VS011106.VAM")
113
Mon May 18 20:51:37 2009 <0020> abis_nm.c:1323 unexpected NM MT 0x08 in state 3 -> 1
114
ERROR in main loop: Success
115
Software Load Initiate ACK
116
Software Download Progress: 100%
117
Mon May 18 20:51:38 2009 <0020> abis_nm.c:1261 Software Load End (BTS 0)
118
Mon May 18 20:51:38 2009 <0020> abis_nm.c:1337 Software Load (BTS 0, File "bs11-flash/BTSBMC48.SWI")
119
Mon May 18 20:51:38 2009 <0020> abis_nm.c:1323 unexpected NM MT 0x08 in state 3 -> 1
120
ERROR in main loop: Success
121
PHASE: 2 Maintenance          MBCCU0: No Load     MBCCU1: No Load     Abis-link: Down      
122
Software Load Initiate ACK
123
Software Download Progress: 1%
124
--- cut ---
125
Software Download Progress: 100%
126
Mon May 18 21:04:05 2009 <0020> abis_nm.c:1261 Software Load End (BTS 0)
127
Mon May 18 21:04:05 2009 <0020> abis_nm.c:1337 Software Load (BTS 0, File "bs11-flash/BTSCAC11.SWI")
128
Mon May 18 21:04:05 2009 <0020> abis_nm.c:1323 unexpected NM MT 0x08 in state 3 -> 1
129
ERROR in main loop: Success
130
Software Load Initiate ACK
131
Software Download Progress: 1%
132
--- cut ---
133
Software Download Progress: 100%
134
Mon May 18 21:10:03 2009 <0020> abis_nm.c:1261 Software Load End (BTS 0)
135
Mon May 18 21:10:03 2009 <0020> abis_nm.c:1337 Software Load (BTS 0, File "bs11-flash/BTSDRX22.SWI")
136
Mon May 18 21:10:03 2009 <0020> abis_nm.c:1323 unexpected NM MT 0x08 in state 3 -> 1
137
ERROR in main loop: Success
138
Software Load Initiate ACK
139
Software Download Progress: 1%
140
--- cut ---
141
Software Download Progress: 100%
142
Mon May 18 21:20:31 2009 <0020> abis_nm.c:1261 Software Load End (BTS 0)
143
Mon May 18 21:20:31 2009 <0020> abis_nm.c:1337 Software Load (BTS 0, File "bs11-flash/BTSBBX12.SWI")
144
Mon May 18 21:20:31 2009 <0020> abis_nm.c:1323 unexpected NM MT 0x08 in state 3 -> 1
145
ERROR in main loop: Success
146
Software Load Initiate ACK
147
Software Download Progress: 1%
148
--- cut ---
149
Software Download Progress: 100%
150
Mon May 18 21:26:23 2009 <0020> abis_nm.c:1261 Software Load End (BTS 0)
151
Mon May 18 21:26:23 2009 <0020> abis_nm.c:1337 Software Load (BTS 0, File "bs11-flash/BTSARC16.SWI")
152
Mon May 18 21:26:23 2009 <0020> abis_nm.c:1323 unexpected NM MT 0x08 in state 3 -> 1
153
ERROR in main loop: Success
154
Software Load Initiate ACK
155
Software Download Progress: 1%
156
--- cut ---
157
Software Download Progress: 100%
158
Mon May 18 21:32:53 2009 <0020> abis_nm.c:1261 Software Load End (BTS 0)
159
Mon May 18 21:32:53 2009 <0020> abis_nm.c:1337 Software Load (BTS 0, File "bs11-flash/BTSLIC10.SWI")
160
Mon May 18 21:32:53 2009 <0020> abis_nm.c:1323 unexpected NM MT 0x08 in state 3 -> 1
161
ERROR in main loop: Success
162
Software Load Initiate ACK
163
Software Download Progress: 1%
164
--- cut ---
165
oftware Download Progress: 100%
166
Mon May 18 21:35:10 2009 <0020> abis_nm.c:1261 Software Load End (BTS 0)
167
Mon May 18 21:35:10 2009 <0020> abis_nm.c:1386 Activating Software (BTS 0, File "bs11-flash/HS011106.SWL")
168
Mon May 18 21:35:10 2009 <0020> abis_nm.c:1323 unexpected NM MT 0x08 in state 3 -> 4
169
ERROR in main loop: Success
170
Mon May 18 21:35:11 2009 <0020> abis_nm.c:1292 Activate Software DONE!
171
PHASE: 1 Warm Up              MBCCU0: No Load     MBCCU1: No Load     Abis-link: Down      
172
LMT LOGON: ACK
173
174
LMT LOGON: ACK
175
176
PHASE: 1 Warm Up              MBCCU0: No Load     MBCCU1: No Load     Abis-link: Down      
177
PHASE: 1 Warm Up              MBCCU0: No Load     MBCCU1: No Load     Abis-link: Down      
178
PHASE: 1 Warm Up              Abis-link: Down      
179
--- cut ---
180
PHASE: 1 Load SMU Intended    Abis-link: Down      
181
--- cut ---
182
PHASE: 2 Load MBCCU           MBCCU0: No Load     MBCCU1: No Load     Abis-link: Down      
183
PHASE: 2 Load MBCCU           MBCCU0: Load BTSCAC MBCCU1: No Load     Abis-link: Down      
184
PHASE: 2 Load MBCCU           MBCCU0: Load BTSDRX MBCCU1: No Load     Abis-link: Down      
185
PHASE: 2 Load MBCCU           MBCCU0: Load BTSBBX MBCCU1: No Load     Abis-link: Down      
186
PHASE: 2 Load MBCCU           MBCCU0: Load BTSARC MBCCU1: No Load     Abis-link: Down      
187
PHASE: 2 Load MBCCU           MBCCU0: Load        MBCCU1: No Load     Abis-link: Down      
188
PHASE: 2 Warm Up              MBCCU0: Load        MBCCU1: No Load     Abis-link: Down      
189
PHASE: 3 Normal               MBCCU0: Load        MBCCU1: No Load     Abis-link: Restoring
190
}}}
191
192 3 laforge
'''NOTE: OpenBSC is not providing any Firmware images for the BS-11'''
193 2 laforge
194
=== Observing BS-11 boot process ===
195
196
This is the output of bs11_config while observing the boot process.  You will see every line
197
many times, as the status is refreshed every five seconds.
198
199
{{{
200
$./bs11_config -p /dev/ttyUSB0
201
bs11_config (C) 2009 by Harald Welte and Dieter Spaar
202
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
203
204
LMT LOGON: ACK
205
T-Link: Down      Abis-link: Down      MBCCU0: No Load     MBCCU1: No Load     PHASE: 1 SUBPHASE: Warm Up...
206
T-Link: Down      Abis-link: Down      MBCCU0: No Load     MBCCU1: No Load     PHASE: 1 SUBPHASE: Load SMU Intended...
207
T-Link: Down      Abis-link: Down      MBCCU0: No Load     MBCCU1: No Load     PHASE: 2 SUBPHASE: Load MBCCU...
208
T-Link: Down      Abis-link: Down      MBCCU0: No Load     MBCCU1: Load BTSCAC PHASE: 2 SUBPHASE: Load MBCCU...
209
T-Link: Down      Abis-link: Down      MBCCU0: Load BTSCAC MBCCU1: Load BTSCAC PHASE: 2 SUBPHASE: Load MBCCU...
210
T-Link: Down      Abis-link: Down      MBCCU0: Load BTSCAC MBCCU1: Load BTSDRX PHASE: 2 SUBPHASE: Load MBCCU...
211
T-Link: Down      Abis-link: Down      MBCCU0: Load BTSDRX MBCCU1: Load BTSDRX PHASE: 2 SUBPHASE: Load MBCCU...
212
T-Link: Down      Abis-link: Down      MBCCU0: Load BTSDRX MBCCU1: Load BTSBBX PHASE: 2 SUBPHASE: Load MBCCU...
213
T-Link: Down      Abis-link: Down      MBCCU0: Load BTSBBX MBCCU1: Load BTSBBX PHASE: 2 SUBPHASE: Load MBCCU...
214
T-Link: Down      Abis-link: Down      MBCCU0: Load BTSBBX MBCCU1: Load BTSARC PHASE: 2 SUBPHASE: Load MBCCU...
215
T-Link: Down      Abis-link: Down      MBCCU0: Load BTSARC MBCCU1: Load BTSARC PHASE: 2 SUBPHASE: Load MBCCU...
216
T-Link: Down      Abis-link: Down      MBCCU0: Load BTSARC MBCCU1: Load        PHASE: 2 SUBPHASE: Load MBCCU...
217
T-Link: Down      Abis-link: Down      MBCCU0: Load        MBCCU1: Load        PHASE: 2 SUBPHASE: Load MBCCU...
218
T-Link: Down      Abis-link: Restoring MBCCU0: Load        MBCCU1: Load        PHASE: 3 SUBPHASE: Normal...
219
T-Link: Down      Abis-link: Up        MBCCU0: Load        MBCCU1: Load        PHASE: 3 SUBPHASE: Normal...
220
}}}
Add picture from clipboard (Maximum size: 48.8 MB)