at-command

Unable to send SMS using AT Commands

不打扰是莪最后的温柔 提交于 2019-11-27 09:52:10
Please be kind enough to have a look at the following code. 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[counter].physName; QString vendorId = ports

When requesting com port returns the same request

可紊 提交于 2019-11-27 05:33:00
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[] receivedData; private boolean isReceived; public M234Serial() throws Exception { serialPort = new SerialPort(

How to get the output of AT command into a string in java?

青春壹個敷衍的年華 提交于 2019-11-27 03:41:46
问题 I am trying to read the result of an AT command (command executed to do various operation to a GSM modem from console). I have seen and successfully tested using the Java OuputStream class to get the result of an AT command as output stream but what I need to do is to get the result not as outputstream but into a variable (String for now) in my class. If it is possible to do like outStream.write(("Some At command").getBytes()); which works fine, how can it be possibe to do something like this

AT^SYSINFO and a C++ terminal program

泪湿孤枕 提交于 2019-11-27 02:18:52
I have written a program that comminucates serially with a USB 3g Modem. When I open the port and write the AT command AT To the modem, I get the normal "OK" response and can read it using a serial read function. In a terminal, when I write the command AT^SYSINFO I get the following response: ^SYSINFO:#,#,#,#,#,# With the #'s being numbers. However, when I attempt to write the same command serially using my program, I read only this reponse: AT^SYSINFO I try to then read another line of incoming data, but no data comes. Can anyone help me with this? There is information in the ^SYSINFO message

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

馋奶兔 提交于 2019-11-27 02:13:35
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". 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_modem = openPort(); ... // start sending ATE0 writePort(the_modem, "ATE0\r"); do { line = readLinePort(the_modem);

How to properly triangulate GSM cell towers to get a location?

◇◆丶佛笑我妖孽 提交于 2019-11-26 23:49:42
问题 First of all, I am trying to do all this disaster in c# (.net 4) so if you come up with some code to help me that would be appreciated but really anything would help at this point. I have a situation where I have a device that can only get GSM Cell information (incidentally via the AT+KCELL command) so I have a collection of values about cell towers (each has LAC, MCC, MNC, Cell ID, Signal Strength and the first Timing Advance). I think, therefore, I am in a good place to be able to come up

GSM Modem Send Message in UCS2 format error

蹲街弑〆低调 提交于 2019-11-26 23:31:49
问题 I'm using java to communicate with a gsm modem (Siemens) using AT commands. I set the encoding of modem to "UCS2". When sending messages as soon as I send the phone number I get ERROR from the device: AT+CSCS=UCS2 OK AT+CSMP=17,167,0,8 OK AT+CMGF=1 OK AT+CMGS="0919xxxxxxx" ERROR HELP ME, PLEEEEEEASE! :( 回答1: I think you are encoding the <da> address argument to AT+CMGS incorrectly. You refer to 91 and 92 style, but are you actually referring to the '81'/'82' format as explained in the Coding

Sending Unicode Messages (such as in Persian and Arabic) in C# using AT Commands through GSM Modem

前提是你 提交于 2019-11-26 23:21:59
问题 I am developing an application for GSM Modems (D-Link DWM-156) in C#.Net using AT commands. I have a problem sending Unicode messages (Such as messages written in Persian or Arabic). Here it is the core of my program: SerialPort GSMPort = new SerialPort(); GSMPort.PortName = "COM6"; GSMPort.BaudRate = 9600; GSMPort.Parity = Parity.None; GSMPort.DataBits = 8; GSMPort.StopBits = StopBits.One; GSMPort.Handshake = HandShake.RequestToSend; GSMPort.DtrEnable = true; GSMPort.RtsEnable = true;

Send AT Commands to Android Phone

99封情书 提交于 2019-11-26 19:15:29
问题 I want to Send AT Command to Android phone. I know SDK does not support this. but there are two solution : change the code of Kernel and release your new Android (it seems it is so hard!) LoopBack on USB .(i think Bluetooth is same) About second solution , when you connect your phone to PC with USB cable , you will see a GSM modem on Device Manager that help you to send AT Command to GSM Modem. If we find a solution to loop back on mobile phone , we can send AT commands to GSM Modem. Question

Store value in variable after HTTPREAD

给你一囗甜甜゛ 提交于 2019-11-26 19:13:18
I am working with a GSM SIM900 and an Arduino Uno. I am using AT commands for the SIM900. I am successfully getting data from GET requests and showing on the serial monitor, but after the AT+HTTPREAD command I want to store data into a variable. How can I do this? I am getting a JSON Object from the web server and I want to get the Status property from that object and save it into a variable. #include <SoftwareSerial.h> SoftwareSerial gprsSerial(2,3); void setup() { gprsSerial.begin(9600); Serial.begin(9600); Serial.println("Con"); delay(2000); Serial.println("Done!..."); gprsSerial.flush();