Common GPRS commands

Source: Internet
Author: User

Frequently Used at commands of the Wavecom q2358c CDMA module are as follows:
Factory certification at + cgmi get the manufacturer's logo
Supported band for at + cgmm Query
Revise the software version for at + cgmr Certification
The production sequence number at + cgsn queries IMEI No.
Set at + CSCs for te to Support Network
Query imsi at + CIMI query International Mobile Phone support certification
Card authentication at + CCID query SIM card serial number
Function list at + GCAP
Repeat operation a/repeat the last operation
Turn off power at + cpof to pause module software operation
Set the status at + cfun to set the status of the module software
Activity Status at + CPAs query module current activity status
Report error at + cmee report module device Error
Keyboard control at + ckpd simulate keyboard operations with characters
Dialing command ATD dialing number
Host Command ath host
Respond to call ata when the module is called
Detailed error at + ceer query error cause
DTMF signal at + vtd, + VTS + vtd set length, + VTS send signal
Repeat atdl and call the last number.
Automatic dialing at % DN device automatic dialing number
The ats0 module automatically receives the call.
Incoming call carrier at + CICB query mode, data or fax or speech
Gain control at + vgr, + VGT + vgr adjust receiver gain, + VGT adjust microphone gain
Mute control at + cmut set microphone mute
Sound channel selection at + speaker select different sound channels (2 pairs of receiver and microphone)
Echo Cancellation at + echo select different echo degree based on location
Single-tone modification at + sidet selection of different echo levels
The initial sound parameter at + VIP is restored to the manufacturer's default sound parameter settings
Signal Quality at + CSQ query Signal Quality
Network select at + cops settings select Network Mode (automatic/manual)
Network registration at + CREG current network registration status
Network Name At + wopn query currently using network provider
Network List at + cpol query Available Networks
Enter pin at + cpin and PIN code
Enter pin2 at + cpin2 and enter the second pin.
Save the attempt at + cpinc to display possible PIN codes
Simple lock at + clck users can lock the status
Change Password at + CPWD Change PIN code
Select the phone book at + CPBS and select the phone book stored on different memories
Read the phone book at + cpbr
Find the phone book at + cpbf and find the desired phone directory
Write the phone book at + cpbw to add the phone book entry
Phone number search at + cpbp find the required phone number
Dynamic search for at + cpbn
User number at + cnum select different local numbers (because the network service supports different numbers)
Avoid phone book initialization at + waip select whether to prevent phone book Initialization
Select at + CSMs and select whether to enable the short message service and broadcast service.
Short Message storage at + CPMS select short message priority Storage Area
Short Message format at + cmgf select the Supported Short Message format (text or PDU)
Save settings at + CSAs save + csca and + CSMP parameter settings
Recovery Settings at + CRES Recovery + csca and + CSMP parameter settings
Display text parameter at + CSDH display result code in current text mode
New message prompt at + cnmi select the system prompt mode when a new short message is available
Read short message at + cmgr read short message
List of short messages stored by at + cmgl
Send short message at + cmgs send Short Message
Write short message at + cmgw write short message and save it in memory
Send Short Messages from memory at + CMSS send Short Messages saved in memory
Set the text parameter at + CSMP to set the condition parameter in text mode.
Delete short message at + cmgd delete saved Short Message
The service center address at + csca provides the number of the Short Message Service Center
Select broadcast type at + CSCB and System broadcast Short Message Type
Broadcast identifier at + wcbm read System broadcast identifier in SIM card
Modify the at + wmsc position of a short message
Short Messages overwrite at + wmgo to write a short message and put it in the first blank space
Call Transfer at + ccfc set call transfer
Inbound carrier at + clck: Lock the inbound carrier and restrict inbound or outbound calls
Change the SS password at + CPWD modify the password for providing services
Call wait at + ccwa control call wait Service
Call Line Limited at + clir control call line Authentication
Call line display at + clip display current call line Authentication
Connection line authentication at + Colp shows that connection line authentication is currently in progress
Billing display at + ** C report current fee
Cumulative call at + CACM cumulative call fee
Cumulative maximum value at + camm set cumulative maximum value
Unit charge at + cpuc set unit charge and call timing
Multi-party calls at + chld maintain or hang up a single call line (supports multi-party calls)
Current call at + CLCC list current CALL
Supplemental service at + cssn Set Value-Added call service
Informal supplementary service at + cusd Informal Value-added Service
Select whether the user at + ccug is in the confidential status
Carrier select at + cbst select data transmission type
Select at + fclass to send data or fax
Service Report control whether at + CR reports to provide services
Result code at + CRC report different result codes (transmission mode, voice or data)
Whether the device rate report at + ilrr reports the current transmission rate
Protocol parameters at + crlp set wireless connection protocol parameters
Set other wireless connection protocol parameters in at + dopt.
Transmission speed at + FTM: Set the faxed transmission speed
Receive speed at + frm set the speed of Fax reception
HDLC transmission speed at + FTH: Set the fax transmission speed (using HDLC Protocol)
HDLC receiving speed at + FRH set the fax receiving speed (using HDLC Protocol)
Stop Transmission and wait for at + FTS to stop sending faxes.
Mute reception at + fr keep a mute wait
Fixed terminal rate at + IPR set data terminal device Rate
Set the stop and parity bits for other bits at + ICF
Traffic control at + IFC set local data traffic
Set DCD signal at & C Control Data Carrier Detection Signal
Set DTR signal at & D control data terminal device preparation Signal
Set DSR signal at & S control data device preparation Signal
Returns the online mode. ATO returns to the online mode of data.
Result code: whether the ATQ module replies to the result code.
DCE response format ATV determines the response format of the data communication device
Restore atz to default settings by default
Save settings at & W save all software modifications to the module
Automatic at&t Automatic Testing Software
Whether the input character is visible in the response to ate
Reply to factory settings at & F software and restore to factory settings
Display Settings at & V display the current settings of some parameters
Authentication Information ATI displays authentication information for multiple modules
Region Environment Description at + CCed users get region Parameters
Automatic receiving level display at + CCed extended to display received signal strength
Usually show at + wind
Data computing mode between me and MSC at + Alea
Data computing mode at + crypt
Keyboard management at + expkey
Information on plmn at + cplmn
Analog digital conversion measurement at + ADC
Module event report at + cmer
Select the language at + wlpr select the supported language
Add languages at + wlpw to add Supported languages
Read gpio value at + wior
Write gpio value at + wiow
Discard command at + WAC used to discard SMS, SS and plmn
Set single-tone at + wtone to set the audio signal (wmoi3)
Set DTMF at + wdtmf and wmoi3)

 

