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

Start Transcation and get the error message of farmation violation #697

Open
THDtech opened this issue Dec 16, 2024 · 7 comments
Open

Start Transcation and get the error message of farmation violation #697

THDtech opened this issue Dec 16, 2024 · 7 comments

Comments

@THDtech
Copy link

THDtech commented Dec 16, 2024

First, thanks for your great work, We are a charger company and we cannot connect with clients server, the log they sent is below.

INFO:websockets.server:connection open
{"export": false, "action": "default_action", "app": "cp", "event": "Protocols Matched: ocpp1.6", "timestamp": "2024-12-06T07:44:35.343238Z", "lineno": 29, "pathname": "/app/central_cp.py"}
{"export": false, "action": "default_action", "app": "cp", "event": "Charge point xZLQKgJQ connected", "timestamp": "2024-12-06T07:44:35.343863Z", "lineno": 45, "pathname": "/app/central_cp.py"}
INFO:ocpp:xZLQKgJQ: receive message [2,"dabbadd0-3b86-48a0-9c11-8de787bab0ac","BootNotification",{"chargePointVendor":"SimpleCharge","chargePointModel":"MultiSocketCharger","chargePointSerialNumber":"24250139","firmwareVersion":"1.24.0819.WL","iccid":"","imsi":""}]
{"export": true, "action": "default_action", "app": "cp", "cp": "xZLQKgJQ", "charge_point_vendor": "SimpleCharge", "charge_point_model": "MultiSocketCharger", "charge_point_serial_number": "24250139", "firmware_version": "1.24.0819.WL", "iccid": "", "imsi": "", "event": "BootNotification", "timestamp": "2024-12-06T07:44:36.083071Z", "lineno": 55, "pathname": "/app/controller/ChargePoint.py"}
INFO:ocpp:xZLQKgJQ: send [3,"dabbadd0-3b86-48a0-9c11-8de787bab0ac",{"currentTime":"2024-12-06T13:44:36.083Z","interval":60,"status":"Accepted"}]
INFO:ocpp:xZLQKgJQ: receive message [4,"dabbadd0-3b86-48a0-9c11-8de787bab0ac","FormationViolation","Unable to process action",{}]

@a-alak
Copy link

a-alak commented Dec 16, 2024

So the log is from the CS that is implemented with this library?
What software is running on the CP and are we sure that works properly?
Based on the log the BootNotification response seems correctly formatted.

@THDtech
Copy link
Author

THDtech commented Dec 17, 2024 via email

@a-alak
Copy link

a-alak commented Dec 17, 2024

Have you tested with other CSMS software?
It does not seem that anything is wrong with this package nor your implementation of it (based only on the logs of course).

@THDtech
Copy link
Author

THDtech commented Dec 17, 2024 via email

@THDtech
Copy link
Author

THDtech commented Dec 17, 2024 via email

@drc38
Copy link
Contributor

drc38 commented Dec 17, 2024

Your devs need to look at the stacktrace and confirm the underlying exception, but I expect it is because the string is not being encoded according to the JSON standard see https://docs.python.org/3/library/json.html#json.loads

@THDtech
Copy link
Author

THDtech commented Dec 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants