Difference between revisions of "Sending and receiving sms"

From Yantrr Wiki
Jump to: navigation, search
(Created page with "=SMS= Now we will try to send and receive messages using our VIBE2. For this you have to follow these steps: ==Sending a message:== * Insert a micro SIM card in the 6 pin micr...")
 
Line 11: Line 11:
  
 
'''NOTE:''' Verify the USB port as it is different for different modems.
 
'''NOTE:''' Verify the USB port as it is different for different modems.
 
The AT Command Manual for the 3GH-A/B/C and 3GC-A type Modules can be downloaded from [[SCV_WCDMA%20Module%20AT%20Command.pdf|WCDMA here]]
 
  
 
- Now execute the following AT commands to send a message:
 
- Now execute the following AT commands to send a message:
AT
+
AT
OK
+
OK
 
+
 
This checks whether AT commands are responding or not.
 
This checks whether AT commands are responding or not.
AT+COPS?
 
  
 +
AT+COPS?
 
This gives the details of your Internet service provider.
 
This gives the details of your Internet service provider.
  
AT+CSQ
+
AT+CSQ
 
+
 
This signify the signal strength of your network.
 
This signify the signal strength of your network.
  
AT+CMGF=1
+
AT+CMGF=1
 
+
 
This command is used to set the format of short message in TEXT mode.
 
This command is used to set the format of short message in TEXT mode.
  
AT+CMGS=”PHONE NUMBER TO WHOM MESSAGE IS TO BE SEND”  <CR>
+
AT+CMGS=”PHONE NUMBER TO WHOM MESSAGE IS TO BE SEND”  <CR>
“HELLO”
+
“HELLO”
<Ctrl-Z>
+
<Ctrl-Z>
 
+
 
This command is used to send short messages.
 
This command is used to send short messages.
 
<CR>-carriage return
 
<CR>-carriage return
  
  
Receiving a message:
+
==Receiving a message:==
  
AT
+
AT
OK
+
OK
  
 +
AT+CMGF=1
  
AT+CMGF=1
+
AT+CMGL=”ALL”
 +
This command lists all the available messages stored in the memory.
  
 +
AT+CMGR=1
 +
This command shows a particular message(in this case message stored at index 1 in the memory will be displayed)
  
AT+CMGL=”ALL”
+
==AT Commands Manual==
 +
The AT Command Manual for the 2G modem can be downloaded from [http://www.yantrr.com/image/data/doc%20uploads/GPRS%20Module%20AT%20Commands.pdf here]
  
This command lists all the available messages stored in the memory.
+
The AT Command Manual for the 3GH-A/B/C and 3GC-A type Modules can be downloaded from  [https://www.dropbox.com/s/g6dz78scv5s6638/SCV_WCDMA%20Module%20AT%20Command.pdf WCDMA here]
  
AT+CMGR=1
+
The AT Command Manual for the 3GH-D Module is available on request. Contact Yantrr support.
 
+
This command shows a particular message(in this case message stored at index 1 in the memory will be displayed)
+

Revision as of 01:31, 13 July 2016

SMS

Now we will try to send and receive messages using our VIBE2. For this you have to follow these steps:

Sending a message:

  • Insert a micro SIM card in the 6 pin micro sim connector.
  • Power the board using a 5V (max 5A) DC adapter.
  • Log in to the VIBE2 using any of the techniques explained in this document.
  • Set VIBE2 into AT commands mode by using
$ minicom -D /dev/ttyUSB0

NOTE: Verify the USB port as it is different for different modems.

- Now execute the following AT commands to send a message:

AT
OK

This checks whether AT commands are responding or not.

AT+COPS?

This gives the details of your Internet service provider.

AT+CSQ

This signify the signal strength of your network.

AT+CMGF=1

This command is used to set the format of short message in TEXT mode.

AT+CMGS=”PHONE NUMBER TO WHOM MESSAGE IS TO BE SEND”  <CR>
“HELLO”
<Ctrl-Z>

This command is used to send short messages. <CR>-carriage return


Receiving a message:

AT
OK
AT+CMGF=1
AT+CMGL=”ALL”

This command lists all the available messages stored in the memory.

AT+CMGR=1

This command shows a particular message(in this case message stored at index 1 in the memory will be displayed)

AT Commands Manual

The AT Command Manual for the 2G modem can be downloaded from here

The AT Command Manual for the 3GH-A/B/C and 3GC-A type Modules can be downloaded from WCDMA here

The AT Command Manual for the 3GH-D Module is available on request. Contact Yantrr support.