ahoy DTU

Download ahoy firmware
https://github.com/lumapu/ahoy/releases

# dev
#URL=https://nightly.link/lumapu/ahoy/workflows/compile_development/development03/ahoydtu_dev.zip
 
# stable
URL=https://github.com/lumapu/ahoy/releases/download/ahoy_v0.8.83/ahoy_v0.8.83.zip
 
wget ${URL} -q -O /tmp/ahoydtu.zip
 
# extract
unzip /tmp/ahoydtu.zip -d /tmp

Download esptoo
https://github.com/espressif/esptool/releases

#pip install esptool
#git clone git@github.com:marcelstoer/nodemcu-pyflasher.git
#git clone https://github.com/espressif/esptool.git /tmp/esptool
 
wget https://github.com/espressif/esptool/releases/download/v4.7.0/esptool-v4.7.0-linux-amd64.zip -q -O /tmp/esptool.zip
unzip /tmp/esptool.zip -d /tmp
chmod +x /tmp/esptool-linux-amd64/esptool

Flash Ahoy DTU

# Flash firmware
# ESP8266 (Wemos D1 Mini)
AHOY_FW=/tmp/ESP8266/2*_esp8266.bin
# ESP32 (ESP32 WROOM32)
AHOY_FW=/tmp/firmware/ESP32/*_esp32.bin
# opendtu-generic_esp32.factory.bin
 
sudo chmod 777  /dev/ttyUSB0
 
eval /tmp/esptool-linux-amd64/esptool \
  --port /dev/ttyUSB0 \
  --baud 115200 \
  --after no_reset write_flash \
  --flash_size detect \
  --flash_mode dio \
  --erase-all \
  0x00000 \
  "${AHOY_FW}"
 
# ESP32 (ESP32 WROOM32)
/tmp/esptool/esptool.py --port /dev/ttyUSB0 --chip esp32 --before default_reset --after hard_reset   write_flash --flash_mode dout --flash_freq 40m --flash_size detect   0x1000 bootloader.bin   0x8000 partitions.bin   0x10000 230927_ahoy_0.7.60_963e618_esp32.bin
 
 
# esptool.py --port /dev/ttyUSB0 --chip esp32 --before default_reset --after hard_reset \
  write_flash --flash_mode dout --flash_freq 40m --flash_size detect \
  0x0 opendtu-generic*.factory.bin

Wiring ESP8266

Image copyright:AhoyDTU.de

Wiring ESP32

Image copyright:AhoyDTU.de

Configure

conneect to  wifi
wifi: AHOY-DTU
pass: esp_8266

http://192.168.4.1

Optional: Flash with GUI

cd nodemcu-pyflasher
./nodemcu-pyflasher.py 
 
Serial port: /dev//ttyUSB0
ModeMCU firmware: 230617_ahoy_0.7.6_0b763df_esp8266.bin
Baud rate 1115200
Flash mode Dual I/0 (DIO)
Erase flash (yes,  wipes all data
Flash NodeMCU

Debug

sudo screen /dev/ttyUSB0 115200

OpenDTU
https://selbstbau-pv.de/wissensbasis/opendtu-einrichtung/

WLAN-Spot „OpenDTU-*****“
Passwort: openDTU42
 
# login
admin
openDTU42

Links
https://ahoydtu.de/
https://github.com/lumapu/ahoy/releases
https://blog.helmutkarger.de/balkonkraftwerk-teil-8-opendtu-und-ahoydtu-fuer-hoymiles-wechselrichter/
https://howtomechatronics.com/tutorials/arduino/arduino-wireless-communication-nrf24l01-tutorial/
https://ahoydtu.de/getting_started/
https://github.com/marcelstoer/nodemcu-pyflasher