Hi,
At first, the modem connected with MBIM, but it didn't last long; I couldn't connect again.
Then I tried it with QMI and managed to connect again, but I'm having several problems. Sometimes it connects, but if I restart the modem, it always gives me +CGFUN=0, and I have to manually reset it with AT+CGFUN=1.
It's difficult to connect, even if it detects the SIM card, and the cellular network can't maintain a stable connection. If I restart, +CGFUN=0 returns.
With the modem in QMI, I tried creating the interface in LuCi in MBIM. Upon the next restart, the modem is recognized as the RM520N model.
Now, strangely enough, it's been working and stable for a couple of hours now. Now the problem remains with CFUN=0 upon reboot. How can I force CFUN=1 automatically upon a reboot?
AT+CFUN=1 is normally not persistent, so a delayed startup command can be used as a workaround. In LuCI, open System → Startup → Local Startup, then add this before exit 0:
(
sleep 30
gl_modem -B <USB-BUS> AT 'AT+CFUN=1'
) &
Replace <USB-BUS> with the modem path shown by gl_modem, such as 2-1; do not copy that example blindly. The delay allows the RG501Q-EU to finish initializing before the command is sent. If you tell us the exact command or interface you currently use to send AT+CFUN=1, we can adapt the startup entry precisely.
This custom RG501Q-EU startup automation is not officially supported by GL.iNet. Any guidance is provided on a best-effort basis, and GL.iNet Technical Support may not be able to troubleshoot or maintain this configuration. It would also be worth checking the modem vendor’s documentation or firmware, because repeatedly starting in CFUN=0 may indicate a stored modem setting rather than normal router behavior.
This reply was generated by AI. Please verify its accuracy.
GL.iNet Technical Support reviews and responds to relevant threads on business days. Please allow time for a staff response.
Can the Beryl Ax's USB port handle the power consumption of the RG501Q-EU? Is it needed for additional power? And if so, would a 5V 2A power supply suffice?
The Beryl AX USB port is limited to about 5 V / 1 A, so it may not reliably power a 5G modem such as the RG501Q-EU during current peaks. Insufficient power can cause USB disconnects, failed initialization, or modem resets, although it does not by itself confirm the cause of CFUN=0.
Use a powered USB hub or modem enclosure/carrier board with its own power input. A 5 V / 2 A supply may still be marginal; use the voltage and current rating specified by the enclosure manufacturer—preferably 5 V / 3 A if supported. Do not connect 5 V directly to the M.2 modem, and avoid a USB Y-cable that can back-feed power into the router unless it is specifically designed to isolate the power paths. Continue powering the Beryl AX with its normal adapter.
This RG501Q-EU configuration is not officially supported by GL.iNet. Any guidance is provided on a best-effort basis, and GL.iNet Technical Support may not be able to troubleshoot or maintain this configuration.
This reply was generated by AI. Please verify its accuracy.
GL.iNet Technical Support reviews and responds to relevant threads on business days. Please allow time for a staff response.
What configuration should I use to connect the RG501Q to the Beryl without the risk of rebooting or insufficient power?
Use a powered modem carrier/enclosure with a dedicated power input rather than powering the RG501Q-EU from the Beryl AX’s USB port.
- Power the Beryl AX separately with its original 5 V / 3 A adapter.
- Install the modem in a compatible carrier/enclosure that regulates power correctly for the module and is rated for its peak current. Use the enclosure manufacturer’s recommended supply; 5 V / 3 A or higher is preferable if explicitly supported.
- Connect the enclosure’s USB data port to the Beryl AX. Ensure the enclosure or powered hub does not back-feed 5 V into the router.
- Use a short, good-quality USB 3.x cable. USB disconnect/reconnect messages in the system log during connection attempts would still suggest a power or cable issue.
Do not feed 5 V directly into the modem module, and do not rely on a passive Y-cable unless its power paths are properly isolated. A generic powered USB hub may also work, but only if it can provide the modem’s required peak current while maintaining USB data; a purpose-built powered carrier is safer.
This RG501Q-EU configuration is not officially supported by GL.iNet. Any guidance is provided on a best-effort basis, and GL.iNet Technical Support may not be able to troubleshoot or maintain this configuration.
This reply was generated by AI. Please verify its accuracy.
GL.iNet Technical Support reviews and responds to relevant threads on business days. Please allow time for a staff response.
I applied this suggestion and the CTFUN=0 problem seems to be solved.
Now the connection problem remains.
Good—the startup workaround appears to address CFUN=0. The remaining issue must now be separated into mobile-network registration, QMI/MBIM mismatch, or USB power/disconnection. Please do not create an MBIM interface while the modem is operating in QMI mode.
After a failed connection attempt, post the non-sensitive outputs of these AT queries, together with the exact Beryl AX firmware version:
AT+CPIN?
AT+CEREG?
AT+CSQ
AT+QCFG="usbnet"
AT+CGDCONT?
Also check the kernel log for repeated USB disconnect / reconnect messages. If those occur, test with the independently powered modem carrier discussed above before changing software settings. Please redact APN details if they identify a private service; do not post full logs or device identifiers. The RG501Q-EU is not officially supported by GL.iNet. Any guidance is provided on a best-effort basis, and GL.iNet Technical Support may not be able to troubleshoot or maintain this configuration.
This reply was generated by AI. Please verify its accuracy.
GL.iNet Technical Support reviews and responds to relevant threads on business days. Please allow time for a staff response.
It's working. I deleted the interfaces I had created and/or modified. I rebooted the router without the RG501. Only then did I connect the modem (I had to set AT+CFUN=1), and the Beryl recognized and configured the modem correctly.
We configured the router to issue the AT+CFUN=1 command, but this only works with a complete modem reboot. Can the same be done after a modem-only reset?
Hi,
Thanks for the update.
Regarding AT+CFUN=1 , the Local Startup script is only executed as part of the OpenWrt boot process, so resetting the modem alone will not run it again.
If the modem reset causes the USB device to reconnect, you can try using a USB hotplug script to trigger the command automatically when the modem appears again.
For example:
cat <<'EOF' > /etc/hotplug.d/usb/99-rg501-cfun
#!/bin/sh
[ "$ACTION" = "add" ] || exit 0
case "$PRODUCT" in
2c7c/800/*|2c7c/0800/*)
(
sleep 30
gl_modem -B $(get_modem_bus.lua) AT AT+CFUN=1
logger -t rg501-cfun "AT+CFUN=1 sent after modem reconnect"
) &
;;
esac
EOF
chmod +x /etc/hotplug.d/usb/99-rg501-cfun
The delay allows some time for the modem to finish initializing before the AT command is sent.
You can also use lsusb to confirm the VID/PID of your RG501Q-EU and adjust the value in the script if necessary.
However, please note that this is a workaround example and it depends on the modem reset generating a USB reconnect/hotplug event.
If the modem remains enumerated during the reset, this method will not be triggered.
When would you prefer AT+CFUN=1 to be triggered—for example, after using the Reset Modem function in the Web Admin Panel, after the modem reconnects over USB, or in another situation?




