Joke Collection Website - Blessing messages - How to send short messages by PUD?
How to send short messages by PUD?
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.
- Previous article:What gift does Double Eleven give your boyfriend?
- Next article:Can the mobile phone be recharged and heated to the air conditioner?
- Related articles
- Where can I see the lucky draw results of Adidas app?
- Sony LT26ii can't receive the short message of 10086.
- Nokia, which folder contains contacts and text messages?
- My soul was dusted, but I didn't get the message.
- How to cancel the function setting of voice verification code for safe and good car owners?
- What if Apple's SMS is hidden?
- Samsung s4 failed to download the software.
- Download wechat by SMS
- A friend sent a text message because his mobile phone was poisoned. I replied.
- When you were in love, what was the craziest thing you ever did?