FreeCalypso > hg > fc-tourmaline
comparison src/cs/drivers/drv_app/ffs/board/pcmdata.c @ 0:4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 06:23:26 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4e78acac3d88 |
---|---|
1 /* | |
2 +-------------------------------------------------------------------+ | |
3 | PROJECT: GSM-PS $Workfile:: pcmdata.c $| | |
4 | $Author: mmj $Revision: 1.1.1.2 $| | |
5 | CREATED: 26.11.1998 $Modtime:: 23.03.00 16:23 $| | |
6 +-------------------------------------------------------------------+ | |
7 | |
8 MODULE : PCM | |
9 | |
10 PURPOSE : This Modul defines the data & values for the permanent | |
11 memory configuration driver. | |
12 */ | |
13 | |
14 | |
15 /*==== INCLUDES ===================================================*/ | |
16 | |
17 #define __STANDARD_H__ /* Avoid to define UBYTE, UINT16 and UINT32. */ | |
18 | |
19 #define NEQ != | |
20 | |
21 #ifndef TARGET | |
22 #include "ffs.cfg" | |
23 #endif | |
24 | |
25 #if (TARGET == 1) | |
26 #include "rv/general.h" | |
27 #include "swconfig.cfg" | |
28 #include "sys.cfg" | |
29 #include "fc-target.h" | |
30 #endif | |
31 | |
32 #include "ffs/pcm.h" | |
33 | |
34 | |
35 /*==== VARIABLES ==================================================*/ | |
36 /* | |
37 * RAM for the copy of PCM data | |
38 */ | |
39 | |
40 UBYTE pcm_mem [PCM_SIZE]; | |
41 | |
42 UBYTE std; | |
43 // set treshold for initial power measurements (= -106 dBm) | |
44 USHORT min_rxlev = 20; | |
45 | |
46 | |
47 #define START_MSCAP 0 | |
48 #define START_IMEI START_MSCAP + LEN_MSCAP | |
49 #define START_IMSI START_IMEI + LEN_IMEI | |
50 #define START_SMS START_IMSI + LEN_IMSI | |
51 #define START_CLASS2 START_SMS + LEN_SMS | |
52 #define START_CLASS3 START_CLASS2 + LEN_CLASS2 | |
53 #define START_MSSUP START_CLASS3 + LEN_CLASS3 | |
54 #define START_CLNG START_MSSUP + LEN_MSSUP | |
55 #define START_MSSET START_CLNG + LEN_CLNG | |
56 #define START_HZCACHE START_MSSET + LEN_MSSET | |
57 #define START_LDN START_HZCACHE + LEN_HZCACHE | |
58 #define START_LRN START_LDN + LEN_LDN | |
59 #define START_LMN START_LRN + LEN_LRN | |
60 #define START_UPN START_LMN + LEN_LMN | |
61 #define START_MBN START_UPN + LEN_UPN | |
62 #define START_VMN START_MBN + LEN_MBN | |
63 #define START_CTIM START_VMN + LEN_VMN | |
64 #define START_CCNT START_CTIM + LEN_CTIM | |
65 #define START_ECC START_CCNT + LEN_CCNT | |
66 #define START_ORG START_ECC + LEN_ECC | |
67 #define START_CCP START_ORG + LEN_ORG | |
68 #define START_EXT1 START_CCP + LEN_CCP | |
69 #define START_SIMLCK START_EXT1 + LEN_EXT1 | |
70 #define START_MAIN START_SIMLCK + LEN_SIMLCK | |
71 #define START_SFK START_MAIN + LEN_MAIN | |
72 #define START_FAULT START_SFK + LEN_SFK | |
73 #define START_DEBUG START_FAULT + LEN_FAULT | |
74 #define START_POWER START_DEBUG + LEN_DEBUG | |
75 #define START_KEYB START_POWER + LEN_POWER | |
76 #define START_RADIO START_KEYB + LEN_KEYB | |
77 #define START_CGMI START_RADIO + LEN_RADIO | |
78 #define START_INF0 START_CGMI + LEN_CGMI | |
79 #define START_CGMM START_INF0 + LEN_INF0 | |
80 #define START_CGMR START_CGMM + LEN_CGMM | |
81 #define START_CGSN START_CGMR + LEN_CGMR | |
82 #define START_SMSPRFL START_CGSN + LEN_CGSN | |
83 #define START_PLMN START_SMSPRFL + LEN_SMSPRFL | |
84 #define START_BCCHINFO START_PLMN + LEN_PLMN | |
85 #define START_ALS START_BCCHINFO + LEN_BCCHINFO | |
86 #define START_LOCGPRS START_ALS + LEN_ALS | |
87 #define START_KCGPRS START_LOCGPRS + LEN_LOCGPRS | |
88 #define START_IMSIGPRS START_KCGPRS + LEN_KCGPRS | |
89 | |
90 | |
91 const T_PCM_DESCRIPTION pcm_table[] = | |
92 { | |
93 {"/pcm/" "MSCAP" , START_MSCAP , SIZE_EF_MSCAP + 2, NR_EF_MSCAP }, | |
94 {"/pcm/" "IMEI" , START_IMEI , SIZE_EF_IMEI + 2, NR_EF_IMEI }, | |
95 {"/pcm/" "IMSI" , START_IMSI , SIZE_EF_IMSI + 2, NR_EF_IMSI }, | |
96 {"/pcm/" "SMS " , START_SMS , SIZE_EF_SMS + 2, NR_EF_SMS }, | |
97 {"/pcm/" "CLASS2" , START_CLASS2 , SIZE_EF_CLASS2 + 2, NR_EF_CLASS2 }, | |
98 {"/pcm/" "CLASS3" , START_CLASS3 , SIZE_EF_CLASS3 + 2, NR_EF_CLASS3 }, | |
99 {"/pcm/" "MSSUP" , START_MSSUP , SIZE_EF_MSSUP + 2, NR_EF_MSSUP }, | |
100 {"/pcm/" "CLNG" , START_CLNG , SIZE_EF_CLNG + 2, NR_EF_CLNG }, | |
101 {"/pcm/" "MSSET" , START_MSSET , SIZE_EF_MSSET + 2, NR_EF_MSSET }, | |
102 {"/pcm/" "HZCACHE" , START_HZCACHE , SIZE_EF_HZCACHE + 2, NR_EF_HZCACHE }, | |
103 {"/pcm/" "LDN" , START_LDN , SIZE_EF_LDN + 2, NR_EF_LDN }, | |
104 {"/pcm/" "LRN" , START_LRN , SIZE_EF_LRN + 2, NR_EF_LRN }, | |
105 {"/pcm/" "LMN" , START_LMN , SIZE_EF_LMN + 2, NR_EF_LMN }, | |
106 {"/pcm/" "UPN" , START_UPN , SIZE_EF_UPN + 2, NR_EF_UPN }, | |
107 {"/pcm/" "MBN" , START_MBN , SIZE_EF_MBN + 2, NR_EF_MBN }, | |
108 {"/pcm/" "VMN" , START_VMN , SIZE_EF_VMN + 2, NR_EF_VMN }, | |
109 {"/pcm/" "CTIM" , START_CTIM , SIZE_EF_CTIM + 2, NR_EF_CTIM }, | |
110 {"/pcm/" "CCNT" , START_CCNT , SIZE_EF_CCNT + 2, NR_EF_CCNT }, | |
111 {"/pcm/" "ECC" , START_ECC , SIZE_EF_ECC + 2, NR_EF_ECC }, | |
112 {"/pcm/" "ORG" , START_ORG , SIZE_EF_ORG + 2, NR_EF_ORG }, | |
113 {"/pcm/" "CCP" , START_CCP , SIZE_EF_CCP + 2, NR_EF_CCP }, | |
114 {"/pcm/" "EXT1" , START_EXT1 , SIZE_EF_EXT1 + 2, NR_EF_EXT1 }, | |
115 {"/pcm/" "SIMLCK" , START_SIMLCK , SIZE_EF_SIMLCK + 2, NR_EF_SIMLCK }, | |
116 {"/pcm/" "MAIN" , START_MAIN , SIZE_EF_MAIN + 2, NR_EF_MAIN }, | |
117 {"/pcm/" "SFK" , START_SFK , SIZE_EF_SFK + 2, NR_EF_SFK }, | |
118 {"/pcm/" "FAULT" , START_FAULT , SIZE_EF_FAULT + 2, NR_EF_FAULT }, | |
119 {"/pcm/" "DEBUG" , START_DEBUG , SIZE_EF_DEBUG + 2, NR_EF_DEBUG }, | |
120 {"/pcm/" "POWER" , START_POWER , SIZE_EF_POWER + 2, NR_EF_POWER }, | |
121 {"/pcm/" "KEYB" , START_KEYB , SIZE_EF_KEYB + 2, NR_EF_KEYB }, | |
122 {"/pcm/" "RADIO" , START_RADIO , SIZE_EF_RADIO + 2, NR_EF_RADIO }, | |
123 {"/pcm/" "CGMI" , START_CGMI , SIZE_EF_CGMI + 2, NR_EF_CGMI }, | |
124 {"/pcm/" "INF0" , START_INF0 , SIZE_EF_INF0 + 2, NR_EF_INF0 }, | |
125 {"/pcm/" "CGMM" , START_CGMM , SIZE_EF_CGMM + 2, NR_EF_CGMM }, | |
126 {"/pcm/" "CGMR" , START_CGMR , SIZE_EF_CGMR + 2, NR_EF_CGMR }, | |
127 {"/pcm/" "CGSN" , START_CGSN , SIZE_EF_CGSN + 2, NR_EF_CGSN }, | |
128 {"/pcm/" "SMSPRFL" , START_SMSPRFL , SIZE_EF_SMSPRFL + 2, NR_EF_SMSPRFL }, | |
129 {"/pcm/" "PLMN" , START_PLMN , SIZE_EF_PLMN + 2, NR_EF_PLMN }, | |
130 {"/pcm/" "BCCHINF" , START_BCCHINFO, SIZE_EF_BCCHINFO + 2, NR_EF_BCCHINFO }, | |
131 {"/pcm/" "ALS" , START_ALS , SIZE_EF_ALS + 2, NR_EF_ALS }, | |
132 {"/pcm/" "LOCGPRS" , START_LOCGPRS , SIZE_EF_LOCGPRS + 2, NR_EF_LOCGPRS }, | |
133 {"/pcm/" "KCGPRS" , START_KCGPRS , SIZE_EF_KCGPRS + 2, NR_EF_KCGPRS }, | |
134 {"/pcm/" "IMSIGPRS", START_IMSIGPRS, SIZE_EF_IMSIGPRS + 2, NR_EF_IMSIGPRS }, | |
135 {0 , 0 , 0 , 0 } | |
136 }; | |
137 | |
138 | |
139 const UBYTE pcm_default_values[] = | |
140 { | |
141 /******************************************************************** | |
142 * Field MOBILE CAPABILITIES - MSCAP | |
143 ********************************************************************/ | |
144 #if ((DSP == 34) || (DSP == 35) || (DSP == 36)) // ROM Codes including AMR feature. | |
145 #if (STD == 1) // GSM 900 | |
146 #if defined (FAX_AND_DATA) | |
147 0xB1, 0xC7, 0x00, | |
148 #else | |
149 0x31, 0x00, 0x00, | |
150 #endif | |
151 #elif ((STD == 3) || (STD == 4)) // DCS 1800 or PCS 1900 | |
152 #if defined (FAX_AND_DATA) | |
153 0xB7, 0xC7, 0x00, | |
154 #else | |
155 #if defined (TM_SPECIAL) | |
156 0x31, 0x00, 0x00, | |
157 #else | |
158 0x37, 0x00, 0x00, | |
159 #endif | |
160 #endif | |
161 #elif (STD == 5) // Dualband GSM 900 / DCS 1800 | |
162 #if defined (FAX_AND_DATA) | |
163 0xB7, 0xC7, 0x00, | |
164 #else | |
165 0x37, 0x00, 0x00, | |
166 #endif | |
167 #elif (STD == 6) // Dualband GSM 900 / E-GSM / DCS 1800 | |
168 #if defined (FAX_AND_DATA) | |
169 0xB7, 0xC7, 0x00, | |
170 #else | |
171 0x37, 0x00, 0x00, | |
172 #endif | |
173 #endif // STD = 1, 3, 4, 5 or 6 | |
174 #else // DSP = 16, 17, 30, 31, 32 or 33 | |
175 #if (STD == 1) // GSM 900 | |
176 #if defined (FAX_AND_DATA) | |
177 #if (OP_WCP == 1) | |
178 0x85, 0xC7, 0x00, | |
179 #else | |
180 0x81, 0xC7, 0x00, | |
181 #endif | |
182 #else | |
183 0x01, 0x00, 0x00, | |
184 #endif | |
185 #elif ((STD == 3) || (STD == 4)) // DCS 1800 or PCS 1900 | |
186 #if defined (FAX_AND_DATA) | |
187 #if (OP_WCP == 1) | |
188 0x85, 0xC7, 0x00, | |
189 #else | |
190 0x87, 0xC7, 0x00, | |
191 #endif | |
192 #else | |
193 #if defined (TM_SPECIAL) | |
194 0x01, 0x00, 0x00, | |
195 #else | |
196 0x07, 0x00, 0x00, | |
197 #endif | |
198 #endif | |
199 #elif (STD == 5) // Dualband GSM 900 / DCS 1800 | |
200 #if defined (FAX_AND_DATA) | |
201 #if (OP_WCP == 1) | |
202 0x85, 0xC7, 0x00, | |
203 #else | |
204 0x87, 0xC7, 0x00, | |
205 #endif | |
206 #else | |
207 0x07, 0x00, 0x00, | |
208 #endif | |
209 #elif (STD == 6) // Dualband GSM 900 / E-GSM / DCS 1800 | |
210 #if defined (FAX_AND_DATA) | |
211 #if (OP_WCP == 1) | |
212 0x85, 0xC7, 0x00, | |
213 #else | |
214 0x87, 0xC7, 0x00, | |
215 #endif | |
216 #else | |
217 0x07, 0x00, 0x00, | |
218 #endif | |
219 #endif // STD = 1, 3, 4, 5 or 6 | |
220 #endif // DSP | |
221 0x00, 0x00, 0x00, | |
222 | |
223 /******************************************************************** | |
224 * Field INTERNATIONAL MOBILE EQUIPMENT ID - IMEI | |
225 ********************************************************************/ | |
226 0x44, 0x06, 0x91, 0x91, 0x57, 0x70, 0x95, 0x00, | |
227 | |
228 /******************************************************************** | |
229 * Field INTERNATIONAL MOBILE SUBSCRIBER ID - IMSI | |
230 ********************************************************************/ | |
231 0x0F, | |
232 0x44, 0x06, 0x91, 0x91, 0x57, 0x70, 0x95, 0xF0, | |
233 | |
234 /******************************************************************** | |
235 * Field SHORT MESSAGE SERVICE - SMS | |
236 ********************************************************************/ | |
237 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, | |
238 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, | |
239 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
240 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
241 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
242 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
243 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
244 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
245 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
246 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
247 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
248 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
249 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
250 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
251 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
252 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
253 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
254 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
255 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
256 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
257 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
258 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |
259 | |
260 /******************************************************************** | |
261 * Field MOBILE STATION CLASSMARK 2 & 3 - CLASS2 & CLASS3 | |
262 ********************************************************************/ | |
263 #if (STD == 1) // GSM 900 | |
264 0x33, 0x18, 0x01, | |
265 0x00, 0x00, 0x10, | |
266 #elif ((STD == 3) || (STD == 4)) // DCS 1800 or PCS 1900 | |
267 0x30, 0x18, 0x01, | |
268 0x00, 0x00, 0x10, | |
269 #elif (STD == 5) // Dualband GSM 900 / DCS 1800 | |
270 0x30, 0x18, 0x81, | |
271 0x50, 0x14, 0x10, | |
272 #elif (STD == 6) // Dualband GSM 900 / E-GSM / DCS 1800 | |
273 0x30, 0x19, 0x81, | |
274 0x60, 0x14, 0x10, | |
275 #endif // STD =1, 3, 4, 5 or 6 | |
276 | |
277 /******************************************************************** | |
278 * Field MOBILE SETUP - MSSUP | |
279 ********************************************************************/ | |
280 0xB7, 0x46, 0x47, 0x1F, 0x00, | |
281 | |
282 /******************************************************************** | |
283 * Field CURRENT LANGUAGE - CLNG | |
284 ********************************************************************/ | |
285 'a', 'u', | |
286 | |
287 /******************************************************************** | |
288 * Field MOBILE STATION SETTTINGS - MSSET | |
289 ********************************************************************/ | |
290 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, | |
291 0x38, 0x39, | |
292 | |
293 /******************************************************************** | |
294 * Field HOMEZONE CACHE record 1 - HZCACHE | |
295 ********************************************************************/ | |
296 0xFF, 0xFF, 0xFF, | |
297 | |
298 /******************************************************************** | |
299 * Field HOMEZONE CACHE record 2 - HZCACHE | |
300 ********************************************************************/ | |
301 0xFF, 0xFF, 0xFF, | |
302 | |
303 /******************************************************************** | |
304 * Field HOMEZONE CACHE record 3 - HZCACHE | |
305 ********************************************************************/ | |
306 0xFF, 0xFF, 0xFF, | |
307 | |
308 /******************************************************************** | |
309 * Field HOMEZONE CACHE record 4 - HZCACHE | |
310 ********************************************************************/ | |
311 0xFF, 0xFF, 0xFF, | |
312 | |
313 /******************************************************************** | |
314 * Field HOMEZONE CACHE record 5 - HZCACHE | |
315 ********************************************************************/ | |
316 0xFF, 0xFF, 0xFF, | |
317 | |
318 /******************************************************************** | |
319 * Field LAST MOC NUMBERS - LDN | |
320 ********************************************************************/ | |
321 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, | |
322 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, | |
323 0x4F, 0x4F, 0x4F, 0x4F, 0x00, 0x00, | |
324 | |
325 /******************************************************************** | |
326 * Field LAST MTC NUMBERS - LRN | |
327 ********************************************************************/ | |
328 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, | |
329 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, | |
330 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x00, 0x00, | |
331 | |
332 /******************************************************************** | |
333 * Field LAST MTC MISSED NUMBERS - LMN | |
334 ********************************************************************/ | |
335 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, | |
336 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, | |
337 0x4F, 0x4F, 0x4F, 0x4F, 0x00, | |
338 | |
339 /******************************************************************** | |
340 * Field USER PERSONAL NUMBERS - UPN | |
341 ********************************************************************/ | |
342 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, | |
343 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, | |
344 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, | |
345 | |
346 /******************************************************************** | |
347 * Field MAILBOX NUMBERS - MBN | |
348 ********************************************************************/ | |
349 // Record 1 | |
350 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
351 0xFF, 0xFF, | |
352 0x00, 0xFF, | |
353 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
354 0xFF, 0xFF, | |
355 | |
356 // Record 2 | |
357 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
358 0xFF, 0xFF, | |
359 0x00, 0xFF, | |
360 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
361 0xFF, 0xFF, | |
362 | |
363 // Record 3 | |
364 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
365 0xFF, 0xFF, | |
366 0x00, 0xFF, | |
367 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
368 0xFF, 0xFF, | |
369 | |
370 // Record 4 | |
371 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
372 0xFF, 0xFF, | |
373 0x00, 0xFF, | |
374 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
375 0xFF, 0xFF, | |
376 | |
377 /******************************************************************** | |
378 * Field VOICE MAIL NUMBER - VMN | |
379 ********************************************************************/ | |
380 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
381 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
382 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
383 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
384 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
385 0xFF, 0x81, | |
386 | |
387 /******************************************************************** | |
388 * Field CALL TIMER - CTIM | |
389 ********************************************************************/ | |
390 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, | |
391 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, | |
392 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, | |
393 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, | |
394 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, | |
395 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, | |
396 | |
397 /******************************************************************** | |
398 * Field CALL COUNTER - CCNT | |
399 ********************************************************************/ | |
400 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, | |
401 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, | |
402 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, | |
403 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, | |
404 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, | |
405 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, | |
406 0x8F, 0x8F, 0x8F, 0x8F, | |
407 | |
408 /******************************************************************** | |
409 * Field EMERGENCY CALL CODES - ECC | |
410 ********************************************************************/ | |
411 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
412 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
413 | |
414 /******************************************************************** | |
415 * Field ORGANIZER AND ALARM - ORG | |
416 ********************************************************************/ | |
417 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, | |
418 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, | |
419 0xAF, 0xAF, 0xAF, 0xAF, 0xAF, 0x00, 0x00, | |
420 | |
421 /******************************************************************** | |
422 * Field CAPABILITY AND CONFIGURATION PARAMETERS - CCP | |
423 ********************************************************************/ | |
424 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, | |
425 | |
426 /******************************************************************** | |
427 * Field EXTENSION 1 - EXT1 | |
428 ********************************************************************/ | |
429 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, | |
430 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, | |
431 | |
432 /******************************************************************** | |
433 * Field SIM LOCK - SIMLCK | |
434 ********************************************************************/ | |
435 0x00, 0x00, 0xD2, 0xD3, | |
436 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, | |
437 0x21, 0x43, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
438 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
439 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
440 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
441 0x0F, | |
442 0x22, 0x24, 0x24, 0x24, 0x44, 0x15, 0x12, 0x45, | |
443 0x22, 0x22, 0x22, 0x22, 0x44, 0x15, 0x66, | |
444 0xFF, 0xFF, | |
445 | |
446 /******************************************************************** | |
447 * Field MAINTENANCE INFORMATION - MAIN | |
448 ********************************************************************/ | |
449 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, | |
450 | |
451 /******************************************************************** | |
452 * Field SPECIAL FUNCTION KEY - SFK | |
453 ********************************************************************/ | |
454 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, | |
455 | |
456 /******************************************************************** | |
457 * Field FAULT CONDITIONS - FAULT | |
458 ********************************************************************/ | |
459 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, | |
460 | |
461 /******************************************************************** | |
462 * Field DEBUG INFORMATION - DEBUG | |
463 ********************************************************************/ | |
464 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, | |
465 | |
466 /******************************************************************** | |
467 * Field POWER MANAGEMENT - POWER | |
468 ********************************************************************/ | |
469 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
470 | |
471 /******************************************************************** | |
472 * Field KEYBOARD MAPPING - KEYB | |
473 ********************************************************************/ | |
474 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
475 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
476 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
477 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
478 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
479 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
480 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
481 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
482 | |
483 /******************************************************************** | |
484 * Field RADIO PARAMETERS - RADIO | |
485 ********************************************************************/ | |
486 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
487 | |
488 /******************************************************************** | |
489 * Field MANUFACTURER - CGMI | |
490 ********************************************************************/ | |
491 #if 1 | |
492 'F', 'r', 'e', 'e', 'C', 'a', 'l', 'y', | |
493 'p', 's', 'o', 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
494 0xFF, 0xFF, 0xFF, 0xFF, | |
495 #else | |
496 '<', 'm', 'a', 'n', 'u', 'f', 'a', 'c', | |
497 't', 'u', 'r', 'e', 'r', '>', 0xFF, 0xFF, | |
498 0xFF, 0xFF, 0xFF, 0xFF, | |
499 #endif | |
500 | |
501 /******************************************************************** | |
502 * Field IDENTIFICATION INFORMATION - INF0 | |
503 ********************************************************************/ | |
504 // Record 1 | |
505 '<', 'm', 'a', 'n', 'u', 'f', 'a', 'c', | |
506 't', 'u', 'r', 'e', 'r', '1', '>', 0xFF, | |
507 0xFF, 0xFF, 0xFF, 0xFF, | |
508 | |
509 // Record 2 | |
510 '<', 'm', 'a', 'n', 'u', 'f', 'a', 'c', | |
511 't', 'u', 'r', 'e', 'r', '2', '>', 0xFF, | |
512 0xFF, 0xFF, 0xFF, 0xFF, | |
513 | |
514 /******************************************************************** | |
515 * Field MODEL - CGMM | |
516 ********************************************************************/ | |
517 #ifdef CONFIG_TARGET_GTM900 | |
518 'G', 'T', 'M', '9', '0', '0', '-', 'F', | |
519 'C', 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
520 0xFF, 0xFF, 0xFF, 0xFF, | |
521 #elif defined(CONFIG_TARGET_TANGO) | |
522 'T', 'a', 'n', 'g', 'o', 0xFF, 0xFF, 0xFF, | |
523 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
524 0xFF, 0xFF, 0xFF, 0xFF, | |
525 #else | |
526 '<', 'm', 'o', 'd', 'e', 'l', '>', 0xFF, | |
527 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
528 0xFF, 0xFF, 0xFF, 0xFF, | |
529 #endif | |
530 | |
531 /******************************************************************** | |
532 * Field REVISION - CGMR | |
533 ********************************************************************/ | |
534 '<', 'r', 'e', 'v', 'i', 's', 'i', 'o', | |
535 'n', '>', 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
536 0xFF, 0xFF, 0xFF, 0xFF, | |
537 | |
538 /******************************************************************** | |
539 * Field PRODUCT SERIAL NUMBER - CGSN | |
540 ********************************************************************/ | |
541 '<', 's', 'e', 'r', 'i', 'a', 'l', ' ', | |
542 'n', 'u', 'm', 'b', 'e', 'r', '>', 0xFF, | |
543 0xFF, 0xFF, 0xFF, 0xFF, | |
544 | |
545 /******************************************************************** | |
546 * Field SMS PROFILE - SMSPRFL | |
547 ********************************************************************/ | |
548 // Record 1 | |
549 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
550 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
551 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
552 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
553 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
554 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
555 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
556 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
557 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
558 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
559 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
560 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
561 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
562 | |
563 // Record 2 | |
564 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
565 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
566 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
567 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
568 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
569 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
570 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
571 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
572 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
573 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
574 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
575 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
576 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
577 | |
578 /******************************************************************** | |
579 * Field PLMN IDENTIFIER - PLMN | |
580 ********************************************************************/ | |
581 // Record 1 | |
582 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, | |
583 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
584 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
585 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
586 0x00, 0x00, | |
587 | |
588 // Record 2 | |
589 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, | |
590 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
591 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
592 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
593 0x00, 0x00, | |
594 | |
595 /******************************************************************** | |
596 * Field BCCH INFORMATION - BCCHINF | |
597 ********************************************************************/ | |
598 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
599 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
600 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
601 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
602 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
603 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
604 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
605 | |
606 /******************************************************************** | |
607 * Field ALTERNATIVE LINE SERVICE - ALS | |
608 ********************************************************************/ | |
609 0x00, 0x00, | |
610 | |
611 /******************************************************************** | |
612 * Field LOCATION INFORMATION (GPRS) - LOCGPRS | |
613 ********************************************************************/ | |
614 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
615 0xFF, 0xFF, 0xFF, 0xFE, 0xFF, 0xFF, | |
616 | |
617 /******************************************************************** | |
618 * Field CIPHERING KEY (GPRS) - KEYGPRS | |
619 ********************************************************************/ | |
620 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
621 0x07, | |
622 | |
623 /******************************************************************** | |
624 * Field IMSI (GPRS) - IMSIGPRS | |
625 ********************************************************************/ | |
626 0x00, | |
627 0xF1, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF | |
628 | |
629 }; | |
630 | |
631 |