Skip to content

Conversation

mahdidadashi65
Copy link
Contributor

No description provided.

negative values in "Interval" keys must be rejected,corrected
according to  Test Case Id: 027 , in Remote start transaction - connector id shall not be 0
Before sending start transaction  the status of the connector must be changed to preparing, and this makes us no longer able to determine from the status whether the connector was reserved or not.
}
else
{
response.status = ReservationStatus::Rejected;
Copy link
Contributor

@Habbus Habbus Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ocpp1.6 standard does not say anything about rejecting a ReserveNow with an expiry date that lies in the past. I guess it would make sense when you think about it.

But in terms of sticking to the standard I would actually expect an accepted state, which is then quickly followed by a StatusNotficiation Available. The standard:

When a reservation expires, the Charge Point SHALL terminate the reservation and make the connector
available. The Charge Point SHALL send a status notification to notify the Central System that the reserved
connector is now available.

What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is true, this issue is not mentioned in the standard, but in my opinion, this should never happen, and if it happens, it is due to a server mistake, and if we follow your suggested method, the server will never realize its mistake, and this mistake will seemas a normal routine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course, your opinion adheres more to the standard

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be in favor of sticking to the standard as much as possible.

Co-authored-by: Habbus <44402940+Habbus@users.noreply.github.com>
for (const Connector* connector : m_connectors.getConnectors())
{
if ((connector->status == ChargePointStatus::Reserved) && (connector->reservation_expiry_date <= now))
if ((connector->reservation_id_tag.length() > 0) && (connector->reservation_expiry_date <= now))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Therre are more places where the suggestion of using !connector->reservation_id_tag.empty(), like here.

Removing the reservation rejection if the time is old and changing the method of checking whether the reservation_id_tag is empty or not
@mahdidadashi65 mahdidadashi65 requested a review from Habbus December 6, 2023 11:39
@Habbus
Copy link
Contributor

Habbus commented Dec 6, 2023

@mahdidadashi65 you requested my review, but I think ultimately it is up to @c-jimenez to approve and merge this PR.
I would be fine with it in the current state ;)

@c-jimenez c-jimenez merged commit a086cec into c-jimenez:develop Dec 12, 2023
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.

3 participants