Appendix B – Detailed Examples
Multi-Tech Systems, Inc. AT Commands for Wireless Modems with IP Connectivity (S000333D)
64
Connecting to the Internet through GPRS
This example covers the following: Initiate a GPRS communication from the modem for an Internet connection.
Description:
The attached equipment can initiate an Internet connection, via the modem configured in GPRS mode
(GPRSMODE parameter), by sending the '
AT#CONNECTIONSTART
' command over the serial port.
Upon receiving this command, the modem automatically attempts to complete a GPRS connection
session according to the relevant stored parameters. This is achieved by the modem which connects to
the Access Point Name Server.
Once the GPRS link is established, the software sends the ISP-assigned dynamic IP address and the
‘Ok_Info_GprsActivation’ message as a response code to the attached equipment via the serial port.
The modem will then wait for commands from the attached equipment.
AT# command: AT#CONNECTIONSTART
Related Parameters:
Registration on the
network
The product has to be attached and registered on the GPRS network (and on GSM network
if needed for the application).
AT+ command:
AT+CGATT=1 and then AT+CGREG=1
AT+CREG=1 for GSM
GPRS mode
Activate the GPRS mode for connection.
AT#GPRSMODE=1
APN Server
Address of the Access Point Name Server required by the network operator for connecting to
the Internet.
AT#APNSERV
APN User Name
Username required for the connection to the APN.
AT#APNUN
APN Password
Password coming with the Username for connecting to the APN.
AT#APNPW
Stop the
AT#CONNECTION
START process
The ‘AT#CONNECTIONSTART’ process can be stopped by sending the
‘AT#CONNECTIONSTOP’ command over the serial port
AT#CONNECTIONSTOP
Other AT# Parameters:
PPPMODE - GPRSMODE
Other AT# Commands:
CONNECTIONSTOP