INSYS GSM 4.2
INSYS GSM 4.2 compact
Functions and their Configuration
Sep-06
61
6.2.9
Example: Free SMS dispatch via AT commands
You can use the INSYS GSM via the serial interface to send free 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 en-
tered
+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