AT commands to connect to JIO sim with EG91

AT
OK

AT+CPIN?
+CPIN: READY
OK

AT+QRFTESTMODE=0
OK

AT+QCFG="nwscanmode",3
OK

AT+QCFG="divctl","lte"
+QCFG: "divctl","lte",0
OK

AT+QNWLOCK="common/lte"
+QNWLOCK: "common/lte",0,0,0,0


AT+CGDCONT=1,"IP","jionet"
OK

AT+CGDCONT?
+CGDCONT: 1,"IPV6","jionet","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
+CGDCONT: 2,"IPV4V6","ims","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
+CGDCONT: 3,"IPV4V6","SOS","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,1

OK

AT+COPS?
+COPS: 1
OK

AT+COPS=1,2,"405869",7
OK


AT+CEREG?
+CEREG: 0,1



AT+CGATT=1
+CGPADDR: 1,"36.9.64.244.33.19.93.192.128.0.0.0.0.0.0.0"

AT+QPING=1,"8.8.8.8",4,4
OK
+QPING: 569

Is there any AT command that are needed to be include, to connect to JIO SIM. I’m getting invalid address so ping is getting failed, please guide me to connect to the sim

Hi Sathish,

Thank you for reaching out to us.

Based on your AT log, it seems that this is an “IPv6-only address”, and that is why ping fails.
+CGDCONT: 1,“IPV6”,“jionet”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0

May you try using this AT command sequence and test again?
AT+CFUN=0
AT+CFUN=1
AT+CPIN?
AT+CGATT=0
AT+CGDCONT=1
AT+CGDCONT=1,“IP”,“jionet”
AT+CGATT=1
AT+CEREG?
AT+CGPADDR=1 //Show PDP address
AT+QPING=1,“8.8.8.8”,4,4

Thank you and have a nice day!

Hi YangShuan,
Thanks for replying, I have attached the log of the given sequence.

---- AT ----
AT
OK
---- CFUN=0 ----
AT+CFUN=0
OK
---- CFUN=1 ----
AT+CFUN=1
OK
+CPIN: READY
+QUSIM: 1
+QIND: SMS DONE
+QIND: PB DONE

---- CPIN? ----
AT+CPIN?
+CPIN: READY
OK
---- Detach CGATT=0 ----
AT+CGATT=0
OK
---- Clear PDP context ----
AT+CGDCONT=1
OK
---- Set APN ----
AT+CGDCONT=1,"IP","jionet"
OK
---- Attach CGATT=1 ----
AT+CGATT=1
+CME ERROR: 30

After CGATT command modem got CME error response after few minutes and the remaining command also stopped from executing. Please guide me further.

This is your IPv6 address, 2409:40f4:2113:5dc0:8000:0000:0000:0000
Since your connection is IPv6 only, you cannot access IPv4 addresses directly, you will need 464xlat implemented on your side.
In order to access IPv4-only hostnames you should be able to use DNS64/NAT64 offered by your provider.

Can you guide me for using the AT+CGDCONT=1,“IP”,“jionet” to connect to the network.

You don’t need this, you had the right configuration at the very beginning:

@sathish what is your use case for this modem?
Perhaps you need to reach just a single destination on the Internet like MQTT broker?

Dear @sathish,

From the logs you shared, the module is already registered and attached on JIO (+CEREG: 0,1, AT+CGATT=1 returns an address via +CGPADDR). The “invalid address” is actually a valid IPv6 PDP address, just printed in a decimal format by the module:

+CGPADDR: 1,"36.9.64.244.33.19.93.192.128.0.0.0.0.0.0.0"→ IPv6:2409:40f4:2113:5dc0:8000::

That’s why AT+QPING=1,"8.8.8.8" fails: 8.8.8.8 is IPv4, and with an IPv6-only PDP you can’t reach IPv4 literals directly.

a) Recommended steps:

  1. Keep the PDP as IPv6 (your original setup is correct)
    AT+CGDCONT=1,"IPV6","jionet"
  2. Verify data path using an IPv6 destination (not IPv4)
    Try pinging an IPv6 target, e.g.:
    AT+QPING=1,"2001:4860:4860::8888",4,4 (Google DNS IPv6)
    or
    AT+QPING=1,"2606:4700:4700::1111",4,4 (Cloudflare DNS IPv6)

If this works, the JIO connection is confirmed OK.

If your application needs IPv4-only servers

There is no AT command that “converts” an IPv6-only PDP into IPv4.

b) About forcing IPv4 AT+CGDCONT=1,“IP”,“jionet” and +CME ERROR: 30

That result typically means the network is not accepting the requested PDP type / service at that moment (often seen when IPv4 PDP isn’t provisioned/allowed). So the safest approach is to revert to IPv6 PDP and validate with IPv6 targets as above.

If you share what you’re trying to reach (MQTT broker / HTTPS URL and whether it’s IPv4-only or supports IPv6), I can suggest the cleanest test sequence for that exact use case.

Best Regards,
Aghelan