I noticed that the openevse module has a flag to allow it to send a RAPI command out. I enabled this setting because I would like it to tell the ESP32 to send my server a special http message and the openevse cannot do that on its own.
My questions is how do I get the esp32 to listen for that message? I could only find a RapiSend function on it, no kind of RapiListen to parse any rapi commands from the openevse module. Can anyone help me?
We are not sure what you are wanting to do. OpenEVSE and ESP32 communicate only with RAPI.
If you click the system tab and then the OpenEVSE button in the Debug section, you can see all the RAPI commands going back and forth.
$GE^26 $OK 48 8001^25 $GC^20 $OK 6 48 48 48^1A $GE^26 $OK 48 8001^25 $G3^50 $OK 0^30 $GH^2B $OK 0^30 $GE^26 $OK 48 8001^25 $GE^26 $OK 48 8001^25 $GE^26 $OK 48 8001^25
Thank you for the reply.
Basically, I put in my own rapi code in to the evse that it will only begin charging when I swipe a card (card reader attached to the serial port). So my steps are as follows:
EVSE notifies the ESP32 that the card was swiped along with the card number via my custom rapi code along with the card number.
ESP32 gets that - here is where I am stuck - and after this part I can figure out the rest. ie how it should notify the EVSE to actually begin charging.
Please let me know if you can help.
The ESP32 WiFi connects to the OpenEVSE controller on the only serial port so it would be impossible to use both a serial card reader and the ESP32 WiFi. We do not recommend using the safety controller for anything other than safety. It does not make sense to read from the OpenEVSE safety controller send RAPI to WiFi to lookup and authorize and send RAPI back to the controller.
Why not just attach the RFID reader directly to the ESP32? There is already a pull request to add the feature to the ESP32 here:
You are correct. I realized this after looking through the code.
That code on the branch looks pretty good to me.
I am working on my own version, but I am just wondering ..is there anything wrong with that branch https://github.com/notima/ESP32_WiFi_V3.x/tree/rfid_and_timer ?