Hi,
I’ve got an active PDP context on an EG800Q, and running AT+CGCONTRDP I get the following response:
+CGCONTRDP: 1,5,"<APN>","<local IPv4>","<gateway IPv4>","<DNS1 IPv4>","<DNS2 IPv4>"
OK
According to documentation of the command it should also return the subnet mask, but it doesn’t do this, and I’m wondering why?
Here’s the module’s info for reference:
Quectel
EG800Q-EU
Revision: EG800QEULCR01A09M04
Thanks,
Daniel
Hi,
Here’s the output:
ATI
Quectel
EG800Q-EU
Revision: EG800QEULCR01A09M04
OK
AT+CGCONTRDP
AT+CGCONTRDP
+CGCONTRDP: 1,5,"<APN>","<local IPv4>","<gateway IPv4>","<DNS1 IPv4>","<DNS2 IPv4>"
OK
AT+CGPADDR
AT+CGPADDR
+CGPADDR: 1,"<local IPv4>"
OK
AT+CGDCONT?
AT+CGDCONT?
+CGDCONT: 1,"IP","<APN>","0.0.0.0",0,0,0,0
OK
<APN> is consistent
<local IPv4> is consistent, and is equal to `
DNS1 IPv4 and DNS2 IPv4 are different
The subnet mask is not displayed because this parameter is not configured on the core network
1 Like
I see, thanks for the informatio!
Hello,
I have EC21ECGAR06A06M1G modules and the same question about CGCONTRDP command: subnet mask (and gateway) is not returned.
AT+CGCONTRDP
+CGCONTRDP: 1,5,wm,100.97.232.46,,8.8.8.8,8.8.4.4
OK
AT+CGPADDR
+CGPADDR: 1,"100.97.232.46"
OK
AT+CGDCONT?
+CGDCONT: 1,"IP","wm","0.0.0.0",0,0,0,0
OK
I do not understand the solution:
this parameter is not configured on the core network
What should be configured? What command(s) to use?
Can you give me more details?
Thanks,
Arnaud
Hello Herbert,
Thanks for your reply.
I need this information for multiple things:
- Understand why AT command document says
AT+CGCONTRDP returns [...]<local_addr and subnet_mask>[,<gw_addr>[...] and I don’t received subnet_mask and gw_addr (configuration problem?).
- Configure network interface and route (even if I have recently understood I can compute these values).
These modems can be tricky to start/configure reliably (may they need a firmware update?) and I wand to know more about their working.
Any help will be appreciated!
Arnaud
No, my device is a modem from Teltonika (https://teltonika-networks.com/products/modems/trm240).
I have read the AT command documents found in Quectel website. Does it exist more general configuration guide to understand the modem subtleties?
Arnaud
(reply delayed by forum moderation rule)
You can execute AT command to set
AT+CGDCONT
I use AT+CGDCONT command to set APN:
AT+CGDCONT=1,"IP","wm","0.0.0.0",0,0,0,0
I read the assigned IP address (AT+CGPADDR) with success but I can’t read all the documented values with AT+CGCONTRDP:
+CGCONTRDP: 1,5,wm,100.97.232.46,,8.8.8.8,8.8.4.4
Which AT+CGDCONT parameter(s) should I change?
I am very confused about your request, if your product is a router, you should enable the network card mode of the modem