How to know if car is connected

125 views
Skip to first unread message

Fabien Marchewka

unread,
Jun 19, 2016, 8:35:03 AM6/19/16
to OpenEVSE
With The RAPI when sleeping we can't know if the car is connected. Is there a wa to know if car is connected ?
I'd like to have for example an alert at 23h if car isn't connected. But charging start at 1h00

lincomatic

unread,
Jun 19, 2016, 8:44:19 PM6/19/16
to open...@googlegroups.com

Sorry, but currently, it is not implemented. The way the code is structured, the connection state is not stored when it’s sleeping. You would have to implement a new RAPI command to interpret the current pilot voltage, and return the current connection state.

--
You received this message because you are subscribed to the Google Groups "OpenEVSE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openevse+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gennadiy

unread,
Nov 9, 2016, 4:27:55 PM11/9/16
to OpenEVSE
May I piggyback one simple question. What is the the status code "0" sometimes returned by the $GS command?

lincomatic

unread,
Nov 15, 2016, 7:38:18 PM11/15/16
to open...@googlegroups.com

0 = EVSE_STATE_UNKNOWN

In certain situations, the code temporarily sets the state to unknown until the status is updated, for instance when waking up from sleep or when an EV is disconnected after a fault. The status will be updated in the next loop

--

Bobby

unread,
Nov 17, 2016, 9:04:49 AM11/17/16
to OpenEVSE
I've implemented this exact use case in  my version at https://github.com/Energybrain/openevse-wifi-ui.  I basically created a new RAPI command GL that brings out the volatile flags.  All my changes in the controller firmware is marked with my initials  //bhc so you can easily port it to your code.

Fabien Marchewka

unread,
Nov 27, 2016, 4:35:03 PM11/27/16
to OpenEVSE
Thank you, I will check this version. Perhaps it will be fine to add it in upstream ! lincomatic ?

lincomatic

unread,
Nov 27, 2016, 9:46:18 PM11/27/16
to open...@googlegroups.com
Sorry, it will take more coding and testing to put it in upstream, and I'm too busy at the moment. I would recommend putting the extra call to ReadPilot() directly into the RAPI command. It takes a long time to run, so it's not a good idea to call it at the beginning of Update()

Sent from my iCrap
--
Reply all
Reply to author
Forward
0 new messages