Commit graph

8 commits

Author SHA1 Message Date
rljonesau
baed4b3079 Beefed up Bluetooth handling to include tuning parameters.
Changed Tx headers to [OEM] and [BTC] for the OEM controller and this Bluetooth controller.
Added #ifdefs to accomodate Mega and ESP32.
Built and tested on ESP32, Serial1 talks to heater OK using standard pin numbering :-)
2018-10-15 18:14:12 +11:00
rljonesau
18571ae857 Added BT transmission of heater and controller frames.
Prefixed with [CTL], [HTR] or [SLF] to ID who sourced the data frame.
2018-10-13 10:12:38 +11:00
rljonesau
6ed419991c Serial2 now connects to HC-05 module and sets module to 115200 2018-09-25 20:56:32 +10:00
rljonesau
d63988be64 Slight mod to allow simple sniffing mode by grounding pin 21 of the Due. 2018-09-24 20:56:37 +10:00
rljonesau
5c1f68369a CProtocol now, not CFrame 2018-09-23 19:15:49 +10:00
rljonesau
961c5b8b29 changed to protocol.h/.cpp 2018-09-23 18:59:19 +10:00
rljonesau
9818b33e47 Automatically detects if another controller exists on the blue wire.
If found, it parrots the settings, but allows on/off commands to be inserted by a user.
If no other controller detected, it falls back and delivers our settings each second.

Currently reports all packets to USB, but will move onto Bluetooth delivery of heater data soon.
2018-09-23 16:31:09 +10:00
rljonesau
99e1b9d6bc Initial attempt at injecting messages within a working system 2018-09-23 09:31:47 +10:00