The HC-06 bluetooth module sends a disconnect message over the serial connection to the arduino, when the phone is disconnected. Unfortunately this message is interpreted as a command.
I need to reinvestigate on what this disconnect message was, but my idea was to improve the protocol to send a prefix before each command. This prefix is ignored by the other modules (HC-05 and WordClocks with older firmware) to stay compatible with older versions.
Possible solutions:
- Introduce the prefix
wccp (for wordclock command protocol) as prefix before each command to distinguish between real commands and messages generated by the bluetooth module itself.
- Detect and ignore the
disconnected message only on clocks which have the new HC-06 module.
The HC-06 bluetooth module sends a disconnect message over the serial connection to the arduino, when the phone is disconnected. Unfortunately this message is interpreted as a command.
I need to reinvestigate on what this disconnect message was, but my idea was to improve the protocol to send a prefix before each command. This prefix is ignored by the other modules (HC-05 and WordClocks with older firmware) to stay compatible with older versions.
Possible solutions:
wccp(for wordclock command protocol) as prefix before each command to distinguish between real commands and messages generated by the bluetooth module itself.disconnected messageonly on clocks which have the new HC-06 module.