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

How to properly triangulate GSM cell towers to get a location?

First of all, I am trying to do all this disaster in c# (.net 4) so if you come up with some code to help me that would be appreciated but really anything would help at this point. I have a situation where I have a device that can only get GSM Cell…
kmp
  • 10,535
  • 11
  • 75
  • 125
26
votes
1 answer

Send AT Commands to Android Phone

I want to Send AT Command to Android phone. I know SDK does not support this. but there are two solution : change the code of Kernel and release your new Android (it seems it is so hard!) LoopBack on USB.(i think Bluetooth is same) About second…
M.Movaffagh
  • 1,284
  • 5
  • 20
  • 33
21
votes
2 answers

How to send and receive some data via a GSM modem during an active call (Python and AT Command)

I wrote the below Python program to communicate with my D-Link DWM-156 GSM modem. This program wait for incoming calls and as it receive a RING alert, it accepts that call. Fortunately it works fine ;) The Program: import time import serial phone =…
Ebrahim Ghasemi
  • 5,850
  • 10
  • 52
  • 113
18
votes
1 answer

Receiving "NO CARRIER" error while tring to make a call using GSM modem in Python

I want to make a call using my GSM modem. So I wrote the below program: import time import serial recipient = "+98xxxxxxxxxx" phone = serial.Serial("COM10", 115200, timeout=5) try: time.sleep(0.5) phone.write(b'ATZ\r') time.sleep(1) …
Ebrahim Ghasemi
  • 5,850
  • 10
  • 52
  • 113
17
votes
5 answers

AT+CMGS returns ERROR

I am using SIM900 GSM module connect to my AVR Microcontroller. I tested it with FT232 to see transmitting data. First Micro sends AT it will response OK AT OK AT+CMGF=1 OK AT+CMGS="+9893XXXXXX" returns ERROR and doesn't show ">" Could anybody…
Mohammad Farahi
  • 1,006
  • 4
  • 14
  • 38
16
votes
2 answers

AT command - USSD

I'm using Minicom (serial port software for Linux) for interacting with my GSM modem. Actually now I'm trying to use one of my mobile-provider's services with AT commands. Here I say, I want to see my balance: AT+CUSD=1,*555*87*1234# OK +CUSD:…
atari83
  • 489
  • 1
  • 5
  • 15
13
votes
4 answers

How to Send/Receive SMS using AT commands?

Can anyone help me to send and receive SMS using AT commands in Python? In case it matters, I'm using Fedora 8. Which phone will be better with Linux (Nokia, Sony Ericson, Samsung,.....)? Will all phones support sending and receiving SMS using AT…
RSK
  • 17,210
  • 13
  • 54
  • 74
13
votes
3 answers

GSM MODEM : AT COMMAND to know my operator

Can any one please let me know, is there any AT command by which I can detect the current operator name? I have used AT+COPS? It returned me the numeric code for the operator: 0,2,40410 Then I used the command AT+WOPN = 0,40410 which returns the…
user1664899
  • 327
  • 2
  • 4
  • 15
12
votes
5 answers

Sending AT Commands Via ADB Android

I have a task at work to investigate if it is possible to send AT commands to an android device via ADB shell. So far,I have tried to echo out the AT commands but it passes them as normal strings. Any help please anyone.
Sani Yusuf
  • 982
  • 1
  • 10
  • 20
12
votes
1 answer

Bluetooth connection between Android and another phone over the Handsfree profile

I'm trying to use my Android phone as a handsfree kit (like the one for cars) in order to connect to another phone (any phone) and perform some handsfree functionality like (answer an incoming call, reject,.. etc) which can be done using the AT…
mjabdelhadi
  • 121
  • 1
  • 4
10
votes
1 answer

At-Sign in SQL statement before column name

I have an INSERT statement in a PHP-file wherein at-signs (@) are occurring in front of the column name. @field1, @field2, It is a MySQL database. What does the at-sign mean? Edit: There is no SET @field1 := 'test' in the PHP script. The PHP…
testing
  • 19,681
  • 50
  • 236
  • 417
10
votes
2 answers

Connecting APN using AT Commands

I need to connect in internet with a usb 3g dongle using at commands. My apn provider is: APN = tim.br Username = tim Password = tim How can I connect using only at commands? It's possible? Thanks.
FBilac
  • 163
  • 2
  • 2
  • 7
9
votes
1 answer

AT command in Android

I want to use AT command in my application to set some order to GSM modem. I searched Google but i could not find any good answer! Do you have any solution? and can i use ADB to send AT command to android?
M.Movaffagh
  • 1,284
  • 5
  • 20
  • 33
9
votes
2 answers

+CMS ERROR: 304, sending message using at command

Im new to GSM and AT command sets, based on the error +CMS ERROR: 304 its a Invalid PDU mode parameter according to activexperts Im trying to send message using AT command to GSM modem in PDU mode AT+CMGF=0 OK AT+CMGS=31 >…
kudarap
  • 631
  • 3
  • 6
  • 16
9
votes
3 answers

Sending Unicode Messages (such as in Persian and Arabic) in C# using AT Commands through GSM Modem

I am developing an application for GSM Modems (D-Link DWM-156) in C#.Net using AT commands. I have a problem sending Unicode messages (Such as messages written in Persian or Arabic). Here it is the core of my program: SerialPort GSMPort = new…
Yasser Mohseni
  • 453
  • 2
  • 7
  • 17
1
2 3
93 94