Eg21-g AT command to network register

Hi,

We are using the Quectel EG21G LTE module, where we enable the network using the qmicli command.
qmicli -d /dev/cdc-wdm0 --wds-start-network=“apn=APN,ip-type=4” --client-no-release-cid

In the EC200U module, we can use the AT command AT+QNETDEVCTL=1,1,1 to enable the network and register the IP in a single step.

Is there a similar AT command available for the EG21G module to enable the network and register the IP similar like QNETDEVCTL?

Thanks!

Dear Mugunthan,

Thank you for reaching out.

For EG21-G there is no AT+QNETDEVCTL command like on EC200U.

On EG21-G, when the USB network interface is configured as RmNet, you can use the AT$QCRMCALL command from the AT port to start the network connection in a similar way to what qmicli --wds-start-network does.

  1. Configure the USB network interface as RmNet (once):
AT+QCFG="usbnet",0

Then reboot the module.

  1. Start the network connection on profile 1:
AT$QCRMCALL=1,1

On success the module will respond, for example:

$QCRMCALL: 1,V4
OK

At this point the RmNet interface (e.g. wwan0) is up on the host, and you can run a DHCP client on that interface (for example udhcpc -i wwan0 on Linux) to obtain an IP address.

So, while EG21-G does not support AT+QNETDEVCTL, using AT+QCRMCALL=1,1 together with DHCP on the host side is the closest equivalent to enabling the network and registering the IP via AT commands on this module.

Best regards,
Aghelan