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

AT COMMANDS - USSD returns only OK

I have bought ZTE MF667 GSM Modem and i am using Hyper Terminal to send AT COMMANDS, i have a problem with USSD e.g : AT+CUSD=1,"*111#",15 (to check balance) but it returns only OK AT+CUSD=1,"*111#" returns only OK I have tested another AT COMMADS…
PHP5
  • 69
  • 2
  • 6
3
votes
3 answers

AT command for SIM Pin retries left

Does anyone know an AT command that will allow me to query how many retries of entering PIN on a SIM card before it locks me out? I've tried AT+CPIN? but that does not give me how many times I can enter the PIN before I need a PUK. How do normal…
Clement
  • 73
  • 1
  • 6
3
votes
1 answer

Cant connect to no-ip update servers from sim900

First of all whoever can help me with this, I thank you from the bottom of my heart. This is very frustrating. I am getting 603 error when I do a GET request. Okay. I am using a sim900 and want to send an HTTP get request to no-ip.com 's update…
taz
  • 43
  • 4
3
votes
1 answer

Directly read SMS when it arrives via GSM modem in PC over Serial Communication

I am using SIM9000A GSM Modem and have it connected it to my PC. The issue is that whenever SMS is received by my SIM I receive below data in PC: +CMTI: "SM",8 I want that all incoming SMS should be directly be read in PC and need not send any…
Programmer
  • 8,303
  • 23
  • 78
  • 162
3
votes
1 answer

Getting tower location instead of gps

I have a GSM/GPS unit connected to a Microcontroller, the communication between them works fine. I am able to get the GPS and send it to the Microcontroller but there are times when the unit is inside the building so I can't really get the current…
Ammar
  • 1,203
  • 5
  • 27
  • 64
3
votes
3 answers

Unable to read AT Command Response

I test some basic AT Command in Hyperterminal. The GSM modem response as per my command too. But problem is that it shows me the unreadable text. I use the following code : AT OK AT+CUSD=1,"*247#",15 OK +CUSD:…
Drop Shadow
  • 845
  • 3
  • 12
  • 28
3
votes
3 answers

GPRS module AT command HTTP Post request

i am using the GL865-DUAL GPRS module from Telit. I'm trying to set up a HTTP POST request to a website with my location variables. I am able to set up a working GPRS connection wit h the provider (got ip adres) but at the post at-command it goes…
user3055369
  • 33
  • 1
  • 4
3
votes
1 answer

How to get tx level during call by using AT-Command

I want to know the tx level of my mobile. I have an AT command terminal, and I just want the AT command that make me get the tx level. I tried this command: AT*PSENGI=2 but the modem returns: Error also this command returns Error AT+CMGI but…
Mohammad Alshaar
  • 523
  • 4
  • 21
3
votes
1 answer

Dealing with GSM modem by JNI in android

I'm developing a program that send at-command to GSM modem and I want to read the response. Some programmers advice me to use atinout program in this link. so I ported to android and simplify the code to this C code, because I don't want to use…
Mohammad Alshaar
  • 523
  • 4
  • 21
3
votes
2 answers

how to deal with the serial port in android mobile?

actually I know no thing about serial port. but I see an example of sending it an at-command: echo -e "AT" > /dev/smd0 What is /dev/smd0 and why they sometimes replace it with /dev/ttyS0.
Mohammad Alshaar
  • 523
  • 4
  • 21
3
votes
1 answer

implement at command on rooted android and get the result

I'm a beginner in stackoverflow so I cant add a comment. I saw this page: Read command output inside su process and I tried this answer and it is ok: Process p = Runtime.getRuntime().exec(new String[]{"su", "-c", "system/bin/sh"}); DataOutputStream…
Mohammad Alshaar
  • 523
  • 4
  • 21
3
votes
1 answer

USSD received message decoding

I'm sending AT+CUSD command to a modem and when i receive this message i can't understand it nor decoding it in any way please i need help. this is a sample AT+CUSD=1,"*100#",15 +CUSD: 0,"Service not allowed.",15 OK AT+CUSD=1,"*155#1#",15 +CUSD:…
samhightech
  • 91
  • 12
3
votes
4 answers

I use at-command for get Caller ID but just write ok ring

I am using the following method to detect the CallerID when someone calls. private void Form1_Load(object sender, EventArgs e) { serialPort1.PortName = "COM3"; serialPort1.RtsEnable = true; serialPort1.BaudRate = 9600; …
VenusKa
  • 61
  • 1
  • 6
3
votes
2 answers

Send USSD code to modem in C# and ERROR in return always

I am sending USSD code on modem through serial port. But always it is giving ERROR in response. AT commands I am sending are: in sequence: serialPort.Write("AT+CMGF=0" + "\r\n"); serialPort.Write("AT+CUSD=1,\"*135#\"" + "\r\n"); when I am…
Robin Purbia
  • 227
  • 2
  • 17
3
votes
3 answers

Use perl to send AT commands to modem

I have a embedded Linux box with perl 5.10 and a GSM modem attached. I have written a simple perl script to read/write AT commands through the modems device file (/dev/ttyACM0). If I write a simple command like ATZ\r to the modem and wait for a…