Short message data instance details
The following is the original information of the mobile SIM card collection of financial POS query transaction short messages
0891683108200705F0040BA13108686050F300000030104261531420A080CA05000
0143D00A00CE24229165028140A054B00800000000000002000000000000000000
000000C882B65A3046CBD186B0A291681C22040A40802291E6E8263C33120491
E3C40C1A11024290000000060A3048A879BE0D8700C48A8470F27000800858AA701
58516628000010582C3EA8D0589100603B452D04000004001B050000000000C4D
8cc38941965
among them:
1-2 bytes: 08 represents the subsequent short message service center number occupies 8 bytes (BCD code)
3-4 bytes: 91 represents subsequent numbers to international numbers
3-18 bytes: 91683108200705F0 Composition of the number of short message centers is 8613800270500
19-20 bytes: 04 represents one or more short messages in SMS service center
21--22 bytes: 0B represents the subsequent sender number to 11 bytes (ASC code).
23-24 bytes: A1 represents the sender number as the domestic number.
25-36 bytes: 3108686050f3 represents the sender number 13808606053, Note: The length indicated by the 21-22 bytes in front does not include A1 and F, which is different from the length of 1-2 bytes.
37-38 bytes: 00, representative protocol number
39-40 bytes: 00, Data Coding Scheme (DCS), representing the data sent as seven-digit encoded Western letters
41-52 bytes: 301042615314, the time sent for the time of 2003, January 24, 16:35 14 seconds
53-54 bytes: 20, representing time zone information.
All of the above data is known to PDU packet head.
54-55 bytes: A0, representing 16 Enciprome User Data Length (UDL), which represents a length of 160 bytes represented (this is the maximum length). Special attention to this length is the length of the data before 7-bit encoding, ie, the last data length after 7-bit encoding is UDL-UDL / 8.
56 bytes and later: It is 7-digit encoded user data, the length of its length is (UDL-UDL / 8) * 2, here is (160-160 / 8) * 2 = 280, pay attention to multiplication 2 is because the user data here is expanded through the ASC code.