Gsm-modem Debug Memo (ii)

Source: Internet
Author: User

7. After sending a short message, you receive an error message +CMS error 515
This error will occur if your GSM modem accepts new instructions during initialization or during instruction execution. You must wait until the initialization is complete or the instruction executes.
8. How do I know if a short message you sent has been delivered to the destination number
A) Send in text format
When you send a short message in text format, your GSM modem must have the following settings:
at+csmp=49,〈x〉,〈x〉,〈x〉
at+cnmi=〈x〉,〈x〉,〈x〉,1,〈x〉
〈x〉 represents the appropriate parameters that you choose according to your needs.
After you send the short message, you will receive one of the following two confirmations from the short Message Center:
+cds:〈x〉,〈 sequence number, "phone number", "Send Time", "Receive Time", 0
Or:
+cds:〈x〉,〈 sequence number, "phone number", "Send Time", "Receive Time", 48
The last number in the confirmation represents the transmission status of this short message. (0 indicates that the destination number has been served and 48 indicates that it is not possible to reach the destination number)
b) sent in PDU format
When you send a short message in PDU format, your GSM modem must have the following settings:
at+cnmi=〈x〉,〈x〉,〈x〉,1,〈x〉
〈x〉 represents the appropriate parameters that you choose according to your needs.
In the short message in the PDU format you want to send, you must set the first byte after the short message center number to 31
After you send the short message, you will receive the following acknowledgement from the SMS Center:
+cds:〈 Length 〉00〈PDU Format confirmation information
Note: In the acknowledgement of the received PDU format, both the sequence number and the transmit status flag are in the 16 binary number, and you can turn it directly into a 10 binary number without having to invert it and convert it.
9. How to send short messages in Chinese
Using the existing GSM modem to send short messages in Chinese, you must first convert the Chinese short message ready to send into a 16-bit Unicode encoding.
A) Text-based delivery
When you send the Unicode encoded Chinese short message in text format, your GSM modem must be set:
at+csmp=〈x〉,〈x〉,〈x〉,8
〈x〉 represents the appropriate parameters that you choose according to your needs.
You can then send the converted Unicode-encoded Chinese short message in the same way that you send a short message in plain text.
B) use PDU mode to send
You only need to set the second byte after the destination number string to 08 in the short message in your PDU format, which will go
The changed Unicode encoding Chinese short message is sent as the content of the PDU.
10. How to set up a voice call
To the GSM modem serial port to send the command atd〈 phone number 〉;〈 Enter) must confirm that the phone number is a voice number, not a fax or data number.
11. How to set up a data call
Set up your GSM modem as follows:
at+ipr=9600
at+ifc=2,2
at+cbst=0,0,1
To the GSM modem serial port to send instructions atd〈 phone number 〉〈 carriage return)
You must confirm that the phone number is a data number, not a fax or voice number, and that you must confirm that your SIM card has been enabled for data communication.
12. When the GSM modem is called, how to display the caller's phone number
Set up your GSM modem as follows: 13
At+clip=1
13. When the GSM modem is called, how to distinguish the voice, data, or fax calls initiated by the caller
Set up your GSM modem as follows:
At+crc=1
14. How to make the GSM modem answer automatically or not automatically when it is called
If you want your GSM modem to answer automatically, make the following settings for your GSM modem:
Ats0=〈n〉n is an integer representing the number of times the GSM modem rings, that is, the GSM modem will answer automatically after the N-th ring.
If you want your GSM modem to be unable to answer automatically, set up your GSM modem as follows:
Ats0=0
15. How to read or write short messages without a SIM card
Since the SIM card only has 10,000 to 100,000 read and write times and 10-15 short messages of storage space, it also involves a short message on the SIM card reading and writing takes a certain amount of time to complete. These factors affect many applications, these applications require a large number of data exchange through the GSM network, in order to ensure the smooth flow of the SIM card to complete a large number of read, write and delete operations, SIM card life cycle will soon reach, in addition, the SIM card to complete these tasks more time than outside requirements. To solve these problems, it is necessary to make some software settings on the terminal, so that the short message does not read and write through the SIM card.
The following description describes how to use this method to exchange data between the Falcom A2 series and the data Terminal MT4002 without a SIM card, which can also be used with 2 MT4002.
A) The RTS signal from the terminal on the serial port can be used to indicate whether the data exchange time slot is busy, the serial port is ready to receive data
b) If both sides of the terminal can be used to receive and send short messages, both sides must set the same command and constant.
At the receiving end, set the command at+cnmi=2,2,0,0,0
On the sending side, set the command at+csmp=17,167,0,240 (240 to String DCs (F0) when sending using PDU format)
c) When the program discovers a short message with the prefix +CMT followed by the transmitted data in this format, the short message is immediately captured and distributed to the original address.
d) When the sender is not set csmp=17,167,0,240, the captured short message should have a prefix of +CMTI, at which point the command at+cmgr=n read and distribute to the original address, and then use the command at+cmgd=n to delete the short message to ensure that the SIM card has enough space

Transfer from bbs.sendsms.cn


Gsm-modem Debug Memo (ii)

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.