09 DEBUGGING AND TESTING - patience4711/ESP8266_read_p1meter GitHub Wiki

This system has a lot of debug capabilities. There is an infopage with a variables dump that can indicate where values are wrong. We can use the console to start and monitor some of the key processes. The console commands are always preceded with '10;'. When we open the console, the output of a poll shows up in the screen. Some commands:

  • 10;files // shows which files are in the SPIFFS
  • 10;delete=filename // deletes a file from SPIFFS Click 'help' to all commands.

SERIAL DEBUGGING

At boot, a lot of system information is printed to a serial monitor, you can see a.o. the contents of the filles in spiffs, the ip, and

10;DIAG

If this value = true it means that all debuginfo is shown in the console. You can follow the bootup process from the moment the wifi is set. If you issue 10;diag the value is toggled. The answer = 'set diagNose to 0/1'. You should set this to 0 when you leave the console. In the menu "settings you can also set this bool.

polling

We can poll the p1 meter manually to see the issued command and the extracted inverter data. If we want to poll the meter we issue 10;poll.

tricks

We can open multiple pages on the ESP_ECU webinterface. For instance if we open the console in one page and browse the webinterface in another page, we can see what is happening in the console.