Coder Social home page Coder Social logo

(v2) ESP32 upload firmware about ems-esp32 HOT 8 CLOSED

emsesp avatar emsesp commented on May 26, 2024
(v2) ESP32 upload firmware

from ems-esp32.

Comments (8)

sq4bja avatar sq4bja commented on May 26, 2024 1

Ok, the dafault is GPIO5 for TX and GPIO23 for RX. However, esp32 takes more power then Wemos. Powering from the EMS bus requires adding a capacitor on the step-down input. Now I have a stable and fast boiler controller. Thank you for your help.
Tom

from ems-esp32.

MichaelDvP avatar MichaelDvP commented on May 26, 2024

If connected to USB you can edit the pio_local.ini and add (check your com-port):

[env:esp32]
upload_protocol = esptool
upload_port = COM13
upload_flags = 

and than use platformio upload

from ems-esp32.

proddy avatar proddy commented on May 26, 2024

that's it. The command to use is pio run -t upload

from ems-esp32.

sq4bja avatar sq4bja commented on May 26, 2024

Thanks, but I can't compile it. I'm not PIO expert, so it looks like wrong path or incorrect library.
I'm getting:

Compiling .pio\build\esp32\src\console.cpp.o
In file included from src\emsesp.h:36:0,
                 from src\EMSESPDevicesService.cpp:20:
lib/framework/ESP8266React.h:33:21: fatal error: WWWData.h: No such file or directory

*****************************************************************
* Looking for WWWData.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:WWWData.h"
* Web  > https://platformio.org/lib/search?query=header:WWWData.h
*
*****************************************************************

In file included from src\emsesp.h:36:0,
                 from src\EMSESPSettingsService.cpp:20:
lib/framework/ESP8266React.h:33:21: fatal error: WWWData.h: No such file or directory

*****************************************************************
* Looking for WWWData.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:WWWData.h"
* Web  > https://platformio.org/lib/search?query=header:WWWData.h
*
*****************************************************************

In file included from src\emsesp.h:36:0,
                 from src\EMSESPStatusService.cpp:20:
lib/framework/ESP8266React.h:33:21: fatal error: WWWData.h: No such file or directory

*****************************************************************
* Looking for WWWData.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:WWWData.h"
* Web  > https://platformio.org/lib/search?query=header:WWWData.h
*
*****************************************************************

compilation terminated.
compilation terminated.
compilation terminated.
In file included from src\emsesp.h:36:0,
                 from src\console.cpp:20:
lib/framework/ESP8266React.h:33:21: fatal error: WWWData.h: No such file or directory

*****************************************************************
* Looking for WWWData.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:WWWData.h"
* Web  > https://platformio.org/lib/search?query=header:WWWData.h
*
*****************************************************************

compilation terminated.
*** [.pio\build\esp32\src\EMSESPSettingsService.cpp.o] Error 1
*** [.pio\build\esp32\src\EMSESPStatusService.cpp.o] Error 1
*** [.pio\build\esp32\src\EMSESPDevicesService.cpp.o] Error 1
*** [.pio\build\esp32\src\console.cpp.o] Error 1
================================================================================================== [FAILED] Took 11.62 seconds ==================================================================================================
Environment    Status    Duration
-------------  --------  ------------
esp8266        IGNORED
esp32          FAILED    00:00:11.617
============================================================================================= 1 failed, 0 succeeded in 00:00:11.617 =============================================================================================The terminal process "C:\Users\CP24\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

from ems-esp32.

proddy avatar proddy commented on May 26, 2024

The missing file is generated by a script which platformio calls. What I'll do is create a script that uploads it to usb

from ems-esp32.

MichaelDvP avatar MichaelDvP commented on May 26, 2024

@sq4bja the missing file is the webdata which is build by NPM. If NPM is missing you have to install nodejs

from ems-esp32.

sq4bja avatar sq4bja commented on May 26, 2024

Ok, that was clue. After install nodejs I have no errors and I have ems-esp on ESP32 directly from PlatformIO. So, which pins are recommended to do EMS communication?
Tom

from ems-esp32.

proddy avatar proddy commented on May 26, 2024

The defaults should work. Any pin on the ESP32 can be a UART Rx/Tx.

On a Wemos D1-32 Michael uses Rx=23(D7), Tx=5(D8) and on my Lolin D32's I used Rx=17 and Tx=16. But any should work.

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.