Hi there!!!
I have a project where I connect an android app with an arduino datalogger using HC-06 bluetooth module.
For the first time I run the app, I can connect, send and receive data very fast from the HC-06, and it's al working great. At some point I have to disconnect the HC-06 (just application's circunstances) to do something else in the app, but (and here is the problem) if I reconnect and try to send data to the logger whithin 30 seconds after the disconnection (give or take), it will take about (30 - X) secs for the module to respond. (where X is the time I took to reconnect and send the data again to the logger). The same happens if i close the app and open again: it will take 30-X secs to respond.
If I disconnect, wait 30 secs for reconnect, or reconnect and wait 30 secs to send the data to the logger, it will work normal and fast!
I have 2 different HC-06 modules: one with firmware linvor1.8 and the other with firmware version 3.0-20170609.
The one with the linvor1.8 firmware works perfect! it doesnt have the 30 seconds delay (AND THAT IS WHY I KNOW THE ANDROID AND ARDUINO CODES WORK GOOD), but the other module is the one with the problem (tried two with the same firmware), i set them under the same configurations with AT commands, i tried different BAUD rates, and it is always the same.
So anyone knows what is going on with this module?
Thanks in advance, this is driving me crazy!