Hello everyone, I have strange problems with the Bluetooth module (hc-05), when the two module connect arrive at the limit of range (without disconnecting) the exchange of data is interrupted.
The problem is that not even following the closer communication does not resume.
I observe the serial frame between the mcu and the bluetooth module on the "transmitter" but I do not read anything from the second module bluetooth.
I deduced that some things happen between the module, but it is rather problematic since I do not have much action possible on this part.
If someone has already worked with this type of module personally I dry.
lemat:
Hello everyone, I have strange problems with the Bluetooth module (hc-05), when the two module connect arrive at the limit of range (without disconnecting) the exchange of data is interrupted.
The problem is that not even following the closer communication does not resume.
I observe the serial frame between the mcu and the bluetooth module on the "transmitter" but I do not read anything from the second module bluetooth.
I deduced that some things happen between the module, but it is rather problematic since I do not have much action possible on this part.
If someone has already worked with this type of module personally I dry.
Thanks
Please do not use google translate. Your questions is unintelligible.
If the modules are set to auto connect, they should reconnect when they come back in to range of each other. This does not happen straight away and can a short while.
If your module has a STATE pin, this can be used to determine if there is an active connection. The pin will be HIGH when connected and LOW when not connected. Bare in mind that it can take a while (1 or 2 seconds I think) before the modules realise they are not connected.
My normal solution involves the use of a "am I connected" command. A simply command with an equally simply reply. I send a # character once a second or so and if I get the reply (another # character) within a defined period I know I am still connected.