GSM module L651. So long network registration - gsm

I'm using in my work GSM Module Linq L651. While working, I ran into a problem: the module registers on the network for a very long time. For one minute it found some network, and then it registers on the network for 5 minutes.
There is AT commands example to connect to my server.
+CPIN:READY
OK
//1 minutes left
AT+CSQ
+CSQ: 19,99
OK
AT+CFUN=1,1
OK
//5 minutes left
AT+COPS?
+COPS: 0,2,"25002", 0
AT+CGATT=1
+CGATT:1
OK
AT+CGACT=0,1
OK
AT+CGDCONT=1,"IP","internet"
OK
AT+CIPMUX=0
OK
AT+CSTT="internet","gdata","gdata"
OK
+CIICR
+CSCON: 1
+CSCON: 0
COMMAND NO RESPONSE!
AT+CGACT=1,1
OK
AT+CIPSTART="TCP","XX.XX.XXX.XX",60001
OK
+CSCON: 1
+CSCON: 0
+CSCON: 1
CONNECT OK
I tryed to set some connect modes like AT+COPS=0 automatic mode.
I use a laboratory power supply for supply, also i have bypass capacitors in supply chain too. So, it is not may be a supply problems.
I also tried different firmware versions. But I didn't get a good result.
What am I doing wrong? A similar module (Quectel BC92) on a similar board works fast.

I wrote to module manufacturer. He answer that i should set network priority before registration:
For GSM Priority:
AT+CFUN=0 //set sim minimal functionality
AT+CFGDUALMODE=1,0 ////dual mode single standby+close fastwitch
AT+CFGRATPRIO=2 //GSM priority
AT+CFUN=1 //set sim ful functionality
For NB Priority:
AT+CFUN=0
AT+CFGRATPRIO=4
AT+CFGDUALMODE=1,1
AT+CFUN=1
For NB Only:
AT+CFUN=0
AT+CFGRATPRIO=4
AT+CFGDUALMODE=0
AT+CFUN=1
Then need set mode use command AT+CFGDFTPDN=<mode> save settings and reeboot module. After that it connect to operator wery fast

Related

AT+CGATT? returns "ERROR" from SIM800C module when connected with Arduino

I have used the SoftwareSerial library and Serial interface to communicate between SIM800C and Arduino in serial communication mode.
I gave
AT
AT+CSQ
AT+CGATT?
AT+SAPBR=3,1,"CONTYPE","GPRS"
etc via Serial monitor. When I used it for the first time, these commands worked fine.
But I put the sim back to my android phone to find the correct APN for 2G settings.
After I found out the APN settings, I put the sim back to SIM800C and tried the above commands.
AT and AT+CSQ return OK.
But
AT+CGATT?, AT+SAPBR=3,1,"CONTYPE","GPRS" return ERROR.
Then I try following commands too If someone needs to help me find the answer to this question.
I'm a beginner, so I don't need exactly what these commands mean. So if you need more details to ask me.
My intention is to send data to a website.
AT+CREG?
+CREG: 0,0
OK
at+cgreg?
+CGREG: 0,0
OK
AT+CGATT?
ERROR
AT+COPS=?
+COPS: (1,"Hutchison Lanka (Pvt)","Hutch","41308"),(3,"Mobitel","MOBITEL","41301"),(2,"CELLTEL INFINITI","CELLTEL","41303"),(3,"DIALOG","DIALOG","41302"),,(0-4),(0-2)
First, You're not registreted in the network. Second, do CGATT=1 If you get error wait, because attach can take a time. Even up to 13,5min. Read 3GPP docs about registering to the network and about GPRS attach procedure.

"short message transfer rejected" m590 device

Im trying to get a M590 circuit to send a GSM/GPRS SMS,
I have communication with the cirtuit using serial communication using PUTTY.exe
on power on the M590 starts up, giving the following printout:
MODEM: STARTUP
+PBREADY
It has registered to the GSM network since
+AT+CSQ ;given as input gives
22,2
+AT+CREG?
+CREG: 0,1
to sen an SMS i enter the following (Ok is the response recieved)
+AT+CMGF=1 ;ie set mode text
OK
+AT+CSCS="GSM" ;ie GSM coding of chars
OK
+AT+CMGS="+46739550618" ; the sending command (my phone ;)
"hii" ctrl-z
... it goes away a while
ERROR
Instead of ctrl z, you can try : push alt then 026 and then release alt. It did work for me.

