Hello. I have a project where I use several Bluetooth modules. One of them is HM-10. I need to check which module is being used currently. How can I do that in the case of HM-10?
The solution for HC-05 does not work here. Because in the case of HC-05 the state pin goes high or low and in the case of HM-10 state pin goes either high ob "blinking".
So basically I need to distinguish state "HIGH" from state "Blinking" of the pin. How can I do that?
Hi,
I know some time has passed, but I faced a similar issue and found a solution.
A genuine HM-10 (from www.jnhuamao.cn) will behave this way by default.
There is a command that will let you change LED mode which will also affect the STATE pin that is connected to the LED.
The command is AT+PIO11 which will make it LOW when not connected and HIGH when connected. The downside is that you can't visually see if your module is off or disconnected.
You can go back to default mode (blinking) by issuing AT+PIO10.
This is described in more details in the datasheet of the module.
Regards,
Arik.
Hm10 is different than hc05 on so many levels, about the only thing the same are the 4 pins needed to connect. You cant enter and exit command mode on a hc05 without a power off reset. And vice vera to get back to serial mode. Hc05 also toggles different baud rates betweeen command and serial mode.
The state pin does act the same on both. Once connected the pin turns high.
Thank You very much ayavilevich. Your comment is very useful. It work perfectly!