CDMA module text message

1. send text messages
Eg. Send the English Short Message "123abc" and use the corresponding ASCII code to send it.
At + wscl = // set to send an English text message OK
OK
At + cmgs = "13331012788" // different from the GSM module, the CDMA module must add a text message number
Quotation marks
123abc <Ctrl-z> // enter the content, and then press Ctrl + Z to send
+ Cmgs: 1
OK
Return code:
+ Cmgs: N indicates that the message is sent successfully, and N indicates the serial number.
2. Send a Chinese text message
The Chinese text message sent by CDMA does not use the PDU format, but directly sends its Unicode code.
Eg. Send a Chinese Short Message "hello" whose Unicode code: 0x60a8 0x597d
At + wscl = 6, 4 <CR>
At + cmgs = "13331012788" <CR>
60a8597d <Ctrl-z>
Return code:
+ Cmgs: N indicates that the message is sent successfully, and N indicates the serial number.
Note: The program sends data 0x60, 0xa8, 0x59, and 0x7d. The control characters in the short message must also be indicated by the uncode. The end of the message content is marked with an ending character, so its ending character should also be in unicode format. That is to say, this method cannot be used in the Super Terminal, because the <Ctrl-z> entered from the keyboard is not in unicode format and only ASCII code. The correct end character in the program should be 0x00 0x1a.
3. Likewise, the CDMA module can send Chinese characters, English letters, and numbers together, all of which are sent using the corresponding Unicode code.

