Advanced GPRS Modem Usage
From Suntel Communications knowledgebase
While they may seem to be an exotic breed, Internal and External GPRS modems, 3G/GPRS Mobile Connect Cards and 3G/GPRS capable mobile phones all use a special GPRS subset of the standard AT command set which means that they can be used from any device and operating system that supports a "normal" modem. This means you can happily dial up to GPRS from your Windows, Linux, Apple Mac, or BSD system, or even a Cisco router for that matter all without loading any special "GPRS Connect" software.
Contents |
Dial your GPRS Modem with AT Commands
Using a GPRS modem without any special software requires first defining a GPRS (CID) profile which at a minimum lists the APN you will connect to, and then as a second step, using that profile to "dial up" to GPRS. Most devices support 9 CID profiles, but some support up to 16.
Define CID profiles
Define profile #2 as an IP connection to the suntel APN. This configuration step should only need doing once per device, and if you are using a telephone, you may use the telephone menus instead.
AT+CGDCONT=2,"IP","suntel"
If you are setting up a computer and wish it to work with any GPRS modem/telephone without configuring each device manually, you may put this command in the modem's Initialisation string so that it is (re)configured every time you dial.
Windows
Control Panel -> Phone&Modem Options -> Modems -> Properties -> Advanced -> Extra Initialisation Commands
SUSE Linux
YaST Control Center -> Network Devices -> Modem -> Edit -> Details -> Init 1
Dial CID Profile
Connect profile #2 to the IP Network
ATD*99***2#
On a PC (Windows, Linux etc) you will not need to put the leading "ATD". Simply put the following in as the dialup number:
*99***2#
Other Usefull GPRS Modem Commands
Getting Information
There are a number of usefull commands for querying your device for it hardware and configuration information
Device Information
You may list the device information of any modem (not just GPRS modems) with:
ATI
You should see a response from the device something like:
Manufacturer: HUAWEI TECHNOLOGIES CO., LTD. Model: 183 Revision: I:12.16.01G IMEI: 356570000000001 +GCAP: +CGSM,+FCLASS,+DS
List CID profiles
List currently configured GPRS Profiles (You may of course do this from your telephone menu also)
AT+CGDCONT?
You should see a response from the device something like:
+CGDCONT: 1,"IP","internet","",0,0 +CGDCONT: 2,"IP","suntel","",0,0
This response means that the device currently has 2 CID profiles configured. Both are IP profiles. Profile #1 connects to the internet APN and profile #2 connects the the suntel APN.
List CID range
List CID profile range
AT+CGDCONT=?
You should get a reply like:
+CGDCONT: (1-16),"IP",,,(0-1),(0-1) +CGDCONT: (1-16),"PPP",,,(0-1),(0-1)
This respone means that the device supports a maximum of 16 possible CID profiles of either IP or PPP type.
PIN Security
When you receive a new SIM card from your operator it will often have PIN security enabled.
Enter PIN
If your SIM card has PIN security enabled, you unlock the PIN with for the current session by sending the following command (Where xxxx is your current PIN):
AT+CPIN="xxxx"
You will need to put this in as one of the modem initialisation strings if you plan on leaving PIN security enabled on the SIM.
Disable PIN
If your SIM card has PIN security enabled, you may disable it from asking for the PIN (Where xxxx is your current PIN):
AT+CLCK="SC",0,"xxxx"
You may of course do this in the normal way from your telephone menu also.
Hardware and Network Control
The following commands should not be required by most devices, but give additional control over lower level functions of the hardware.
GPRS modem control
Turn on the GPRS modem:
AT+CFUN=1
GSM registration
Start the GSM registration process:
AT+CGREG=1
Tested Devices
Suntel has tested the following GPRS capable devices with SUSE Linux and the above instructions:
- Huawei Mobile Connect Model E618
- Siemens MC35 External GPRS modem
- Siemens MC45 External GPRS modem
- Sony Ericsson T68i telephone (Serial Cable and Bluetooth)
- Sony Ericsson T610 telephone (Serial Cable and Bluetooth)
- Sony Ericsson K600i telephone (Serial Cable and Bluetooth)
- Teltonika ModemPCI TMP-10x GPRS modem (Uses a Nokia Chipset)
- Vodafone Mobile Connect 3G/GPRS data card (Sold in Turkey)
Operator Specific Info
If you have a private APN please ignore the following information. Please note that you may use a different profile number than the examples.
Telstra
Telstra uses the telstra.internet APN for internet access so your modem initialisation string should like something like:
AT+CGDCONT=2,"IP","telstra.internet"
Turkcell
Turkcell uses the internet APN for internet access so your modem initialisation string should like something like:
AT+CGDCONT=2,"IP","internet"
Vodafone Turkey
Vodafone Turkey still uses the telsim APN for internet access as of July 2007 so your modem initialisation string should like something like:
AT+CGDCONT=2,"IP","telsim"
External Links
- LINUX GPRS HOWTO
- GPRS/UMTS Access on a Mac
- ETSI Telecom Standards (ETSI TR 127 007 applies to GPRS Modems)
