Repository navigation
Fix RFID an der Duo - #4205
Open
AlexanderHa98 wants to merge 2 commits into
Open
Fix RFID an der Duo#4205AlexanderHa98 wants to merge 2 commits into
AlexanderHa98 wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
RFID routing can assign a shared scan to an actively charging outlet with an unchanged meter reading and discard a valid scan during unplug cleanup, requiring fixes to connector eligibility.
2 open issues
What changed in this PR
This PR updates shared RFID handling for Duo chargepoints so scans are assigned to a single outlet and only committed tags authorize charging.
Changes:
- Adds Duo target selection, shared scan cleanup, and validation logic.
- Uses committed RFID assignments for Duo locking, vehicle selection, and OCPP transactions.
- Expands regression tests for scan timing, outlet selection, authorization, and cleanup.
| File | Description |
|---|---|
packages/control/chargepoint/rfid.py |
Implements Duo scan routing, validation, and shared cleanup. |
packages/control/chargepoint/rfd_test.py |
Adds parameterized Duo RFID and control-cycle regression tests. |
packages/control/chargepoint/chargepoint.py |
Integrates committed Duo tags into authorization, vehicle selection, and transactions. |
Review effort: Balanced
Comment on lines
+17
to
+19
| if cp.data.set.rfid is None and cp.data.get.plug_state and | ||
| (cp.data.set.log.imported_at_plugtime == 0 or | ||
| cp.data.set.log.imported_at_plugtime == cp.data.get.imported)] |
Comment on lines
+89
to
+98
| if all(cp.data.set.rfid is not None or cp.data.get.charge_state for cp in (self, cp2_data)): | ||
| self._clear_pending_rfid(rfid, cp2_data) | ||
| for cp in (self, cp2_data): | ||
| cp.set_state_and_log("Beide Ladepunkte sind bereits zugeordnet oder laden." | ||
| " Es wird kein weiterer ID-Tag akzeptiert.") | ||
| return | ||
| allowed_cps = [cp for cp in (self, cp2_data) | ||
| if cp.data.set.rfid is None and | ||
| (not cp.data.get.plug_state or cp.data.set.log.imported_at_plugtime == 0 or | ||
| cp.data.set.log.imported_at_plugtime == cp.data.get.imported)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.