Skip to content

Commit

Permalink
Generalized triggerDescriptorUpdate manipulation to multiple ReportPa…
Browse files Browse the repository at this point in the history
…rts. (#64)

In order to Fix a Defect in SDCcc's Test case for Biceps:R5025, I had to
generalize this Manipulation.


# Checklist

The following aspects have been respected by the author of this pull
request, confirmed by both pull request assignee **and** reviewer:

* Changelog update (necessity checked and entry added or not added
respectively)
  * [x] Pull Request Assignee
  * [x] Reviewer
* README update (necessity checked and entry added or not added
respectively)
  * [x] Pull Request Assignee
  * [x] Reviewer

---------

Co-authored-by: Lukas Deichmann <[email protected]>
Co-authored-by: Maximilian Pilz <[email protected]>
  • Loading branch information
3 people authored Sep 8, 2023
1 parent 5c5f17c commit fd114c1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
SetMetricValuesWithQualityMode
- semantics for SetDeviceOperatingMode manipulation
- message PartialIdentification to message PartialInstanceIdentifier
- TriggerDescriptorUpdate to request an update for an arbitrary amount of handles

### Removed

Expand Down
14 changes: 14 additions & 0 deletions src/t2iapi/device/device_requests.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,17 @@ message SetBatteryUsageRequest {
// electrical power source
bool use = 2; // specifies whether the battery shall be used as the electrical power source
}

/*
Request a DescriptionModificationReport that fulfills the following:
For each given handle there exists an "Upt"-ReportPart that contains an updated descriptor, whose @DescriptorHandle
is equal to the given handle, and that is contained in the DescriptionModificationReport.
---
Note that when no handle is given, every DescriptionModificationReport fulfills the request.
*/
message TriggerDescriptorUpdateRequest{
repeated string handle = 1;
}
13 changes: 9 additions & 4 deletions src/t2iapi/device/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,16 @@ service DeviceService {
rpc RemoveMdsDescriptor (BasicHandleRequest) returns (BasicResponse);

/*
Trigger a descriptor update for the provided handle.
This manipulation of the device shall result in a msg:DescriptionModificationReport message with a report part with
modification type upt.
Trigger a DescriptionManipulationReport that fulfills the following:
For each given handle there exists an "Upt"-ReportPart that contains an updated descriptor, whose @DescriptorHandle
is equal to the given handle, and that is contained in the DescriptionModificationReport.
---
Note that when no handle is given, every DescriptionModificationReport fulfills the request.
*/
rpc TriggerDescriptorUpdate (BasicHandleRequest) returns (BasicResponse);
rpc TriggerDescriptorUpdate (TriggerDescriptorUpdateRequest) returns (BasicResponse);

/*
Trigger a descriptor update.
Expand Down

0 comments on commit fd114c1

Please sign in to comment.