Brief text message format in SIM card

Source: Internet
Author: User

// Select

A0 A4 00 00 02 3f 00

9f 17

// A0 A4 00 00 02 is the command header, while "LDL = A0" indicates the GSM application, "ins = A4" indicates the SELECT statement, and "P1 P2 = 00 00" indicates the parameter, p3 = 02 indicates the length of the data (or the length of the returned data) (2)

// Select a file. The value 3f 00 indicates MF.

// 9f 17 is the return status, indicating --- success. There are 23 bytes of information waiting for Get Response

 

// Select

A0 A4 00 00 02 7f 10

9f 17

// A0 A4 00 00 02 is the command header, while "LDL = A0" indicates the GSM application, "ins = A4" indicates the SELECT statement, and "P1 P2 = 00 00" indicates the parameter, p3 = 02 indicates the length of the data (or the length of the returned data) (2)

// Select a file. If the selected file is 7f 10, it indicates Telecom.

// 9f 17 is the return status, indicating --- success. There are 23 bytes of information waiting for Get Response

 

// Select

A0 A4 00 00 02 6f 3C

9f 0f

// A0 A4 00 00 02 is the command header, while "LDL = A0" indicates the GSM application, "ins = A4" indicates the SELECT statement, and "P1 P2 = 00 00" indicates the parameter, p3 = 02 indicates the length of the data (or the length of the returned data) (2)

// Select file, the selected file is 6f 3C represents SMS [CDMA-SMS]

// 9f 0f is the return status, indicating --- success. There are 15 bytes of information waiting for Get Response

 

// Get Response

A0 C0 00 00 0f

00 00 22 60 6f 3C 04 00 FF 44 01 02 01 B0

90 00

// A0 C0 00 00 0f is the command header, while, p3 = 0f indicates the length of the data (or the length of the returned data) (15)

// See the returned data, where

// -- 00 00 Reserved

// -- The space occupied by 22 60, indicating 8800 bytes

// -- 6f 3C ID of the selected file

// -- 04 type of the selected file, 01-mf, 02-df, 04-ef

// -- 00 see 11.11 9.2.1 detail 3

// -- 00 FF 44 access permission

// -- 01 File status, see 11.11 9.3

// -- The length of the data after 02, indicating 2

// ---- 01 file structure, see 11.11 9.3

// ---- B0 record length. For details, see 11.11 9.2.1 detail 4

// 90 00 is the return status, indicating --- success

 

// Read record

A0 B2 01 04 B0

03 08 91 68 31 08 10 00 05 F0 04 05 81 21 43 F5 00 08 80 40 02 81 10 90 80 18 4E 2D 65 87 77 ed 4f E1 FF 0C 00 63 00 68 00 69 00 6e 00 65 00 73 00 65 FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00

90 00

// A0 B2 01 04 B0 is the command header, while .. a0 = A0 indicates the GSM application. INS = b2 indicates read record, and P1 P2 = 01 04 indicates the parameter, p3 = b0 indicates the length of the data (or the length of the returned data) (176)

// Read record. P2 = 04 indicates the absolute record number. p1 = 01 indicates the record number. P3 = b0 indicates the length of the subsequent data is 1st.

// -- Received text message, unread

// ---- 08 91 68 31 08 10 00 05 f0 is the SMS center number, indicating that the number is + 8613800100500

// -------------------- TON-NPI ------------ start

// ---- 91 TON-NPI (1 0 0 1 0 0 1), said

// ------ Bit7 is 1

// ------ Bit6, bit5, bit4 is ton (type-of-number), the value is 0 0 1, indicating the international number

// ------ The bit3-bit0 is NPI (numbering-plan-identification), NPI has a value only when ton is 000,001,010, the other should be 0000, the value is 0 0 0 1, indicating ISDN/telephone numbering plan

// -------------------- TON-NPI ------------ the end

// ---- 03 is the SMS-DELIEVE type, (0 0 0 0 0 1 1), said

// -------------------- SMS-DELIVER-TYPE ------------ start

// ------ Bit1, bit0 is the TP-MTI, the value is 0 0, indicating the SMS-DELIVER type (SC to MS ction ).

// ------ Bit2 is a TP-MMS and a value of 1 indicates more messages are waiting for the MS in the SC

// ------ Bit4, bit3 is not clear, the value is 0 0

// ------ Bit5 is the TP-SRI, 0 indicates a status report will be returned to the SME.

// ------ Bit6 is the TP-UDHI, 0 indicates the TP-UD field contains only the short message.

// ------ Bit7 is the TP-RP, 0 indicates ts-reply-path parameter is not set in this deliver.

// -------------------- SMS-DELIVER-TYPE ------------ the end

// ---- 05 81 21 43 F5 is TP-OA, indicating 12345

// -------------------- TON-NPI ------------ start

// ---- 81 TON-NPI (1 0 0 0 0 0 1), said

