at-command

Unable in reading SMS from 3g USB dongle

笑着哭i 提交于 2019-12-12 02:13:22
问题 I'm building a windows service to read SMS from 3G dongle storage set as SIM card using AT commands. It's working good but some times it fails and response shows +CPMS: 0,0,0,0,0,0 . Code gsmPort.WriteLine("AT+CMGF=1"); //Set mode to Text(1) or PDU(0) gsmPort.WriteLine("AT+CPMS=\"SM\""); //Set storage to SIM(SM), MODEM(ME), BOTH(MT) gsmPort.WriteLine("AT+CMGL=\"ALL\""); //What catagory to read ALL, REC READ, or REC UNREAD response = gsmPort.ReadExisting(); When i move dongle into another port

Cellular AT Command sets. How universal are they

♀尐吖头ヾ 提交于 2019-12-11 20:13:29
问题 Pretty much every phone that has bluetooth (so pretty much every phone) has an AT command interface for controlling the phone. Some base commands are universal due to the fact theat they precede the cellular phones (ATDT, ATA, ATZ, etc). But there are many AT commands implmented specifcally to control or query cellular connection specific data. Are these commands at least somewhat standardized? If so, how? UMTS vs EVDO, Manufacture, etc.. 回答1: There is a 3GPP standard for AT commands: http:/

GSM modem AT commands UCS2 error 500

柔情痞子 提交于 2019-12-11 14:33:32
问题 Three days ago I started making a simple app to send SMS. I already tested it and it works in GSM CSCS mode, but when I switch it to UCS2 it doesn't show the Cyrillic letters <?php error_reporting(E_ALL); $fp = fopen("/dev/ttyUSB0", 'w+'); $msg = strtoupper(bin2hex(mb_convert_encoding("Тест", "UCS-2", "UTF-8"))); $number_raw = "+359000000000"; $number = bin2hex(mb_convert_encoding($number_raw, "UCS-2", "UTF-8")); echo $number."<br>"; echo $msg; $debug = false; if(!$fp || $debug){ //echo "Can

How to print response to AT commands in Arduino serial port?

心已入冬 提交于 2019-12-11 12:38:29
问题 I want to print the response to AT command. I'm sending AT command but I'm not getting any response in the Arduino serial port. It's giving -1 instead of OK. #include "SoftwareSerial.h" String ssid = "connectify-krish"; String password = "12345678"; String myword= ""; SoftwareSerial esp(10, 11); void setup() { Serial.begin(9600); esp.begin(9600); esp.write("AT"); Serial.println(esp.read()); } void loop() {} 回答1: As already pointed out in the comments you are not terminating the AT command

GSM Modem AT commands memory “OM” “DM”

别说谁变了你拦得住时间么 提交于 2019-12-11 11:18:51
问题 I am currently working on a project that involves automating sending and receiving text messages using a RAZR v3. Usually, when choosing the memory for the phone, there is "ME", "SM",or "MT" which stands for phone, sim, and both respectively. However when inserting a specific sim card, its different. When I do a AT+CPMS=?, I get ("MT","IM","OM","BM","DM"), ("OM","DM"),("IM") I know what MT is, and BM is for broadcast messages. What does "OM" and "DM" stand for and what are their relations to

Why I'm receiving at-commands along with the SMS?

五迷三道 提交于 2019-12-11 07:45:54
问题 I'm trying to send SMS via PHP using AT commands via USB modem. I can send SMS from PHP server to specific phone numbers. But the problem is, when I'm sending some text to a phone, I'm also getting at commands that I have used to send the SMS. server.php $fp = fopen('COM4', 'r+'); $writtenBytes = fputs($fp, "AT\r\n"); $writtenBytes = fputs($fp, "AT+CMGF=1\r\n"); $writtenBytes = fputs($fp, "WAIT=1\r\n"); $writtenBytes = fputs($fp, "AT+CSCS=\"GSM\"\n\r"); $writtenBytes = fputs($fp, "WAIT=1\r\n"

AT+CMGS doesn't work correctly

前提是你 提交于 2019-12-11 07:05:58
问题 I have a problem with AT command for sending SMS - AT+CMGS . After sending AT+CMGS=<length of PDU datagram><CR> I wait for response of modem. After reading <CR><LF>><Space> I send <PDU datagram><CTRL-Z> but I don't get any answer from modem. If I send any command after that the response to that command is +CMGS=<reference number> which is exactly the response which I expected later. But if I wait for about 100ms after reading <CR><LF>><Space> and than send PDU datagram than everything works

Using AT commands with an Android phone

a 夏天 提交于 2019-12-11 06:39:22
问题 I'm writing a program that is able to send and receive data from the GSM modem in my Android phone with AT commands. I execute the following shell script: su echo -e "AT+CSQ?\r" > /dev/smd0 cat /dev/smd0 > /dev/asd.txt The asd.txt file is created, however there is nothing in it (it should write out the signal strength). It looks like it hangs at the cat command, I think because it doesn't get any output. I've tried some other commands, but I had no luck so far. Can you recommend anything? 回答1

Arduino ESP8266 AT GET Request

醉酒当歌 提交于 2019-12-11 06:25:23
问题 I'm having trouble to send data to my database with the ESP8266-01. I'm getting the correct data from the sensor in the Console but nothing in my Database. The PHP Script is correct, I know that, just to be sure, I'm gonna add it in here too. My Code: // http://playground.arduino.cc/Main/Average #include <Average.h> #include <SoftwareSerial.h> char serialbuffer[100];//serial buffer for request url SoftwareSerial mySerial(10, 11); const char* ssid = "Master"; const char* password = "#Bennet99*

Issue with AT+CUSD command

我怕爱的太早我们不能终老 提交于 2019-12-11 05:09:23
问题 I want to check balance of sim card via AT command . Everything is running fine. But i am not able to enter in menu of response. When i am trying to enter in it Its giving me "invalid request" error from operator. While in mobile phone its working fine. Checking Selected Port COM11 Data Received - AT+CNMI=1,1 AT OK OK Data Received - AT+CUSD=1,*121# OK Data Received - +CUSD: 2,"My Airtel App:Track your daily data usage, balance, validity and Recharge online. Download now from Play Store/ App