at-command

Sending AT Commands in Android Using atinout library

随声附和 提交于 2019-12-01 10:41:50
问题 As the question title suggest, I'm going to use atinout library in my android application to be able to send AT Commands to my device's gsm modem and get the response back. I've searched the SO and other blogs and the best code I got is something like this, which does not cauese anything to be written to output : Runtime r = Runtime.getRuntime(); Process process = r.exec(new String[] {"su", "-c", "echo -n -e 'AT\r' > /dev/smd0"}); BufferedReader in = new BufferedReader( new InputStreamReader

Why do the outputs differ when I run this code using NetBeans 6.8 and Eclipse?

无人久伴 提交于 2019-12-01 10:28:08
When I am running the following code using Eclipse and NetBeans 6.8. I want to see the available COM ports on my computer. When running in Eclipse it is returning me all available COM ports but when running it in NetBeans, it does not seem to find any ports .. public static void test(){ Enumeration lists=CommPortIdentifier.getPortIdentifiers(); System.out.println(lists.hasMoreElements()); while (lists.hasMoreElements()) { CommPortIdentifier cn=(CommPortIdentifier)lists.nextElement(); if ((CommPortIdentifier.PORT_SERIAL==cn.getPortType())) { System.out.println( "Name is serail portzzzz " + cn

AT command responses (understanding order of code execution on Arduino)

被刻印的时光 ゝ 提交于 2019-12-01 09:00:27
问题 I'm sending AT commands to an ESP8266 from an Arduino Uno/Nano (ATmega328) and attempting to parse the end of the strings received in response to establish how the ESP reacted and whether it was successful (and whether it's ready to receive another command yet). I'm aware that parsing AT command responses has been discussed before here: Get AT command response But I have a specific issue not covered there that might also be of interest to other people on here... First, a function is called

Error on checking balance via USSD

*爱你&永不变心* 提交于 2019-12-01 07:28:59
问题 I've been trying to check my balance from by 3g modem via AT commands and seem to be stuck. The device infomation is as follows: Manufacturer: QUALCOMM INCORPORATED Model: M6281 Revision: SSD_M6281A-0.0.1 1 [Oct 02 2008 07:00:00] The modem has USSD capability (advertised and also present in the factory installed dashboard). I am connecting via putty to COM4 serial port which is my modems application port. All AT commands are working fine but I am getting an error on issuing the following via

Sending AT commands to SIM900 whilst pppd is active

白昼怎懂夜的黑 提交于 2019-12-01 04:40:02
I have a Raspberry Pi with a SIM900 GSM add-on board connected. I have managed to establish a GPRS connection with pppd by following this guide . (It's for a different GSM module but the steps are the same) I would like to periodically send an AT command ( AT+CCLK? ) to the SIM900 to check the clock. I have managed send ad hoc AT commands using screen but when pppd is up I can't use screen to connect to the serial line. It just exits straight away saying [screen is terminating] . I'm guessing this is because pppd is using it to connect to the internet. Q: How do I get the clock time without

Sending AT commands to SIM900 whilst pppd is active

穿精又带淫゛_ 提交于 2019-12-01 02:33:39
问题 I have a Raspberry Pi with a SIM900 GSM add-on board connected. I have managed to establish a GPRS connection with pppd by following this guide. (It's for a different GSM module but the steps are the same) I would like to periodically send an AT command ( AT+CCLK? ) to the SIM900 to check the clock. I have managed send ad hoc AT commands using screen but when pppd is up I can't use screen to connect to the serial line. It just exits straight away saying [screen is terminating] . I'm guessing

AT+CMGS returns ERROR

烈酒焚心 提交于 2019-11-30 11:36:52
I am using SIM900 GSM module connect to my AVR Microcontroller. I tested it with FT232 to see transmitting data. First Micro sends AT it will response OK AT OK AT+CMGF=1 OK AT+CMGS="+9893XXXXXX" returns ERROR and doesn't show ">" Could anybody advise me what to do? Command AT+CSCS? will answer You what type of sms-encoding is used. Properly answer is "GSM", and if not, You should set it by command AT+CSCS="GSM" . And remember about "Ctrl+Z" (not "Enter") as a finish of sms text, please. You aren't passing all the parameters to the command. The command format is: AT+CMGS=<number><CR><message>

AT commands Send/receive SMS

可紊 提交于 2019-11-30 07:42:21
问题 I am new to AT commands. I am using Nokia E71 to send and receive SMS. I am designing an application for sending SMS, but my code is not working. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO.Ports; using System.Threading; namespace AT_commands { public partial class Form1 : Form { SerialPort serialPort; public Form1() { InitializeComponent(

Trouble setting “Preferred Message Storage” with AT+CPMS on Samsung Galaxy

房东的猫 提交于 2019-11-29 17:08:36
When connecting Samsung Galaxy S via USB to Hyperterminal, I cannot retrieve any messages from the modem. The commands AT and AT+CMGF=1 work, and AT+CPMS=? returns different memories available. But when I try to execute the following command: AT+CPMS="SM" (or any other memory) I get: cms error 321 . Can anybody help me? Thanks! Additional info: AT+CPMS=? +CPMS: ("BM","ME","SM","SR"),("ME","SM"),("BM","ME","SM","SR") AT+CPMS="SM" +CMS ERROR: 321 From 27.005 +CMS ERROR 321 means invalid memory index . The AT+CPMS command has three parameters with official syntax AT+CPMS=<mem1>[,<mem2>[,<mem3>]]

How to check if an AT command executed successfully or failed

核能气质少年 提交于 2019-11-29 16:22:42
How do I place a check programmatically if the AT command executed successfully or failed. I have placed following check: boolean success = response.endsWith("OK"); boolean failed = response.endsWith("ERROR"); I just want to be sure if this check can be placed universally, or atleast on AT+CUSD command. I cannot place contains check since the ussd response can itself contain 'ok' or 'error' strings. Excellent step on your behalf to investigate how to do things properly instead of just stopping on "well, this seems to work by trial and error". Yes, OK and ERROR are universal but ERROR might be