EC20 AT+CGACT always return error

I am trying to get MQTT working through my module. I am using the quectel evb kit. Sim I use is a postpaid Vodafone 4g Sim. The steps I followed are:

AT+CGDCONT=1,"IP","www"
OK
AT+CGACT?
+CGACT: 1,1
+CGACT: 2,0
+CGACT: 3,0

OK
AT+CGACT=1,0
ERROR
AT+CGACT=1,1
ERROR
AT+CGPADDR=1
+CGPADDR: 1,"10.70.241.33"

OK
AT+QMTCFG="recv/mode",0,0,1
OK
AT+QMTOPEN=0,"<url>",1883
OK

+QMTOPEN: 0,0
AT+QMTCONN=0,"clientExample","id","password"
OK

+QMTCONN: 0,0,0
AT+QMTPUBEX=0,0,0,0,"test/",12
> Hello! World
OK

+QMTPUBEX: 0,0,0

This procedure works although AT+CGACT gives ERROR. As a matter of fact AT+CGACT output OK when I delete the apn AT+CGDCONT=1,"IP","" following the same procedure I am able to send data.

AT+CGDCONT?
+CGDCONT: 1,"IP","","0.0.0.0",0,0,0,0
+CGDCONT: 2,"IP","","0.0.0.0",0,0,0,0
+CGDCONT: 3,"IP","","0.0.0.0",0,0,0,0

OK
AT+QMTOPEN=0,"<URL>",1883
OK

+QMTOPEN: 0,0
AT+QMTCONN=0,"clientExample","id","password"
OK

+QMTCONN: 0,0,0
AT+QMTPUBEX=0,0,0,0,"test/",12
> Hello! World
OK

+QMTPUBEX: 0,0,0

Why does this work even without APN?
Additionally I cannot seem to enable SSL with and without apn :

AT+QMTCFG=“SSL”,0,1,0
ERROR

This all did work during my initial testing but then it stopped and hasn’t worked ever since.

Also is it possible to set the timezone to UTC?

Any help would be appreciated, thank you.

Are you sure “www” is the right APN for your SIM?

Yes, on further note I am able to send data even without an APN. :roll_eyes:

Dear Sir,
For LTE module, after the module register on network successful, it will active an default bearer, that is why you can open MQTT connection successful without set APN.
For the following error information, maybe you can try to use another <sslctx_idx> and check whether there still have such error information. It is better to check the module’s FW version first. Thanks!
image
About how to set time to UTC, you can try the following AT command. Thanks!

Hello Kyson, thank you for your help, timezone worked and I found out the ssl issue was wrong quotes (“SSL” instead of "SSL"). I require one more help.

Is queclocator available for India?
AT+QCELLLOC always times out for me.

AT+QLOCCFG="server"
+QLOCCFG: "server",220.180.239.212:80 

Is there any other server that I can try?
Thank you

Dear Sir,

yes, it is available for Global country. But you need to apply for the test token firstly, then if you want to use this service, you need to pay for it. Please contact our local sales to get the price of Queclocator service. Thanks!
Please click the following URL to register your device with module IMEI number, then apply for the test token.
http://iot.quectel.com/token_apply.html

Then you can use the server to test it again. Thanks!


Thank you, is it compatible with Mozilla location service backends?

Dear Sir,
The Queclocator service is provided by Quectel, and the server also Quectel’s. Sorry i do not understand what you said. Thanks!

I want to know if it is compatible with 3rd party servers and location services.

Additionally is EC20 modules still under production?

Dear Sir,
I am sorry it cannot compatiable with 3rd party servers. Just as i have said to you the Queclocator service is provided by Quectel, and the server also Quectel’s. Thanks!
Please help to provide the module FW version, then i can help to confirm whether it is still under production. Thanks!