Huawei MC509 Network Router User Manual


 
HUAWEI MC509 CDMA LGA Module
AT Command Interface Specification
SMS Interface Commands
Issue 01 (2011-08-26)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
95
<format>: Specifies the encoding format of a short message. The values are as
follows:
0: GSM 7 bit (not supported at present)
1: ASCII encoding (when the encoding range is not greater than 7F)
2: IA5 (not supported at present)
3: octet (not supported at present)
4: Latin (not supported at present)
5: Latin_Hebrew (not supported at present)
6: UNICODE encoding (when the encoding range is greater than 7F)
<Prv>: Specifies the confidentiality level. The values are as follows:
0: normal (default value after startup)
1: restricted
2: confidential
3: secret
8.9 ^HCMGSCommand for Sending a Short Message
8.9.1 Syntax
Command
Possible Response(s)
If PDU mode (+CMGF=0):
^HCMGS=<length><CR><Lay
er3 packet><ctrl-z/ESC>
If text mode (+CMGF=1):
^HCMGS=<da>[,<toda>]<CR>
text is entered<ctrl-z/ESC>
If PDU mode (+CMGF=0):
<CR><LF>^HCMGS: <mr><CR><LF>
<CR><LF>OK<CR><LF>
If TEXT mode (+CMGF=1):
<CR><LF>^HCMGSS: <mr><CR><LF>
<CR><LF>OK<CR><LF>
In case of an SMS-related error:
<CR><LF>+CMS ERROR:<err><CR><LF>
^HCMGS=?
<CR><LF>OK<CR><LF>
8.9.2 Interface Description
This command sends a short message to the network. The short message is sent in
two steps:
PDU mode:
Firstly, ^HCMGS=<length> end with (CR),