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

How to send AT commands to serial port through C - Linux

Of course there is termios.h, but here I am talking about AT commands. I want them to get executed. How to send AT commands to serial port through C in Linux so that they get executed?
Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411
0
votes
1 answer

Fatal error: Uncaught exception 'Exception' with message 'Unable to setup COM port, check it is correct'

Fatal error: Uncaught exception 'Exception' with message 'Unable to setup COM port, check it is correct' in C:\xampp\htdocs\jsms\sms.php:61 Stack trace: #0 C:\xampp\htdocs\jsms\sms.php(17): gsm_send_sms->init() #1 {main} thrown in…
0
votes
1 answer

Find IMEI / ESN of attached device programmatically

I need to get IMEI/ESN of a mobile device when it is connected with the computer system using USB. What can I do? I came across JTAPI, but I am still not sure if there is an implementation good enough for my task. PS: I of course need to do it…
Aman Gautam
  • 3,549
  • 2
  • 21
  • 25
0
votes
1 answer

Hylafax modems stuck in "Sending job" state

I have 12 modems connected to my HylaFax server, it appears that sometimes i get some of my modems stuck in "Sending job" state till i disconnect the line from the modem to get the job killed. The modem can stay in this state forever without any…
zfou
  • 891
  • 1
  • 10
  • 33
0
votes
1 answer

AT+CCED=0,1 ERROR Minicom [GPRS]

From: http://www.communica.se/multitech/gprs_at.pdf Values: [mode] 0: One shot requested 1: Automatic shots requested 2: Stop automatic shots [requested dump] 1: Main Cell: • If the Cell Identity is available MCC, MNC, LAC, CI,…
Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411
0
votes
1 answer

sending AT commands to Prolink PHS300 with Mac OS X Lion

Today I am trying to send out SMS with my Prolink PHS300 USB modem by sending AT Commands to it from my machine running OS X Lion. I have adjusted the settings for my modem such as checking "Connect using a terminal window..." etc. Right now I am…
chongzixin
  • 1,951
  • 4
  • 28
  • 55
0
votes
1 answer

Re-opening Closed Serial Port

i have an application that detects a USB 3G Dongle that will be used for sending SMS. My application queries the Dongle via AT Commands to determine if it is the RIGHT dongle, this means that that certain dongle can only be used in my application…
newbie
  • 1
  • 1
0
votes
2 answers

Locating GSM Cell information for any android device Using AT Commands

I would like to retrieve Network information from any Android device. I know i could use it as a modem (when connected to a PC) and then call AT+KCELL which is exactly what i need - yet i have no idea how to do this while a user isn't operating (IE…
Aiden Strydom
  • 1,198
  • 2
  • 14
  • 43
0
votes
0 answers

xmlrpc access to serial port not possible; different response (AT cmd, C++, python)

I have some C++ code to talk to a modem, based on a class BufferedAsyncSerial (see here) using the serial library from boost. With a short code in C++ like this BufferedAsyncSerial device("/dev/ttyACM0",9600); device.writeString("AT\r"); std::cout…
Alex
  • 41,580
  • 88
  • 260
  • 469
0
votes
4 answers

How to retrieve the telephone number from an AT CMGL response?

I have an application written in C that reads text messages from a modem using AT commands. A typical AT response from the modem looks like this: +CMGL: 1,"REC READ","+31612123738",,"08/12/22,11:37:52+04" The code is currently set up to only…
pbean
  • 727
  • 1
  • 10
  • 20
0
votes
1 answer

Cinterion MC52i - How to delete ALL SMS?

in USB modem (Huawei E1550) command AT+CMGD=0,4 deletes all SMS from memory. But I cannot do the same in MC52i. AT+CMGD=? returns just OK, no options it is showing at+cpms? +CPMS: "MT",85,85,"MT",85,85,"MT",85,85 How to delete ALL SMS at once?
ADO_kg
  • 65
  • 2
  • 13
0
votes
1 answer

AT,RIL how to use

How to use AT at Windows Mobile phone not connect with PC?
dane
0
votes
0 answers

How to receive SMS sending confirmation from Service Center using AT command

I am currently using the following Code to Send SMS using AT Command using (var sp = new SerialPort(CBComPort.Text)) { sp.Open(); sp.WriteLine("AT" + Environment.NewLine); sp.WriteLine("AT+CMGF=1" + Environment.NewLine); …
kashif
  • 3,713
  • 8
  • 32
  • 47
0
votes
2 answers

Is it possible to get GSM cell name? Other infos?

Does the GSM operators hold this information of the Cell Name? Is it possible to get the Cell name as we usually do with Cell ID? Is it possible to ask for the tower's GPS position with an AT command?
Rodrigo Gurgel
  • 1,696
  • 2
  • 15
  • 32
0
votes
1 answer

Arduino Mega ADK and Itead Bluetooth Shield V2.2 can't get AT commands to work

I am using the Arduino Mega ADK chip with the Itead Bluetooth shield V2.2 and Arduino 1.01 software and I cannot figure out how to get the AT command to return 'OK' from the Arduino serial monitor. I have the bluetooth chip setup for cmd where the…