Go Down

Topic: Cheap GSM module (SIM800) not connecting to the network (Read 87686 times) previous topic - next topic

kuruki

Hi, i recently received a cheap (around 12$) GSM module, namely the SIM800. It is the same one used by Adafruit Fona. I can communicate with it through the serial port, sending AT commands etc. However, it doesn't seem to want to connect to the cellular network, even if it should (since Adafruit uses it and the bands seemed compatible, right?).
Specifically, i am following the instructions here and everything seems normal such as the module name and revision or the SIM card number. However, when I send the crucial AT+COPS? command, i get back +COPS: 0 instead of something like +COPS: 0,0,"Carrier_name".


Any ideas on what could be going wrong? I just hate to think that i bought yet another GSM module just for it not to be compatible in Europe (i live in Sweden and my carrier is Comviq).

The GSM module I have is this:



Thanks in advance! :)

Hade samma problem här det var pin-koden som krånglade. Har du provat med deaktiverat pin-kod ?
https://github.com/AndreasVan

kuruki

Hade samma problem här det var pin-koden som krånglade. Har du provat med deaktiverat pin-kod ?
Well i don't have any PIN code activated right now. When i put the sim card into my phone, it boots up and gets a network signal without any prompt for pin or password. Should i do anything else? I saw there were some AT PIN commands but i never bothered to go through them since there is no PIN active at the moment.

P.S. I live in Sweden, i'm not Swedish, I understand the language though. :smiley-mr-green:

Ok ! Where do you come from ?

Anyway, its important that you have a 2G sim-card; 3G or 4G doesn't work.
"Comviq kontant" is working fine for me.
https://github.com/AndreasVan

kuruki

Hmm, well what does a "2G sim card" mean? Does it apply for us? Mine is not a "data" (3G/4G) sim card if that's what you're asking. The one I have should be 2G + 3G (+ 4G :P ) since it can operate in both of the networks. (i use it for every day normal phone calls, so i know it works and has enough credit in it).

I'm from Greece, studying in Gothenburg. :)

PS. It's not the PIN.

Quote
AT+CPIN?
+CPIN: READY

Hmm, well what does a "2G sim card" mean?
2G Sim Cards means  "Data SIM only". Its the best way is to call "Kundtjänst" to see if your sim is working in 2G network.
https://github.com/AndreasVan

kuruki

To my knowledge, they don't even sell "2G only" sim cards any more. I tried the "AT+COPS=?" command yesterday and it printed among some other stuff the TELIA network. This is my only indication so far that the GSM module finally "sees something"! So as a last resort i went and bought a TELIA sim card. However I haven't tried it yet. Hopefully tomorrow. Will keep you posted! :)

stoutfiles

You will need to know the APN your SIM uses to connect.  I use this particular one:

https://www.roamline.com




kuruki

You will need to know the APN your SIM uses to connect.  I use this particular one:
https://www.roamline.com
The tutorials i've found online for the specific module don't mention anything like this. Why would i need a special (international) SIM card, since this module is for the simple GSM bands that we have here?

kuruki

I tried the new SIM card of a different carrier. I disabled the SIM card's PIN number and made sure there's enough credit to make calls etc (tried it first with my phone), so the SIM card generally works.

Let's verify there's no PIN.
Quote
AT+CPIN?
+CPIN: READY

OK
Ok, let's check the network. The AT+COPS? command now returns something much better. (before it'd reply with 0)
Quote
AT+COPS?
+COPS: 1

OK
From the documentation "1" stands for "Operator available".
Ok, that's good, let's check the signal now, which before was 0,0.

Quote
AT+CSQ
+CSQ: 21,0

OK
Very nice!

Let's turn the verbose errors, set the text mode on and try to send an sms.
Quote
AT+CMEE=2
OK
AT+CMGF=1
OK
AT+CMGS="00467692*****"
> test
>
+CMS ERROR: unknown
Aaaaaand nothing.... :(

Let's try to make a phone call. Maybe that works.
Quote
ATD76922****;
OK

NO CARRIER
Nope. :/
So the behavior is definitely different than before, seems better, but still. Before i would get a "NO DIALTONE" reply when i'd try to make a phone call and generally i couldn't even get so far into the sending message sequence.

Any help would be greatly appreciated. Is there any chance that I have a "wrong" SIM card? This is just a normal SIM card that can make/receive calls and messages in all the standard networks (2G, 3G, 4G).

dannable

Try prefixing the numbers you are texting / calling with the international code - +46 for Sweden. You may need to drop the leading zero from the operation / location code.
Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

Let's verify there's no PIN.
AT+CMGS="00467692*****"
> test
>
+CMS ERROR: unknown
Try ++467692....


ATD769220230;
OK

NO CARRIER
Here you was missing the "0" it has to be 0769220230
https://github.com/AndreasVan

kuruki

I still get a "NO CARRIER" reply. It doesn't really matter what number i put there, since it doesn't reach the stage where the validity of the number is checked. (it just checks if the given argument after the at-command, is less digits than the upper limit)

Quote
ATD076922****;

OK

NO CARRIER
ATD++4676922****;

+CME ERROR: operation not allowed
ATD+4676922****;

OK

NO CARRIER

ATD+46076922****;

+CME ERROR: operation not allowed

For example
Quote
ATD12345;

OK

NO CARRIER

Clemens

What power connection do you have? I had some trouble with at least one (other) GPRS board that was connected to the Arduino's power rail directly. I got some responses to AT commands--so I thought it is working--but power was not sufficient for sending. This is not nice for debugging because "something is working", and often you do not think about power because power is a 1/0 thing in the most cases.

Seems like you have this item: http://www.ebay.de/itm/SIM800L-GPRS-TCP-IP-Module-Pop-up-Card-Slot-GSM-Card-microSIM-2PCS-Antenna-NEU-/181627843185

Quote
Operating voltage: 3.7 - 4.2V (peak current 2A, please be prepared to handle)
I used a 3.7V Lipo to got it running.


Clemens

Hmm, this is interesting: https://www.youtube.com/watch?v=-manXBQFy3Y seems like using Arduino's 5V with a power dropping diode and it is nevertheless working.

Go Up