comparison cdg3/sap/mnsms.pdf @ 16:c15047b3d00d

cdg3: import from freecalypso-citrine/cdg
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 27 Sep 2016 16:27:34 +0000
parents
children
comparison
equal deleted inserted replaced
15:c8bdae60fcb1 16:c15047b3d00d
1 ;********************************************************************************
2 ;*** File : mnsms.pdf
3 ;*** Creation : Wed Mar 11 09:58:26 CST 2009
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 : Service Access Point Specification
8 ;*** Document Name : mnsms
9 ;*** Document No. : 6147.103.96.107
10 ;*** Document Date : 2002-04-19
11 ;*** Document Status: BEING_PROCESSED
12 ;*** Document Author: SBK
13 ;********************************************************************************
14
15
16
17 PRAGMA SRC_FILE_TIME "Thu Nov 29 09:48:28 2007"
18 PRAGMA LAST_MODIFIED "2002-04-19"
19 PRAGMA ID_AND_VERSION "6147.103.96.107"
20
21
22
23 CONST SMS_MSG_LEN 140 ; Length of message text counted as octets
24 CONST SMS_CMD_LEN 157 ; Length of command data (number of octets)
25 CONST SIM_PDU_LEN 175 ; Length of SMS data stored in nonvolatile memory (SIM/ME)
26 EXTERN CONST @p_gsmcom - SMSCP_ORIGINATING_ENTITY@ SMSCP_ORIGINATING_ENTITY ; mask for indicating the originating entity of a cause is SMS-CP
27 EXTERN CONST @p_gsmcom - SMSRP_ORIGINATING_ENTITY@ SMSRP_ORIGINATING_ENTITY ; mask for indicating the originating entity of a cause is SMS-RP
28 EXTERN CONST @p_gsmcom - SMSTP_ORIGINATING_ENTITY@ SMSTP_ORIGINATING_ENTITY ; mask for indicating the originating entity of a cause is SMS-CP
29
30
31
32 VALTAB VAL_mem_type
33 VAL 1 MEM_ME "mobile equipment memory 1"
34 VAL 3 MEM_SM "subscriber identity module memory"
35 VAL 5 MEM_SR "status report memory"
36
37 VALTAB VAL_cause
38 VAL 0b1000100111111111 SMS_NO_ERROR "No error"
39 VAL 0b1100100100000000 SMS_CAUSE_PARAM_WRONG "Wrong parameter in primitive"
40 VAL 0b1100100100000001 SMS_CAUSE_ENTITY_BUSY "Entity is busy"
41 VAL 0b1100100100000010 SMS_CAUSE_OPER_NOT_ALLW "Operation not allowed"
42 VAL 0b1100100100000011 SMS_CAUSE_OPER_NOT_SUPP "Operation not supported"
43 VAL 0b1100100100000100 SMS_CAUSE_SIM_BUSY "SIM busy"
44 VAL 0b1100100100000101 SMS_CAUSE_MEM_FAIL "Memory failure"
45 VAL 0b1100100100000110 SMS_CAUSE_INV_INDEX "Invalid memory index"
46 VAL 0b1100100100001000 SMS_CAUSE_MEM_FULL "Memory full"
47 VAL 0b1100100100001001 SMS_CAUSE_NO_SERVICE "No network service"
48 VAL 0b1100100100001010 SMS_CAUSE_NET_TIMEOUT "Network timeout"
49 VAL 0b1100100100001011 SMS_CAUSE_UNEXP_CNMA "No +CNMA acknowledgement expected"
50 VAL 0b1100100100001111 SMS_CAUSE_OTHER_ERROR "Any other error"
51 VAL 0b1100100100001100 SMS_CAUSE_MEM_AVAIL "Memory available after full"
52 VAL 0b1100100100001110 SMS_CAUSE_FAILED_MSG_NOT_FOUND %REL99% "Failed Message not found during Transmission"
53
54 VALTAB VAL_state
55 VAL 0x3 - 0xFE "reserved, to be treated as SMS inoperable"
56 VAL 0 SMS_STATE_READY "SMS is full operable"
57 VAL 1 SMS_STATE_INITIALISING "SMS is in initialisation state"
58 VAL 2 SMS_STATE_BUSY "SMS is in a busy condition"
59 VAL 0xFF SMS_STATE_NOT_AVAILABLE "SMS is inoperable"
60
61 VALTAB VAL_condx
62 VAL 3 - 255 "reserved, interpret as 'overwrite any'"
63 VAL 0 SMS_CONDX_OVR_NON "do not overwrite an existing message"
64 VAL 1 SMS_CONDX_OVR_MO "overwrite only an exisiting mobile originated message"
65 VAL 2 SMS_CONDX_OVR_ANY "overwrite any existing message"
66
67 VALTAB VAL_modify
68 VAL 5 - 255 "reserved, interpret as 'complete substitution'"
69 VAL 0 SMS_MODIFY_NON "no modification"
70 VAL 1 SMS_MODIFY_TPOA "substitution of TP-OA"
71 VAL 2 SMS_MODIFY_SCA "substitution of SCA"
72 VAL 3 SMS_MODIFY_TPOA_SCA "substitution of TP-OA and SCA"
73 VAL 4 SMS_MODIFY_ALL "substitution of the complete message"
74
75 VALTAB VAL_rec_num
76 VAL 0x0 SMS_RECORD_NOT_EXIST "record is not existing"
77
78 VALTAB VAL_status
79 VAL 0x0 SMS_RECORD_FREE "Free record"
80 VAL 0x3 SMS_RECORD_REC_UNREAD "MT record, not read"
81 VAL 0x1 SMS_RECORD_REC_READ "MT record, already read"
82 VAL 0x7 SMS_RECORD_STO_UNSENT "MO record, not sent"
83 VAL 0x5 SMS_RECORD_STO_SENT "MO record, already sent, status report not requested"
84 VAL 0x0D SMS_RECORD_STAT_UNRCVD "MO record, already sent, status report requested, not received"
85 VAL 0x15 SMS_RECORD_STAT_UNSTRD "MO record, already sent, status report received, not stored"
86 VAL 0x1D SMS_RECORD_STAT_STRD "MO record, already sent, status report received and stored"
87 VAL 0xE0 SMS_RECORD_INVALID "The record keeps unrecognizable data"
88
89 VALTAB VAL_mt
90 VAL 0 MT0 "Mobile Terminated Mode 0"
91 VAL 1 MT1 "Mobile Terminated Mode 1"
92 VAL 2 MT2 "Mobile Terminated Mode 2"
93 VAL 3 MT3 "Mobile Terminated Mode 3"
94 VAL 4 MT_DEF "Mobile Terminated Mode Default"
95
96 VALTAB VAL_ds
97 VAL 0 DS0 "Status Report Mode 0: no status report to be returned"
98 VAL 1 DS1 "Status Report Mode 1: status report returned to MMI"
99 VAL 2 DS2 "Status Report Mode 2: status report stored, if possible"
100
101 VALTAB VAL_mhc
102 VAL 0 SMS_MHC_DEF "default (Phase 2)"
103 VAL 2 SMS_MHC_PH2 "Phase 2"
104 VAL 3 SMS_MHC_PH2PLUS "Phase 2+"
105
106 VALTAB VAL_read_mode
107 VAL 0 READ_NORMAL "Normal reading"
108 VAL 1 READ_PREVIEW "Reading without preview"
109 VAL 2 READ_STATUS_CHANGE "Change only status"
110
111 VALTAB VAL_resp
112 VAL 0 SMS_RP_ACK "send RP-ACK to network"
113 VAL 1 SMS_RP_ERROR "send RP-ERROR to network"
114
115 VALTAB VAL_mo_sms_serv
116 VAL 0 GPRS_SMS_GPRS_ONLY "Use GPRS only for MO SMS"
117 VAL 1 GPRS_SMS_CCT_ONLY "Use CCT only for MO SMS"
118 VAL 2 GPRS_SMS_GPRS_PREF "Use GPRS in preference for MO SMS"
119 VAL 3 GPRS_SMS_CCT_PREF "Use CCT in preference for MO SMS"
120
121 VALTAB VAL_query
122 VAL 1 SMS_QUERY_DELIVER_STATUS "Query Request is for delivery status (pause or resume)"
123
124 VALTAB VAL_deliver_status
125 VAL 0x10 SMS_DELIVER_STATUS_PAUSE "SMS delivery paused by user"
126 VAL 0x11 SMS_DELIVER_STATUS_RESUME "SMS delivery to user allowed"
127
128 VALTAB VAL_cmms_mode
129 VAL 0 CMMS_MODE_DEF "Default value of 0 for +CMMS mode. The mode switches to 0 when timer expires if the mode set was 1. "
130 VAL 1 CMMS_MODE_ONE "Mode value of one for +CMMS mode. For this mode set, when the timer expires, mode is switched back to 0."
131 VAL 2 CMMS_MODE_TWO "Mode value of two for +CMMS mode. For this mode set, even after the timer expiry mode is not switched to 0"
132
133 VALTAB VAL_delete_status
134 VAL 0 CMGD_DEL_INDEX "Delete the messages specified by the index."
135 VAL 1 CMGD_DEL_READ "Ignore the index and delete all the read messages."
136 VAL 2 CMGD_DEL_READ_SENT "Ignore the index and delete all the read and sent messages."
137 VAL 3 CMGD_DEL_READ_SENT_UNSENT "Ignore the index and delete all the read, send and unsent messages."
138 VAL 4 CMGD_DEL_ALL "Ignore the index and delete all the messages whatever the status it is."
139
140 VALTAB VAL_auto_rep_flag %REL99%
141 VAL 0 AUTO_REP_FLAG_DISABLED %REL99% "Do not attempt retransmission"
142 VAL 1 AUTO_REP_FLAG_ENABLED %REL99% "Attempt retransmission "
143
144
145
146
147 VAR mem_type "memory type" B
148
149 VAL @p_mnsms - VAL_mem_type@
150
151 VAR pref_mem_3 "memory type" B
152
153
154 VAR cause "error code" S
155
156 VAL @p_mnsms - VAL_cause@
157
158 VAR state "State of the SMS Entity" B
159
160 VAL @p_mnsms - VAL_state@
161
162 VAR condx "write condition" B
163
164 VAL @p_mnsms - VAL_condx@
165
166 VAR tp_mr "TP message reference" B
167
168
169 VAR modify "Modifier" B
170
171 VAL @p_mnsms - VAL_modify@
172
173 VAR rec_num "record number" B
174
175 VAL @p_mnsms - VAL_rec_num@
176
177 VAR rec_next "number of a following record with a valid message, if existent" B
178
179 VAL @p_mnsms - VAL_rec_num@
180
181 VAR rec_max "maximum number of records (1..255) in EF(SMS) or other memory" B
182
183 VAL @p_mnsms - VAL_rec_num@
184
185 VAR rec_status "number of a record in EF(SMSR) related to the given stored message" B
186
187 VAL @p_mnsms - VAL_rec_num@
188
189 VAR status "message status" B
190
191 VAL @p_mnsms - VAL_status@
192
193 VAR mt "mobile terminated message handling" B
194
195 VAL @p_mnsms - VAL_mt@
196
197 VAR ds "status report message handling" B
198
199 VAL @p_mnsms - VAL_ds@
200
201 VAR mhc "status report message handling" B
202
203 VAL @p_mnsms - VAL_mhc@
204
205 VAR read_mode "Read Mode" B
206
207 VAL @p_mnsms - VAL_read_mode@
208
209 VAR resp "type of response" B
210
211 VAL @p_mnsms - VAL_resp@
212
213 VAR mo_sms_serv "MO SMS Service" B
214
215 VAL @p_mnsms - VAL_mo_sms_serv@
216
217 VAR l_buf "command length" S
218
219
220 VAR o_buf "command offset" S
221
222
223 VAR buf "command data" B
224
225
226 VAR query_type "specifies to which status the query request refers to" B
227
228 VAL @p_mnsms - VAL_query@
229
230 VAR deliver_status "sms delivery status - pause or resume" B
231
232 VAL @p_mnsms - VAL_deliver_status@
233
234 VAR cmms_mode "Specifies the mode for +CMMS" B
235
236 VAL @p_mnsms - VAL_cmms_mode@
237
238 VAR tmms_val "Timer value for +CMMS command" S
239
240
241 VAR delete_status "Delete flag" B
242
243 VAL @p_mnsms - VAL_delete_status@
244
245 VAR delete_rec_next "Next Record to be deleted." B
246
247
248 VAR data "IMEI and category status of the mobile to be extracted from TP user data" B
249
250
251 VAR len "length of the OTA response" B
252
253
254 VAR packedlen "length of the OTA response" B
255
256
257 VAR auto_rep_flag %REL99% "Added auto_rep_flag variable" B
258
259
260 VAR resend_count %REL99% "To resend the count to MMI during retransmission" B
261
262
263 VAR max_retrans %REL99% "Maximum number of retransmission allowed which is communicated to MMI" B
264
265
266
267
268
269 COMP sms_sdu "SIM-PDU"
270 {
271 l_buf ; command length
272 o_buf ; command offset
273 buf [SIM_PDU_LEN] ; command data
274 }
275
276
277
278
279
280
281 ; MNSMS_MESSAGE_IND 0x8008400D
282 ; MNSMS_REPORT_IND 0x8006400D
283 ; MNSMS_STATUS_IND 0x8007400D
284 ; MNSMS_DELETE_REQ 0x8000000D
285 ; MNSMS_DELETE_CNF 0x8000400D
286 ; MNSMS_READ_REQ 0x8001000D
287 ; MNSMS_READ_CNF 0x8001400D
288 ; MNSMS_STORE_REQ 0x8002000D
289 ; MNSMS_STORE_CNF 0x8002400D
290 ; MNSMS_SUBMIT_REQ 0x8003000D
291 ; MNSMS_SUBMIT_CNF 0x8003400D
292 ; MNSMS_COMMAND_REQ 0x8004000D
293 ; MNSMS_COMMAND_CNF 0x8004400D
294 ; MNSMS_ACK_RES 0x8008000D
295 ; MNSMS_CONFIGURE_REQ 0x8005000D
296 ; MNSMS_ERROR_IND 0x8009400D
297 ; MNSMS_MO_SERV_REQ 0x800C000D
298 ; MNSMS_MO_SERV_CNF 0x800C400D
299 ; MNSMS_PAUSE_REQ 0x8006000D
300 ; MNSMS_RESUME_REQ 0x8007000D
301 ; MNSMS_RESUME_CNF 0x800A400D
302 ; MNSMS_QUERY_REQ 0x800B000D
303 ; MNSMS_QUERY_CNF 0x800B400D
304 ; MNSMS_OTA_MESSAGE_IND 0x800D400D
305 ; MNSMS_OTA_MESSAGE_RES 0x800D000D
306 ; MNSMS_RETRANS_REQ 0x8009000D
307 ; MNSMS_RETRANS_CNF 0x8005400D
308 ; MNSMS_SEND_PROG_IND 0x800E400D
309
310
311
312 PRIM MNSMS_MESSAGE_IND 0x8008400D
313 {
314 mem_type ; memory type
315 rec_num ; record number
316 rec_max ; maximum number of records
317 status ; sms status
318 sms_sdu ; SIM-PDU
319 }
320
321
322
323
324
325
326 PRIM MNSMS_REPORT_IND 0x8006400D
327 {
328 state ; SMS state
329 < () cmms_mode > ; Mode value for +CMMS command
330 }
331
332
333
334
335
336
337 PRIM MNSMS_STATUS_IND 0x8007400D
338 {
339 sms_sdu ; SIM-PDU
340 }
341
342
343
344
345
346
347 PRIM MNSMS_DELETE_REQ 0x8000000D
348 {
349 mem_type ; memory type
350 rec_num ; record number
351 delete_status ; Delete flag
352 }
353
354
355
356
357
358
359 PRIM MNSMS_DELETE_CNF 0x8000400D
360 {
361 mem_type ; memory type
362 rec_num ; record number
363 cause ; Error code
364 delete_rec_next ; Next Record
365 }
366
367
368
369
370
371
372 PRIM MNSMS_READ_REQ 0x8001000D
373 {
374 mem_type ; memory type
375 rec_num ; record number
376 read_mode ; read mode
377 status ; message status
378 }
379
380
381
382
383
384
385 PRIM MNSMS_READ_CNF 0x8001400D
386 {
387 mem_type ; memory type
388 rec_num ; record number
389 rec_next ; number of next record
390 rec_max ; maximum number of records
391 cause ; Error code
392 rec_status ; status record
393 status ; message status
394 sms_sdu ; SIM-PDU
395 }
396
397
398
399
400
401
402 PRIM MNSMS_STORE_REQ 0x8002000D
403 {
404 mem_type ; memory type
405 rec_num ; record number
406 condx ; write condition
407 status ; message status
408 sms_sdu ; SIM-PDU
409 }
410
411
412
413
414
415
416 PRIM MNSMS_STORE_CNF 0x8002400D
417 {
418 mem_type ; memory type
419 rec_num ; record number
420 cause ; Error code
421 }
422
423
424
425
426
427
428 PRIM MNSMS_SUBMIT_REQ 0x8003000D
429 {
430 mem_type ; memory type
431 rec_num ; record number
432 condx ; write condition
433 modify ; Modifier
434 auto_rep_flag %REL99% ; Automatic repeat
435 sms_sdu ; SIM-PDU
436 }
437
438
439
440
441
442
443 PRIM MNSMS_SUBMIT_CNF 0x8003400D
444 {
445 mem_type ; memory type
446 rec_num ; record number
447 cause ; Error code
448 tp_mr ; TP Message Reference
449 sms_sdu ; SIM-PDU
450 }
451
452
453
454
455
456
457 PRIM MNSMS_COMMAND_REQ 0x8004000D
458 {
459 auto_rep_flag %REL99% ; Automatic repeat
460 sms_sdu ; SIM-PDU
461 }
462
463
464
465
466
467
468 PRIM MNSMS_COMMAND_CNF 0x8004400D
469 {
470 cause ; Error code
471 tp_mr ; TP Message Reference
472 sms_sdu ; SIM-PDU
473 }
474
475
476
477
478
479
480 PRIM MNSMS_ACK_RES 0x8008000D
481 {
482 resp ; type of response
483 sms_sdu ; SIM-PDU
484 }
485
486
487
488
489
490
491 PRIM MNSMS_CONFIGURE_REQ 0x8005000D
492 {
493 pref_mem_3 ; preferred memory 3
494 mt ; mobile terminated message handling
495 ds ; status report handling
496 mhc ; message handling compatibility
497 < () cmms_mode > ; mode value of +CMMS command
498 < () tmms_val > ; timer Value for +CMMS comamnd
499 }
500
501
502
503
504
505
506 PRIM MNSMS_ERROR_IND 0x8009400D
507 {
508 cause ; Error code
509 }
510
511
512
513
514
515
516 PRIM MNSMS_MO_SERV_REQ 0x800C000D
517 {
518 mo_sms_serv ; MO SMS Service
519 }
520
521
522
523
524
525
526 PRIM MNSMS_MO_SERV_CNF 0x800C400D
527 {
528 mo_sms_serv ; MO SMS Service
529 }
530
531
532
533
534
535
536 PRIM MNSMS_PAUSE_REQ 0x8006000D
537 {
538 }
539
540
541
542
543
544
545 PRIM MNSMS_RESUME_REQ 0x8007000D
546 {
547 }
548
549
550
551
552
553
554 PRIM MNSMS_RESUME_CNF 0x800A400D
555 {
556 cause ; Error Code
557 }
558
559
560
561
562
563
564 PRIM MNSMS_QUERY_REQ 0x800B000D
565 {
566 query_type ; Primitive Item
567 }
568
569
570
571
572
573
574 PRIM MNSMS_QUERY_CNF 0x800B400D
575 {
576 query_type ; Primitive Item
577 < () deliver_status > ; Primitive Item
578 }
579
580
581
582
583
584
585 PRIM MNSMS_OTA_MESSAGE_IND 0x800D400D
586 {
587 EXTERN @m_sms - tp_pid@ tp_pid ; Primitive Item
588 EXTERN @m_sms - tp_dcs@ tp_dcs ; Primitive Item
589 EXTERN @m_sms - tp_ud@ tp_ud ; Primitive Item
590 }
591
592
593
594
595
596
597 PRIM MNSMS_OTA_MESSAGE_RES 0x800D000D
598 {
599 EXTERN @m_sms - tp_pid@ tp_pid ; Primitive Item
600 EXTERN @m_sms - tp_dcs@ tp_dcs ; Primitive Item
601 len ; Primitive Item
602 packedlen ; Primitive Item
603 data [20] ; Primitive Item
604 }
605
606
607
608
609
610
611 PRIM MNSMS_RETRANS_REQ 0x8009000D %REL99%
612 {
613 auto_rep_flag %REL99% ; auto repeat flag
614 }
615
616
617
618
619
620
621 PRIM MNSMS_RETRANS_CNF 0x8005400D %REL99%
622 {
623 cause ; error cause
624 mem_type ; memory type
625 rec_num ; record number
626 tp_mr ; message reference
627 sms_sdu ; Primitive Item
628 }
629
630
631
632
633
634
635 PRIM MNSMS_SEND_PROG_IND 0x800E400D %REL99%
636 {
637 resend_count %REL99% ; Resend count to MMI
638 max_retrans %REL99% ; Max retrans allowed(=1)
639 }
640
641
642
643
644
645
646
647
648