I'm using a PIC24H Microchip microcontroller to communicate via UART with a Bluetooth Module. The Bluetooth module's baud rate can be configured at runtime via software (over bluetooth or over UART) and the baud rate will change after a power cycle.
Unfortunately the only way for the microcontroller to find out what baud rate the Bluetooth module's UART is using is by asking it--over UART.
Is there a way that I can have the microcontroller test (maybe by trial and error) what the baud rate of the bluetooth module is set to? It can only be a limited set of values and will probably be set to either 115K or 230K if that makes it easier.