Typically, the terminals that send and receive text messages are connected to the computer via a serial interface, which is used more often GSM Modem and mobile phone. This type of device typically supports PDU mode, but there are still a few devices that support only Text mode.
when the device hardware is connected, you can send it later. The at command tests whether the device is connected properly and communicates properly. Here I use the "HyperTerminal" tool that comes with Windows to communicate. This tool can be found in the program--attachment--communication, if not, verify that the component is installed. OrYou can quickly launch HyperTerminal by typing "HYPERTRM" inside the run.
all of the following examples are Siemens M55 Mobile phone as a terminal, it may be different from your device return. See the device-related at instruction set for specific parameters . This mobile at instruction set is available for download on my home page.
Preparatory work:
1, test the connection: "AT8 " Test terminal is connected correctly. Returns "OK" after success.
2. Set Echo: (This step is convenient for testing)ATE18
3. Check and set character sets:
At+cscs=?8
+cscs: ("GSM", "UCS2")
indicates that the terminal supports GSM and UCS2 two kinds of character sets. General for Chinese environment set to UCS2
At+cscs= "UCS2" 8
4. Get SMS Center number:
At+csca? 8
+csca: "+8613800280500", 145
5. Query and set the SMS format:
Enquiry: At+cmgf= 8
return:+CMGF: (0)
0 represents the PDU mode. Your device may have additional options, please refer to the device's at instruction set.
Settings: at+cmgf=08
6, query and set SMS storage location:
Enquiry: At+cpms=?8
return:+cpms: ("Mt", "SM", "Me"), ("Mt", "SM", "Me"), ("Mt", "SM", "Me")
which The MT represents all available storage locations for the device. SM represents the SIM card, andME represents the fuselage.
The general settings are: at+cpms= "MT", "Mt", "MT" 8
Transfer from bbs.sendsms.cn
Send and receive SMS via RS232 (i)