Hi, I have a problem with communication between my arduino Mega2560 and BC660K-GL-TE-B module which I have connected to arduino with arduino interface on bc660K-gl-te-b. Here is my code:
void setup() {
Serial.begin(115200);
Serial.print("AT+IPR=115200\r\n");
delay(5000);
if (Serial.available()) {
String responsex = Serial.readString();
Serial.println("Response AT+IPR=115200\r\n: " + responsex);
}
Serial.print("AT+IPR=?\r\n");
delay(5000);
// Read Response
if (Serial.available()) {
String response = Serial.readString();
Serial.println("Response AT+IPR=115200\r\n: " + response);
}
// Turn off sleepmode
Serial.print("AT+QSCLK=0\r\n");
delay(5000);
// Read Response
if (Serial.available()) {
String response1 = Serial.readString();
Serial.println(" Response AT+QSCLK=0: " + response1);
}
Serial.print("AT+QIOPEN=0,0,\"UDP\",\"192.168.0.0\",4242,5000\r\n");
delay(5000);
// Read Response
if (Serial.available()) {
String response2 = Serial.readString();
Serial.println("Response AT+QIOPEN: " + response2);
}
Serial.print("AT+QISEND=0,5,\"12345\"\r\n");
delay(5000);
// Read Response
if (Serial.available()) {
String response3 = Serial.readString();
Serial.println("Responsee AT+QISEND: " + response3);
}
}
void loop() {
}
And here is a response that I’m getting:
I have no idea what to do. I have tried to set a different baud rate and that also didn’t work…