Go Premium for a chance to win a PS4. Enter to Win


re-connecting to network

Posted on 2004-09-28
Medium Priority
Last Modified: 2013-12-09

I have a TC45 gprs module which runs embedded java applicaitons. When I start up the module and enter my SIMs pin the module automatically connects to the gsm/gprs  network. Like a mobile phone often does my module can loose a connection to the network when signal strength is low. However unlike a mobile phone it does not seem to begin searching for a network again

My question therefore, is there an AT command i can issue when my module looses it's signal  and force it to search for a network again.

I can check if i'm connected to a gsm network using AT+COPS .

any ideas ?


Question by:kfc23
  • 3

Expert Comment

ID: 12172090
Some ideas:

1) ATO or ATO=0 : switch back to data mode (from command mode)
2) AT+CGDATA if you already have your contexts activated.
3) If you need to know when it happens try turning on registration status with AT+CGREG=1 .
4) If GPRS event reporting is supported than that might be useful also to you. AT+CGEREP

reference 3gpp spec 07.07


Expert Comment

ID: 12173520
p.s. you do have a PPP stack that takes care of the echo response, right? Just to make sure you're not being dropped for something other than signal.


Author Comment

ID: 12177458
thanks for the help,

I've managed to find an AT command CREG for registering with the network and AT+CSQ for checking signal strength. Also in documentation with the TC45 it gives an example to force the module to search for network :

AT+CREG=2 Activates extended URC mode.
AT+COPS=0 Forces ME to automatically search network  
OK operator.
+CREG: 2 URC reports that ME is currently searching.
+CREG: 1,"0145","291A"   URC reports that operator has been found.

So in my Java app running on the module I can check the signal strength every minute or so and if it's low I can issue an AT+COPS=0 . Or i suppose I could just issue an AT+COPS? to check if the module is connection to the netowork and if not i could issue AT+COPS=0

is that the way to go ?

ken .

Accepted Solution

jenmir earned 500 total points
ID: 12182329
What a shame you feel you need to do so much network polling. That puts a tremendous performance hit on your application. I question whether it's really RSSI or a network issue.

When you turn on AT+CGREG=2 you are actually turning on unsolicited messages from the far end. (you really don't need =2 for that, =1 will also turn it on and is less verbose.) So you should get an unsolicited "+CGREG: 0" or "+CGREG: 2" notification from far end when your registration drops out for any reason.  BTW dropping the subscriber is common in GPRS networks, and not always because of poor signal.

If you have any interrupt capability at all you should also look into AT+CGEREP=2,1 - you'll get unsolicited notification of changes in your GPRS context status.

If the signal is too low to support even data, then there isn't much you can do about it - but you CAN probably rectify dropped registration or a network timeout due to inactivity or capacity.  COPS is a big performance hit so only use it as a last resort and if you're certain you've got RSSI  > 3.

Make sure AT+CMEE is set =1 or =2 for error reporting.  AT+CEER gives you detailed reporting the error.
e.g. . a CME ERROR of 256 is "busy, searching for operator" reason, which could be due to capacity issues, while cause code 30 means there is no network service at all and 31 is for a network timeout. Network timeout can happen for variety of things not connected to RSSI.


Featured Post

New Tabletop Appliances Blow Competitors Away!

WatchGuard’s new T15, T35 and T55 tabletop UTMs provide the highest-performing security inspection in their class, allowing users at small offices, home offices and distributed enterprises to experience blazing-fast Internet speeds without sacrificing enterprise-grade security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With the purchase of CloudCommand by Comcast customers are left in a bind as subscriptions expire and render the AP's disabled. The following will explain how to flash your Ubiquiti AP's with CloudCommand firmware back to Ubiquiti firmware. HOWTO…
Multi-source agreements are important because they set standards that all manufacturers should follow to ensure that devices are compatible with multiple vendors. The multi-source agreement (MSA) is an agreement that establishes how multiple vendors…
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question