Questions tagged [at-command]

AT Commands are text commands for communicating with a modem. Historically also called Hayes Command Set. For questions about the `at` command line tool use the tag [at-utility].

The most important, general specification covering AT commands is the ITU specification V.250 (formerly known as V.25ter). AT commands related to mobile phones are standardized by 3GPP in 27.007 (with some commands specified in 27.005). Historically, early AT commands were developed by modem manufacturer Hayes.

An AT command can be one of two fundamental types, action command or parameter command. This is important to distinguish because valid syntax for such commands is different (although specifications unfortunately sometimes mess up here).

Responses from the modem can be of three fundamental types:

Final result code

  • Indicates that the execution of the currently running AT command is finished. Examples: OK and ERROR.

Intermediate result code or Information text

  • Responses related to a command that comes before the final result code. Examples: CONNECT and +CPBR.

Unsolicited result code

  • Responses that the modem issues independently of any running AT command as response to certain events (in the modem). Examples: RING and +CREG.

References

1408 questions
9
votes
2 answers

How can I extract the MCC and MNC from a PLMN?

I am running the AT command AT+KCELL to get cell information and it returns, amongst other things, a PLMN (Public Land and Mobile Network) - the description of this from the documentation is: PLMN identifiers (3 bytes), made of MCC (Mobile Country…
kmp
  • 10,535
  • 11
  • 75
  • 125
8
votes
1 answer

SIM800L Blank SMS issue

I am using a SIM800L module with a Texas Instrument Launchpad, with a MSP430G2553 microcontroller, not using an external library for SIM800L. Problem Statement: A Simple text message (SMS with Text Mode) is sent, received as a blank message on…
WedaPashi
  • 3,561
  • 26
  • 42
8
votes
5 answers

How to get the SIM number (ICCID) of a modem using AT commands

I'm trying to get the SIM number (ICCID, not IMSI) of my 3G Huawei E5830 modem using AT commands (also called Hayes command set). Unfortunately, it's not specified in the modem formal documentation.
Forge
  • 6,538
  • 6
  • 44
  • 64
8
votes
3 answers

How to programmatically connect internet via datacard with AT commands?

I have a datacard ZTE MF190. I want to use AT commands to register in 2G or 3G and access internet via datacard. Found this article about how to make data call: AT+cgatt=1 AT+CGDCONT=1,”IP”,”epc.tmobile.com” //I used my operator PDP…
LEQADA
  • 1,913
  • 3
  • 22
  • 41
8
votes
1 answer

Quectel chip QIMODE change with '+++' & 'ATO'

I am trying to implement my library to send data over tcp connection. In official documentation from Quectel they let you select AT+QIMODE=1 also called Transparent mode where all data sent from UART is sent over tcp connection. I am trying to check…
Amrit
  • 423
  • 6
  • 22
8
votes
5 answers

AT command to know own phone number

I have been working lately on AT commands testing. I had difficulties in finding the own number when the sim is not subscribed for SMS and voice calls(in some special cases where sim is used for lab experimenting). Is there any way to know own…
Sarwan
  • 595
  • 3
  • 8
  • 21
8
votes
1 answer

Suitable Android device for engineering project

I'm working on an Android application that can get low level information from a GSM modem. It depends on sending AT-Command to the modem and receive the answer. The application is done but there seems to be a problem with the device. Most of the…
Mohammad Alshaar
  • 523
  • 4
  • 21
8
votes
1 answer

How to send and receive SMS from python using usb modem?

I'm a beginner in python and i'm looking for a library to send and receive SMS through a Huawei modem. I tried gammu, pysms and pygsm but failed to get them to work. Could you give me code examples with those libraries?
Bilel_a
  • 163
  • 1
  • 3
  • 8
8
votes
1 answer

Is there a reply to AT+GCAP & co. to tell "I'm not a modem, go away"?

I'm working on the firmware of a device that is going to be connected to PCs using Bluetooth in serial port emulation mode. During testing, I found out that modem-manager on Linux "helpfully" tries to detect it as a modem, sending the AT+GCAP…
Matteo Italia
  • 123,740
  • 17
  • 206
  • 299
8
votes
2 answers

What is the best design for polling a modem for incoming data?

I have a GSM modem connected to my computer, i want to receive text messages sent to it using a python program i have written, am just wondering what is the best technique to poll for data. Should i write a program that has a infinite loop that…
gath
  • 24,504
  • 36
  • 94
  • 124
8
votes
2 answers

Using Android-emulator to test AT commands by COM from external application

I need send AT commands to a usb GSM modem whith C#. The problem is that i havent no GSM modem or GSM enabled device yet to develop then i was looking for a emulator. The only simulated GSM modem i found was that come with the Android SDK. My…
newway
  • 647
  • 1
  • 13
  • 21
7
votes
1 answer

Using GSMComm Library Get USSD Result

I'm trying to run ussd code via gsm modem to get sim balance. I'm using GsmComm library, ASP.NET Web Form, C#. Below is my code : public string SendUssdRequest2(string request) { comm = ConnectAndGetComm(); string data =…
Shafikul Islam
  • 359
  • 1
  • 10
7
votes
2 answers

Sending modem AT command and parsing result

I would like to send AT command to my modem by using shell script and parse the result in order to verify if the OK is returned. at=`echo -ne "AT+CFUN1=1\r\n" > /dev/ttyUSB0 | cat /dev/ttyUSB0` What is the best way to parse the at1 variable and…
ogs
  • 1,139
  • 8
  • 19
  • 42
7
votes
4 answers

HM10 ble change characteristic value AT command Arduino

Can anyone help me with the AT command to write characteristic value, Or how to send data from arduino to another ble device using Hm10 module. The HM10 after sending the AT+START, does advertise packets, and can detect the service and…
7
votes
2 answers

Talking to modem with AT commands on android

I'm trying to talk to samsung galaxy s2 plus and huawei p1 xl (u9200) modem sending AT commands, but can't get any result. I'm sending commands using adb shell and view logs with logcat. In samsung when i execute cat /proc/tty/drivers i get the…
MightySeal
  • 2,293
  • 2
  • 17
  • 32
1
2
3
93 94