Joke Collection Website - Blessing messages - How to send short messages by PUD?

How to send short messages by PUD?

first, set the short message format.

AT+CMGF=

second, send short messages.

for example, if you want to send a short message to the number "+8613693923" (the number is converted to 6831963293F), the content of the message is "Happy Holidays" (assuming it is changed to Unicode as "8282 65E55FEB4E5" and the length is 8).

the word "Happy Holidays" is changed into the Unicode code of Chinese characters:

Section: 8282: 65E5 Express: 5FEB Music: 4E5

Then the operation is as follows:

AT+CMGS=23

> 11D916831963293F818828265E55FEB4E5< ctrl+z>

+CMGS: < Number of messages sent >;

OK

The brief explanation is as follows:

First, set the short message format to PDU mode: AT+CMGF=

send AT+CMGS= YYY [CR]; Where YYY is the decimal length of TPDU

received [> ][SP] respond and then send

[TPDU][ctrl-Z]

[TPDU]: send protocol data unit:

type 11

Mr

dad916831963293f; 13693923

PID

DCS F4

VP 1

UDL XX ; XX is not more than 8C

DD; XX bytes of user data

the last byte in the user data is the bitwise cumulative sum of the previous XX-1 bytes.

the length of PDU protocol header before user data in p>TPDU is 15 bytes

the longest available user data is 14 bytes.

sending Chinese is a pdu format of 8 dcs=8

The following example is sent to 13693923

the word "Happy Holidays". Unicode code converted into Chinese characters:

section: 8282 day: 65E5 fast: 5FEB music: 4E5

decoded as

88282 65E55FEB4E5

8 length

at command

AT+CMGS=. 23 {* Explanation: 15 (protocol is 15)+8 (Happy holidays 8 bytes) =23}

Return

>

send

11d916831963293f818828265e55feb4e5 <; ctrl+z>

{* explanation: the first two are written as ; 11 is TYPE; is MR, D916831963293F is DA; is PID; 8 is DCS; 1 is VP; 8828265E55FEB4E5 is the content of UDL, that is, the Chinese information part }

Specifically, the display in these examples is actually a memory coding method, such as 1369 is 3196

31963293F; 13693923

One by one by Jiangsu Xunchen Technology Company.