openwb-2.0: implement RFID Reset - #31702
Conversation
|
Lets wait until expectedly supported or it will create confusion. |
|
would it make sense to make this revert conditionally to the installed software of the openWB, or would we rather rely on a hint in the config dialog only? |
|
@MartinRinas there is no information about the openWB-Version in the modbus interface, so there is no way to do something automatically depending on the openWB version... |
|
We should not do this. Relying on status changes is brittle since evcc might miss them. The right thing here would be fixing this on the OpenWB side or switching to native on OpenWB.
This is exactly what should be done by OpenWB and what every other wallbox is doing. |
|
@andig I strongly disagree here: There is no "standard" howto handle RFID-Identification AFAIK. We are trying to integrate different chargers into evcc and so we have to adapt to the interface of the charger, not the charger to our interface. At least as long, as we are not using standardized interfaces. openWB won't change it's behavior for this, there was a statement for this from @kevinwieland in the corresponding issue for openWB: openWB/core#2832 (comment)
Yes, we could miss status changes, but for the current logic only one change is important: the change from any other status to A/Disconnected. As the last status is kept in a variable, we must miss all communication in states B/plugged and C/charging before next unplug. This will happen either when there are communication problems or if plugging in and out is happening in a very short time < control cycle interval. |
You can still miss these.
The standard is to wipe RFIDs when vehicle disconnects.
Das ist natürlich Quatsch. Das Problem ist nicht das EMS sondern die Tatsache, dass die OpenWB das als Secondary nicht selbst kann. |
|
Die openWB handhabt es seit 2018 so das die primary die Hoheit darüber hat, nicht die secondary. |
|
@kevinwieland das machts ja nicht besser bzw. ändert an der Diagnose nichts:
|
|
Ja, die Diagnose bleibt. EVCC muss es schlicht zurücksetzen wenn es den RFID Tag ausgelesen hat. Die Möglichkeit besteht nun per MQTT und auch per Modbus. |
|
Then lets reopen when OpenWB has released. |
|
@andig what do you think about adding this additional logic?
|
|
So car connects at night and RDIF gets resets since it doesn‘t charge? Sounds wrong. |
|
Ah, sorry, description was not precise enough. |
Reset RFID also, if new Tag is scanned while in status A and no car gets connected in the next 2 minutes
at the moment random status changes occur on read errors; as we need cached values of status and identifier for RFID-Reset, use these in case of read errors
|
implemented extended logic:
While testing I also found a bug in the current implementation: If reading of some values from modbus fails, random state-changes or identifier changes occur because of the way, errors are handled. While testing I also found another bug in openWB and implemented a fix for that also: openWB/core#3797 -> hopefully this will be in the same release as the reset mechanism needed for this change :) @andig could you please reopen as Draft, so my changes will be visible here? |
RFID-Handling is fixed in current alpha/HEAD-Version of openwb/core and will be included in Release 2.3.0.
To utilize this, we have to reset the RFID-tag on unplug.,