Quectel RM520N-GL and automatic connection to the network (AT+CFUN=1)?

Hi,

How to force automatic connection to the network (AT+CFUN=1)?

I have Quectel RM520N-GL modem (Revision: RM520NGLAAR03A04M4G) in Waveshare 5G M.2 TO Gigabit ETH (SKU: 26059) conneted to Ubiquiti Gateway using Gigabit Ethernet port.

Every time after startup, I have to enter a command in the CLI: AT+CFUN=1

Quectel RM520N-GL modem configuration:

AT+QCFG=“usbnet”,0 (RMNET)

AT+QCFG=“data_interface”,1,0
AT+QCFG=“pcie/mode”,1
AT+QETH=“eth_driver”,“r8125”
AT+QMAPWAC=1
AT+QMAP=“MPDN_rule”,0,1,0,1,1,“XX:XX:XX:XX:XX:XX” (replaced to Ubiquiti MAC address)
AT+CGDCONT=1,“IPV4V6”,“internet”
AT+QMAP=“IPPT_NAT”,0
AT+QMAP=“auto_connect”,0,1

After manually entering the command: AT+CFUN=1
AT+QMAP=“wwan” - return correct IPv4 address

How to force automatic connection to the network (AT+CFUN=1)?

Dear @dreamt
After execute AT+QMAPWAC=1, it need to restart.
You can try at+qmap=“auto_connect”,0,1 .