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

How to cancel USSD need response

I have Nokia device connected to the PC This is the code that I use to send USSD command: Port.Write("AT+CUSD=0,\"*147*1*#\",15\r\n"); It works fine, BUT it displays an option to choose the service. What I want is to stop it OR Exit (Quit) from that…
5
votes
2 answers

Is it possible to read signal quality from GSM/CDMA modems while connected?

I know I can communicate with GSM/CDMA modems using AT commands. However, as far as I know this doesn't work when connected - is there a way to read status information (signal strength, GSM/HSDPA mode etc) while connected? I am not sure if…
ondra
  • 9,122
  • 1
  • 25
  • 34
5
votes
2 answers

How to send Ctrl+z with gprs module

i want to send a picture with GPRS module and through a TCP connection to a server. but my picture contains some "1a" (CTRL+Z) value in some bytes. As we know this is the terminator character for sending sms or data with AT commands. how can I send…
s4eed
  • 7,173
  • 9
  • 67
  • 104
5
votes
3 answers

Erlang serial IO

I want to talk to my modem with erlang. It is mounted as /dev/ttyUSB and perfectly understands AT-commands. Can I read and write from the device with the standard file module? How about baudrate, bytesize, parity, RTS/CTS, DSR/DTR and the…
Hyperboreus
  • 31,997
  • 9
  • 47
  • 87
5
votes
1 answer

HTTPS requests on A9G via AT commands fail after 7 requests; HTTP works fine

I'm using AT commands to communicate with an Ai-Thinker A9G chip from an ESP8266, as part of a GPS tracker unit. It works fine to start with, then HTTPS requests start failing after sending 7 or 8 successfully. However, it's still fine making HTTP…
Mark Ormesher
  • 2,289
  • 3
  • 27
  • 35
5
votes
2 answers

AT Command for receiving automatic SMS notification

I have 2 gprs/gsm modems with me at the moment one of them is huawei and the other is a prolink modem. I have no problem sending or receiving SMSes via AT Commands. However I am trying to receive automatic notification using this command AT+CNMI and…
abduls85
  • 548
  • 8
  • 15
5
votes
0 answers

node js AT command return +CMS ERROR: 302

I'm trying to send sms using AT commands from huawei modem. but sometimes when using AT+CMGS it returns +CMS ERROR:302 This is my code var SerialPort = require('serialport'); var port = new SerialPort("/dev/ttyUSB0", { baudRate: 9600, dataBits:…
5
votes
2 answers

Audio and 3G data via UART in GSM module using AT commands

I have got a question. I want to buy a GSM/GPS/3G module for minicomputer like Orange Pi Zero Plus 2, so it can't be something like Raspberry Pi GSM Hat. I have found really good module, but I am not sure about some things. Maybe you can help…
Kacper G.
  • 662
  • 8
  • 30
5
votes
0 answers

Switching mode of my Huawei E3531

I'm using Mac OS X. I bought this Huawei E3531 because I need to use it as a GSM modem trough AT commands to send SMS. Connection is fine and all works great, but I need to switch the mode so that it can works as a serial modem and I can connect to…
Davide
  • 1,931
  • 2
  • 19
  • 39
5
votes
2 answers

Why I am not able to receive sms using AT commands?

I want to send / receive sms using AT commands from my computer to my mobile phone. I connected my phone to my computer using a USB port. My computer detects the modem and I am able to send sms from the computer to mobile phone. However, I am not…
Manish Basdeo
  • 6,139
  • 22
  • 68
  • 102
5
votes
1 answer

^SMMEMFULL:"RAM" error message in HUAWEI K2540 dongle

After receiving a number of +CMT messages (around 20-30, not sure) into TE (Terminal Equipment) I get this error: ^SMMEMFULL:"RAM" and will no longer see the incoming SMS messages, the same error comes instead of each SMS message. My Modem…
user6413892
5
votes
0 answers

How to get a response with an AT command via ADB?

I was doing what suggested here: Sending AT Commands Via ADB Android So after I rooted my Samsung S5, I found my modem with this command: getprop rild.libargs and I got this result: -d /dev/smd0 Then I typed into my adb shell: echo -c "AT\r\n" >…
mric750
  • 183
  • 8
5
votes
1 answer

How to auto-select the APN depending on SIM card?

I have this GSM embedded device under linux, where depending on external factors I might chose to put a different sim card into. But in the configuration for the PPP, I have to give an APN, which changes depending on the network du jour. How can I…
nraynaud
  • 4,924
  • 7
  • 39
  • 54
5
votes
2 answers

SIMCOM SIM5230A HTTP POST: Error +CHTTPACT: 237

I am struggling to get AT commands working that will get the 3G SIM5230 module to make a clean HTTP request. When I build and send what I believe is a good request, I do not get a response from the web server, only the error +CHTTPACT: 237. I can…
Roger
  • 2,063
  • 4
  • 32
  • 65
5
votes
2 answers

sending Json data to server using AT commands

I am having a website which accepts json data with post method.It works fine when i try sending the request from POSTMAN rest client. When i am trying to the same using AT commands its failing. This is the AT sequence i tried AT AT+CREG?…
ganeshredcobra
  • 1,881
  • 3
  • 28
  • 44