我正在使用HM-10 copy CC4A-1模块。我把它和Arduino Uno R3连接起来,在挣扎了很久之后,它终于连接上了。我用Arduino串行监视器执行了一些AT命令,执行AT+RENEW命令后,它突然停止工作。我还试着执行AT+BAUD command but it returned error before executing AT+RENEW.
This is the output of Arduino Serial Monitor while sending data from HMBLE Terminal Android Application
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(2, 3); //RX|TX
void setup(){
Serial.begin(9600);
BTSerial.begin(9600); // default baud rate
while(!Serial); //if it is an Arduino Micro
Serial.println("AT commands: ");
}
void loop(){
//read from the HM-10 and print in the Serial
if(BTSerial.available())
Serial.write(BTSerial.read());
//read from the Serial and print to the HM-10
if(Serial.available())
BTSerial.write(Serial.read());
}This is what is sent from Android Application
https://stackoverflow.com/questions/38294594
复制相似问题