HC-05 Error AT Commands

Hi All! Been trying to connect my 1 bluetooth module as slave and other as master.

Everything works great until i get to the AT Commands... AT Test command works, with an "OK" but all other commands come back with the same error.
I been at this for 2 days now researching and trying to get it working, so im kinda lost now lol i've tried with Arduino Nano, anddd an Arduino Uno R3. Same results for both and i have tried the separate HC-05 module (I have 2)
I'll buy you a cookie if you can help! <3
Light comes on for 2 seconds stays off for 2. And i've changed the pins between 8 and 9 as suggested from other tutorials i've seen

https://imgur.com/a/mRn4yiN

#include <SoftwareSerial.h>
SoftwareSerial BTserial(2, 3); // RX | TX
 
const long baudRate = 38400; 
char c=' ';
boolean NL = true;
 
void setup() 
{
    Serial.begin(9600);
    Serial.print("Sketch:   ");   Serial.println(__FILE__);
    Serial.print("Uploaded: ");   Serial.println(__DATE__);
    Serial.println(" ");
 
    BTserial.begin(baudRate);  
    Serial.print("BTserial started at "); Serial.println(baudRate);
    Serial.println(" ");
}
 
void loop()
{
 
    // Read from the Bluetooth module and send to the Arduino Serial Monitor
    if (BTserial.available())
    {
        c = BTserial.read();
        Serial.write(c);
    }
 
 
    // Read from the Serial Monitor and send to the Bluetooth module
    if (Serial.available())
    {
        c = Serial.read();
        BTserial.write(c);   
 
        // Echo the user input to the main window. The ">" character indicates the user entered text.
        if (NL) { Serial.print(">");  NL = false; }
        Serial.write(c);
        if (c==10) { NL = true; }
    }
 
}
//SERIAL MONITOR//
>AT
>AT
OK
>AT+CMODE?
ERROR:(0)
>AT+CMODE?
ERROR:(0)
>AT+CMODE?
ERROR:(0)
>AT+CMODE?
ERROR:(0)

How sure are you that they are HC05 modules? Post photos of the front and back of the modules.

I wrote a tutorial on how I got my HC05 modules into full AT mode. The method work for all of the HC05 modules that I own (8 or 10 pieces). >> Setting HC05 (ZS-040) to AT mode

I have the exact model you have. The ZS-040 but i'll give your tutorial a go, and see how it works

Your wonderful human :smiling_face_with_three_hearts: But... Im having an issue though. As you can see, my Bind doesnt match, it changed the d into an f?

BTserial started at 38400
 
>AT
OK
>AT+CMODE?
+CMODE:0
OK
>AT+CMODE=0
OK
>AT+BIND=98da,50,021ed1
OK
>AT+BIND?
+BIND:98da:50:021ef1
OK

Thank you.

I have never seen that. I have no idea what is happening, sorry.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.