comparison cdg211/msg/sms.mdf @ 4:56abf6cf8a0b

cdg211: cdginc/mdf/pdf files from TCS211-20070608
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 01:11:35 +0000
parents
children
comparison
equal deleted inserted replaced
3:93999a60b835 4:56abf6cf8a0b
1 ;********************************************************************************
2 ;*** File : sms.mdf
3 ;*** Creation : Fri Jun 08 13:58:53 CST 2007
4 ;*** XSLT Processor : Apache Software Foundation / http://xml.apache.org/xalan-j / supports XSLT-Ver: 1
5 ;*** Copyright : (c) Texas Instruments AG, Berlin Germany 2002
6 ;********************************************************************************
7 ;*** Document Type : Air Interface Message Specification
8 ;*** Document Name : sms
9 ;*** Document No. : 6147.607.97.102
10 ;*** Document Date : 2001-09-11
11 ;*** Document Status: BEING_PROCESSED
12 ;*** Document Author: FK
13 ;********************************************************************************
14
15
16
17 PRAGMA SRC_FILE_TIME "Thu Mar 4 16:08:34 2004"
18 PRAGMA LAST_MODIFIED "2001-09-11"
19 PRAGMA ID_AND_VERSION "6147.607.97.102"
20
21
22
23 CONST SIM_PDU_BIT_LEN 1400 ; Bit length of SIM-PDU (record length of EF(SMS) minus Status Byte)
24 CONST TPDU_BIT_LEN 1312 ; Bit length of a SMS-TPDU (164 * 8)
25 CONST MAX_SMS_ADDR_DIG 20 ; Maximum number of address digits
26 CONST MAX_SMS_SGL_CHAR 160 ; Maximum number of characters (septets) in a single Short Message
27 CONST MAX_SMS_DATA_LEN 160 ; Maximum length of a data field
28
29
30
31 VALTAB VAL_cp_cause
32 VAL 17 SMS_CP_CS_NETWORK_FAILURE "Network Failure"
33 VAL 22 SMS_CP_CS_CONGESTION "Congestion"
34 VAL 81 SMS_CP_CS_INVALID_TI "Invalid Transaction Identifier"
35 VAL 95 SMS_CP_CS_SEM_INC_MSG "Semantically incorrect message"
36 VAL 96 SMS_CP_CS_INV_MAND_INFO "Invalid mandatory information"
37 VAL 97 SMS_CP_CS_MSG_TYPE_NON_EXIST "Message type non-existent or not implemented"
38 VAL 98 SMS_CP_CS_MSG_NOT_COMP "Message not compatible with the short message protocol state"
39 VAL 99 SMS_CP_CS_INFO_NON_EXIST "Information element non-existent or not implemented"
40 VAL 111 SMS_CP_CS_PROTOCOL_ERROR "Protocol error, unspecified"
41
42 VALTAB VAL_rp_mti
43 VAL 0 RP_DATA_UL "RP_DATA message MS to network"
44 VAL 1 RP_DATA_DL "RP_DATA message network to MS"
45 VAL 2 RP_ACK_UL "RP_ACK message MS to network"
46 VAL 3 RP_ACK_DL "RP_ACK message network to MS"
47 VAL 4 RP_ERROR_UL "RP_ERROR message MS to network"
48 VAL 5 RP_ERROR_DL "RP_ERROR message network to MS"
49 VAL 6 RP_SMMA_UL "RP_SMMA message MS to network"
50
51 VALTAB VAL_npi
52 VAL DEF "reserved"
53 VAL 0 SMS_NPI_UNKNOWN "unknown"
54 VAL 1 SMS_NPI_ISDN "ISDN/telephony numbering plan (Rec. E.164/E.163)"
55 VAL 3 SMS_NPI_X121 "data numbering plan (Recommendation X.121)"
56 VAL 4 SMS_NPI_F69 "telex numbering plan (Recommendation F.69)"
57 VAL 8 SMS_NPI_NATIONAL "national numbering plan"
58 VAL 9 SMS_NPI_PRIVATE "private numbering plan"
59 VAL 10 SMS_NPI_ERMES "ERMES numbering plan (ETSI DE/PS 3 01-3)"
60 VAL 15 SMS_NPI_EXTENSTION "reserved for extension"
61
62 VALTAB VAL_ton
63 VAL 0 SMS_TON_UNKNOWN "unknown"
64 VAL 1 SMS_TON_INTERNATIONAL "international number"
65 VAL 2 SMS_TON_NATIONAL "national number"
66 VAL 3 SMS_TON_NETWORK_SPEC "network specific number"
67 VAL 4 SMS_TON_SUBSCRIBER "dedicated access, short code"
68 VAL 5 SMS_TON_ALPHANUMERIC "alphanumeric"
69 VAL 6 SMS_TON_ABBREVIATED "abbreviated"
70 VAL 7 SMS_TON_EXTENSION "reserved for extention"
71
72 VALTAB VAL_rp_cause_value
73 VAL 1 SMS_RP_CS_UNASSIGNED_NUMBER "Unassigned (unallocated) number"
74 VAL 8 SMS_RP_CS_OPERATOR_DET_BARRED "Operator determined barring"
75 VAL 10 SMS_RP_CS_CALL_BARRED "Call barred"
76 VAL 21 SMS_RP_CS_SM_TRANSFER_REJECTED "Short message transfer rejected"
77 VAL 22 SMS_RP_CS_MEM_CAP_EXCEEDED "Memory Capacity exceeded"
78 VAL 27 SMS_RP_CS_DEST_OUT_OF_ORDER "Destination out of order"
79 VAL 28 SMS_RP_CS_UNIDENT_SUBSCRIBER "Unidentified subscriber"
80 VAL 29 SMS_RP_CS_FACILITY_REJECTED "Facility rejected"
81 VAL 30 SMS_RP_CS_UNKNOWN_SUBSCRIBER "Unknown subscriber"
82 VAL 38 SMS_RP_CS_NET_OUT_OF_ORDER "Network out of order"
83 VAL 41 SMS_RP_CS_TEMP_FAILURE "Temporary Failure"
84 VAL 42 SMS_RP_CS_CONGESTION "Congestion"
85 VAL 47 SMS_RP_CS_NO_RESOURCES "Resources unavailable, unspecified"
86 VAL 50 SMS_RP_CS_FAC_NOT_SUBSCRIBED "Requested facility not subscribed"
87 VAL 69 SMS_RP_CS_FAC_NOT_IMPL "Requested facility not implemented"
88 VAL 81 SMS_RP_CS_INV_SM_TR_REF_VAL "Invalid short message transfer reference value"
89 VAL 95 SMS_RP_CS_SEM_INC_MSG "Semantically incorrect message"
90 VAL 96 SMS_RP_CS_INV_MAND_INFO "Invalid mandatory information"
91 VAL 97 SMS_RP_CS_MSG_NON_EXIST "Message type non-existent or not implemented"
92 VAL 98 SMS_RP_CS_MSG_NOT_COMP "Message not compatible with the short message protocol state"
93 VAL 99 SMS_RP_CS_INFO_NON_EXIST "Information element non-existent or not implemented"
94 VAL 111 SMS_RP_CS_PROTOCOL_ERROR "Protocol error, unspecified"
95 VAL 127 SMS_RP_CS_INTERWORKING "Interworking, unspecified"
96
97 VALTAB VAL_tp_ct
98 VAL 0x00 SMS_CT_ENQUIRY "Enquiry to submitted short message"
99 VAL 0x01 SMS_CT_CANCEL_REP "Cancel status report request"
100 VAL 0x02 SMS_CT_DELETE "Delete short message"
101 VAL 0x03 SMS_CT_ENABLE "Enable status report request"
102
103 VALTAB VAL_tp_dcs
104 VAL 0x00 SMS_DCS_GRP_DEF "Coding group: uncompressed, no message class"
105 VAL 0x10 SMS_DCS_GRP_CLASS "Coding group: uncompressed, with message class"
106 VAL 0x20 SMS_DCS_GRP_COMPR "Coding group: compressed, no message class"
107 VAL 0x30 SMS_DCS_GRP_CLASS_COMPR "Coding group: compressed, with message class"
108 VAL 0xC0 SMS_DCS_GRP_MW_DISCD "Coding group: message waiting, discard"
109 VAL 0xD0 SMS_DCS_GRP_MW_STORE "Coding group: message waiting, store"
110 VAL 0xE0 SMS_DCS_GRP_MW_STORE_UCS2 "Coding group: message waiting, store, UCS2 coded"
111 VAL 0xF0 SMS_DCS_DATA_CLASS "Coding group: data coding, with message class"
112
113 VALTAB VAL_tp_fcs
114 VAL 0x80 SMS_FCS_TM_IW_NOT_SUP "Telematic interworking not supported (MO)"
115 VAL 0x81 SMS_FCS_SM_0_NOT_SUP "Short Message Type 0 not supported (MO, MT)"
116 VAL 0x82 SMS_FCS_CANT_REP_SM "Cannot replace short message (MO, MT)"
117 VAL 0x8F SMS_FCS_TP_PID_UNSPEC "Unspecified TP-PID error (MO, MT)"
118 VAL 0x90 SMS_FCS_DCS_NOT_SUP "Data coding scheme (alphabet) not supported (MO)"
119 VAL 0x91 SMS_FCS_CLASS_NOT_SUP "Message class not supported (MT)"
120 VAL 0x9F SMS_FCS_TP_DCS_UNSPEC "Unspecified TP-DCS error (MO, MT)"
121 VAL 0xA0 SMS_FCS_CMD_CANT_ACT "Command cannot be actioned (MO)"
122 VAL 0xA1 SMS_FCS_CMD_NOT_SUP "Command unsupported (MO)"
123 VAL 0xAF SMS_FCS_TP_CMD_UNSPEC "Unspecified TP-Command error (MO)"
124 VAL 0xB0 SMS_FCS_TPDU_NOT_SUP "TPDU not supported (MO, MT)"
125 VAL 0xC0 SMS_FCS_SC_BUSY "SC busy (MO)"
126 VAL 0xC1 SMS_FCS_NO_SC_SUBSCRIPT "No SC subscription (MO)"
127 VAL 0xC2 SMS_FCS_SC_SYS_FAIL "SC system failure (MO)"
128 VAL 0xC3 SMS_FCS_INV_SME_ADDR "Invalid SME address (MO)"
129 VAL 0xC4 SMS_FCS_DEST_SME_BARRED "Destination SME barred (MO)"
130 VAL 0xC5 SMS_FCS_REJ_DUPL_SM "SM rejected-duplicate SM (MO)"
131 VAL 0xC6 SMS_FCS_TPVPF_NOT_SUP "Validity Period Format not supported (MO)"
132 VAL 0xC7 SMS_FCS_TPVP_NOT_SUP "Validity Period not supported (MO)"
133 VAL 0xD0 SMS_FCS_SIM_MEM_FULL "SIM SMS storage full (MT)"
134 VAL 0xD1 SMS_FCS_NO_SMS_MEM_IN_MS "No SMS storage capability in SIM (MT)"
135 VAL 0xD2 SMS_FCS_ERROR_IN_MS "Error in MS (MT)"
136 VAL 0xD3 SMS_FCS_MEM_CAP_EXCEED "Memory Capacity exceeded (MO, MT)"
137 VAL 0xD4 SMS_FCS_SAT_BUSY "SIM Application Toolkit busy (MT)"
138 VAL 0xD5 SMS_FCS_SAT_DNL_ERROR "SIM Data Download error (MT)"
139 VAL 0xFF SMS_FCS_UNSPECIFIED "Unspecified error cause (MO, MT)"
140
141 VALTAB VAL_tp_mti
142 VAL 0 SMS_DELIVER "SMS deliver (SC to MS)"
143 VAL 0 SMS_DELIVER_REPORT "SMS deliver report (MS to SC)"
144 VAL 2 SMS_STATUS_REPORT "SMS status report (SC to MS)"
145 VAL 2 SMS_COMMAND "SMS command (MS to SC)"
146 VAL 1 SMS_SUBMIT "SMS submit (MS to SC)"
147 VAL 1 SMS_SUBMIT_REPORT "SMS submit report (SC to MS)"
148
149 VALTAB VAL_tp_mms
150 VAL 0 SMS_MMS_MORE_MESSAGES "More messages are waiting for the MS in this SC"
151 VAL 1 SMS_MMS_NO_MORE_MESSAGES "No more messages are waiting for the MS in this SC"
152
153 VALTAB VAL_tp_pid
154 VAL 0x00 SMS_PID_DEFAULT ""
155 VAL 0x40 SMS_PID_SM_TYPE_0 "Short Message Type 0"
156 VAL 0x41 SMS_PID_REP_SM_TYPE_1 "Replace Short Message Type 1"
157 VAL 0x42 SMS_PID_REP_SM_TYPE_2 "Replace Short Message Type 2"
158 VAL 0x43 SMS_PID_REP_SM_TYPE_3 "Replace Short Message Type 3"
159 VAL 0x44 SMS_PID_REP_SM_TYPE_4 "Replace Short Message Type 4"
160 VAL 0x45 SMS_PID_REP_SM_TYPE_5 "Replace Short Message Type 5"
161 VAL 0x46 SMS_PID_REP_SM_TYPE_6 "Replace Short Message Type 6"
162 VAL 0x47 SMS_PID_REP_SM_TYPE_7 "Replace Short Message Type 7"
163 VAL 0x5F SMS_PID_RET_CALL_MSG "Return Call Message"
164 VAL 0x7D SMS_PID_ME_DOWNLOAD "ME Data Download"
165 VAL 0x7E SMS_PID_ME_DEPERSON "ME Depersonalization SM"
166 VAL 0x7F SMS_PID_SIM_DOWNLOAD "SIM Data Download"
167
168 VALTAB VAL_tp_rd
169 VAL 0 SMS_RD_ACCEPT "Accept duplicated SMS submit"
170 VAL 1 SMS_RD_REJECT "Reject duplicated SMS submit"
171
172 VALTAB VAL_tp_rp
173 VAL 0 SMS_RP_NOT_SET "TP Reply Path parameter is not set"
174 VAL 1 SMS_RP_SET "TP Reply Path parameter is set"
175
176 VALTAB VAL_tp_st
177 VAL 0x00 SMS_ST_SM_REC_BY_SME "Short message received by the SME"
178 VAL 0x01 SMS_ST_SM_FORW_SC "Short message forwarded by the SC, not confirmed"
179 VAL 0x02 SMS_ST_SM_REP_BY_SC "Short message replaced by the SC"
180 VAL 0x20 SMS_ST_CONGESTION "Congestion (T)"
181 VAL 0x21 SMS_ST_SMS_BUSY "SME is busy (T)"
182 VAL 0x22 SMS_ST_NO_RESPONSE "No response from the SME (T)"
183 VAL 0x23 SMS_ST_SERV_REJ "Service rejected (T)"
184 VAL 0x24 SMS_ST_QUAL_NOT_AVAIL "Quality of service not available (T)"
185 VAL 0x25 SMS_ST_ERR_IN_SME "Error in SME (T)"
186 VAL 0x40 SMS_ST_REM_PROC_ERR "Remote procedure error (P)"
187 VAL 0x41 SMS_ST_INCOMP_DEST "Incompatible destination (P)"
188 VAL 0x42 SMS_ST_CON_REJ_BY_SME "Connection rejected by SME (P)"
189 VAL 0x43 SMS_ST_NOT_OBTAINABLE "Not obtainable (P)"
190 VAL 0x44 SMS_ST_QUAL_NOT_AVAIL_P "Quality of service not available (P)"
191 VAL 0x45 SMS_ST_NO_INTERWORK "No interworking available (P)"
192 VAL 0x46 SMS_ST_SM_VP_EXP "Short message validity period expired (P)"
193 VAL 0x47 SMS_ST_SM_DEL_BY_SME "Short message deleted by originating SME (P)"
194 VAL 0x48 SMS_ST_SM_DEL_BY_SC "Short message deleted by SC administration (P)"
195 VAL 0x49 SMS_ST_SM_NOT_EXIST "Short message not exists (P)"
196 VAL 0x60 SMS_ST_CONGESTION2 "Congestion (P)"
197 VAL 0x61 SMS_ST_SMS_BUSY2 "SME is busy (P)"
198 VAL 0x62 SMS_ST_NO_RESPONSE2 "No response from the SME (P)"
199 VAL 0x63 SMS_ST_SERV_REJ2 "Service rejected (P)"
200 VAL 0x64 SMS_ST_QUAL_NOT_AVAIL2 "Quality of service not available (P)"
201 VAL 0x65 SMS_ST_ERR_IN_SME2 "Error in SME (P)"
202
203 VALTAB VAL_tp_sri
204 VAL 0 SMS_SRI_NO_RETURN "A status report will not be returned to the SME"
205 VAL 1 SMS_SRI_RETURN "A status report will be returned to the SME"
206
207 VALTAB VAL_tp_srr
208 VAL 0 SMS_SRR_NOT_REQUESTED "A status report is not requested"
209 VAL 1 SMS_SRR_REQUESTED "A status report is requested"
210
211 VALTAB VAL_tp_srq
212 VAL 0 SMS_SRQ_SUBMIT "The SMS status report is the result of a SMS submit"
213 VAL 1 SMS_SRQ_COMMAND "The SMS status report is the result of a SMS command or enquiry"
214
215 VALTAB VAL_tp_udhi
216 VAL 0 SMS_UDHI_NOT_INCLUDED "No user data header included"
217 VAL 1 SMS_UDHI_INCLUDED "User data header included"
218
219 VALTAB VAL_tp_vpf
220 VAL 0 SMS_VPF_NOT_PRESENT "TP-VP field not present"
221 VAL 1 SMS_VPF_ENHANCED "TP-VP field present in enhanced format"
222 VAL 2 SMS_VPF_RELATIVE "TP-VP field present and integer represented (relative)"
223 VAL 3 SMS_VPF_ABSOLUTE "TP-VP field present and semi-octet represented (absolute)"
224
225 VALTAB VAL_tp_udl_p
226 VAL 0 SMS_UD_NOT_INCLUDED "No user data included"
227 VAL 1 SMS_UD_INCLUDED "User data included"
228
229 VALTAB VAL_tp_dcs_p
230 VAL 0 SMS_DCS_NOT_INCLUDED "No data coding scheme included"
231 VAL 1 SMS_DCS_INCLUDED "Data coding scheme included"
232
233 VALTAB VAL_tp_pid_p
234 VAL 0 SMS_PID_NOT_INCLUDED "No protocol identifier included"
235 VAL 1 SMS_PID_INCLUDED "Protocol identifier included"
236
237 VALTAB VAL_tp_vt_mti
238 VAL 0x20 SMS_VT_DLVR_REP_ACK "TP SMS-DELIVER-REPORT in RP_ACK message, MS to network"
239 VAL 0x21 SMS_VT_SUBMIT "TP SMS-SUBMIT in RP_DATA message, MS to network"
240 VAL 0x22 SMS_VT_COMMAND "TP SMS-COMMAND in RP_DATA message, MS to network"
241 VAL 0x24 SMS_VT_DLVR_REP_ERR "TP SMS-DELIVER-REPORT in RP_ERROR message, MS to network"
242 VAL 0x28 SMS_VT_DELIVER "TP SMS-DELIVER in RP_DATA message, network to MS"
243 VAL 0x29 SMS_VT_SBMT_REP_ACK "TP SMS-SUBMIT-REPORT in RP_ACK message, network to MS"
244 VAL 0x2A SMS_VT_STATUS "TP SMS-STATUS-REPORT in RP-DATA or RP_ACK message, network to MS"
245 VAL 0x2B SMS_VT_SBMT_REP_ERR "TP SMS-SUBMIT-REPORT in RP_ERROR message, network to MS"
246 VAL 0x30 SMS_VT_SIM_PDU "Virtual message type for SIM-PDU used in SAP MNSMS"
247
248 VALTAB VAL_tvpf
249 VAL 0 SMS_TVPF_NOT_PRESENT "Enhanced validity period not present"
250 VAL 1 SMS_TVPF_RELATIVE "Enhanced validity period relative as TP-VP (relative)"
251 VAL 2 SMS_TVPF_SECONDS "Enhanced validity period given in seconds 1 .. 255"
252 VAL 3 SMS_TVPF_HOURS "Enhanced validity period given in hours, minutes, seconds"
253
254 VALTAB VAL_tp_ext
255 VAL 0 SMS_EXT_NOT_INCLUDED "No extension octet following"
256 VAL 1 SMS_EXT_INCLUDED "Extension octet following"
257
258 VALTAB VAL_tp_ss
259 VAL 0 SMS_SS_NOT_SET "Single Shot bit not set"
260 VAL 1 SMS_SS_SET "Single Shot bit set"
261
262
263
264
265 VAR cp_cause "CP cause"
266 8
267
268 VAL @m_sms - VAL_cp_cause@
269
270 VAR msg_type "CP Message Type"
271 8
272
273
274 VAR data "Data"
275 8
276
277
278 VAR diag "Diagnostic field"
279 8
280
281
282 VAR reference "Message Reference"
283 8
284
285
286 VAR rp_mti "Message Type Indicator"
287 3
288
289 VAL @m_sms - VAL_rp_mti@
290
291 VAR num "Number digit"
292 4
293
294
295 VAR year ""
296 4
297
298
299 VAR month ""
300 4
301
302
303 VAR day ""
304 4
305
306
307 VAR hour ""
308 4
309
310
311 VAR minute ""
312 4
313
314
315 VAR second ""
316 4
317
318
319 VAR npi "Numbering plan identification"
320 4
321
322 VAL @m_sms - VAL_npi@
323
324 VAR ton "Type of number"
325 3
326
327 VAL @m_sms - VAL_ton@
328
329 VAR rp_cause_value "RP cause"
330 7
331
332 VAL @m_sms - VAL_rp_cause_value@
333
334 VAR tz_lsb "Time Zone, LSB"
335 4
336
337
338 VAR tz_sign "Time Zone, sign"
339 1
340
341
342 VAR tz_msb "Time Zone, MSB"
343 3
344
345
346 VAR tp_ct "TP Command Type"
347 8
348
349 VAL @m_sms - VAL_tp_ct@
350
351 VAR tp_dcs "TP Data Coding Scheme"
352 8
353
354 VAL @m_sms - VAL_tp_dcs@
355
356 VAR tp_fcs "TP Failure Cause"
357 8
358
359 VAL @m_sms - VAL_tp_fcs@
360
361 VAR tp_mn "TP Message Number"
362 8
363
364
365 VAR tp_mr "TP Message Reference"
366 8
367
368
369 VAR tp_mti "TP Message Type Indicator"
370 2
371
372 VAL @m_sms - VAL_tp_mti@
373
374 VAR tp_mms "TP More Messages To Send"
375 1
376
377 VAL @m_sms - VAL_tp_mms@
378
379 VAR tp_pid "TP Protocol Identifier"
380 8
381
382 VAL @m_sms - VAL_tp_pid@
383
384 VAR tp_rd "TP Reject Duplicates"
385 1
386
387 VAL @m_sms - VAL_tp_rd@
388
389 VAR tp_rp "TP Reply Path"
390 1
391
392 VAL @m_sms - VAL_tp_rp@
393
394 VAR tp_st "TP Status"
395 8
396
397 VAL @m_sms - VAL_tp_st@
398
399 VAR tp_sri "TP Status Report Indication"
400 1
401
402 VAL @m_sms - VAL_tp_sri@
403
404 VAR tp_srr "TP Status Report Request"
405 1
406
407 VAL @m_sms - VAL_tp_srr@
408
409 VAR tp_srq "TP Status Report Qualifier"
410 1
411
412 VAL @m_sms - VAL_tp_srq@
413
414 VAR tp_udhi "TP User Data Header Indicator"
415 1
416
417 VAL @m_sms - VAL_tp_udhi@
418
419 VAR tp_vpf "TP Validity Period Format"
420 2
421
422 VAL @m_sms - VAL_tp_vpf@
423
424 VAR tp_vp_rel "TP Validity Period Relative"
425 8
426
427
428 VAR tp_udl_p "TP User Data present"
429 1
430
431 VAL @m_sms - VAL_tp_udl_p@
432
433 VAR tp_dcs_p "TP User Data Header Indicator"
434 1
435
436 VAL @m_sms - VAL_tp_dcs_p@
437
438 VAR tp_pid_p "TP User Data Header Indicator"
439 1
440
441 VAL @m_sms - VAL_tp_pid_p@
442
443 VAR length "Length"
444 8
445
446
447 VAR digits "Digits"
448 8
449
450
451 VAR tp_vt_mti "Virtual TP Message Type"
452 8
453
454 VAL @m_sms - VAL_tp_vt_mti@
455
456 VAR tpdu "TP Data Unit"
457 TPDU_BIT_LEN
458
459
460 VAR tvpf "Type of Validity Period Format"
461 3
462
463 VAL @m_sms - VAL_tvpf@
464
465 VAR tp_vp_sec "Validity period in seconds"
466 8
467
468
469 VAR tp_rsrvd "Extension Octet"
470 7
471
472
473 VAR tp_ext "Extension Control Bit"
474 1
475
476 VAL @m_sms - VAL_tp_ext@
477
478 VAR tp_ss "Single Shot Bit"
479 1
480
481 VAL @m_sms - VAL_tp_ss@
482
483
484
485
486 COMP rp_cause "RP Cause"
487 {
488 + rp_cause_value ; cause value
489 diag [0..5] ; diagnostic field
490 }
491
492
493
494 COMP rp_addr "RP Service Center Address"
495 {
496 + ton ; Type of number
497 * npi ; Numbering plan identification
498 BCDEVEN num [0..MAX_SMS_ADDR_DIG] ; Number digit
499 }
500
501
502
503 COMP rp_user_data "RP-User Data"
504 {
505 tp_mti (GETPOS,:,6,+,SETPOS) ; TP Message Type Indicator
506 GSM5_V tpdu (SETPOS) ; TP Data Unit
507 }
508
509
510
511 COMP rp_ack "RP-ACK downlink / uplink"
512 {
513 GSM4_TLV rp_user_data 0x41 ; RP Ack Data
514 }
515
516
517
518 COMP rp_error "RP-ERROR downlink / uplink"
519 {
520 GSM4_LV rp_cause ; RP Cause
521 GSM4_TLV rp_user_data 0x41 ; RP Error Data Downlink
522 }
523
524
525
526 COMP rp_data_dl "RP Data downlink"
527 {
528 GSM4_LV rp_addr ; RP Originator Address
529 .00000000 ; RP Destination Address
530 GSM4_LV rp_user_data ; RP User Data Downlink
531 }
532
533
534
535 COMP cp_user_data_dl "CP User Data downlink"
536 {
537 .00000 ; spare
538 rp_mti ; Message Type Indicator
539 reference ; Message Reference
540 < (rp_mti = RP_DATA_DL) GSM3_V rp_data_dl > ; RP-DATA Downlink
541 < (rp_mti = RP_ERROR_DL) GSM3_V rp_error > ; RP-ERROR Downlink
542 < (rp_mti = RP_ACK_DL) GSM3_V rp_ack > ; RP-ACK-Downlink
543 }
544
545
546
547 COMP rp_data_ul "RP Data uplink"
548 {
549 .00000000 ; RP Originator Address
550 GSM4_LV rp_addr ; RP Destination Address
551 GSM4_LV rp_user_data ; RP User Data Uplink
552 }
553
554
555
556 COMP cp_user_data_ul "CP User Data Uplink"
557 {
558 .00000 ; spare
559 rp_mti ; Message Type Indicator
560 reference ; Message Reference
561 < (rp_mti = RP_DATA_UL) GSM3_V rp_data_ul > ; RP-DATA Uplink
562 < (rp_mti = RP_ERROR_UL) GSM3_V rp_error > ; RP-ERROR Uplink
563 < (rp_mti = RP_ACK_UL) GSM3_V rp_ack > ; RP-ACK-Uplink
564 }
565
566
567
568 COMP tp_cd "TP Command Data"
569 {
570 data [0..MAX_SMS_DATA_LEN] ; Data
571 }
572 TYPEDEF COMP tp_cd tp_udh "TP User Data Header"
573
574
575
576 COMP tp_da "TP Destination Address"
577 {
578 digits ; Number of digits
579 .1 ; spare
580 ton ; Type of number
581 npi ; Numbering plan identification
582 BCDEVEN num [digits..MAX_SMS_ADDR_DIG] ; Number digit
583 }
584 TYPEDEF COMP tp_da tp_oa "TP Originating Address"
585 TYPEDEF COMP tp_da tp_ra "TP Recipient Address"
586
587
588
589 COMP tp_vp_abs "TP Validity Period (Absolute Format)"
590 {
591 BCDEVEN year [2] ; Year
592 BCDEVEN month [2] ; Month
593 BCDEVEN day [2] ; Day
594 BCDEVEN hour [2] ; Hour
595 BCDEVEN minute [2] ; Minute
596 BCDEVEN second [2] ; Second
597 tz_lsb ; Time Zone, LSB
598 tz_sign ; Time Zone, sign
599 tz_msb ; Time Zone, MSB
600 }
601 TYPEDEF COMP tp_vp_abs tp_scts "TP Service Centre Time Stamp"
602 TYPEDEF COMP tp_vp_abs tp_dt "TP Discharge Time"
603
604
605
606 COMP tp_vp_enh "TP Validity Period (Enhanced Format)"
607 {
608 tp_ext ; Extension Control Bit
609 tp_ss ; Single Shot Bit
610 .000 ; spare
611 tvpf ; Type of Validity Period Format
612 < (tp_ext = SMS_EXT_INCLUDED) .0 > ; spare
613 < (tp_ext = SMS_EXT_INCLUDED) tp_rsrvd > ; Extension Octet
614 < (tvpf = SMS_TVPF_RELATIVE) tp_vp_rel > ; TP Validity Period Relative
615 < (tvpf = SMS_TVPF_SECONDS) tp_vp_sec > ; Validity period in seconds
616 < (tvpf = SMS_TVPF_HOURS) BCDEVEN hour [2] > ; Hour
617 < (tvpf = SMS_TVPF_HOURS) BCDEVEN minute [2] > ; Minute
618 < (tvpf = SMS_TVPF_HOURS) BCDEVEN second [2] > ; Second
619 < (tp_ext = SMS_EXT_NOT_INCLUDED) .00000000 > ; spare
620 < (tvpf = SMS_TVPF_RELATIVE OR tvpf = SMS_TVPF_SECONDS) .00000000 > ; spare
621 < (tvpf = SMS_TVPF_RELATIVE OR tvpf = SMS_TVPF_SECONDS) .00000000 > ; spare
622 .00000000 ; spare
623 .00000000 ; spare
624 }
625
626
627
628 COMP tp_ud "TP User Data"
629 {
630 length ; Length
631 data [0..MAX_SMS_DATA_LEN] ; Data
632 }
633
634
635
636 COMP tp_udh_inc "TP User Data with Header"
637 {
638 length ; Length
639 GSM4_LV tp_udh ; TP User Data Header
640 data [0..MAX_SMS_DATA_LEN] ; Data
641 }
642
643
644
645 COMP tp_cdh_inc "TP Command Data with Header"
646 {
647 GSM4_LV tp_udh ; TP User Data Header
648 data [0..MAX_SMS_DATA_LEN] ; Data
649 }
650
651
652
653
654
655
656 MSG b_cp_ack both 0b00000100 ; CP Ack
657 {
658 GSM3_V msg_type ; CP Message Type
659 }
660
661
662
663 MSG d_cp_data downlink 0b00000001 ; CP Data Downlink
664 {
665 GSM3_V msg_type ; CP Message Type
666 GSM4_LV cp_user_data_dl ; CP User Data downlink
667 }
668
669
670
671 MSG u_cp_data uplink 0b00000001 ; CP Data Uplink
672 {
673 GSM3_V msg_type ; CP Message Type
674 GSM4_LV cp_user_data_ul ; CP User Data uplink
675 }
676
677
678
679 MSG b_cp_error both 0b00010000 ; CP Error
680 {
681 GSM3_V msg_type ; CP Message Type
682 GSM3_V cp_cause ; CP Cause
683 }
684
685
686
687 MSG tp_deliver downlink SMS_VT_DELIVER ; TP SMS-DELIVER
688 {
689 GSM3_V tp_vt_mti ; Virtual Message Type
690 tp_rp ; TP Reply Path
691 tp_udhi ; TP User Data Header Indicator
692 tp_sri ; TP Status Report Indication
693 .00 ; spare
694 tp_mms ; TP More Message To Send
695 tp_mti ; TP Message Type Indicator
696 GSM3_V tp_oa ; TP Origination Address
697 tp_pid ; TP Protocol Identifier
698 tp_dcs ; TP Data Coding Scheme
699 GSM3_V tp_scts ; TP Service Center Time Stamp
700 < (tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM3_V tp_ud > ; TP User Data
701 < (tp_udhi = SMS_UDHI_INCLUDED) GSM3_V tp_udh_inc > ; TP User Data with Header included
702 }
703
704
705
706 MSG tp_dlvr_rep_err uplink SMS_VT_DLVR_REP_ERR ; TP SMS-DELIVER-REPORT (RP-ERROR)
707 {
708 GSM3_V tp_vt_mti ; Virtual Message Type
709 .0 ; spare
710 tp_udhi ; TP User Data Header Indicator
711 .0000 ; spare
712 tp_mti ; TP Message Type Indicator
713 tp_fcs ; TP Failure Cause
714 tp_ext ; Extension Control Bit
715 .0000 ; spare
716 tp_udl_p ; TP User Data present
717 tp_dcs_p ; TP Data Coding Scheme present
718 tp_pid_p ; TP Protocol Identifier present
719 < (tp_ext = SMS_EXT_INCLUDED) .0 > ; spare
720 < (tp_ext = SMS_EXT_INCLUDED) tp_rsrvd > ; Extension Octet
721 < (tp_pid_p = SMS_PID_INCLUDED) tp_pid > ; TP Protocol Identifier
722 < (tp_dcs_p = SMS_DCS_INCLUDED) tp_dcs > ; TP Data Coding Scheme
723 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM3_V tp_ud > ; TP User Data
724 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_INCLUDED) GSM3_V tp_udh_inc > ; TP User Data with Header included
725 }
726
727
728
729 MSG tp_dlvr_rep_ack uplink SMS_VT_DLVR_REP_ACK ; TP SMS-DELIVER-REPORT (RP-ACK)
730 {
731 GSM3_V tp_vt_mti ; Virtual Message Type
732 .0 ; spare
733 tp_udhi ; TP User Data Header Indicator
734 .0000 ; spare
735 tp_mti ; TP Message Type Indicator
736 tp_ext ; Extension Control Bit
737 .0000 ; spare
738 tp_udl_p ; TP User Data present
739 tp_dcs_p ; TP Data Coding Scheme present
740 tp_pid_p ; TP Protocol Identifier present
741 < (tp_ext = SMS_EXT_INCLUDED) .0 > ; spare
742 < (tp_ext = SMS_EXT_INCLUDED) tp_rsrvd > ; Extension Octet
743 < (tp_pid_p = SMS_PID_INCLUDED) tp_pid > ; TP Protocol Identifier
744 < (tp_dcs_p = SMS_DCS_INCLUDED) tp_dcs > ; TP Data Coding Scheme
745 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM3_V tp_ud > ; TP User Data
746 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_INCLUDED) GSM3_V tp_udh_inc > ; TP User Data with Header included
747 }
748
749
750
751 MSG tp_submit uplink SMS_VT_SUBMIT ; TP SMS-SUBMIT
752 {
753 GSM3_V tp_vt_mti ; Virtual Message Type
754 tp_rp ; TP Reply Path
755 tp_udhi ; TP User Data Header Indicator
756 tp_srr ; TP Status Report Request
757 tp_vpf ; TP Validity Period Format
758 tp_rd ; TP Reject Duplicates
759 tp_mti ; TP Message Type Indicator
760 tp_mr ; TP Message Reference
761 GSM3_V tp_da ; TP Destination Address
762 tp_pid ; TP Protocol Identifier
763 tp_dcs ; TP Data Coding Scheme
764 < (tp_vpf = SMS_VPF_ENHANCED) GSM3_V tp_vp_enh > ; TP Validity Period (enhanced format)
765 < (tp_vpf = SMS_VPF_RELATIVE) tp_vp_rel > ; TP relative Validity Period
766 < (tp_vpf = SMS_VPF_ABSOLUTE) GSM3_V tp_vp_abs > ; TP absolute Validity Period
767 < (tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM3_V tp_ud > ; TP User Data
768 < (tp_udhi = SMS_UDHI_INCLUDED) GSM3_V tp_udh_inc > ; TP User Data with Header included
769 }
770
771
772
773 MSG tp_sbmt_rep_err downlink SMS_VT_SBMT_REP_ERR ; TP SMS-SUBMIT-REPORT (RP-ERROR)
774 {
775 GSM3_V tp_vt_mti ; Virtual Message Type
776 .0 ; spare
777 tp_udhi ; TP User Data Header Indicator
778 .0000 ; spare
779 tp_mti ; TP Message Type Indicator
780 tp_fcs ; TP Failure Cause
781 tp_ext ; Extension Control Bit
782 .0000 ; spare
783 tp_udl_p ; TP User Data present
784 tp_dcs_p ; TP Data Coding Scheme present
785 tp_pid_p ; TP Protocol Identifier present
786 < (tp_ext = SMS_EXT_INCLUDED) .0 > ; spare
787 < (tp_ext = SMS_EXT_INCLUDED) tp_rsrvd > ; Extension Octet
788 GSM3_V tp_scts ; TP Service Centre Time Stamp
789 < (tp_pid_p = SMS_PID_INCLUDED) tp_pid > ; TP Protocol Identifier
790 < (tp_dcs_p = SMS_DCS_INCLUDED) tp_dcs > ; TP Data Coding Scheme
791 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM3_V tp_ud > ; TP User Data
792 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_INCLUDED) GSM3_V tp_udh_inc > ; TP User Data with Header included
793 }
794
795
796
797 MSG tp_sbmt_rep_ack downlink SMS_VT_SBMT_REP_ACK ; TP SMS-SUBMIT-REPORT (RP-ACK)
798 {
799 GSM3_V tp_vt_mti ; Virtual Message Type
800 .0 ; spare
801 tp_udhi ; TP User Data Header Indicator
802 .0000 ; spare
803 tp_mti ; TP Message Type Indicator
804 tp_ext ; Extension Control Bit
805 .0000 ; spare
806 tp_udl_p ; TP User Data present
807 tp_dcs_p ; TP Data Coding Scheme present
808 tp_pid_p ; TP Protocol Identifier present
809 < (tp_ext = SMS_EXT_INCLUDED) .0 > ; spare
810 < (tp_ext = SMS_EXT_INCLUDED) tp_rsrvd > ; Extension Octet
811 GSM3_V tp_scts ; TP Service Centre Time Stamp
812 < (tp_pid_p = SMS_PID_INCLUDED) tp_pid > ; TP Protocol Identifier
813 < (tp_dcs_p = SMS_DCS_INCLUDED) tp_dcs > ; TP Data Coding Scheme
814 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM3_V tp_ud > ; TP User Data
815 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_INCLUDED) GSM3_V tp_udh_inc > ; TP User Data with Header included
816 }
817
818
819
820 MSG tp_status downlink SMS_VT_STATUS ; TP SMS-STATUS-REPORT
821 {
822 GSM3_V tp_vt_mti ; Virtual Message Type
823 .0 ; spare
824 tp_udhi ; TP User Data Header Indicator
825 tp_srq ; TP Status Report Qualifier
826 .00 ; spare
827 tp_mms ; TP More Message To Send
828 tp_mti ; TP Message Type Indicator
829 tp_mr ; TP Message Reference
830 GSM3_V tp_ra ; TP Recipient Address
831 GSM3_V tp_scts ; TP Service Centre Time Stamp
832 GSM3_V tp_dt ; TP Discharge Time
833 tp_st ; TP Status
834 + .0000 ; spare
835 tp_udl_p ; TP User Data present
836 tp_dcs_p ; TP Data Coding Scheme present
837 - tp_pid_p ; TP Protocol Identifier present
838 * tp_rsrvd ; Extension Octet
839 < (tp_pid_p = SMS_PID_INCLUDED) tp_pid > ; TP Protocol Identifier
840 < (tp_dcs_p = SMS_DCS_INCLUDED) tp_dcs > ; TP Data Coding Scheme
841 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM3_V tp_ud > ; TP User Data
842 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_INCLUDED) GSM3_V tp_udh_inc > ; TP User Data with Header included
843 }
844
845
846
847 MSG tp_command uplink SMS_VT_COMMAND ; TP SMS-COMMAND
848 {
849 GSM3_V tp_vt_mti ; Virtual Message Type
850 .0 ; spare
851 tp_udhi ; TP User Data Header Indicator
852 tp_srr ; TP Status Report Request
853 .000 ; spare
854 tp_mti ; TP Message Type Indicator
855 tp_mr ; TP Message Reference
856 tp_pid ; TP Protocol Identifier
857 tp_ct ; TP Command Type
858 tp_mn ; TP Message Number
859 GSM3_V tp_da ; TP Destination Address
860 < (tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM4_LV tp_cd > ; TP Command Data
861 < (tp_udhi = SMS_UDHI_INCLUDED) GSM4_LV tp_cdh_inc > ; TP Command Data with Header included
862 }
863
864
865
866 MSG sim_pdu both SMS_VT_SIM_PDU ; SMS SIM-PDU
867 {
868 GSM3_V tp_vt_mti ; Virtual Message Type
869 GSM4_LV rp_addr ; RP Service Center Address
870 tp_mti (GETPOS,:,6,+,SETPOS) ; TP Message Type Indicator
871 GSM5_V tpdu (SETPOS) ; TP Data Unit
872 }
873
874
875
876
877
878