Coder Social home page Coder Social logo

Comments (7)

bbqkees avatar bbqkees commented on May 26, 2024 2

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

from ems-esp32.

proddy avatar proddy commented on May 26, 2024

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.

from ems-esp32.

SpaceTeddy avatar SpaceTeddy commented on May 26, 2024

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

from ems-esp32.

proddy avatar proddy commented on May 26, 2024

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.

from ems-esp32.

proddy avatar proddy commented on May 26, 2024

Still To Do:

  • Modify the console command 'set ethernet ' to 'set board_profile '
  • Remove the ethernet profile. This is now determined by the board profile, and no longer configurable
  • Detect a -DBOARD_PROFILE and if the filesystem is empty, create based on the profile. This is so pre-configured pin settings can be uploaded in the firmware
  • EMS-ESP stores the profiles in the C++ code and sends GPIO pins to the Web on selection (only rx, tx, led, button, dallas)
  • create a GPIO validator for the web that excludes some GPIO pins like 1, 6-11, 12, 14 & 15. But allowing 0
  • test for valid GPIO in code on startup to prevent crashes

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)

from ems-esp32.

proddy avatar proddy commented on May 26, 2024

still to add the ethernet and compile build flags.

from ems-esp32.

proddy avatar proddy commented on May 26, 2024

all done now and ready to test

from ems-esp32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.