lincomatic / open_evse

Firmware for Open EVSE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RAPI command to set MAX current

chris1howell opened this issue · comments

Setting the maximum current for a station requires compiling the firmware for each common value, which can be challenging. Leaving the Maximum at the J1772 80A covers everyone however it can allow a station to be set above the ability of the hardware.

A RAPI command to set the station maximum current would be very helpful, for security the RAPI command should only allow write to EEPROM once. Changing the value again would require erasing the EEPROM or re-flashing firmware.

I really don't agree w/ loading a firmware into an EVSE that's even capable of exceeding the hardware limit, even if it's a "protected" value. If you want to avoid recompiling, it's not that hard to write a program that edits a binary firmware image and sets the max value before burning the firmware into an EVSE.

In https://github.com/OpenEVSE/openevse_wifi_gui/issues/12, Jeremy mentioned another pressing need, which is to know the maximum current capacity which was loaded in from EEPROM at boot time. I will add a parameter to $GC for this

In OpenEVSE/openevse_wifi_gui#12, Jeremy mentioned another pressing need, which is to know the maximum current capacity which was loaded in from EEPROM at boot time. I will add a parameter to $GC for this

68f362c

Firmware is loaded at the distributor before the board is even fabricated. It is not practical to manufacture and stock all possible variations. But sending an RAPI command or writing EEPROM is doable. Defaults are 80A max, 24A current GFI self test disabled. Currently there is no easy way to set absolute max so everything ships 80A.

Running RAPI commands during assembly to do configuration sounds too error-prone, and adds labor during manufacturing, too. I feel pretty strongly that the firmwares should be hardcoded for the proper upper current limit. As I stated above, the best approach is to write a program that edits the compiled firmware file to set whatever upper current limit is desired.