Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 86: Restructure APIs and Implement RemoteStopTransaction #345

Draft
wants to merge 5 commits into
base: feature/issue-92-implement-boot-notification
Choose a base branch
from

Conversation

lydiazcheng
Copy link
Contributor

⚠️ This branch is based on the boot handler implementation feature branch: #325

Context

Implement RemoteStopTransaction endpoint and ensure Citrine to support apis of 2 OCPP versions.

Changes

  1. Update AbstractModuleApi:
    • add SystemConfig endpoints only for data apis.
    • add ocpp version in the message endpoint path, e.g., /ocpp/1.6/evdriver/remoteStopTransaction
  2. Split api.ts in EVDriver module into 3 api files for ocpp 2.0.1 message, ocpp 1.6 message and data endpoints respectively
  3. Init all 3 Apis in the Server index.ts

Tests

Case 1: Call OCPP 1.6 endpoint

Screenshot 2025-02-04 at 5 40 16 PM Screenshot 2025-02-04 at 5 40 26 PM

Case 2: Call OCPP 2.0.1 endpoint

Screenshot 2025-02-04 at 5 39 01 PM Screenshot 2025-02-04 at 5 39 52 PM

Case 3: The endpoint ocpp version doesn't match the connection protocol version

Charge connects to Citrine with protocol 2.0.1 but send a 1.6 call
Screenshot 2025-02-04 at 5 39 39 PM

Signed-off-by: Zihe Cheng <lydiazcheng@users.noreply.github.com>
Signed-off-by: Zihe Cheng <lydiazcheng@users.noreply.github.com>
Signed-off-by: Zihe Cheng <lydiazcheng@users.noreply.github.com>
@lydiazcheng lydiazcheng self-assigned this Feb 5, 2025
@lydiazcheng lydiazcheng changed the title Feature/issue86 refactor api implement remotestoprequest Issue 86: Restructure APIs and Implement RemoteStopTransaction Feb 5, 2025
@lydiazcheng lydiazcheng linked an issue Feb 5, 2025 that may be closed by this pull request
Signed-off-by: Zihe Cheng <lydiazcheng@users.noreply.github.com>
Signed-off-by: Zihe Cheng <lydiazcheng@users.noreply.github.com>
@lydiazcheng lydiazcheng marked this pull request as draft February 7, 2025 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[OCPP 1.6] Implement RemoteStopTransaction
1 participant