How to fix "+CME ERROR: unknown network message" error while sending USSD command to the gsm modem? - gsm

I am trying to execute USSD codes through my GSM modem. When i try USSD command which gives me some option, it is executed but i can't get any operation done from the options.
AT+CMGF=1
OK
AT+CSCS="GSM"
OK
AT+CUSD=1,"*101#",15 (To check balance)
OK
+CME ERROR: 264
AT+CUSD=1,"*17108#",15 (To get a data pack)
OK
CUSD: 1,"1.Datapacks
.Voicepacks
.SMS Packs
.Billing info
ote:
Back:* Top:#",15
AT+CUSD=1,"1"
OK
+CME ERROR: 264

Related

Unable to post the data using GPRS

I am trying to send the data using GPRS sim800a but I am getting network error , before executing the AT+SAPBR=1,1.Signal strength will be good but as soon as AT+SAPBR=1,1 is executed, led starts blinking continuously and returns response code 601.I am using putty terminal.
Can anyone please help me how to resolve this issue? Here is the AT commands used and the responses I got
AT
OK
AT+CGATT=1
OK
AT+SAPBR=3,1,"Contype","GPRS"
OK
AT+SAPBR=3,1,"APN","airtelgprs.com"
OK
AT+SAPBR=1,1
OK
AT+HTTPINIT
OK
AT+HTTPPARA="CID",1
OK
AT+HTTPPARA="URL","IP/path:PORT"
OK
AT+HTTPPARA="CONTENT","application/json"
OK
AT+HTTPPARA="USERDATA","'X-M2M-Origin': "S006"\\r\\n 'Content-Type':'application/json;ty=4'\\r\\n 'Cache-Control':'no-cache'\\r\\n 'Accept':'application/json'"
OK
AT+HTTPDATA=30,80000
DOWNLOAD
{
"m2m:cin":{
"con":"FIRE"}
}
ok
AT+HTTPACTION=1
ok
+HTTPACTION:1,601,0

Sim900A cannot configure to use SSL

I'm using a gsm module Sim900A. I want to make a web request to a https api but it doesn't work.
Anything I write in the line AT+HTTPSSL gives an error, be it AT+HTTPSSL=? or AT+HTTPSSL=1...
Without this line, it works fine for HTTP requests but doesn't work with HTTPS urls.
This is the code I'm using:
AT+SAPBR=3,1,"Contype","GPRS"
OK
AT+SAPBR=3,1,"APN","www"
OK
AT+SAPBR =1,1
OK
AT+SAPBR=2,1
+SAPBR: 1,1,"xx.xx.xx.xx"
OK
AT+HTTPINIT
OK
AT+HTTPSSL=1 <-- this keeps on giving ERROR
ERROR
AT+HTTPPARA="CID",1
OK
AT+HTTPPARA="URL","http://my-api-url/xxx/yyy/zzz"
OK
AT+HTTPACTION=0
OK
+HTTPACTION:0,200,1819
AT+HTTPREAD
+HTTPREAD:1819
....CONTENT.....
OK
AT+HTTPTERM
OK
BTW, I'm using a Vodafone sim
If you get ERROR issuing AT+HTTPSSL=? (which is the test command, that should answer with the range of the parameters), I'm afraid that specific command is not supported in your particular module.
You can check this also issuing AT+CMEE=2 before 'AT+HTTPSSL=1', in order to enable verbose errors.
If you are sure that the module variant you are using does support SSL, verify that the FW version your module is running (check it by issuing AT+CMGR command) is the most recent one (you should find it out consulting the vendor site).

Asterisk WARNING[4695]: chan_dahdi.c:12320 do_monitor: Read failed with -1: Invalid argument

when I restart Asterisk and connect to the Asterisk console with a
asterisk -rv
Asterisk is spitting thousands of
WARNING[4695]: chan_dahdi.c:12320 do_monitor: Read failed with -1: Invalid argument
after some minutes of this crazy spitting of messages it quits with a
*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
a dmesg shows:
[ 3561.591539] asterisk[4695]: segfault at b3150fec ip b73a4b8d sp b3150ff0 error 6 in libc-2.19.so[b7334000+1a8000]
I have no idea how to deal with this and find no similar error anywhere.
I am using a Digium TDM410P telephony card with 2 FXO and two FXS interfaces.
Dahdi linux driver < 2.10.0.1 is incompatible with linux kernel 3.16+
See complete problem description and fix in Asterisk Jira:
https://issues.asterisk.org/jira/browse/DAHLIN-340

Connection failed in asterisk CLI

I am using php version 5.3.10 and asterisk version 1.8.22.0.
I am registering one customer of a2billing in softphone and dialing one number.
In asterisk i am getting below result:
<SIP/myip-0000004c>AGI Tx >> 200 result=1
<SIP/myip-0000004c>AGI Rx << Connection failed
<SIP/myip-0000004c>AGI Tx >> 510 Invalid or unknown command
[Dec 30 07:59:16] ERROR[28331]: utils.c:1343 ast_carefulwrite: write() returned error: Broken pipe
[Dec 30 07:59:16] ERROR[28331]: utils.c:1343 ast_carefulwrite: write() returned error: Broken pipe
-- <SIP/myip-0000004c>AGI Script a2billing.php completed, returning 0
Does anybody have any idea what is the issue?
I am getting correct credential in AGI when it is trying to connect and using those credential i can connect in mysql but from CLI> i am getting connection failed error.
Thanks in advance.
You need to install php5-adodb and libphp-adodb.

GSM ACM8060 gives error when using AT cmds in terminal but works with a cell phone

I am using a GSM module ACM8060.
When I try to send SMS using AT commands it returns ERROR but when sms sent from a cell phone using the same SIM it sends successfully.
+CREG: 3
AT+CMGS="nnnnnnnnnn"
ERROR
AT+CREG?
+CREG: 1,3
OK
AT+CMGF=0
OK
AT+CMGF=1
OK
AT+CMGS="nnnnnnnnnn"
> hello [pressed ctrlZ here]
ERROR
where nnnnnnnnnn is a 10 digit mobile phone no.
Which setting in the module could be wrongly set. It was working earlier.
And similar in case of TCP at AT+AIPA=1 it is giving ERROR: 301. Again it works with a cell phone. Which setting to look for?
I suggest turning on verbose error codes using ATV1 so you get more information than simply ERROR. You should then receive an error code like +CME ERROR: xxx or +CMS ERROR: xxx where the xxx will be a detailed error code.

Resources