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

Reading AT Commands result codes

I'm working on a project witch involves sending AT commands to mobiles phones modems and receiving their result codes. I already succeeded on sending the at commands, but what i couldn't figure out is reading the result codes from the commands like…
Sifeddine
  • 31
  • 2
3
votes
5 answers

End of response to an AT command

How to be sure what is end of an AT command send to GSM module? I need some character or string that represent end of AT command for every case due to finding when whole response is received. I guess it have something with "\r\n" sequence but,…
viktor.radovic
  • 508
  • 2
  • 9
  • 20
3
votes
2 answers

How to deal with odd message from AT+CMGL command

I have a bit of code (incidentally in .net but I don't think that matters) that sends and receieves SMS messages via a GSM modem plugged into the USB port of a Windows 7 PC (using AT commands sent to a virtual serial port). It works generally fine…
kmp
  • 10,535
  • 11
  • 75
  • 125
3
votes
2 answers

Gsm interfacing with atmega16

I am working on GSM sim900D interfacing with Atmega16. Initially I made the circuit using MAX232 on breadboard. Then I connected it to my PC using a serial port. I tested AT commands, the commands worked perfectly on hyper terminal and I was able to…
user1660817
  • 31
  • 1
  • 2
3
votes
3 answers

AT commands Send/receive SMS

I am new to AT commands. I am using Nokia E71 to send and receive SMS. I am designing an application for sending SMS, but my code is not working. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using…
Ahmed Khakwani
  • 410
  • 2
  • 8
  • 18
3
votes
3 answers

Problems in executing AT commands at modem startup

I am developing an application which will read and write data to gsm modem. When i switch off the modem and switch on again, at start up i need to send an AT command so that that modem automatically sets to the settings given for the port. When i…
Shiridish
  • 4,942
  • 5
  • 33
  • 64
3
votes
1 answer

Error detection in 3G modem

I am trying to add some error detection to a script that is used to send SMS messages from our surveillance system. Most of the time it works like a charm but in some rare cases it stops sending the messages and we have no idea why. We haven't been…
Gisli
  • 734
  • 2
  • 11
  • 34
3
votes
0 answers

Clear PDP contexts from modem (Ericsson F3307)

I have an Acer tablet PC which has the Ericsson F3307 modem built in. I have written some software which requires the modem to dial a connection. Included in this connection is setting the PDP context. I do this by issuing the…
Rich S
  • 3,248
  • 3
  • 28
  • 49
3
votes
1 answer

Could you please suggest JAVA API wrapper around GSM AT commands?

Want to write an auto-answering (GSM call) program around a gsm voice modem which can be controlled by AT commands. Could you please suggest a nice Java API wrapper around GSM AT command. Have never worked before on such applications so please let…
Ankur
  • 103
  • 2
  • 10
3
votes
1 answer

How do I read the output of an AT command in Arduino?

How do I capture the output from an AT command on an Arduino? I'm using the Arduino Uno R3 with a GSM shield. I have all the AT commands (they can be seen here ) and I can enter them just fine if I use the terminal and get output. However how can I…
BOMEz
  • 1,020
  • 14
  • 34
2
votes
1 answer

CMS Error 518 while sending messages using AT Commands

I have connected a gsm modem to my computer. I am trying to read sms from gsm modem and send sms to other mobile numbers using AT commands. When I type at+cmgl ="all" It lists all the messages from SIM card. But the messages displyed in hyper…
Shrikant
  • 153
  • 1
  • 4
  • 19
2
votes
2 answers

ADB shell script to send AT commands to a modem-cannot return control to a shell and capture output

I already posted similar question, but still could not get my job done, so this a a second attempt, where I would like to more clearly state my stumbling block. So basically I am in Android phone's adb shell, communicating with the GPRS modem by…
2
votes
1 answer

How to read sms from gsm using java comm?

I found free source project to send sms using java comm: http://code.google.com/p/find-ur-pal/source/browse/src/?r=21 Function sending sms looks like this: public void run(){ boolean timeOut=false; long startTime=(new…
Robert
  • 2,571
  • 10
  • 63
  • 95
2
votes
0 answers

How to hide SIM number when sending SMS via AT commands?

How can I change or hide SIM number, is there a way to do it via AT commands or doing something?
2
votes
1 answer

Send and read result of an At command to a usb modem in c#

I would like to know how to send and receive the result of an AT command sent to a usb modem. I've found lot of info, but I don't know what is the best way: I've found this :…
GregM
  • 2,634
  • 3
  • 22
  • 37