Skip to content

Charging Profil with Kind TxProfil is rejected without TransactionId #346

@MGeigl

Description

@MGeigl

I have send a setChargingProfil with ProfilKindType TxProfil during an active transaction but i always received a rejected.

SetChargingProfile {"connectorId":1,"csChargingProfiles":{"chargingProfileId":5,"stackLevel":1,"chargingProfilePurpose":"TxProfile","chargingProfileKind":"Absolute","chargingSchedule":{"startSchedule":"2024-08-01T07:00:00.000Z","chargingRateUnit":"A","chargingSchedulePeriod":[{"startPeriod":0,"limit":6,"numberPhases":3}]}}}]

I guess the problem is that we do not send a transaction id, which is optional corresponding to the standard (7.8 Charging Profile - transactionId - integer - 0..1 - Optional. Only valid if ChargingProfilePurpose is set to TxProfile, the transactionId MAY be used to match the profile to a specific transaction.)

But at

if (chargingProfile->getTransactionId() < 0 ||
the id needs to be set to accept the profil.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions