Skip to content

Commit

Permalink
OCPP 2.0.1 cumulative updates (#371)
Browse files Browse the repository at this point in the history
* multiple fixes after v201 tests

* add tx meterData support

* add authorization active flag for begin- / endAuthorization

* patch transaction API for v201

* restore non-v201-compatible ChangeAvailability

* update v201 ChangeAvailability port

* fix OCTT test cases

* add RemoteControlService

* reset TxEndedMeasurands factory default

* add AuthorizeRemoteStart

* fix sending empty MeterValuePeriodic if interval set, but no measurands

* cumulative fixes

* fix test cases

* fix compilation

* fix compilation error

* fix ASAN error

* fix firmware size classifier

* update changelog
  • Loading branch information
matth-x authored Oct 8, 2024
1 parent 5f48272 commit 41e7e9e
Show file tree
Hide file tree
Showing 53 changed files with 2,563 additions and 330 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
- Relaxed temporal order of non-tx-related operations ([#345](https://github.com/matth-x/MicroOcpp/pull/345))
- Use pseudo-GUIDs as messageId ([#345](https://github.com/matth-x/MicroOcpp/pull/345))
- ISO 8601 milliseconds omitted by default ([352](https://github.com/matth-x/MicroOcpp/pull/352))
- Rename `MO_NUM_EVSE` into `MO_NUM_EVSEID` (v2.0.1) ([#371](https://github.com/matth-x/MicroOcpp/pull/371))
- Change `MicroOcpp::ReadingContext` into C-style struct ([#371](https://github.com/matth-x/MicroOcpp/pull/371))
- Refactor RequestStartTransaction (v2.0.1) ([#371](https://github.com/matth-x/MicroOcpp/pull/371))

### Added

Expand All @@ -23,6 +26,9 @@
- Heap profiler and custom allocator support ([#350](https://github.com/matth-x/MicroOcpp/pull/350))
- Migration of persistent storage ([#355](https://github.com/matth-x/MicroOcpp/pull/355))
- Benchmarks pipeline ([#369](https://github.com/matth-x/MicroOcpp/pull/369))
- MeterValues port for OCPP 2.0.1 ([#371](https://github.com/matth-x/MicroOcpp/pull/371))
- UnlockConnector port for OCPP 2.0.1 ([#371](https://github.com/matth-x/MicroOcpp/pull/371))
- More APIs ported to OCPP 2.0.1 ([#371](https://github.com/matth-x/MicroOcpp/pull/371))
- Support for AuthorizeRemoteTxRequests ([#373](https://github.com/matth-x/MicroOcpp/pull/373))

### Removed
Expand All @@ -39,14 +45,15 @@
- Hold back error StatusNotifs when time not set ([#311](https://github.com/matth-x/MicroOcpp/issues/311))
- Don't send Available when tx occupies connector ([#315](https://github.com/matth-x/MicroOcpp/issues/315))
- Make ChargingScheduleAllowedChargingRateUnit read-only ([#328](https://github.com/matth-x/MicroOcpp/issues/328))
- Don't send StatusNotifs while offline ([#344](https://github.com/matth-x/MicroOcpp/pull/344))
- ~Don't send StatusNotifs while offline ([#344](https://github.com/matth-x/MicroOcpp/pull/344))~ (see ([#371](https://github.com/matth-x/MicroOcpp/pull/371)))
- Don't change into Unavailable upon Reset ([#344](https://github.com/matth-x/MicroOcpp/pull/344))
- Reject DataTransfer by default ([#344](https://github.com/matth-x/MicroOcpp/pull/344))
- UnlockConnector NotSupported if connectorId invalid ([#344](https://github.com/matth-x/MicroOcpp/pull/344))
- Fix regression bug of [#345](https://github.com/matth-x/MicroOcpp/pull/345) ([#353](https://github.com/matth-x/MicroOcpp/pull/353), [#356](https://github.com/matth-x/MicroOcpp/pull/356))
- Correct MeterValue PreBoot timestamp ([#354](https://github.com/matth-x/MicroOcpp/pull/354))
- Send errorCode in triggered StatusNotif ([#359](https://github.com/matth-x/MicroOcpp/pull/359))
- Remove int to bool conversion in ChangeConfig ([#362](https://github.com/matth-x/MicroOcpp/pull/362))
- Multiple fixes of the OCPP 2.0.1 extension ([#371](https://github.com/matth-x/MicroOcpp/pull/371))

## [1.1.0] - 2024-05-21

Expand Down
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ set(MO_SRC
src/MicroOcpp/Operations/RequestStopTransaction.cpp
src/MicroOcpp/Operations/ReserveNow.cpp
src/MicroOcpp/Operations/Reset.cpp
src/MicroOcpp/Operations/SecurityEventNotification.cpp
src/MicroOcpp/Operations/SendLocalList.cpp
src/MicroOcpp/Operations/SetChargingProfile.cpp
src/MicroOcpp/Operations/SetVariables.cpp
Expand All @@ -65,6 +66,7 @@ set(MO_SRC
src/MicroOcpp/Debug.cpp
src/MicroOcpp/Platform.cpp
src/MicroOcpp/Core/OperationRegistry.cpp
src/MicroOcpp/Model/Availability/AvailabilityService.cpp
src/MicroOcpp/Model/Authorization/AuthorizationData.cpp
src/MicroOcpp/Model/Authorization/AuthorizationList.cpp
src/MicroOcpp/Model/Authorization/AuthorizationService.cpp
Expand All @@ -84,7 +86,10 @@ set(MO_SRC
src/MicroOcpp/Model/Metering/MeteringService.cpp
src/MicroOcpp/Model/Metering/MeterStore.cpp
src/MicroOcpp/Model/Metering/MeterValue.cpp
src/MicroOcpp/Model/Metering/MeterValuesV201.cpp
src/MicroOcpp/Model/Metering/ReadingContext.cpp
src/MicroOcpp/Model/Metering/SampledValue.cpp
src/MicroOcpp/Model/RemoteControl/RemoteControlService.cpp
src/MicroOcpp/Model/Reservation/Reservation.cpp
src/MicroOcpp/Model/Reservation/ReservationService.cpp
src/MicroOcpp/Model/Reset/ResetService.cpp
Expand Down Expand Up @@ -149,6 +154,7 @@ set(MO_SRC_UNIT
tests/FirmwareManagement.cpp
tests/ChargePointError.cpp
tests/Boot.cpp
tests/Security.cpp
)

add_executable(mo_unit_tests
Expand Down Expand Up @@ -192,6 +198,7 @@ target_compile_definitions(mo_unit_tests PUBLIC
MO_ENABLE_CERT_MGMT=1
MO_ENABLE_CONNECTOR_LOCK=1
MO_REPORT_NOERROR=1
MO_ENABLE_V201=1
MO_OVERRIDE_ALLOCATION=1
MO_ENABLE_HEAP_PROFILER=1
MO_HEAP_PROFILER_EXTERNAL_CONTROL=1
Expand Down
Loading

0 comments on commit 41e7e9e

Please sign in to comment.