China Mobile text message Network
Professional Business of Wavecom/Siemens GSM/GPRS/CDMA products
Wavecom product Hotline: 13331012788 13910138186
Tuhttp: // www.lianyisms.com
E-mail: lianyisms@126.com
Online QQ: 313212930

 

 

SMS Communication and CMS errors
1. How to establish communication with the GSM Modem
2. Do not communicate with the GSM Modem normally or there is always garbled code on the simulation terminal.
3. How to know the error code
4. After a short message is sent, the system receives the error message + CMS error 512
5. After a short message is sent, the system receives the error message + CMS error 513.
6. After a short message is sent, the system receives the error message + CMS error 514.
7. After a short message is sent, the system receives the error message + CMS error 515.
8. How can I know that the short message you sent has been delivered to the destination number?
9. How to send short Chinese messages
10. How to Create a voice call
11. How to create a data call
12. How to display the caller's phone number when the GSM modem is called
13. When the GSM modem is called, how can we identify whether the caller initiates a voice, data, or fax call?
14. When the GSM modem is called, how to make it automatically respond or fail to respond automatically
15. How to directly read or write short messages without using the SIM card

1. How to establish communication with the GSM Modem
You can use terminal simulation software such as Windows Super Terminal or Pcomm to directly connect the computer serial port to the serial port of the GSM Modem using a cable.

2. Do not communicate with the GSM Modem normally or there is always garbled code on the simulation terminal.
Check whether your serial port is properly connected. The serial port leads of the Computer correspond to those of the GSM Modem. The same communication rate should be set for the GSM Modem and the simulation terminal.
However, when you use the GSM Modem for the first time, set it to the communication rate (9600bps), 8-Bit Data bit, no comparison bit, and 1-bit stop bit) on the simulation terminal.

3. If you want to get the error code number after an error, set the GSM Modem as follows:
At + cmee = 1

4. After a short message is sent, the system receives the error message + CMS error 512
It indicates that when sending a short message, your GSM Modem receives a new short message, and the short message is rejected. You need to resend the short message.

5. After a short message is sent, the system receives the error message + CMS error 513.
You have encountered one of the following problems:
A) Your GSM Modem has lost its wireless link connection;
B) within 28 seconds after the short message is sent, your GSM Modem does not receive the receipt confirmation from the short message center + cmgs: <sequence number> 〉;
C) Your GSM Modem does not receive the confirmation sent by the base station within 42 seconds after the control channel command for sending the short message is established 〉.

6. After a short message is sent, the system receives the error message + CMS error 514.
You have encountered one of the following problems:
A) The number of the short message center you set is incorrect;
B) The target number to be delivered by the short message is incorrect;
C) Your short message is rejected by the short message center (generally because the destination number does not exist or the destination number is disabled ).

7. After a short message is sent, the system receives the error message + CMS error 515.
This error occurs if your GSM Modem accepts new commands during initialization or during command execution. You must wait until initialization or command execution is complete.

8. How can I know that the short message you sent has been delivered to the destination number?
A) sent in text format
When you send short messages in text format, your GSM Modem must make the following settings:
At + CSMP = 49, <x> 〉
At + cnmi = <x>, 1, <x> 〉
<X> indicates the appropriate parameter you have selected based on your needs.
After sending a short message, you will receive one of the following two types of confirmation from the short message center:
+ CDS: <x>, <sequence number>, "phone number", "sending time", "receiving time", 0
Or:
+ CDS: <x>, <sequence number>, "phone number", "sending time", "receiving time", 48
The last number in the confirmation indicates the transmission status of the short message. (0 indicates that the destination number has been delivered, 48 indicates that the destination number cannot be delivered)
B) sending in PDU format
When you send short messages in PDU format, your GSM Modem must make the following settings:
At + cnmi = <x>, 1, <x> 〉
<X> indicates the appropriate parameter you have selected based on your needs.
In the short message in PDU format that you want to send, you must set the first byte after the short message center number to 31
After sending the short message, you will receive the following confirmation from the short message center:
+ CDS: <length> 00 <PDU format validation information> 〉
Note: In the confirmation of received PDU format, the sequence number and transmission status mark both exist in hexadecimal notation, you can convert it to a decimal number without putting it upside down before conversion.

