我想问一下 SIM800L EVB 模块如何使用 Arduino UNO R3 DIP/SMD CH340 发送消息。我将引脚 tx/rx 从 2 更改为 3,反之亦然,7,8 结果要么不显示任何内容或任何文本,串行监视器仅显示 SIM800L EVB 模块的 AT 无响应。请启发我。谢谢你
两者的示意图描述如下:
来自这里的代码我修改了引脚如下
#include "SoftwareSerial.h"
SoftwareSerial SMS_Gateway(0, 1); // Rx | Tx
char tempChar = "";
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Testing the SIM800 Module");
SMS_Gateway.begin(115200);
for (int i = 0; i < 10; i++) {
Serial.print("=====");
delay(500);
}
Serial.println();
Serial.println("Starting Connection");
}
void loop() {
// put your main code here, to run repeatedly:
if (SMS_Gateway.available()) {
tempChar = SMS_Gateway.read();
Serial.write(tempChar);
}
if (Serial.available()) {
tempChar = Serial.read();
SMS_Gateway.write(tempChar);
}
}