Common SMS directive list

xiaoxiao2021-03-06  40

command

send

Introduction

CSCA

Set SMS Service Center Number

IPR

Set the interface rate of Modem, 0 is the automatic rate

CNMI

AT CNMI = 2, 2

Set the output of SMS

Cmgf

AT CMGF = 1

Set SMS coding mode (1 text format, 0 is PDU format)

Cmgs

AT cmgf = 1 ok

AT cmgs = 13501154105> AAA <^ z>

Cmgs: 204

OK

Send SMS instructions, an example is a text manner in text. If the Chinese must use a PDU mode, please see

CSAS

Set information storage instruction

AT & W

Set information storage instruction

Send Chinese short message format:

First send AT cmgs = yyy [cr]; where YYY is TPDU's decimal length

Received [>] [sp] response

[TPDU] [CTRL-Z]

[TPDU]: Send a statute data unit:

Type 11

MR 00

DA 0D91683105114501F5; "13501154105"

PID 00

DCS F4

VP 01

UDL XX; XX is not more than 8C

DD; user data for XX bytes

The last byte in the user data is a bit byte of the previous XX-1 byte.

The length of the PDU status head before the user data in the TPDU is 15 bytes.

The length of the service center address [SCA] before the TPDU is 9 bytes.

The following example is sent to 13501154105 (coded by PDU format 16)

The message is Hello

Decode

044F60597D

04 length

Data 4F60597D Chinese word internal code

AT command

AT cmgs = 019

return

>

send

0011000d91683105114501f5000801044f60597d sender ^ z

00

No specified SMS center number, press CSCA number 1100

fixed format

TP-DA: TP-DESTINATION-Address

0D Address-Length

Target number length (13 digits)

91 TYPE-OF-Address

Target Number Type (International)

683105114501F5 Address-value

Target Number (8613501154105)

00 TP-PID: TP-PID: TP-Protocol-Identifier Fixed Format 08 TP-DCS: TP-DATA-CODING-Scheme 08 is 16 bits, up to 70 Chinese characters; 04 is 8 bits, up to 140 characters; 00 is 7 bits Up to 160 characters 01 TP-VP: TP-VALIDY-Period Validity period, default 167 (24 hours) 04

TP-UDL: TP-User-Data-LENGTH

User Data Length (4 characters)

4F60597D

TP-UD: TP-User-Data

User data "Hello"

Receive Chinese short message format:

[SCA]: Service Center Address, Beijing: 0891683108100005F0; 13800100500

The following is example

CMT:, 24

0891683108100005F0040D91683105114501F50008107020597D08 SMSC-LENGTH

SMS center number length

91 TYPE-OF-SMSC

SMS Center Number Type (International)

68 31 08 10 00 05 F0 SMSC-VALUE

SMS center number (8613800100500)

04 FIRST-OCTET Fixed Format 0D

Address-Length Source Number Length (13) 91

TYPE-OF-Address Source Number (International) 68 31 05 11 45 01 F5 Address-Value Source Near (8613501154105) 00 TP-PID: TP-Protocol-Identifier Fixed Format 08 TP-DCS: TP-DATA-CODING- Scheme 08 is 16 bits, up to 70 Chinese characters; 04 is 8 bits, up to 140 characters; 00 is 7 bits, up to 160 characters 10702051146423

TP-SCTS: Non-monthly day and time difference 04

TP-UDL: TP-User-Data-LENGTH

User Data Length (4 characters)

4F60597D

TP-UD: TP-User-Data

User data "Hello"

The following is three examples of using the PDU format 7 bits encoding English characters SMS

l Send AB1 three characters

CMT:, 23

0891683108100005F0

040d91

683105114501F2

0000

10700261354023

03

41610C

l Send AB two characters

CMT:, 22

0891683108100005F0

040d91

683108315771F1

0000

10700271505523

02

4121

l Send Abcdefgh eight characters

CMT:, 27

0891683108100005F0

040d91

683105114501F2

0000

10700271822223

08

41E19058341E91

转载请注明原文地址:https://www.9cbs.com/read-62926.html

New Post(0)