9. How to send short Chinese messages
To send short Chinese messages using the existing GSM Modem, you must first convert the short Chinese messages to a 16-bit Unicode code.
A) text transmission
When you send Unicode-encoded short messages in text format, you must set your GSM Modem:
At + CSMP = <x>, 8
<X> indicates the appropriate parameter you have selected based on your needs.
Then, you can send the converted Unicode-encoded short Chinese message by sending a common text short message.
B) Sending using PDU
You only need to set the second byte after the destination number string to 08 in the short message in your PDU format.
The new Unicode-encoded short message is sent as the content sent from the PDU.

10. How to Create a voice call
Send the command ATD <phone number> to the serial port of the GSM Modem. <press enter> make sure that the phone number is a voice number rather than a fax or data number.

11. How to create a data call
Set your GSM Modem as follows:
At + IPR = 9600
At + IFC = 2, 2
At + cbst = 0, 0, 1
Send the command ATD to the serial port of the GSM Modem <phone number> <press enter> 〉
You must confirm that the phone number is a data number, not a fax or Voice number, and that your SIM card has activated the data communication service.

12. How to display the caller's phone number when the GSM modem is called
Set your GSM Modem as follows:
At + clip = 1

13. When the GSM modem is called, how can we identify whether the caller initiates a voice, data, or fax call?
Set your GSM Modem as follows:
At + CRC = 1

14. When the GSM modem is called, how to make it automatically respond or fail to respond automatically
If you want your GSM Modem to automatically respond, set your GSM Modem as follows:
Ats0 = <n> N is an integer that represents the number of times the GSM Modem rings. That is, the GSM Modem automatically responds after N rings.
If you want your GSM Modem to fail to respond automatically, set your GSM Modem as follows:
Ats0 = 0

15. How to directly read or write short messages without using the SIM card
Because the SIM card only has 10 thousand to 0.1 million read/write times and 10-15 short message storage space, it also takes some time to complete short message read/write on the SIM card. These factors affect many applications. These applications need to exchange a large amount of data through the GSM network. To ensure the smooth process, SIM cards need to complete a large number of read, write, and delete operations, the life cycle of the SIM card will soon reach. In addition, it takes more time for the SIM card to complete these tasks than the outside world. To solve these problems, it is necessary to make some software settings on the terminal so that short messages do not read and write through the SIM card.
The following describes how to use this method to exchange data between the falcom A2 series and the data terminal mt4002 without a SIM card. This method can also be used with two mt4002.
A) The RTS signal from the terminal on the serial port can be used to indicate whether the data switching time slot is busy. The serial port is ready to receive data.
B) if both parties can receive and send short messages, the same command and constant must be set for both parties.
At the receiving end, set the command at + cnmi to 2, 2, 0, 0
On the sender side, set the command at + CSMP = 17,167, 0,240 (when sending in PDU format, 240 is changed to the string DCS (F0 ))
C) when the program finds the format of the Short Message prefix + CMT followed by the transmitted data, it immediately captures the short message and delivers it to the original address.
D) If CSMP = 17,167, 0,240 is not set on the sending end, the captured short message should have a prefix + cmti. At this time, use the command at + cmgr = n to read and distribute it to the original address, then run the at + cmgd = n command to delete the short message to ensure that the SIM card has enough space.

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.