Online Tips n Tricks
All about AT commands - Printable Version

+- Online Tips n Tricks (https://a-zgsm.com/tipsntricks)
+-- Forum: Mobile Broadband Discussion (https://a-zgsm.com/tipsntricks/forum-5.html)
+--- Forum: Tools - Tips (https://a-zgsm.com/tipsntricks/forum-11.html)
+--- Thread: All about AT commands (/thread-3341.html)



All about AT commands - nnm - 14-05-2020

AT commands are the instructions used to communicate directly with a modem or router. AT stands for ATtention that instructs the router about the start of a new command, that’s why every command starts with the word “AT”. For example, AT^SN,  here SN is the actual command which is basically used to display the serial number of the router.
Let us have a look at the basic AT commands:-

AT^RESET: Restart your router
AT^SN: Display the serial number of the router
AT^NVRDEX=50503,0,128 : Retrieve Unlock Hash
AT^NVRDEX=50502,0,128 : Retrieve Datalock Hash
AT^VERSION? :  Information about the version of the modem firmware
AT^HWVER? : information about the version of the modem hardware

Change Band Setting

AT^SYSCFGEX = “03”, 3FFFFFFF, 2,4, 40 ,, Example for only 2600 MHz Frequency
AT^SYSCFGEX = “03”, 3FFFFFFF, 2,4, 4 ,, Example for only 1800 MHz Frequency
AT^SYSCFGEX = “03”, 3FFFFFFF, 2,4, 80000 ,, Example for only 800 MHz frequency
AT^SYSCFGEX = “00”, 3FFFFFFF, 1,2,7FFFFFFFFFFFFF ,, Basic setting
Enable or disable Modes 3G/4G
AT^SYSCFGEX = “00” 3FFFFFFF, 2,4,7fffffffffffffff ,, ====== Auto.
AT^SYSCFGEX = “02”, 3fffffff, 2,4,7fffffffffffff ,,      ====== 3G only.
AT^SYSCFGEX = “02”, 400000,2,4,7FFFFFFFFFFFFFFF ,, ====== 3G (2100 MHz)
AT^SYSCFGEX = “02”, 2000000000000,2,4,40 ,, ====== 3G (900 MHz)
AT^SYSCFGEX = “02”, 2000000400000,2,4,40 ,, ====== 3G (900/2100 MHz)
AT^SYSCFGEX = “03”, 3fffffff, 2,4,7ffffffffffffff ,, ====== Only 4G
AT^SYSCFGEX = “0302”, 3FFFFFFF, 1,2,7FFFFFFFFFFFFFFF ,, ====== 4G / 3G.

Reset Datalock to 12345678

AT^NVWREX=50502,0,128,4A FB 2D 5A 34 74 86 F0 A6 CC AE 46 99 53 83 1D 5C B1 7E 2A EF B2 B0 1A EF 53 03 8E C8 FF 1C 0D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 8B 8C F4 B5 AF 0C F2 2C FE E0 F4 46 9C CF 47 95 36 71 1F 1C BF 05 7F 84 AB A9 F2 92 89 33 3C 01 00 00 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Reset Datalock to 00000000

AT^NVWREX=50502,0,128,8F 29 FF 8E A8 CA 34 89 78 73 18 BA 9E F5 9C 64 0B A4 DB 81 DC 03 45 6E 72 DA EC 6A 0C 7C 90 65 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 8B 8C F4 B5 AF 0C F2 2C FE E0 F4 46 9C CF 47 95 36 71 1F 1C BF 05 7F 84 AB A9 F2 92 89 33 3C 12 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Reset Datalock to 99999999

AT^NVWREX=50502,0,128,C3 39 93 98 47 F7 75 08 1E 65 EC 04 38 3A 45 A6 FA AF 46 4B 78 FF 53 FF 79 73 33 90 9D FF F1 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B8 16 47 98 42 21 26 0E 86 1D A8 C8 E0 C2 0C FC 8F 2E A9 01 9D 58 05 3C 15 43 37 BC 95 66 E4 CF 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Check whether a router is locked or unlocked
Execute the below command after inserting Unsupported SIM in router

AT^CARDLOCK?
will give the output as CARDLOCK: A,B,0
Where:
A = 1 (Modem locked),
A = 2 (Modem unlocked)
A = 3 (Custom Lock)
B = The count of remaining attempts to enter unlock code.
Your modem might show ^CARDLOCK:1, X, 0, where X is any number from 0 to 10. If 0 then you can’t enter unlock code.
Check Datalock is enabled or disabled.
AT^DATALOCK?
If the output is 0, means disabled and if it is 1 then it is enabled