From 9de5dc56360eb9fca6db562c84fc086db1cf42e8 Mon Sep 17 00:00:00 2001 From: corbys Date: Mon, 3 Mar 2025 15:01:09 +0000 Subject: [PATCH] profiles: prpl: usp: obuspa: bump to v9.0.7 to add optimization for GET requests spanning multiple USP services MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This version bump brings following improvement requested via PCF-1666: Get requests that contain paths spanning multiple USP Services (eg Device.) result in a get request to each USP Service containing a list of all fully resolved parameters. It is more efficient to perform a get of the top level DM element(s) registered by each USP Service. Then apply max_depth and read permissions to the parameters returned, before combining into a final Get Response to the original Get Request. Additionally this bump to obuspa version 9.0.7 brings following changes since version 9.0.3: * obuspa version 9.0.7 Added: * HardwareVersion can also be specified by an environment variable (USP_BOARD_HW_VERSION) Fixed: * Crash that could occur once at startup if the controller trust permissions table contained invalid data * obuspa version 9.0.6 Added: * Example vendor layer plug-in and documentation (in quick start guide) * obuspa version 9.0.5 Fixed: * Compilation failure when building for pure USP Service * Subscription ID should be immutable * OpenSSL should be initialized only once * obuspa version 9.0.4 Added: * USP Broker support for registration of parameters, events and USP commands (USP 1.4) * Bulk Data Collection over MQTT Fixed: * Event and OperationComplete subscriptions to 'Device.' on a USP Broker now set subscriptions on each USP Service containing only the DM elements that were registered (PCF-1666) * USP Conformance test 11.11 failure: MQTT PUBLISH frames should not be sent until SUBACK frame indicates successfully subscribed Since the obuspa version 9.0.4 brought a new Bulk Data Collection over MQTT feature, the obuspa.t cram test was updated with expected new datamodel Device.BulkData.Profile.{i}.MQTT. addition. Closes: PCF-1666 Signed-off-by: Steven Corby Signed-off-by: Petr Štetiar [commit facelift, test update] --- .gitlab/tests/cram/generic/obuspa.t | 6 ++++++ profiles/prpl.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab/tests/cram/generic/obuspa.t b/.gitlab/tests/cram/generic/obuspa.t index b2b67fcb41..09973218bf 100644 --- a/.gitlab/tests/cram/generic/obuspa.t +++ b/.gitlab/tests/cram/generic/obuspa.t @@ -104,6 +104,9 @@ Check that obuspa has expected datamodel available (minus the platform specific Device.BulkData.Profile.{i}.JSONEncoding. Device.BulkData.Profile.{i}.JSONEncoding.ReportFormat Device.BulkData.Profile.{i}.JSONEncoding.ReportTimestamp + Device.BulkData.Profile.{i}.MQTT. + Device.BulkData.Profile.{i}.MQTT.PublishTopic + Device.BulkData.Profile.{i}.MQTT.Reference Device.BulkData.Profile.{i}.Name Device.BulkData.Profile.{i}.NumberOfRetainedFailedReports Device.BulkData.Profile.{i}.Parameter.{i}. @@ -4034,6 +4037,9 @@ Check that obuspa provides the same datamodel again (minus the platform specific Device.BulkData.Profile.{i}.JSONEncoding. Device.BulkData.Profile.{i}.JSONEncoding.ReportFormat Device.BulkData.Profile.{i}.JSONEncoding.ReportTimestamp + Device.BulkData.Profile.{i}.MQTT. + Device.BulkData.Profile.{i}.MQTT.PublishTopic + Device.BulkData.Profile.{i}.MQTT.Reference Device.BulkData.Profile.{i}.Name Device.BulkData.Profile.{i}.NumberOfRetainedFailedReports Device.BulkData.Profile.{i}.Parameter.{i}. diff --git a/profiles/prpl.yml b/profiles/prpl.yml index 4dd0c3a0d8..97be830831 100644 --- a/profiles/prpl.yml +++ b/profiles/prpl.yml @@ -15,7 +15,7 @@ feeds: - name: feed_prplos uri: https://gitlab.com/prpl-foundation/prplos/feeds/feed-prplos.git - revision: main@5b7e779ecd5df9d5a96becac9d011ae3337d082d + revision: main@6fb2b3cf50016eb76ac7621e84b4901aef9c2917 additional_packages: - feed: packages