Tips and Tricks - Written by mbrocks.com on Wednesday, July 30, 2008 12:39 - 3 Comments
AT Commands for USB Modems
For most users, the connection manager supplied with the USB modem is sufficient for getting connected and managing your modem. However, some users (especially those not using Windows computers) prefer to manage their modem directly, using AT commands. Here’s some useful commands for USB modems.
Selecting an APN
+CGDCONT=1,”IP”,”apn name”
e.g. for Vodafone UK – AT+CGDCONT=1,”IP”,”internet”
Querying signal strength
+CSQ
Returns two comma separated numbers. The first number is the signal strength (RSSI), the second number is unused. Here’s how to interpret RSSI:
0 <= -113dBm
1 -111dBm
2 – 30 -109dBm to -53dBm
31 >= -51dBm
99 Unknown
Setting operating mode
+CFUN=x
0 Low power mode
1 Online
4 Offline
6 Reset device
7 Turn off radio
Get manufacturer information
+CGMI
Get software version
+CGMR
Get SIM IMSI number
+CIMI
Get device IMEI
+CGSN
Get hardware version
^HWVER
Change PIN
+CPWD=SC,old pin, new pin
Enable PIN
+CLCK=SC,mode,pin
Mode: 0=unlock, 1=lock, 2=query state
Query system information
^SYSINFO
Returns: status, domain, roaming status, mode, SIM state
Status
0 No service.
1 Restricted service
2 Valid service
3 Restricted regional service.
4 Power-saving and deep sleep state
Domain
0 No service.
1 Only CS service
2 Only PS service
3 PS+CS service
4 CS and PS not registered, searching
Roaming
0 Non roaming state
1 Roaming state
Mode
0 No service.
1 AMPS mode (not in use currently)
2 CDMA mode (not in use currently)
3 GSM/GPRS mode
4 HDR mode
5 WCDMA mode
6 GPS mode
SIM state
0 Invalid USIM card state or pin code locked
1 Valid USIM card state
2 USIM is invalid in case of CS
3 USIM is invalid in case of PS
4 USIM is invalid in case of either CS or PS
255 USIM card is not existent,
Network selection
+COPS=? Return a list of networks
+COPS=mode, format, operator
Mode
0 Automatic
1 Manual
4 If manual fails, try automatic
Format
1 Long alpha
2 Short alpha
3 Numeric
Operator
Either the long alpha name, the short operator alpha code or the numeric code
Status
0 unknown
1 available
2 current
3 forbidden
System Config
^SYSCFG=mode, order, band, roaming, domain
Mode
2 Automatic search
13 2G ONLY
14 3G ONLY
16 No change
Order
0 Automatic search
1 2G first, then 3G
2 3G first, then 2G
3 No change
Band
80 GSM DCS systems
100 Extended GSM 900
200 Primary GSM 900
200000 GSM PCS
400000 WCDMA IMT 2000
3FFFFFFF Any band
40000000 No change of band
Roaming
0 Not supported
1 Roaming is supported
2 No change
Domain
0 CS_ONLY
1 PS_ONLY
2 CS_PS
3 ANY
4 No change
3 Comments
Chronos
@Ricardo: comms/kmobiletools in ports will send/receive SMS messages when set up correctly. You need to set devfs up correctly to allow your normal user to access the port (you can also use devd) and you’ll need to touch a lockfile in your home directory. After that, it Just Works [TM]. If you’re working from the command line, for example to send alerts to an admin, these are the commands you need:
+CMGS Send message
+CMSS Send message from storage
+CMGW Write message to memory
+CMGD Delete message
+CMGC Send command
+CMMS More messages to send
More information on these can be found here: http://www.developershome.com/sms/howToSendSMSFromPC.asp
jayant
hi , i read your post seems you have lots of knowledge about AT commands , but i have different query iam using intermec device ( windows mobile 6.1) iam connecting the device to desktop via activesync and usb cable initially the device was dectected but when i try to connect it to hyperterminal it wont connect ,so i found one application called usbmodem.cab for windows mobile , this application can be installed on windows mobile device after installing this application desktop which is connected to the device detects usb modem , now i can see modem in device manager also i can see its com port address i tried with that com port address in hyperterminal then iam able to connect , when i sent AT to hyperterminal the response is OK , when i try to send some more AT commands it gives “error” my question is is there any other utility other than usbmodem.cab to fully use AT commands.
Leave a Reply
Sponsors
Most Popular Content
- USB Modem / Huawei E220 on Vista. Take 2.
- Huawei E220 - 7.2Mbps firmware update
- USB Modem / Huawei E220 on Vista. Finally.
- USB Modem / Huawei E220 on Vista. Take 3.
- Mac OS X 10.5 (Leopard) support
- Vodafone Mobile Connect Lite V3
- Vodafone Dashboard v9.1.2 - Vista 64bit support
- Vodafone / Dell Inspiron Mini 9 running Mac OS X
- Huawei E220 drivers available
- Huawei Modem Utilities
- Vodafone Mac OS X 10.5 (Leopard) software release
- Improving your mobile broadband coverage
- Vodafone’s femtocell won’t improve mobile broadband
- O2 bump up mobile broadband offering, including Starbucks WiFi
- E220 7.2Mbps Firmware – version 11.117.10.02.00
- Dell Mini 9 with OSX – 5 month road test
- Gadget show vote NC10 best netbook
- Dell Mini 10 netbook for less than £300!
- Finding your perfect mobile broadband deal
- Free Netbooks – April/May round up
- Mobile Broadband Deal Finder Launched!
- Enabling GPS on Dell 5530 WWAN module
- The update for the e220 at the top of the page is great as i now get 7.2mps the ...
- I have a solution for Vodafone E3520 on XP 64 bit if anyone is inerested - did i...
- Hi
I'm Lose my driver softwere Modem E220 USB . so I Cannot running my Moden ...
- Thanks for the details David. Tim - I absolutely agree - this product is perfect...
- More to the point, if you are at home, why don't you just use your desktop machi...
- This first version of Vodafone's Access Gateway supports HSPA peak data rates of...
- I installed everything by the book, but my usb ports are not working...
- I installed everything by the book, but my usb ports are not working...
Vodafone - Jun 25, 2009 2:28 - 3 Comments
Vodafone’s femtocell won’t improve mobile broadband
Vodafone UK have just announced the availability of thier new “3G coverage booster”, aka a 3G femtocell. This little box of tricks plugs into your home broadband connection and routes calls over the internet and onto Voda’s network. This is welcome news for those of us with 3G handsets who are unable to access data services or make reliable voice calls due to poor coverage.
However, it’s not great news for mobile broadband users. Although it’s unclear if the femtocell supports higher speed technology (HSDPA), the fact that it routes the data over your ADSL connection should be enough reason to rule it out. If you’ve got ADSL at home, why bother using your mobile broadband allowance when fixed line is far cheaper and faster?
More In Operators
- O2 bump up mobile broadband offering, including Starbucks WiFi
- Dell Mini 9 with OSX – 5 month road test
- O2 Mobile Broadband Promotions
- Virgin Mobile Broadband for £5
- Vodafone / Dell Inspiron Mini 9 running Mac OS X
Huawei E220 (USB Modem) - May 8, 2009 21:56 - 8 Comments
E220 7.2Mbps Firmware – version 11.117.10.02.00
Big thanks to the guy’s who pointed out that there’s a new firmware available for the E220. Version 11.117.10.02 continues to bring 7.2Mbps support to the modem and is a recommended update for all users.
You can download the installer from M1’s website, or download a cached copy here.
More In Hardware
- Dell Mini 9 with OSX – 5 month road test
- Gadget show vote NC10 best netbook
- Enabling GPS on Dell 5530 WWAN module
- Vodafone / Dell Inspiron Mini 9 running Mac OS X
- Unlocking Huawei E220
Tips and Tricks - Jun 25, 2009 3:01 - 1 Comment
Improving your mobile broadband coverage

Great post here from Farmers Weekly – not on my normal feed list but could be one to add… A farmer in the UK has been struggling to get decent mobile broadband speeds from his three dongle so he’s stuck it on a tube and hoisted it 6 meters into the air!
More In Tips and Tricks
- Broadband Modems in Mobile Phones
- AT Commands for USB Modems
- Improving Your Mobile Broadband Speed
- Mobile Broadband Radio Bands
- Mobile Data Technology
Do you know commands for read/send sms messages?
the windows program, can send/receive sms messages, but I nedd make this on FreeBSD, with at commands.
Thanks for this great info.