ahoy/tools/esp8266
lumapu a7add69719 * renamed .ino (must be identical to parent folder name)
* build CRC over settings, only if the CRC matches settings are applied
* send command 0x80 (set time was wrong)
* improved crc16 routine
* added statistics for received commands and send statistics (channels are not correct for now!)
* receive of commands 0x01, 0x02, 0x03, 0x81 and 0x84 working
2022-04-20 08:58:23 +02:00
..
html * renamed .ino (must be identical to parent folder name) 2022-04-20 08:58:23 +02:00
tools added ESP8266 code 2022-04-17 01:54:48 +02:00
app.cpp * renamed .ino (must be identical to parent folder name) 2022-04-20 08:58:23 +02:00
app.h * renamed .ino (must be identical to parent folder name) 2022-04-20 08:58:23 +02:00
CircularBuffer.h added ESP8266 code 2022-04-17 01:54:48 +02:00
crc.cpp * renamed .ino (must be identical to parent folder name) 2022-04-20 08:58:23 +02:00
crc.h * renamed .ino (must be identical to parent folder name) 2022-04-20 08:58:23 +02:00
defines.h * renamed .ino (must be identical to parent folder name) 2022-04-20 08:58:23 +02:00
eep.cpp added ESP8266 code 2022-04-17 01:54:48 +02:00
eep.h added ESP8266 code 2022-04-17 01:54:48 +02:00
esp8266.ino * renamed .ino (must be identical to parent folder name) 2022-04-20 08:58:23 +02:00
hoymiles.h * renamed .ino (must be identical to parent folder name) 2022-04-20 08:58:23 +02:00
main.cpp * renamed .ino (must be identical to parent folder name) 2022-04-20 08:58:23 +02:00
main.h * renamed .ino (must be identical to parent folder name) 2022-04-20 08:58:23 +02:00
README.md added ESP8266 code 2022-04-17 01:54:48 +02:00

OVERVIEW

This code was tested on a ESP8266 - ESP-07 module. Many parts of the code are based on 'Hubi's code, which can be found here: https://www.mikrocontroller.net/topic/525778?page=3#7033371

The NRF24L01+ radio module is connected to the standard SPI pins. Additional there are 3 pins, which can be set individual:

  • IRQ - Pin 4
  • CE - Pin 5
  • CS - Pin 15

Compile

This code can be compiled using Arduino. The settings were:

  • Board: Generic ESP8266 Module
  • Flash-Size: 1MB (FS: none, OTA: 502kB)

Flash ESP with firmware

  1. flash the ESP with the compiled firmware using the UART pins or any preinstalled firmware with OTA capabilities
  2. repower the ESP
  3. the ESP will start as access point (AP) if there is no network config stored in its eeprom
  4. connect to the AP, you will be forwarded to the setup page
  5. configure your WiFi settings, save, repower
  6. check your router for the IP address of the module

Usage

Connect the ESP to power and to your serial console. The webinterface is currently only used for OTA and config. The serial console will print all information which is send and received.

Known Issues

  • only command 0x81 is received

USED LIBRARIES

  • Time
  • RF24