# RM5xxx AT Commands

AT Command

Here are some useful commands:

- See https://github.com/iamromulan/RM520N-GL#at-commands for more
- AT+CFUN=1,1 (reboot)
- AT+QMAPWAC? (get current status of auto connect, 0=disabled 1=enabled)
- AT+QMAPWAC=1 (enable auto connect internet for ethernet)
- AT+QMAPWAC=0 (disable auto connect for ethernet; use when you want internet over usb to work; IPPT must be disabled)
- AT+QUIMSLOT? (get active sim slot; 1=Slot 1; 2=Slot 2)
- AT+QUIMSLOT=1 (switch to sim slot 1)
- AT+QUIMSLOT=2 (switch to sim slot 2)
- AT+CGDCONT? (Get active APN profle list 1 through 8)
- AT+CGDCONT=1,"IPV4V6","APNHERE" (Sets APN profle 1 to APNHERE using both IPV4 and IPV6)
- AT+GSN (Show current IMEI)
- AT+EGMR=1,7,"IMEIGOESHERE" (sets/repairs IMEI)
- AT+QCAINFO (Show all connected bands/CA info)
- AT+QNWPREFCFG="mode_pref" (Check what the current network search mode is set to)
- AT+QNWPREFCFG="mode_pref",AUTO (Set network search mode to automatic)
- AT+QNWPREFCFG="mode_pref",NR5G:LTE (Set network search mode to 5G/NR and 4G/LTE only)
- AT+QNWPREFCFG="mode_pref",NR5G (Set network search mode to 5G/NR only)
- AT+QNWPREFCFG="mode_pref",LTE (Set network search mode to 4G/LTE only)
- AT+QNWPREFCFG="nr5g_disable_mode" (Check to see if SA or NSA NR5G is disabled)
- AT+QNWPREFCFG="nr5g_disable_mode",0 (Enable Both SA and NSA 5G/NR)
- AT+QNWPREFCFG="nr5g_disable_mode",1 (Disable SA 5G/NR only)
- AT+QNWPREFCFG="nr5g_disable_mode",2 (Disable NSA 5G/NR only)
- AT+QNWPREFCFG="nr5g_band" (Get current 5G/NR bandlock settings)
- AT+QNWPREFCFG="nr5g_band",1:2:3:4:5:6 (Example: Lock to 5G/NR bands n1,n2,n3,n4,n5, and n6)
- AT+QNWPREFCFG="lte_band" (Get current 4G/LTE bandlock settings)
- AT+QNWPREFCFG="lte_band",1:2:3:4:5:6 (Example: Lock to 4G/LTE bands 1,2,3,4,5, and 6)
- AT+QMAP="WWAN" (Show currently assigned IPv4 and IPv6 from the provider)
- AT+QMAP="LANIP" (Show current DHCP range and Gateway address for VLAN0)
- AT+QMAP="LANIP",IP_start_range,IP_end_range,Gateway_IP (Set IPv4 Start/End range and Gateway IP of DHCP for VLAN0)
- AT+QMAP="DHCPV4DNS","disable" (disable the onboard DNS proxy; recommended for IPPT)
- AT+QMAP="MPDN_rule",0,1,0,1,1,"FF:FF:FF:FF:FF:FF" (Turn on IP Passthrough for Ethernet)
- AT+QMAP="MPDN_rule",0 (turn off IPPT/clear MPDN rule 0; Remember to run AT+QMAPWAC=1 and reboot after)
- AT+GSN (Show current IMEI)