相关疑难解决方法(0)

GSM SM5100B CMEERROR:4错误

我正在使用Arduino来控制SM5100B GSM设备,一切正常,除非我想在收到另一个后发送短信.我明白了,

错误代码:

OK> + CMGS:2 5 OK + CMEERROR:4

我处理上述收到短信的代码:

     #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";
        void setup() { 
        //GSM
        Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
        Serial.println("Initialize GSM module serial port for communication.");                       
        cell.begin(9600); 
        delay(35000); // give time for GSM module to register on network etc. 
        Serial.println("delay off");
        cell.println("AT+CMGF=1"); …
Run Code Online (Sandbox Code Playgroud)

sms gsm arduino send at-command

3
推荐指数
1
解决办法
9392
查看次数

手机上的AT命令

使用AT命令可以完成哪些任务?是否可以获得手机的当前状态、制造商以及与手机相关的其他一些详细信息?

gsm mobile-phones gprs at-command

2
推荐指数
1
解决办法
2474
查看次数

在HTTPREAD之后将值存储在变量中

我正在使用GSM SIM900和Arduino Uno。我正在为SIM900使用AT命令。我已经成功地从GET请求中获取数据并显示在串行监视器上,但是在AT+HTTPREAD命令之后,我想将数据存储到变量中。我怎样才能做到这一点?我正在从Web服务器获取JSON对象,我想Status从该对象获取属性并将其保存到变量中。

#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();
  Serial.flush();
  // See if the SIM900 is ready
  gprsSerial.println("AT");
  delay(1000);
  toSerial();
  // SIM card inserted and unlocked?
  gprsSerial.println("AT+CPIN?");
  delay(1000);
  toSerial();
  // Is the SIM card registered?
  gprsSerial.println("AT+CREG?");
  delay(1000);
  toSerial();
  // Is GPRS attached?
  gprsSerial.println("AT+CGATT?");
  delay(1000);
  toSerial();
  // Check signal strength
  gprsSerial.println("AT+CSQ ");
  delay(1000);
  toSerial();
  // Set connection type to GPRS
  gprsSerial.println("AT+SAPBR=3,1,\"Contype\",\"GPRS\"");
  delay(2000);
  toSerial();
  // Set the APN
  gprsSerial.println("AT+SAPBR=3,1,\"APN\",\"wap.mobilinkworld.com\"");
  delay(2000);
  toSerial(); …
Run Code Online (Sandbox Code Playgroud)

gsm arduino http-get at-command sim900

1
推荐指数
1
解决办法
1761
查看次数

标签 统计

at-command ×3

gsm ×3

arduino ×2

gprs ×1

http-get ×1

mobile-phones ×1

send ×1

sim900 ×1

sms ×1