Send and receive SMS via RS232 (i)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.