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

RemoteStopTransaction Returns Rejected #12

Closed
sait1801 opened this issue Jan 9, 2024 · 8 comments
Closed

RemoteStopTransaction Returns Rejected #12

sait1801 opened this issue Jan 9, 2024 · 8 comments

Comments

@sait1801
Copy link

sait1801 commented Jan 9, 2024

Hi again,
I tried remote start and stop transaction via dashboard but I cannot stop charging because charger returns:
{ "status": "Rejected" }

What can be the reason for that ?

Thanks in advance

image

@sait1801 sait1801 changed the title RemoteStoPTransaction Returns Rejected RemoteStopTransaction Returns Rejected Jan 9, 2024
@ufocomp
Copy link
Collaborator

ufocomp commented Jan 9, 2024

Hi! Make sure that you have entered a valid transaction number. If the command is sent to the emulator, it does not save the transaction number after reconnecting (rebooting).

@sait1801
Copy link
Author

sait1801 commented Jan 9, 2024

I tried it on a real charger without any charging profile payload. I tried numbers from 0 to 300 for transaction id, still none of them were accepted. The error for real charger is :
Transaction ID: 2, Response: {"error": {"code": 400, "message": "InternalError: No transaction with id '2' was found"}}

@ufocomp
Copy link
Collaborator

ufocomp commented Jan 9, 2024

To stop the charging session, you must first start it. Please read sections "4.8. Start Transaction" and "5.11. Remote Start Transaction" an OCPP protocol v 1.6.

@sait1801
Copy link
Author

sait1801 commented Jan 9, 2024

I used the RemoteStartTransaction for starting charging and it worked. (I left ChargingProfile part blank). Then, tried to remotestoptransaction again. It didn't work. How will I know the TransactionID, without giving the ChargeProfile here :
image

Thanks, for the quick support 🙏

@ufocomp
Copy link
Collaborator

ufocomp commented Jan 9, 2024

The charging profile has nothing to do with the number of the upcoming transaction.

5.11. Remote Start Transaction

Central System can request a Charge Point to start a transaction by sending a RemoteStartTransaction.req. Upon
receipt, the Charge Point SHALL reply with RemoteStartTransaction.conf and a status indicating whether it has
accepted the request and will attempt to start a transaction.

4.8. Start Transaction

The Charge Point SHALL send a StartTransaction.req PDU to the Central System to inform about a transaction
that has been started. If this transaction ends a reservation (see Reserve Now operation), then the
StartTransaction.req MUST contain the reservationId.
Upon receipt of a StartTransaction.req PDU, the Central System SHOULD respond with a StartTransaction.conf
PDU. This response PDU MUST include a transaction id and an authorization status value.

In other words, after you have sent a RemoteStartTransaction command to the charging station, it will request permission from the Central System to start a charging session, and if the decision is positive, the Central System will return the transactionId.

@ufocomp
Copy link
Collaborator

ufocomp commented Jan 9, 2024

A charging session cannot be started on a physical station without workload. A car or a special workload simulation device must be connected to the charging station. Without workload, the charging station immediately completes the transaction. You can request the status of the connectors from the charging station by sending a Trigger Message command with the StatusNotification parameter.

@sait1801
Copy link
Author

sait1801 commented Jan 9, 2024

Sorry for the missing information, I connected simulation device to the charger, the problem happened while simulating the charging session

@sait1801
Copy link
Author

This reason is solved because the charger that I tried did no thave setchargeoprofilehandler.

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

No branches or pull requests

2 participants