at-command

AT Commands fail to Execute in a program

泪湿孤枕 提交于 2019-12-25 12:53:52
问题 The Program is shown below: #include <SoftwareSerial.h> SoftwareSerial gprsSerial(7, 8); byte sensorInterrupt = 0; // 0 = digital pin 2 byte sensorPin = 2; // The hall-effect flow sensor outputs approximately 4.5 pulses per second per // litre/minute of flow. float calibrationFactor = 4.5; volatile byte pulseCount; float flowRate; unsigned int flowMilliLitres; unsigned long totalMilliLitres; unsigned long oldTime; void setup() { gprsSerial.begin(19200); Serial.begin(19200); pinMode(sensorPin,

How to read data from serial port in vb.net?

梦想与她 提交于 2019-12-25 06:59:39
问题 I made a class and there is this sub named SendUSSD, when this is called it sends a ussd code like *123# to a COM port where a gsm mobile is connected. This ussd is supposed to return the mobile balance. If IsOpen = True Then 'checks if the port is open SMSPort.WriteLine("AT+CUSD=1,""*123#""" vbCr) 'this sends the ussd code Form1.TextBox2.Text = SMSPort.ReadLine().ToString() 'this shows the response End If Now the problem is sometimes I get the full response like "Your current balance is so

Linux Expect/TCL Comm Port Comunication Cisco Switch

天涯浪子 提交于 2019-12-25 03:26:46
问题 I have done much reading on TCL/Expect and wrote the following script to connect to the comm port on my RPi-Kali-Linux box. #!/usr/bin/expect -f set timeout -1 ;#set the portID and open it for reading and writing set portID [open /dev/ttyUSB0 r+] set baud 9600 ;#Configure the port with the baud rate ;#and dont block on read, dont buffer output fconfigure $portID -mode "9600,n,8,1" fconfigure $portID -blocking 0 -buffering none ;#Write to the comm port by sending a carrage return spawn -open

How to retrieve the telephone number from an AT CMGL response?

╄→尐↘猪︶ㄣ 提交于 2019-12-24 19:25:10
问题 I have an application written in C that reads text messages from a modem using AT commands. A typical AT response from the modem looks like this: +CMGL: 1,"REC READ","+31612123738",,"08/12/22,11:37:52+04" The code is currently set up to only retrieve the id from this line, which is the first number, and it does so using the following code: sscanf(line, "+CMGL: %d,", &entry); Here, "line" is a character array containing a line from the modem, and "entry" is an integer in which the id is stored

AT+CUSD doesn't get balance

僤鯓⒐⒋嵵緔 提交于 2019-12-24 15:35:07
问题 I have a DataNet GSM Modem (HUAWEI Mobile Broadband E173). I want to get balance with USSD code *141*1# but unfortunately I don't get any result.I get just OK in response. I read these posts and many others: Error on checking balance via USSD I have tried IRA and GSM and UCS2 but no result. how to get balance by USSD commands? My port is selected correctly because other commands work properly AT command - USSD I test with 15 at the end and without that My situation is as below: AT+CSCS? +CSCS

Send SMS through php, AT commands

*爱你&永不变心* 提交于 2019-12-24 08:23:04
问题 I'd like to send SMS through a GSM gateway using php. I want to send AT commands directly to the modem. Should I try and interface with minicom or something similar? Should I just use sms server tools? Is there an easier way to do this? Using Debian btw. Also, as a follow-up, what is a decent GSM modem that I can use with a standard SIM card, and that would work with the aforementioned programs. 回答1: It's not that easy to make an SMS manager in php - actually it's not that easy to make a

AT Commands to Send SMS not working in Windows 8.1

有些话、适合烂在心里 提交于 2019-12-24 03:06:35
问题 I have been researching now for more than two days, trying to make an app to send SMS using AT Command, I implemented few tutorials and projects available on web. Unluckily, none of them worked. [https://docs.google.com/document/d/1VfBbMcKZsutP8Cwg2iu7Rqiyccks1J6N2ZEbkbxnCTU/preview ] This code gives me Command executed, but message is not sent. Then I tried another project (I am using C# and Visual Studio 2013), which have following files, After execution the status is changes to Message

Parsing message parameters received by a GSM modem in python

拈花ヽ惹草 提交于 2019-12-24 02:17:00
问题 I'm trying to parse messages that I receive from a GSM modem in python. I have a lot of messages that I need to parse. I receive new messages every couple of hours or so. Here's an example of the data the I receive after reading data from the modem by using a serial object into a list x. AT+CMGL="ALL" +CMGL: 1,"REC READ","+918884100421","","13/04/05,08:24:36+22" here's message one +CMGL: 2,"REC READ","+918884100421","","13/04/05,09:40:38+22" here's message two +CMGL: 3,"REC READ","

SIM900 GSM/GPRS not getting a proper AT+CREG? answer

无人久伴 提交于 2019-12-23 18:42:31
问题 I'm using an Arduino UNO with attached IComsat SIM900 GSM/GPRS shield. Using the following tutorial: Arduino Live GPS Tracker I'm stuck with the AT+CREG? command, which checks if the SIM-card is registered at the provider. The following logic is used: In the GSM_HTTP.INO file within the "void setup()" function, the following line gets executed modem.checkNetwork(); void setup() { Serial.begin(9600); Serial.println("GM862 monitor"); modem.switchOn(); // switch the modem on delay(4000); // wait

Send SMS via Nokia Mobile Using AT Commands

Deadly 提交于 2019-12-23 05:25:56
问题 I'm trying to send sms with my Nokia cell phone (C1-01) using AT Commands and I can successfully send SMS with this vb.net code. Button_Send_Click: Dim SMSPort = New SerialPort With SMSPort .PortName = "COM2" .BaudRate = 9600 .Parity = Parity.None .DataBits = 8 .StopBits = StopBits.One .Handshake = Handshake.None .DtrEnable = True .RtsEnable = True .NewLine = vbCrLf End With SMSPort.Open() SMSPort.Write("AT+CMGF=1" & vbCrLf) Threading.Thread.Sleep(200) SMSPort.Write("AT+CMGS=" & Chr(34) &