Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Is there any command to force GSM module to Search Network

Status
Not open for further replies.

hamidrezamaddah

Member level 3
Joined
Aug 29, 2006
Messages
55
Helped
13
Reputation
26
Reaction score
11
Trophy points
1,288
Location
Tehran, Iran, Iran
Activity points
1,565
Dear

One of possible response to AT+CREG? is +CREG0,0 mean : Not registered, MT is not currently searching a new
How can force the module to searching the network? Is there any command?

Regards
hamidreza
 

You can see the AT command AT+COPS.
Regards.
 

hello,


before to get any response to AT+CREG? ..

Power suplly sequence must be correct .. (depend of GSM type, need 5 sec on my GSM2)
other cde must be send as the PIN code..
and the SIM card must be valid and initialised to your Phone provider.



my example of GSM2 init ..

i use 19200,8,N,1 and sending multiple AT command , until i get OK response
means the GSM is synchro with my uart speed..

i tested also at 9600 or 38400..
GSM2-click is able to follow the UART speed , without special command othe the "AT"
i don't know if this is the same on other GSM ..

i get response to AT+CREG? within 3 seconds ..

19:47:39.453> Negoce baud rate
19:47:40.453> OK
19:47:40.953> Negoce reussi
19:47:41.015> Set PIN code(AT+CPIN=1234)
19:47:44.515> +CPIN: READY
19:47:44.515> OK
19:47:44.515> Call Ready
19:47:44.515> Step: 1
19:47:44.515> Send Msg type as text mode (AT+CMGF=1)
19:47:48.078> OK
19:47:48.078> +QNITZ: "15/11/01,18:46:30+04,0"
19:47:48.078> Step: 2
19:47:48.140> Test si enregistré sur le reseau (AT+CREG?)
19:47:51.640> +CREG: 0,5
19:47:51.640> OK
19:47:51.640> Step: 3
19:47:51.640> Lecture de date et heure (AT+CCLK?)
19:47:55.203> +CCLK: "15/11/01,18:46:34+04"
19:47:55.203> OK
19:47:55.203> Step: 4
19:47:55.203> Never go in SLEEP mode(AT+QSCLK=0)
19:47:58.703> OK
19:47:58.765> Step: 5
19:47:58.765> List all UNREAD msg from inbox (AT+CMGL=REC UNREAD)
19:48:02.265> OK
19:48:02.265> Step: 6
19:48:03.828> Phase d'init en 6 pas/6.. OK
19:48:05.828> 1ere Lecture ADC RA1 et ADC RA2
19:48:05.828> 2 76
19:48:05.890> Constitution du SMS à envoyer
19:48:06.015> Arme RX IT UART1 ..
19:48:06.015> Contenu du SMS à envoyer
19:48:06.015> Init et 1er Demarrage GSM2
19:48:06.078> Compose Numero (AT+CMGS="+336123456789"
19:48:09.078> > Pret pour envoi Msg txt
19:48:13.640> +CMGS: 48
19:48:13.640> OK
19:48:13.640> Envoi SMS OK :

if you get a correct answer to this 2 commandes,
it means your SIM card is OK and valide to get the Network

Provider :
AT+COPS?
18:19:41.437> OK
18:19:41.437> S: 0,0,"Orange F" <-- even SIM card is from Free.fr , Orange F is other provider
Query service center.(AT+CSCA?)
A: "+33695000695",145 <-- Free.fr , international numbering +33...
 
Last edited:

Dear,
My device is work correctly.
Because my application has mobility, and in some locations there is no network coverage the response will be "AT+CREG: 0,0" . after movement and entering in a network coverage area, the module don't search network , and won't register for many minutes. i want to know that, is any way to force module to search network always?

- - - Updated - - -

Dear,
My device is work correctly.
Because my application has mobility, and in some locations there is no network coverage the response will be "AT+CREG: 0,0" . after movement and entering in a network coverage area, the module don't search network , and won't register for many minutes. i want to know that, is any way to force module to search network always?

I am using SIM900 GSM module
 

hello,

if i dont't send PIN code i get
AT+CREG? => answer : +CREG: 0,2
and in this case , i cant receive or send SMS
so, i send pin code
AT+PIN="1234" -> answer : +CPIN:Ready OK
then retest Network presence
AT+CREG? => Answer: => +CREG: 0,5
means Network OK
and i can send or receive SMS again.

so maybe reactivate PIN code is enough..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top