我使用一个非常简单的Arduino-GSM屏蔽设置,代码如下所示。
当我尝试通过串行监视器发起语音呼叫时,收到以下消息:
ATD+65XXXXXXXX;
OK
VOICE CALL: END: 000000
NO CARRIER
我使用的命令输入是“ ATD + 65XXXXXXXX; ”
一些其他有用的信息:
我使用的代码如下:
include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // RX, TX
void setup()
{
// Open serial communications to computer
Serial.begin(115200);
mySerial.begin(115200); // Default for the board
mySerial.println("AT+IPR=57600"); // Set baud to 57600
delay(100); // Let the command run
mySerial.begin(57600); // Reconnect at lower baud, 115200 had issues with SoftwareSerial
//Clear out any waiting serial data
while (mySerial.available())
{
mySerial.read();
}
mySerial.println("AT");
}
void loop()
{
/*
* This loop just takes whatever comes in from the console and sends it to the board
*/
if (Serial.available())
{
mySerial.write(Serial.read());
}
if (mySerial.available())
{
Serial.write(mySerial.read());
}
}