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
4
votes
2 answers

A C# Class to work with AT commands?

Is there a class for AT communication with devices? Like a class which encapsulates AT commands into a .NET interface? It needs to be also able to parse AT responses such as Network Lists. Example : +COPS=? returns a list of carriers and it would…
Kristina
  • 15,859
  • 29
  • 111
  • 181
4
votes
1 answer

Sending multi part sms with GSM using AT Commands

I have a windows application for sending SMS connecting to a GSM Modem. I only use AT Commands for connecting to port and sending text. My problem is I can't send a message more that one part (each part is 160 characters for English and 70…
4
votes
0 answers

Dongle only receiving SMS when sending one itself

I am currently working on a project for which it is required to receive SMS messages using a dongle. The dongle being used is a Huawei E3131 Hi-Link dongle, which is configured in serial mode via USB-modeswitch. Communication to the dongle is done…
WiFiOn
  • 41
  • 5
4
votes
1 answer

Send Unicode (USC2) SMS with AT commands

I am trying to send Unicode SMS using at commands and USC2 encoding. But it doesn't work, as I get errors. Here is my inputs: AT OK AT+CSCS = ? +CSCS: ("IRA","GSM","UCS2") AT+CSCS="UCS2" OK AT+CMGF=1 OK AT+CSMP=1,167,0,8 //So this one doesnt work,…
kaktusas2598
  • 641
  • 1
  • 7
  • 28
4
votes
1 answer

How to detect the remote side rejected a voice call with AT command

Situation: On a GSM based modem, you start a voice call with ATDxxxxxxxxx; Some modem issue a "CONNECT" when the remote side has answered, or other modem returns "^CONN: 1, 0" on the diagnostic port. However, if the remote side rejects the call,…
xryl669
  • 3,376
  • 24
  • 47
4
votes
2 answers

Howto properly parse response data received from GSM module?

I'm looking for some guidelines how to properly parse response data received from GSM module. I'm using uBlox SARA-G350. Documentation states: Information responses: Result codes: If the…
dariol
  • 1,959
  • 17
  • 26
4
votes
1 answer

SIM900 GSM/GPRS not getting a proper AT+CREG? answer

I'm using an Arduino UNO with attached IComsat SIM900 GSM/GPRS shield. Using the following tutorial: Arduino Live GPS Tracker I'm stuck with the AT+CREG? command, which checks if the SIM-card is registered at the provider. The following logic is…
Daniel
  • 1,179
  • 4
  • 18
  • 31
4
votes
1 answer

How to send SMS messages in Matlab by using AT commands? Not using email gateways

Problems: I am able to use hyperterminal to send SMS via COM9. All good. But I cannot properly use AT commands in matlab to do the same thing. I even cannot pass the first "AT" step. The error I received is "Unexpected Error: Unexpected Error: An…
4
votes
1 answer

How can I make continuous communication with OBD II ELM327 adapter?

Currently I am working on an app where I have established a connection with OBD II ELM 327 adapter and I can read data from OBD II. e.g. I have used OBD command "01 0C" to get rpm of vehicle. I want to retrieve real time data e.g. speed or rpm from…
KavitaDev
  • 475
  • 3
  • 7
  • 15
4
votes
1 answer

AT command AT+CPMS="SM","SM","MT"

I needed a clarification about the AT command AT+CPMS="SM","SM","MT" Although this AT command work with most of the UEs,it however gives an error msg with the Nokia N72... I tried the AT command AT+CPMS=? & the mobile's response was "+CPMS:…
user172413
  • 41
  • 1
  • 2
4
votes
3 answers

Android: How to read low level network info (RSCP, EcN0, Layer 3 Signalling)?

I'm trying to create android app for measuring 2G 3G network similar to QualiPoc. I'm aware that there is basic Android API for gathering Network Info, for example: How to know Location Area Code and Cell ID in android phone However, this API is…
Emir
  • 1,586
  • 3
  • 16
  • 32
4
votes
2 answers

basic concept for sending receiving sms from C# application using gsm modem

Can anyone explain me the basic concept or provide me any documentation on sending receiving the sms using the gsm modem connected to pc via a C# application. I did find lot of source codes but not able to get what is the procedure or algorithm…
Sagar
  • 1,727
  • 4
  • 22
  • 30
4
votes
0 answers

Android: Can a 3rd party application use AT commands to auto answer phone call...?

I need to develop an auto answering (GSM call) Android application. I searched internet and learned that 3rd party applications do not have permission "android.permission.MODIFY_PHONE_STATE", because of which my application can not auto answer a…
blackfyre
  • 2,549
  • 5
  • 39
  • 58
4
votes
1 answer

Writing a GSM emulator for use with Android

For some work I'm doing, I want to have an emulated GSM modem which will communicate with an Android-x86 virtual machine over a Unix socket. The VM should see the emulator as a real modem and use it to send SMS (as the first pass of…
John
  • 443
  • 4
  • 13
4
votes
1 answer

perl Win32::SerialPort: difference between read and input methods

I have been trying to use the module Win32::SerialPort in perl 5.10 (perhaps it has some issues with 5.14). I would have to issue commands to the serial port and get their output. I have figured out that write will do the earlier part for me. For…
CuriousSid
  • 534
  • 3
  • 11
  • 25