ahoy/tools/esp8266
2022-08-30 21:24:35 +02:00
..
html fix action (directory was missing - needs to be created automatically now) 2022-08-30 21:24:35 +02:00
include ESP32 support added 2022-08-19 17:35:10 +02:00
scripts added esp32 to release work flow 2022-08-23 19:44:22 +02:00
WemosD1_NRF24_Case 3D-Model for a case for Wemos D1 2022-05-26 00:18:26 +02:00
.gitignore - Improve config system allowing a user customizable config_override.h file to ensure git pulls don't require merges 2022-08-30 08:52:47 +02:00
ahoywifi.cpp ESP32 support added 2022-08-19 17:35:10 +02:00
ahoywifi.h ESP32 support added 2022-08-19 17:35:10 +02:00
app.cpp fix #209 2022-08-30 15:49:33 +02:00
app.h fix #209 2022-08-30 15:49:33 +02:00
CHANGES.md Update CHANGES.md 2022-08-20 13:41:11 +02:00
CircularBuffer.h ESP32 support added 2022-08-19 17:35:10 +02:00
config.h * fix #195: used trim() to remove leading and trailing spaces, added maxlength attr to input field 2022-08-30 15:35:36 +02:00
config_override_example.h - Improve config system allowing a user customizable config_override.h file to ensure git pulls don't require merges 2022-08-30 08:52:47 +02:00
crc.cpp first changes to prepare code for esp32 2022-08-15 22:42:08 +02:00
crc.h first changes to prepare code for esp32 2022-08-15 22:42:08 +02:00
defines.h * added option for no powerlimit (setup) 2022-08-26 16:34:10 +02:00
eep.h ESP32 support added 2022-08-19 17:35:10 +02:00
favicon.h Janitorial: Trailing whitespace tweaks 2022-06-27 00:42:51 +02:00
hmDefines.h added last alarm msg request 2022-08-23 17:52:07 +02:00
hmInverter.h * added option for no powerlimit (setup) 2022-08-26 16:34:10 +02:00
hmRadio.h Merge branch 'development02' into config_override 2022-08-30 09:05:10 +02:00
hmSystem.h added command queue 2022-08-20 13:34:31 +02:00
main.cpp * first refactored version which is accessible through web interface 2022-08-14 01:40:55 +02:00
mqtt.h MQTT reconnect delay, fixed ESP32 build 2022-08-22 19:59:45 +02:00
platformio.ini - Improve config system allowing a user customizable config_override.h file to ensure git pulls don't require merges 2022-08-30 08:52:47 +02:00
README.md Merge branch 'main' into development02 2022-08-30 10:06:47 +02:00
User_Manual.md Merge branch 'development' into dev_private 2022-08-18 13:06:59 +02:00
web.cpp * fix #195: used trim() to remove leading and trailing spaces, added maxlength attr to input field 2022-08-30 15:35:36 +02:00
web.h ESP32 support added 2022-08-19 17:35:10 +02:00

OVERVIEW

This page describes how the module of a Wemos D1 mini and ESP8266 is wired to the radio module, flashed and how the further steps are to communicate with the WR HM series.

Compatiblity

For now the following inverters should work out of the box:

  • HM350
  • HM400
  • HM600
  • HM700
  • HM800
  • HM1200
  • HM1500

The NRF24L01+ radio module is connected to the standard SPI pins. Additional there are 3 pins, which can be set individual: CS, CE and IRQ These pins can be changed in the http:///setup URL or with a click on the Setup link.

ESP8266 electr. associate

Compile

This code can be compiled using Visual Studio Code and PlatformIO Addon. The settings were:

  • Board: Generic ESP8266 Module
  • Flash-Size: 1MB (FS: none, OTA: 502kB)
  • Install libraries (not included in the Arduino IDE 1.8.19):
    • Time 1.6.1
    • RF24 1.4.5
    • PubSubClient 2.8
    • ArduinoJson 6.19.4

Optional Configuration before compilation

  • number of supported inverters (set to 3 by default) config.h
  • DTU radio id config.h (default = 1234567801)
  • unformated list in webbrowser /livedata config.h, LIVEDATA_VISUALIZED

Alternativly, instead of modifying config.h, config_override_example.h can be copied to config_override.h and customized. config_override.h is excluded from version control and stays local.

Flash ESP with firmware

nodemcu-pyflasher (easy way)

  1. download the flash-tool nodemcu-pyflasher

  2. download latest release bin-file from ahoy_

  3. connect the target device with your pc.

  4. Set the correct serial port and select the correct *.bin file

  5. click now on "Flash NodeMCU"

  6. flash the ESP with the compiled firmware using the UART pins or any preinstalled firmware with OTA capabilities

  7. repower the ESP

  8. the ESP will start as access point (AP) if there is no network config stored in its eeprom

  9. connect to the AP, you will be forwarded to the setup page

X. configure your WiFi settings, save, repower Y. check your router or serial console for the IP address of the module. You can try ping the configured device name as well.

! ATTENTION: If you update from a very low version to the newest, please make sure to wipe all flash data!

pages

page output
/uptime 0 Days, 01:37:34; now: 2022-08-21 11:13:53
/reboot reboot dtu device
/erase
/factory
/setup
/save open the setup site
/cmdstat show stat from the home site
/visualization
/livedata
/json json output from the livedata
/api

Usage

The webinterface has the following abilities:

  • OTA Update (over the air update)
  • Configuration (Wifi, inverter(s), NTP Server, Pinout, MQTT, Amplifier Power Level, Debug)
  • visual display of the connected inverters / modules
  • some statistics about communication (debug)

The serial console will print the converted values which were read out of the inverter(s)

MQTT command to set the DTU without webinterface

Read here

Todo's See this post

  • Wechsel zu AsyncWebServer und ElegantOTA f<>r Stabilit<69>t
  • klarer Scheduler / Task manager, der ggf. den Receive Task priorisieren kann
  • Device Info Kommandos (Firmware Version, etc.) <20>ber das Dashboard anzeigen Device Information ( 0x15 REQ_ARW_DAT_ALL ) SubCmd Kommandos #145
  • AlarmData & AlarmUpdate Parsen und auf eigener Seite darstellen

------------------ SWIM LANE ---------------------------