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

Execute AT commands to send sms in php

I am trying to execute AT commands from PHP. I tried exec() and shell_exec() Please don't suggest third party SMS gateway my client doesn't want to disclose his private information and wants to send SMS from his own server. I have a GSM modem attach…
Milind More
  • 307
  • 1
  • 4
  • 15
7
votes
5 answers

How to send a sequence of AT commands to a serial port in bash?

In Linux I need to send a sequence of AT commands to a serial port on e.g. /dev/ttyS0, which has to wait for an OK answer before the next command is sent. I could imagine doing something like echo 'AT' > /dev/ttyS0 echo 'ATS0=0' > dev/ttyS0 ... but…
Alex
  • 41,580
  • 88
  • 260
  • 469
6
votes
6 answers

How do I go about writing a program to send and receive sms using python?

I have looked all over the net for a good library to use in sending and receiving sms's using python but all in vain! Are there GSM libraries for python out there?
Gath
  • 569
  • 2
  • 8
  • 7
6
votes
1 answer

How to change/create SIM PIN using AT commands when the SIM card has no PIN?

I'm using a SIM868 module and I was using my usual SIM card with no problem, but now I have bought a new SIM card and has no pin. I need to add a PIN code in order to have more security. I have checked that it has no PIN enabled using this command:…
Javier C
  • 85
  • 1
  • 7
6
votes
2 answers

Is there an AT command to force registration/ attach to a 5G NR cell?

I used to "force network attach" to LTE on my Android device using at+cops=0,,,7 Is there an AT command for 5G NR?
6
votes
1 answer

AT+CMGL="ALL" command return only OK

Manufacturer: huawei Model: E3533 Revision: 22.318.27.00.00 IMEI: 353934033009021 +GCAP: +CGSM,+DS,+ES AT+CMGS command work well. OK AT+CMGS="99667788" > test sms +CMGS: 45 OK AT+CMGL="ALL" OK AT+CPMS="SM" +CPMS:…
tsogtgerel.ts
  • 955
  • 1
  • 15
  • 32
6
votes
2 answers

what is the purpose of using USSD Commands in our J2ME Application? Is this possible?

I heard there is USSD Commands in Mobile.But i dont know what it is? i was googling two more sites.i did not understand it.Please anybody having knowledge about USSD Commands, share with me. How it is useful when we using USSD Commands with our j2me…
Saravanan
  • 11,372
  • 43
  • 143
  • 213
6
votes
1 answer

VAG TP 2.0 complete list of AT commands

I am trying to find DTCs from various ECUs in a Skoda Rapid 2009 model. I am using OBDLink SX (elm 327 chip) and Putty (similar to HyperTerminal) https://jazdw.net/tp20 This link gives the list of commands that I should request the ECUs of any VAG…
Soumya Sen
  • 121
  • 6
6
votes
2 answers

Error on sending AT+CWJAP_DEF commands to ESP8266

I am trying to send AT commands to ESP8266 to get connected with internet with the Wifi. When I am sending AT and AT+RST command on serial monitor then I am getting OK and ready response which seems perfect. Then I am sending AT+CWLAP to get list of…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
6
votes
2 answers

CME Error :10 - Sim not inserted error in SIM800 GSM Module

I get +CME ERROR: 10 on setting AT+COPS=1 Below is my terminal AT command output: AT OK AT+CSQ +CSQ: 12,0 OK AT+CMEE=1 OK AT+COPS=? +COPS: (2,"405800","405800","405800"),(1,"40505","40505","40505"),(‌​‌​1,"AirTel","AirTel‌​",‌​"40410"),(1,"…
navjosh
  • 187
  • 2
  • 2
  • 13
6
votes
1 answer

How to get user response using ATD commands GSM modem in c#

I am trying to make IVR system GSM modem. I am done with calling on number using code below SerialPort SP = new SerialPort("COM3"); SP.BaudRate = 9600; SP.Parity = Parity.None; SP.DataBits = 8; SP.StopBits = StopBits.One; SP.RtsEnable =…
Hot Cool Stud
  • 1,145
  • 6
  • 25
  • 50
6
votes
4 answers

Sending AT commands to SIM900 whilst pppd is active

I have a Raspberry Pi with a SIM900 GSM add-on board connected. I have managed to establish a GPRS connection with pppd by following this guide. (It's for a different GSM module but the steps are the same) I would like to periodically send an AT…
Ollie
  • 473
  • 3
  • 7
  • 19
6
votes
6 answers

HC-05 bluetooth RSSI not working with Arduino

I cannot get my HC-05 bluetooth modules to output RSSI values. I issue it the following commands in series: AT+INIT -> *OK* AT+INQM=1,9,48 -> *OK* AT+INQ -> *No response, it starts flashing rapidly, indicating AT mode is no longer…
Houen
  • 1,039
  • 1
  • 16
  • 35
6
votes
1 answer

What does ^BOOT coomand means on Huawei E220?

I have connected Huawei USB UMTS modem (E220) to my Linux box, i.e. RaspberryPi. Now I get 2 ttyUSB port available to communicate to it, where I use ttyUSB0 to establish mobile Internet connection and ttyUSB1 for other tasks, like sending and…
TomiL
  • 671
  • 2
  • 11
  • 25
6
votes
1 answer

AT command with iPhone

I want to send AT command with my iPhone app but I don't know how to do it. I know AT command can use for blockSMS, sendSMS, etc. Any help?
user1561904
  • 243
  • 3
  • 11
1 2
3
93 94