Commit graph

66 commits

Author SHA1 Message Date
rljonesau 03e7d6b89f Screen2 (simple display) pretty much done 2018-11-24 11:51:09 +11:00
rljonesau efe8afeff3 Added Screen2 - simple presentation with ability to toggle thermostat and change set point (keypad) 2018-11-23 21:34:37 +11:00
rljonesau fc23538ceb Introducing concept of multiple screens, with individual key handling via callbacks 2018-11-22 21:30:51 +11:00
rljonesau 9826399835 created CKeyPad class, added key event callback functionality 2018-11-22 06:40:31 +11:00
rljonesau 100aa4e493 removed test code from keypad handling 2018-11-22 05:46:02 +11:00
rljonesau 831f2ab516 Added 5 way keypad sensing 2018-11-21 20:53:12 +11:00
rljonesau 63800ec900 removed old pin definitions 2018-11-21 06:43:47 +11:00
rljonesau 4f9a077bd7 Added large and mini fonts, using derived class to print The Dot Factory style font definitions 2018-11-20 22:01:27 +11:00
rljonesau 4924eac137 New pin allocations, updated OLED presentation 2018-11-20 06:31:20 +11:00
rljonesau 50abc1b890 Initialise filtered temperature upon initial pass.
Added WiFi icon
2018-11-18 10:45:15 +11:00
rljonesau a36af395ea OLED working with small fonts, update @100ms
Now restart Serial1 if CRC errors or other issues with reception
2018-11-17 22:59:16 +11:00
rljonesau 9d79c107c5 Fine tuning OLED presentation, adding mini font 2018-11-17 13:08:22 +11:00
rljonesau 5158630996 Advancing with OLED display... 2018-11-14 22:12:18 +11:00
rljonesau 1cdb019401 Added SPI OLED (SH1106) on HSPI port and DS18B20 on pin 5.
*** NEED TO COMMENT OUT SPIClass SPI in ESP32 library!!!!!! ***
Added new state for temperature reading and OLED updates
2018-11-13 22:02:14 +11:00
rljonesau 7d187b3393 Added WiFi options to BTCConfig.h 2018-11-08 05:23:40 +11:00
rljonesau a7b6399c30 On/Off requests now repeat.
Using Minimal SPIFFS, can now fit internal Bluetooth code BUT internal Bluetooth and WiFi
bang radio heads - refusing to co-operate :-(
2018-11-07 21:31:00 +11:00
rljonesau dc8e1940f2 Merged remote-tracking branch 'remotes/origin/ESP32HTTP'
Conflict resolved in
	Arduino/BTCDieselHeater/BTCDieselHeater.ino
2018-11-07 19:56:47 +11:00
rljonesau fbeb78bd0f Merged OtherCommandsTrial to master 2018-11-07 17:59:45 +11:00
James b3de89595d Try again to upload BTCWebServer.cpp 2018-11-07 15:07:11 +11:00
rljonesau 2e9dfba3fc added getTemperature_Actual. Include guard in debugport.h. 2018-11-07 06:41:14 +11:00
James fc2182ee1d Add very simple webserver code -
http://ipaddress/on to poweron
http://ipaddress/off to power off
2018-11-07 04:18:12 +11:00
rljonesau 668870580e Added code to allow injection of test commands into unknown protocol values to see if some sort of
reaction could be found - none so far.
Added Blue LED flash on ESP32 when Rx'ing serial blue wire data.
Created a UtilClasses.h file for utility classes.
2018-11-06 20:43:54 +11:00
rljonesau d57f74482f RENAMED TO BTCDieselHeater.ino from SenderTrial2.ino - Using DebugPort in BTCWifi.cpp 2018-11-06 14:23:28 +11:00
rljonesau 4a841f530a Merged branch 'master' into ESP32OTA to acquire ClassyBluetooth changes
Resolved Conflict:
	Arduino/SenderTrial2/SenderTrial2.ino

Defined pin 23 for triggering wifiManager
2018-11-06 13:25:05 +11:00
James 129790badb *!!!!Removed Telnet - Not really required!!!
*Setup wifi connectivity as a blocking process.  As Wifi is required for OTA to function no point moving forward until this is done on startup.  This will mean either we connect to an Access Point or we become one.

*Added BTC OTA option
2018-11-04 16:19:22 +11:00
rljonesau c415a1a2c7 Now using a switch statement for state machine 2018-11-01 07:55:25 +11:00
rljonesau b128e51880 Converted to class based Bluetooth management. HC-05 tested on ESP32.
Cannot test the inbuilt ESP32 bluetooth - we blow the FLASH size!
2018-11-01 05:57:21 +11:00
rljonesau 756ebdd888 Initial cut at getting HC05 into classes for the ESP32 or Due environments
Runs on ESP32 OK.
2018-10-30 22:05:29 +11:00
rljonesau f8f70058f9 Merge branch 'master' of gitlab.com:mrjones.id.au/bluetoothheater 2018-10-30 20:28:39 +11:00
rljonesau dea11622ba Merge branch 'ESP32WifiFINAL'
Resolved Conflicts in Arduino/SenderTrial2/SenderTrial2.ino
2018-10-30 20:27:56 +11:00
James b818b8541e Fixed all refs 2018-10-30 19:45:17 +11:00
Ray Jones c2669dc0ce Merge branch 'patch-2' into 'master'
Update README.md

See merge request mrjones.id.au/bluetoothheater!8
2018-10-30 08:21:51 +00:00
James C (SkinnyBuddah) 43e8144f1c Update README.md 2018-10-30 08:08:49 +00:00
James 010b0e71cf FINAL Commit of ESP32Wifi 2018-10-30 19:00:19 +11:00
James 269c6965b9 Had to create a new branch because of detached HEAD 2018-10-30 18:56:51 +11:00
Ray Jones 621e9208d1 Update README.md 2018-10-30 07:42:17 +00:00
Ray Jones b202e26f04 Merge branch 'patch-1' into 'master'
Update README.md just to flesh out a little

See merge request mrjones.id.au/bluetoothheater!7
2018-10-30 07:38:35 +00:00
James 80d1b43956 Working wifi - Telnet in testing - Ready for big MERGE 2018-10-30 18:23:22 +11:00
Ray Jones 1b814cbf3f Merge branch 'SmartErrors' into 'master'
Smart errors

See merge request mrjones.id.au/bluetoothheater!6
2018-10-28 19:23:33 +00:00
rljonesau baf1def165 Left out SmartError.cpp & SmartError.h :-( 2018-10-29 06:01:26 +11:00
James Clark 33bb526a54 Added nonblocking wifi manager - Also added STA mode on timeout of 20 seconds 2018-10-28 19:59:34 +11:00
rljonesau ca853a1ac5 Added a "carbon rod" to moderate enthusiastic OEM controllers to Bluetooth.
Updated Android app to better deal with blue wire comms situations, also added warning of limited
control when an OEM controller is in the mix, disabling the temperature and fixed/thermo modes.
2018-10-28 18:34:16 +11:00
rljonesau ea8af6db09 Added debug messages if state machine gets thrown back to idle due to no bluewire rx data
Added protocol document!
2018-10-28 15:05:23 +11:00
James 15a3b6d3ef Added RemoteDebug and a define to change debugging from serial to telnet depening on telnet define at top of .ino 2018-10-28 14:03:44 +11:00
James f3d6d8d6d2 Initial WifiManager addition. 2018-10-28 10:14:34 +11:00
rljonesau 151543b84c Smart error checking now performed in Arduino code.
App Inventor app re-configured to not check these itself any more.
The heater frames sent over blue tooth have the new error codes.
2018-10-28 08:21:35 +11:00
Ray Jones 169b53aaa5 Merge branch 'SmartErrors' into 'master'
Massive tidy up of heater data state machine, SOO much nicer now :-)

See merge request mrjones.id.au/bluetoothheater!4
2018-10-27 10:51:25 +00:00
rljonesau a01bcea53d Massive tidy up of heater data state machine, SOO much nicer now :-) 2018-10-27 21:30:01 +11:00
Ray Jones 383dd466b8 Merge branch 'ESP32Bluetooth' into 'master'
Esp32 bluetooth

See merge request mrjones.id.au/bluetoothheater!3
2018-10-27 09:09:13 +00:00
rljonesau 2799ec3352 Tidied up HC-05 handling (on an ESP32 at least)
Now using SENSE line from HC-05 to detect a client is connected.
Runs with either sort of HC-05 module, provided the 5 pin regulator style is set to 9600 data mode.
Removed #ifdef BLUETOOTH from .ino file, Bluetooth functions report now anyway with/without client.
2018-10-27 20:03:10 +11:00