Skip to content

Stuck at Preparing state after hard reset from ESP32 during the transaction phase with OCPP server. #406

@yourcomrade

Description

@yourcomrade

Hi @matth-x , I am currently using the MicroOCPP v1.2.0 with OCPP v1.6's functionalities. I notice that the charging station, which uses esp32 as main controller get stuck at the Preparation state after the RFID tag present. This happens if the esp32 suddenly has a reset during the Charging state and has a transaction still continuing with the OCPP server.
This is tested with Steve OCPP server.
Step to reproduce:

  1. Charging station is in the Charging state and has an ongoing transaction with the OCPP sever.
  2. Suddenly, a hard reset happens (This can be achieve by pressing reset button)
  3. The charging station go back to available mode, and stuck at the preparing mode even after the present of RFID to enable charging.

In some situation, the esp32 has timeout or booting notification because the Steve server refuses to respone it. I think this happen because the Steve server doesn't know that the charging station has just reseting and still think that there is still a charging session going. So I have to manually stop the transaction in Steve, remove and re-add the charging station's id, and then reset the esp32 to make everything normal again. Is there a way to notify the OCPP sever that the charging station had resest so it can stop the transaction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions