at 命令在 sim800L 和 arduino uno 上没有响应

at command not responding on sim800L and arduino uno

我想问一下SIM800L EVB模块使用Arduino UNO R3发送消息DIP/SMD CH340。我将引脚 tx/rx 从 2、3 反之亦然,7,8 结果要么不显示任何内容,要么不显示任何文本,串行监视器只显示 AT 没有来自 SIM800L EVB 模块的响应。请赐教。谢谢

两者的示意图如下所述:

SIM800L 评估板:

Arduino UNO R3 DIP/SMD CH340:

AT命令不显示anything/anytext:

来自here的代码我修改了下面的pin

#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);
  }
}

从您的图像中我看到您将 Arduino Rx 连接到 SIM800 Rx,Tx 也是如此,但颜色很难看清。您需要将 Arduino Rx 连接到 Sim800 Tx,将 Arduino Tx 连接到 Sim800 Rx。这意味着接收到 Arduino 发送的命令 (Tx)(SIM800 的 Rx),反之亦然。

还将您的 Arduino Gnd 连接到 SIM800 Gnd,除非您确定它们通过电源共享接地。

SIM800 会自动匹配波特率,因此请继续发送 AT 命令,直到您收到 OK 回复。