I'm working with a ZS040 HC-05 Bluetooth module. When I use the appropriate AT command to set the module to master mode, it appears to be accepted, but when I query the module again using AT commands, it still shows slave mode (role value of 0). I expected the module to be set to master mode.
When the HC-05 is in AT mode, it does not actively participate in communication as a master or slave. To return to normal operation, setting EN or KEY low is usually enough, but some changes may still require a reboot of the HC05 to take effect depending on the firmware.
There has also been lots of reports of crappy HC05 that were kinda like HC06 (slave only).
Are you pressing and holding the EN key?
Yes! When I send AT it replies with OK (as it should if set in AT ) also AT+ROLE=1 It sends ok but when again I check it replies with Role 0
Have you tried going to non AT mode after issuing the command and then going back to the AT command mode again and check if the role has been changed (might need to exit for the config to be validated ?)
Yes! First in AT mode I set as AT+ROLE=1 Then switched to non AT Mode (led blinking every 2-3sec ig)then again AT mode (led blinking with delay) and check role but it's still shows 0
Ok - could possibly be one of those weird HC05 components we have seen recently which which users were struggling to get them in master role…
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.