Skip to content

HC-06 sends command at disconnect #5

@0xC0DEBA5E

Description

@0xC0DEBA5E

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:

  1. 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.
  2. Detect and ignore the disconnected message only on clocks which have the new HC-06 module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions