It is 10 years back I first time asked on this less known "issue" (afaik on arduino forum and perhaps on stm32duino too) - thus it could be somebody found a solution in the meantime

Module is the slave, paired, everything works fine, I've been using several modules with lot of boards for a decade already.
Now the "issue" - when there is none TX activity via serial (via the wire connected to an mcu) for more than 5 seconds, the module enters a "sleep mode". That is great, as the current consumption drops from 20mA to 2mA.
In order the wake up the module from the sleep, you have to either send a char from the host PC (via the air), or, send a char via the TX wire (off the mcu). Ok, that is how it should work..
BUT - the wake up takes some rather long time (at least that is my understanding), thus when you for example send a 100 char long message at 115k2 every 6 seconds, the first 20-30 chars of the message get simply lost.
In order to disable the "sleep" I did mess in past with some crazy settings I saw in various versions of the DS I randomly tried with none result.
Perhaps somebody knows a trick how to change/disable the "sleep" setting in the lovely HC-05 module?