User Tools

Site Tools


How To send AT commands to device

You need to connect device/modem to PC and access it with any COM terminal.

If you are not familiar with using COM terminal, download some graphical tool like: CuteCom or minicom.

Usually these settings work fine:

Device: /dev/ttyUSB0
Connection: 115200 @ 8-N-1
Line end: CR

Here is Example for Huawei E392 LTE/3G dongle.

Send: AT

Recieve: 1:MODEM
Recieve: 2:PCUI 
Recieve: 3:DIAG
Recieve: 4:PCSC
Recieve: 5:GPS
Recieve: 6:GPS CONTROL
Recieve: 7:NDIS
Recieve: D:MMS
Recieve: E:PC VOICE
Recieve: A1:CDROM
Recieve: A2:SD
Recieve: OK

Recieve: A1,A2;1,2,3,A1,A2
Recieve: OK

Send: AT^SETPORT="A1;2,7,A2"
Recieve: OK

Recieve: A1;2,7,A2
Recieve: OK

AT^SETPORT=? - Lists the Available interfaces and their numbers

AT^SETPORT? - Show current configuration

AT^SETPORT=“A1;2,7” - Sets configuration.

Modem configuration is splitted into 2 parts: before “;” and after.

Once modem is plugged-In - it declares itself in first configuration (normally with at least: A1 - virtual CD drive with Drivers and application). If the drivers are installed - they see the modem and issue a special command to switch to “working” configuration - this is 2,7 interfaces in this example.

:!: Never turn Off PC interface (2:PCUI in this example)!!! Otherwise you'd not have ability to access modem with terminal and change the config.

You can add more interfaces to be active i.e. SD card:


If you get ERROR, maybe the numerical mode is not sorted (16,2,7)→(2,7,16). If your device answers to set command with OK but AT^SETPORT? doesn't show your desired settings, you can try using space in between numerical modes(2,7) and alphabetical modes(A2) like this:

AT^SETPORT="A1,A2;2,7, A2"
or with multiple modes:
AT^SETPORT="A1,A2;2,7, A1,A2"
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
docs/guide-user/network/wan/wwan/at_commands.txt · Last modified: 2018/03/04 16:32 by bobafetthotmail