PDA

View Full Version : Bluetooth HC-05 Question



andybarrett1
- 21st September 2020, 15:26
HI thank you for reading

I have a project involving a HC05 / 06 Bluetooth module .... All is good but for one thing.

I need the thing to drop connection when the host connection goes out of range

Once paired it seems to stay paired, the only work around I can see is to cycle the power?

But as the installation is remote not sure if feasible ?

reason I need to drop connection is so different hosts can connect at different random times

Ideas as always welcome

Andy

pedja089
- 21st September 2020, 18:28
Look at command set:
https://www.itead.cc/wiki/Serial_Port_Bluetooth_Module_(Master/Slave)_:_HC-05
Be aware that there is several fw for HC-05. I have build programmer for them that worked on parallel port. So I could write FW that is best suited for me.
You have several options, you can:

disconnect using AT+DISC
reset module AT+RESET
remove all auth devices, AT+ RMAAD.


I hope that this will help...

amgen
- 24th September 2020, 21:04
if you use esp8266 IP device for serial comms, it will take up to 5 simultaneous connections.