// ------ Bit7 is 1

// ------ Bit6, bit5, bit4 is ton (type-of-number), the value is 0 0 0, indicating unknown

// ------ The bit3-bit0 is NPI (numbering-plan-identification), NPI has a value only when ton is 000,001,010, the other should be 0000, the value is 0 0 0 1, indicating ISDN/telephone numbering plan

// -------------------- TON-NPI ------------ the end

// ---- 00 TP-PID

// -------------------- TP-PID ------------ start

// ------ Bit7, bit6 is 0 0

// ------ Bit5-bi50 is 0 0 0 0 0 0 represents Short Message Type 0

// -------------------- TP-PID ------------ the end

// ---- 08 is a TP-DCS (00 indicates compression English, 04 indicates uncompressed text, 08 indicates ucs2 ),

// ---- 80 40 02 81 10 90 80 is TP-SCTS, indicating 08-April 20 UTC time zone

// ---- 18 is a TP-UDL, indicating 10 hexadecimal (24 ),

// ---- 4E 2D 65 87 77 ed 4f E1 FF 0C 00 63 00 68 00 69 00 6e 00 65 00 73 00 65 indicates "Chinese text message, Chinese"

// 90 00 is the return status, indicating --- success

 

// Read record

A0 B2 02 04 B0

03 08 91 68 31 08 10 00 05 F0 04 08 91 68 01 21 43 00 80 40 02 81 10 93 80 07 65 F7 99 9d 9e A3 01 FF FF FF FF FF 00 00 00 00 00 00 00 00 00 00

90 00

// A0 B2 02 04 B0 is the command header, while .. a0 = A0 indicates the GSM application. INS = b2 indicates read record, and P1 P2 = 02 04 indicates the parameter, p3 = b0 indicates the length of the data (or the length of the returned data) (176)

// Read the record. P2 = 04 indicates the absolute record number. p1 = 02 indicates the record number. P3 = b0 indicates the length of the subsequent data is 2nd.

// -- Received text message, unread

// ---- 08 91 68 31 08 10 00 05 f0 is the SMS center number, indicating that the number is + 8613800100500

// -------------------- TON-NPI ------------ start

// ---- 91 TON-NPI (1 0 0 1 0 0 1), said

// ------ Bit7 is 1

// ------ Bit6, bit5, bit4 is ton (type-of-number), the value is 0 0 1, indicating the international number

// ------ The bit3-bit0 is NPI (numbering-plan-identification), NPI has a value only when ton is 000,001,010, the other should be 0000, the value is 0 0 0 1, indicating ISDN/telephone numbering plan

// -------------------- TON-NPI ------------ the end

// ---- 03 is the SMS-DELIEVE type, (0 0 0 0 0 1 1), said

// -------------------- SMS-DELIVER-TYPE ------------ start

// ------ Bit1, bit0 is the TP-MTI, the value is 0 0, indicating the SMS-DELIVER type (SC to MS ction ).

// ------ Bit2 is a TP-MMS and a value of 1 indicates more messages are waiting for the MS in the SC

// ------ Bit4, bit3 is not clear, the value is 0 0

// ------ Bit5 is the TP-SRI, 0 indicates a status report will be returned to the SME.

// ------ Bit6 is the TP-UDHI, 0 indicates the TP-UD field contains only the short message.

// ------ Bit7 is the TP-RP, 0 indicates ts-reply-path parameter is not set in this deliver.

// -------------------- SMS-DELIVER-TYPE ------------ the end

// ---- 08 91 68 01 21 43 is TP-OA, indicating + 86101234

// -------------------- TON-NPI ------------ start

// ---- 91 TON-NPI (1 0 0 1 0 0 1), said

// ------ Bit7 is 1

// ------ Bit6, bit5, bit4 is ton (type-of-number), the value is 0 0 1, indicating the international number

// ------ The bit3-bit0 is NPI (numbering-plan-identification), NPI has a value only when ton is 000,001,010, the other should be 0000, the value is 0 0 0 1, indicating ISDN/telephone numbering plan

// -------------------- TON-NPI ------------ the end

// ---- 00 TP-PID

// -------------------- TP-PID ------------ start

// ------ Bit7, bit6 is 0 0

// ------ Bit5-bi50 is 0 0 0 0 0 0 represents Short Message Type 0

// -------------------- TP-PID ------------ the end

// ---- 00 is a TP-DCS (00 indicates compression English, 04 indicates uncompressed text, 08 indicates ucs2 ),

// ---- 80 40 02 81 10 93 80 is TP-SCTS, indicating 08-April 20 08 Time Zone

// ---- 07 is the TP-UDL, indicating 10 hexadecimal (7 ),

// ---- 65 F7 99 9d 9e A3 01 indicates "English"

// 90 00 is the return status, indicating --- success

Brief text message format in SIM card

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.