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...