use CGREG for registration checking
Status: Beta
Brought to you by:
pharscape
I have this patch in the openSUSE package for some time. It was needed by the Option icon box, since it did not register to GSM, the +CREG did not return success, but +CGREG does. It does not seem to have negative effects on other option cards (nozomi and fusion+ tested)
Hi Stefan,
I tried to check a bit about your suggestion, but it looks somehow wrong to me.
the AT+CREG is the generic network registration command where AT+CGREG seems to be a GPRS registration only, see f.e.:
http://gatling.ikk.sztaki.hu/~kissg/gsm/at+c.html
Isnt it possible that the Option icon box works with AT+CREG if it gets first switched to GPRS, f.e. with AT+CGATT ?
Or maybe we can use AT+CGREG as a second trial if AT+CREG failed?
What do you think? I really would like to push out a new version soon so that the nasty patching has an end ...
Hi gknauf,
For the majority of devices now (2010) it is better to reverse your proposed solution with +CGREG as the default command and falling back to +CREG if that generates an error.
When I wrote the script I assumed that all devices would support the original GSM commands but this is not true and many devices now only support the 3GSM (GPRS/UMTS) versions of the command.
Paul
Hi guys,
I have no real opinion on the matter - I neither have the hardware available, nor am I using comgt anymore, so just go ahead with what approach you like best.
Have fun,
Stefan