Joke Collection Website - Public benefit messages - How to send Chinese short messages (PDU format) through GSM module

How to send Chinese short messages (PDU format) through GSM module

PDU mode not only supports Chinese short messages, but also can send English short messages. PDU mode can use three codes to send and receive short messages: 7-bit, 8-bit and UCS2 code. 7-bit encoding is used to send ordinary ASCII characters, 8-bit encoding is usually used to send data messages, and UCS2 encoding is used to send Unicode characters. Universal PDU coding consists of thirteen items: A B C D E F G H I J K L M:

A: Short message center address length, 2 digits in hexadecimal (1 byte).

B: SMS center number type, 2-digit hexadecimal number.

C: The number of the SMS center. The length of B+C will be determined by the data in A. ..

D: file header byte, 2-digit hexadecimal number.

E: information type, two hexadecimal digits.

F: Length of the called number, 2 digits in hexadecimal.

G: called number type, 2-digit hexadecimal number, with the same value as B.