Insys GSM 4.2 I4 11-02-01-03-01.038 Manuale Utente

Codici prodotto
11-02-01-03-01.038
Pagina di 69
INSYS GSM 4.2 I4 
Functions and their configuration 
 
Dez-06 
            49 
6.2.9 Example: Free SMS dispatch via AT commands 
You can use the device via the serial interface to send text messages. 
The example shows the process - logged in a terminal window. 
1.    
One-time preparation 
Meaning: 
AT
 command 
Logged into the GSM network? 
at+cops? 
Response: Not logged in 
+COPS: 0
 
 
OK 
Entering the PIN 1234 
at+cpin=1234 
 
OK 
Logged into the GSM network? 
at+cops? 
Response: logged into T-Mobile D 
+COPS: 0,0,"T-Mobile D" 
 
OK 
Service Center Number? 
at+csca? 
Response:has already been entered 
+CSCA: "+491710760000",145 
 
OK 
Set SMS text mode  
at+cmgf=1 
 
OK 
2. 
Sending the message 
Meaning: 
AT
 command 
Write SMS to 016097332811 
at+cmgs=+4916097332811 
Message text: "test message, 17° 
Celsius" 
(Always start the text after the 
character ">")  
> test message, 17° Celsius. 
Text entry is completed. 
(Press the keys [Ctrl] and Z simul-
taneously) 
[CTRL+Z]  
Send message to your own 
number as a test 
+CMGS: 100 
Read SMS 
at+cmgl 
 
CMGL: 1,"REC UN-
READ","+4916097332811",,"03/11/21,11:42:43+4" 
test message, 17 degrees Celsius 
 OK