at-command

Check balance using USSD Command in C#

风格不统一 提交于 2019-12-13 04:38:31
问题 I update for this question and know it worked correctly.. I try to check balance in my mavecom modem but I got no response in my textbox. It stays empty. Here my code : private SerialPort _port; private void simpleButton1_Click(object sender, EventArgs e) { _port = new SerialPort(); _port.PortName = cbPort.Text; _port.BaudRate = 115200; _port.Parity = Parity.None; _port.DataBits = 8; _port.StopBits = StopBits.One; _port.Handshake = Handshake.RequestToSend; port.DataReceived += new

Arduino sending sms in GSM sim900 error

亡梦爱人 提交于 2019-12-13 03:35:09
问题 I have an Arduino Mega 2560 and a sim900 gsm module. I interfaced them successfully and written the code. Its working, but I can only send 1 sms at a time in the while loop. That means when I write a while loop to execute the sendsms() 5 times by using a while loop. Only one sms is sent.. and it stops... The code is below: #include <SoftwareSerial.h> #include <String.h> SoftwareSerial mySerial(52, 53); void setup() { mySerial.begin(19200); // the GPRS baud rate Serial.begin(19200); // the

AT+CUSD Not Working on modem Huawei e3131a

删除回忆录丶 提交于 2019-12-12 21:39:39
问题 I am trying to send at commands to get balance on huawei e3131a modem but i always receive "Ok" as answer no matter the configuration i use (GSM, IRA, UCS2). I also tried to change the operator code ( #123# ) to many formats like Hex PDU Simple String but no way to get the balance. Here is the command i sent : AT+CUSD=1,"#123#",15 . Thanks in advance for the help. NB: I am using Putty to send commands. 回答1: I finally found the method to send USSD At commands. Some 3G Modem doesn't support

time delay between AT commands for sending sms

血红的双手。 提交于 2019-12-12 18:08:47
问题 I am working on an application that sends SMS through GSM Modem, and i use AT Commands for that. When i debug my application, Then sms is sent to reciever, but when i run the application sms is not sent to Reciever. My code is below and my gsm Modem is D-Link DWM-156. is there any wrong here in my code? thanks. if (SPort.IsOpen) { int i = 0; while (i < msgs.Count) { SPort.DiscardInBuffer(); System.Threading.Thread.Sleep(1000); var res = SPort.ReadExisting(); SPort.DiscardOutBuffer(); System

AT COMMANDS - USSD returns only OK

只愿长相守 提交于 2019-12-12 16:15:03
问题 I have bought ZTE MF667 GSM Modem and i am using Hyper Terminal to send AT COMMANDS, i have a problem with USSD e.g : AT+CUSD=1,"*111#",15 (to check balance) but it returns only OK AT+CUSD=1,"*111#" returns only OK I have tested another AT COMMADS which work fine like AT+CMGL="ALL" to read SMS (WORKS) How could i resolve the problem please ? 回答1: First of all USSD messages are fairly similar to SMS in that a message is sent from the mobile device to the operator network. This means when you

How to write a AT+CUSD ussd command to support maximum handsets

一世执手 提交于 2019-12-12 09:42:39
问题 I am facing an issue related to AT+CUSD command. On some Gsm modems, this command expects three parameters while on the others, it expects just two parameters. Moreover, different values of those parameters. I want to know that, how can I configure the Gsm modem so that this command can be executed in a uniform way on most Gsm modems. Forexample: On Nokia c6-01 , the cusd command is executed successfully only in this way: AT+CUSD=1,"*123#",15 Whereas on Sony Ericsson K750: AT+CUSD=1,"*123#"

Enable SIM Lock using AT Command VB.net

瘦欲@ 提交于 2019-12-12 04:57:16
问题 I want lock my simcard using code, after click the button i restart modem and nothig happen . i want the sim locked status required pin to use it. Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load SerialPort1.PortName = "COM8" SerialPort1.BaudRate = 9600 SerialPort1.Parity = Parity.None SerialPort1.StopBits = StopBits.One SerialPort1.DataBits = 8 SerialPort1.Handshake = Handshake.RequestToSend SerialPort1.DtrEnable = True SerialPort1.RtsEnable = True SerialPort1

E160E USB GSM Modem Continuously Dumps Data Into The Serial Port

拥有回忆 提交于 2019-12-12 03:31:09
问题 I'm using a python script to send using Serial , a simple AT Command in this case "AT". That normally returns OK , if everything is going well. The problem is that after a few seconds the GSM Modem Will Dump the following. RSSI:19 (yes i know this is the signal strength). It also dumps : BOOT:23243559,0,0,0,77 This is only occurs from time to time and it ONLY Happens in Linux it doesn't happen in Windows. I tested this using the python script and putty in Linux and using Hyperterminal in

inStream.read in serial communications

允我心安 提交于 2019-12-12 02:47:00
问题 I'm trying to monitor temperature from a remote device using a TC65 modem. To request, 'C' has to be sent with a carriage return at the end. The problem is, I only get this on my phone: "This is test sms. The current temperature is " without the temperature I requested. I tried communicating with the thermostat using HyperTeminal without a problem. Could you help me with instream.read? The output is double (accurate by two decimals). Here's my code. Thanks. package example.rs232demo; import

Arduino mega + esp 8266 sending get request

别来无恙 提交于 2019-12-12 02:43:16
问题 i have a php script which help to store data into google firebase. i am using this url to access my php scipt and input the data: arduino.byethost22.com/FirebaseTest.php?slot1_data=empty&slot2_data=occupied i have tried it and it is able to store slot1_data as empty and slot2_data as occupied. However i need to use arduino to send this url. i am using this code currently #include "SoftwareSerial.h" #define DEBUG false // turn debug message on or off in serial String server = "arduino