RS 232 issue in ATEasy

I am using ATEasy 7 142g in Windows 7.
I have a ZUP power supply module that I am communicating with RS232.
The weird thing is, that if I open HyperTerminal and send the device commands and try to receive result - all works fine.
BUT when I send the same commands in ATEasy and try to read results (and VERIFICATED it using the "monitor" feature), the zap module starts to send endless jibrish until I restart it (unplug it).
All the channel configurations are the same (baud rate etc...).
The set of commands that work in HyperTerminal but not in ATEasy:
:ADR01;
:RMT1;
:RMT?;
The result in case of HyperTerminal is :RM1;
In case of ATEasy the result is just jibrish until device restart.
What can be the reason?
In the end, the problem was entirly something else:
Noise from a motor cable was injected into the ZUP communication cable.
So everytime the motor was activated - the ZUP module com channel went crazy!

SIM800 gsm Module returns 0 on AT+COPS?

I am using SIM800 Module with Arduino Micro. It reponds well to basic AT commands. But i am unable to send SMS from this module as:
AT+CMGF=1
ERROR
Now while further debugging i saw AT+COPS? Returns 0, means not connected to any operator. That may be causing the CMGF failure. But my AT+COPS=? returns multiple operator. I have an Airtel working sim. Intialyy it was showing AIRTEL too in AT+COPS=? but not now.. anything to do with signal??
AT+COPS?
+COPS: 0
OK
AT+COPS=?
+COPS: (2,"405800","405800","405800"),(1," IDEA CELLULAR Ltd","IDEA","40404"),(1,"40505","40505","40505"),,(0-4),(0-2)
What is going wrong here. any inputs?
It seems there's no service for your network close to you. The module is unable to register with the network. The command AT+CREG? will probably give you +CREG: 0,3 meaning it couldnt connect. AT+COPS=? is a query that yields the possible options for the result of a command or its inputs. Move your circuit to another location and see if AT+CREG? returns +CREG: 0,1 or +CREG: 0,5 which signifies a valid network registration.
Go to an area where the signal strength is pretty good.
Check for AT+CSQ, this will tell you the signal strength.
Do check for AT+CMEE=1 for error report.
Might be some power issues, but I fixed mine by just trying some AT command
AT+CBAND?
Then, AT+CBAND="DCS_MODE"
That works for me. Give it a try man.

HM10 BLE 4.0 Send AT Commands instead of passing through serial

When I send any commands to the HM10 BLE Bluetooth module, it sends the commands through bluetooth instead of the HM10 module processing the command. For example, I expected to send AT and have the module respond with "OK", but it sends the text "AT" through the bluetooth connection. I have tried sending the command with no bluetooth connection and the same thing happens. I have also tried sending the command via bluetooth instead of the serial connected to the device and I get the same thing.
When HM10 is connected to remote ble device it is in transparent mode. To put it into AT mode you need break connection or not establish it at all.
For breaking connection use reset/break pins. Reset is 12 pin and Break seems to be 23 pin.
It has sense to look IMME parameter of the module (page 32 of datasheet).
IMME Query/Set Module work type
1: When module is powered on, only respond the AT Command, don’t do
anything. Until AT + START, AT+CON, AT+CONNL commands is received.
0: When power on, module will start work immediately Default: 0
Also be carefull with strings endings, usually string doesn't need to be terminated with any symbol at all: AT, but some H11 need the string to end with CRLF: AT\r\n
Maybe (Maybe) your problem because of using clone module, try this solution with upload genuine firmware to your hm-10.
How to flash genuine HM-10 firmware on CC2541
I had problem close from your problem but for me no matter what I send I don't receive anything even to connected device, but after I upload that firmware, and change Module work mode to 1 (AT+MODE1) become able to send command even from connected device.

Resources