Edit Signal reader assignments via M2M

From WICE Wiki v2.92
Revision as of 11:20, 19 December 2024 by Alkitjohan (talk | contribs)
Jump to navigation Jump to search

From version 1.47.0 of the API, Signal reader assignments can be edited via the API. The currently available end points for editing a specific assignment is described at https://wice.alkit.se/m2m/resource_EditSignalReaderAssignmentService.html

Editing an assignment is done by combining results from multiple end points and to help the user the sections below describes some use cases.

Add A2L signals from updated vehicle profile

One use case is when an assignment "A" is based on a vehicle profile "VP" which has A2L files associated with at least one ECU. Then a new version of the A2L file is available which contains additional signals that needs to be measured in A.

When using the portal GUI one would start with uploading the A2L file and then associate it with the ECU of the VP. After that A needs to be copied (to use the updated version of VP) and the new A2L file needs to be selected when A is copied.

After the copying process is successful the assignment can be edited and the additional signals of the new A2L file are available when selecting the signals from the signal source.

The following sections describes how to do this via M2M.

1. Upload new A2L file

Uploading a new A2L is done via https://wice.alkit.se/m2m/resource_VehicleProfileService.html#resource_VehicleProfileService_uploadNewA2LFile_attributes_file_POST.

When using Postman the necessary information is provided as in the screenshot to the right. The only required attribute is the "ecu-name".

The same function via the GUI can be seen in screenshot "Upload A2L via portal"

Upload A2L file via m2m
Upload A2L via portal