相关疑难解决方法(0)

我如何编写程序来使用python发送和接收短信?

我已经在网上寻找一个好的库,用于发送和接收使用python的短信,但都是徒劳的!

那里有用于python的GSM库吗?

python sms gsm at-command

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

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-command ×2

gsm ×2

sms ×2

arduino ×1

python ×1

send ×1