emsesp / EMS-ESP32

ESP32 firmware to read and control EMS and Heatronic compatible equipment such as boilers, thermostats, solar modules, and heat pumps
https://emsesp.github.io/docs
GNU Lesser General Public License v3.0
621 stars 106 forks source link

board profiles: pre-configured pin layouts #11

Closed proddy closed 3 years ago

proddy commented 3 years ago

From the Web, select a pre-configured layout to support the new range of BBQKees boards. So ESP8266 and ESP32 variants.

proddy commented 3 years ago

Was discussing this with BBQKees today. We decided to call it a Board Profile, which is basically a drop-down list in the Web settings that sets the default values for GPIOs (Rx, Tx, Dallas, Ethernet, LED invert) that match his gateway boards and auto-fill in the settings on the page.

Also a build option -DBOARD_PROFILE= that sets the default values in the firmware so Kees can upload onto the board and it'll work out of the box.

SpaceTeddy commented 3 years ago

sounds good. Please support also the Wemos MINI D1 ESP32, which works out of the box right now.

bbqkees commented 3 years ago

Yes board profiles are not exclusively tied to BBQKees boards. It's for all common configurations.

proddy commented 3 years ago

Made the first steps in the web. Next is to have EMS-ESP send a list of valid profiles to the Web UI with the GPIO configurations.

proddy commented 3 years ago

Still To Do:

some settings which I'll use for reference:

Wemos MINI D1-32 (rx=23, tx=5, dallas=18, led=2, pbutton=0)
Lolin D32 (rx=17, tx=16, dallas=14, led=5, pbutton=0)
BBQKees Gateway S32 (rx=23, tx=5, dallas=4, led=2, pbutton=0)
BBQKees Gateway E32 (rx=5, tx=17, dallas=4, led=2, pbutton=33, phy_addr=1, power=16, mdc=23, mdio=18, clockmode=0_IN)
Olimex ESP32-EVB-EA (rx=5, tx=17, dallas=4, led=2, pbutton=33, phy_addr=0, power=-1, mdc=23, mdio=18, clockmode=0_IN)
proddy commented 3 years ago

still to add the ethernet and compile build flags.

proddy commented 3 years ago

all done now and ready to test