Thanks for your quick reply,
and yes, its far from clear.
just for clarification:
i worked already with the HC-06 (ZS-040 version), everything works fine, i can set all
parameters via AT-Commands(name, baudrate, password), pairing & talk with other bluetooth devices.
These modules were all named 'LINVOR'.
Now i ordered some more HC-06 and got some modules with GW-040 written on the backside,
anything else looks quite the same.
(4 pins, same chipset, LED'S are a little bit different like you mentioned, no push button like HC-05 has!).
The new modules are NOT named 'LINVOR', they are called 'HC-06' at the bluetooth pairing screen.
I can pair to them and data transfer between Arduino and Device is working fine.
But the new modules didn't respond to the code for AT-Commands, which worked fine with the ZS-040 version.
Hence i can't rename the new modules, what is a nausea, when you have students work in one room with
modules that all have the same name (makes pairing a little bit difficult!).
I have as well an HC-05-module and i can change the name of it. I had the same guess as you did: "maybe they did send me a HC-05!".
Hence i tried to programm the new module like a HC-05, but this did not work as well.
I attached a file to this post, which works fine with ZS-040 backboard and changes the module name,
doesn' work as well with the GW-040 backboard. the received answers for both modules if you run the sketch:
for GW-040 backboard:
Send 'AT' -> OK
Send 'AT+NAME' -> OKsetname
Send 'AT+NAME:NewName' -> OKsetnameOKsetname
Send 'AT+NAME' -> OKsetname
for ZS-040 backboard:
Send 'AT' -> OK
Send 'AT+NAME' -> +NAME:OldName OK
Send 'AT+NAME:NewName' -> OK OK
Send 'AT+NAME' ->+NAME:NewName OK
My hope is, that somebody as well received some HC-06-modules with GW-040 backboard and
can tell me what i should change to be able to rename the modules (i want to change the baudrate as well!). Maybe its just a stupid mistake of mine?
Thanks so far, hopefully ....
Test_Rename_HC-06.ino (1.92 KB)