-
Notifications
You must be signed in to change notification settings - Fork 88
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
[Hager Witty Park / 1.0.0.0 / 9.0.1.0] Stop charging look not working #55
Comments
Hi, 1.) The charger sends an "Authorize" massage when an RFID-tag is presented. Your log above also doesn't show anything about a "StartTransaction" or StopTransaction message. The start message must have been sent. Otherwise no transaction would be running. But as the transactions are not stopped, the chargers probably doesn't send the expected stop message. |
OK. The charger sends a StopTransaction but this message lacks the required transaction id. It is always "-1". From OCPP specification:
With OCPP 1.6 the servers answers the StartTransaction-Message with a generated transaction id (integer). The charger needs to send this back with the StopTransaction message. Your charger doesn't do this and then the server can't stop the transaction. The servers answer to these stop-messages is probably an error. You should see errors in the log files. OCPP 2.0 changes the id handling, that the charger generates a UID as a transaction id and sends this with the start-message. Does your charger support OCPP 2.0? Maybe that works!? |
ì have open a case to hager i waiting reply Full dump in-out of transaction : I have also a wireshark capture. |
The charger requests to authorize the RFID token and the server says "accepted". 2024-05-15_16-29-31-2338_ocpp16-in.txt:[2, "8afaaa50-12c7-11ef-8012-0c8629738129", "Authorize", {"idTag":"ABCD1234"}] Then the charger sends a StartTransaction message: 2024-05-15_16-29-41-5002_ocpp16-in.txt:[2, "9116b0f0-12c7-11ef-8012-0c8629738129", "StartTransaction", {"connectorId":4,"idTag":"ABCD1234","meterStart":51880,"timestamp":"2024-05-15T14:25:12Z"}] The server responds with status "ConcurrentTx" because there is another transaction running with same RFID token: 2024-05-15_16-29-41-5125_ocpp16-out.txt:[3,"9116b0f0-12c7-11ef-8012-0c8629738129",{"idTagInfo":{"expiryDate":"2199-12-31T00:00:00+01:00","parentIdTag":"charger","status":"ConcurrentTx"},"transactionId":0}] The OCPP spec says about "ConcurrentTx": So the server does not send a transaction ID (=0) and the charger should not start charging. 2024-05-15_16-29-44-5523_ocpp16-in.txt:[2, "92e07470-12c7-11ef-8013-0c8629738129", "StopTransaction", {"meterStop":51880,"timestamp":"2024-05-15T14:25:17Z","transactionId":-1,"idTag":"ABCD1234","reason":"Local"}] And the server answers with an error because of the unknown transaction ID. 2024-05-15_16-29-44-5654_ocpp16-out.txt:[4,"92e07470-12c7-11ef-8013-0c8629738129","PropertyConstraintViolation","",{}] Try to change the configuration in the OCPP server to allow concurrent transactions for the same RFID token: |
I reproduce the issue, and it turns out that our terminal does not accept expiry dates beyond 12/31/2105. If the terminal receives a StartTransaction response with an expiry date later than this, it will not consider the response and, therefore, will not recognize the TransactionID. It will then resend the StartTransaction request, to which your server responds with ConcurrentTx, which is correct since you have already provided a transaction number for this badge ID (see logs below).
|
What a surprising issue... good analysis! |
Can you help me understand why I never get an end of charge?
Logs on my Hager Witty Park :
[2024-04-29 05:26:18] Connector 3: Cable connection
[2024-04-29 05:26:18] Connector 3: OCPP Status Preparing
[2024-04-29 05:26:18] Connector 3: Cable 32 A
[2024-04-29 05:26:23] Connector 3: Vehicle connection
[2024-04-29 05:27:03] RFID tag: XXXXXXX1
[2024-04-29 05:27:03] Authorize (tag = XXXXXXX1, status = Accepted, expiry date = 2024-04-29T05:32:03Z)
[2024-04-29 05:27:04] Connector 3: Suspended EVSE
[2024-04-29 05:27:04] Connector 3: OCPP Status Suspended EVSE
[2024-04-29 05:27:05] Connector 3: Suspended EV
[2024-04-29 05:27:05] Connector 3: OCPP Status Suspended EV
[2024-04-29 05:27:11] Connector 3: Charging
[2024-04-29 05:27:11] Connector 3: OCPP Status Charging
[2024-04-29 05:27:14] Connector 3: OCPP Status Charging
[2024-04-29 09:09:16] Connector 3: Suspended EV
[2024-04-29 09:09:16] Connector 3: OCPP Status Suspended EV
[2024-04-29 10:31:46] Connector 3: Vehicle disconnection
[2024-04-29 10:31:46] Connector 3: OCPP Status Finishing
[2024-04-29 10:31:53] Connector 3: Cable disconnection
[2024-04-29 10:31:53] Connector 3: OCPP Status Available
The text was updated successfully, but these errors were encountered: