at-command

Get AT command response

末鹿安然 提交于 2019-11-26 18:36:04
问题 I am using an Arduino Uno with a sim900 gps/gprs module and I'm using at commands, how can I get the response of at command (i.e OK, ERROR) so that I can do something if response == "OK" or response == "ERROR" 回答1: You can use following code to read response from SIM900 GSM Module just after issuing AT command. char response[200]; for(int i = 0 ; Serial.available() > 0 && i<200 ; i++) { response[i++] = Serial.read(); } After reading response you can use strstr() function to check whether it

When requesting com port returns the same request

我们两清 提交于 2019-11-26 17:33:51
问题 I`m trying to send AT-command via COM-port, but reseived only the same command. package SerialConnections; import jssc.SerialPort; import jssc.SerialPortEvent; import jssc.SerialPortEventListener; import jssc.SerialPortException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import static ru.telemetria.qa.utils.Utilities.waitTime; public class M234Serial { private static Logger log = LoggerFactory.getLogger(M234Serial.class); private SerialPort serialPort; private byte[]

Which standard specifies the AT&W AT command?

本秂侑毒 提交于 2019-11-26 17:24:43
问题 While discussing how to process AT commands with a colleague, we discovered that contrary to our belief the command AT&W (store user profile) is not specified in V.250 (it only specifies ATZ and AT&F , which are related), leaving us wondering - where is it specified then? Update: Yes, we expected the command to have its origin in the Hayes command set, virtually all the basic syntax commands does. However, most of the Hayes command have been imported into formal standards like V.250 by ITU or

Unable to send SMS using AT Commands

牧云@^-^@ 提交于 2019-11-26 14:55:44
问题 I am using QextSerialPort to access ports #include <qstring.h> #include <qdebug.h> #include <QCoreApplication> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QList<QextPortInfo> ports = QextSerialEnumerator::getPorts(); QextSerialPort *port; QString portName; int counter=0; //Navigate through ports untill you find huwawei USB dongle while(counter<ports.size()) { portName = ports[counter].portName; QString productId= ports[counter].productID; QString physicalName = ports

How in codesys call an “at command” for gsm modem? Not standart send_sms and e.t.c

筅森魡賤 提交于 2019-11-26 12:33:50
问题 I have a gsm-modem and plc, plc sees a modem (I use a *.lib and functional block \"openPort\"), but I don\'t understand how write in modem an \"at command\", for example, \"ate0\". 回答1: First, to increase your understanding of AT commands in general, read the V.250 specification. That will go a long way in making you an AT command expert. Then for the actual implementation, I do not know codesys, so the following is pseudo code of the structure you should have for handling AT commands: the

GSM SM5100B C M E E R R O R : 4 error

≯℡__Kan透↙ 提交于 2019-11-26 00:26:07
问题 I am using Arduino to control an SM5100B GSM device, everything works except when I want to send an SMS after receiving another. I get this, Error code: O K > + C M G S : 2 5 O K + C M E E R R O R : 4 My code for handling the aforementioned received SMS: #include <SoftwareSerial.h> //Include the NewSoftSerial library to send serial commands to the cellular module. char inchar; //Will hold the incoming character from the Serial Port. SoftwareSerial cell(2,3); char mobilenumber[] = \"0597010129

Unable to send SMS through C# code using System.IO.Ports using gsm modem

邮差的信 提交于 2019-11-25 22:54:36
A button, when clicked, sends an sms to the number entered in NumTxt textbox, and sends the text entered in SMSTxt textbox. Port name entered in texbox ComPort Here's the event handler of the button click event. using System.IO.Ports; private void button1_Click(object sender, EventArgs e) { try { int mSpeed = 1; serialport.PortName = ComPort.Text; serialport.BaudRate = 96000; serialport.Parity = Parity.None; serialport.DataBits = 8; serialport.StopBits = StopBits.One; serialport.Handshake = Handshake.XOnXOff; serialport.DtrEnable = true; serialport.RtsEnable = true; serialport.NewLine =