Skip to content

Commit 1babf8b

Browse files
authored
Merge branch 'master' into pr/camera/pushav
2 parents e897d8a + 8476de3 commit 1babf8b

File tree

841 files changed

+16755
-7132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

841 files changed

+16755
-7132
lines changed

.github/workflows/darwin.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,6 @@ jobs:
9696
platform: darwin
9797
bootstrap-log-name:
9898
bootstrap-logs-framework-${{ matrix.options.flavor }}
99-
- name: Build example All Clusters Server
100-
run: |
101-
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug/all-clusters-app chip_config_network_layer_ble=false
102-
- name: Build example OTA Provider
103-
run: |
104-
scripts/examples/gn_build_example.sh examples/ota-provider-app/linux out/debug/ota-provider-app chip_config_network_layer_ble=false
105-
- name: Build example OTA Requestor
106-
run: |
107-
scripts/examples/gn_build_example.sh examples/ota-requestor-app/linux out/debug/ota-requestor-app chip_config_network_layer_ble=false non_spec_compliant_ota_action_delay_floor=0
10899
- name: Run Framework Tests
109100
# We want to ensure that our log upload runs on timeout, so use a timeout here shorter
110101
# than the 6-hour overall job timeout. 4.5 hours should be plenty.

.github/workflows/examples-efr32.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ jobs:
8484
--target efr32-brd4187c-lock-rpc \
8585
--target efr32-brd4187c-air-quality-sensor-app-shell-heap-monitoring \
8686
--target efr32-brd4187c-window-covering-additional-data-advertising \
87+
--target efr32-brd4187c-closure \
8788
build \
8889
--copy-artifacts-to out/artifacts \
8990
"
@@ -106,6 +107,7 @@ jobs:
106107
--enable-flashbundle \
107108
--target efr32-brd2605a-light-skip-rps-generation \
108109
--target efr32-brd4338a-lock-skip-rps-generation \
110+
--target efr32-brd4338a-closure-skip-rps-generation \
109111
build \
110112
--copy-artifacts-to out/artifacts \
111113
"

docs/guides/BUILDING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Complete the following steps:
131131
1. Install some Raspberry Pi specific dependencies:
132132

133133
```
134-
sudo apt-get install pi-bluetooth avahi-utils
134+
sudo apt-get install bluez pi-bluetooth avahi-utils
135135
```
136136
137137
1. Reboot your Raspberry Pi after installing `pi-bluetooth`.

docs/testing/yaml_schema.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Script: generate_yaml_doc_tables.py
77
# YAML Schema
88

99
YAML schema
10+
1011
|key | type| supports variables
1112
|:---|:---|:---|
1213
|name |str||
@@ -54,6 +55,7 @@ YAML schema
5455
|      endsWith |str||
5556
|      isUpperCase |bool||
5657
|      isLowerCase |bool||
58+
|      isSetOfValues |list||
5759
|      minValue |int,float|Y|
5860
|      maxValue |int,float|Y|
5961
|      contains |list||

examples/air-purifier-app/air-purifier-common/air-purifier-app.matter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ cluster Descriptor = 29 {
424424
kTagList = 0x1;
425425
}
426426

427-
shared struct DeviceTypeStruct {
427+
struct DeviceTypeStruct {
428428
devtype_id deviceType = 0;
429429
int16u revision = 1;
430430
}

examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ cluster Descriptor = 29 {
352352
kTagList = 0x1;
353353
}
354354

355-
shared struct DeviceTypeStruct {
355+
struct DeviceTypeStruct {
356356
devtype_id deviceType = 0;
357357
int16u revision = 1;
358358
}

examples/air-quality-sensor-app/silabs/include/AppEvent.h

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,23 @@
1818
*/
1919

2020
#pragma once
21-
#include <cstdint>
2221

23-
struct AppEvent;
24-
typedef void (*EventHandler)(AppEvent *);
22+
#include "BaseAppEvent.h"
2523

26-
struct AppEvent
24+
struct AppEvent : public BaseAppEvent
2725
{
2826
enum AppEventTypes
2927
{
30-
kEventType_Button = 0,
31-
kEventType_Timer,
32-
kEventType_AirQualitySensor,
28+
kEventType_AirQualitySensor = BaseAppEvent::kEventType_Max + 1,
3329
kEventType_Install,
3430
};
3531

36-
uint16_t Type;
37-
3832
union
3933
{
40-
struct
41-
{
42-
uint8_t Action;
43-
} ButtonEvent;
44-
struct
45-
{
46-
void * Context;
47-
} TimerEvent;
4834
struct
4935
{
5036
uint8_t Action;
5137
int32_t Actor;
5238
} AirQualitySensorEvent;
5339
};
54-
55-
EventHandler Handler;
5640
};

examples/all-clusters-app/all-clusters-common/all-clusters-app.matter

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ cluster Descriptor = 29 {
698698
kTagList = 0x1;
699699
}
700700

701-
shared struct DeviceTypeStruct {
701+
struct DeviceTypeStruct {
702702
devtype_id deviceType = 0;
703703
int16u revision = 1;
704704
}
@@ -726,7 +726,7 @@ cluster Descriptor = 29 {
726726

727727
/** The Binding Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for supporting the binding table. */
728728
cluster Binding = 30 {
729-
revision 1; // NOTE: Default/not specifically set
729+
revision 1;
730730

731731
fabric_scoped struct TargetStruct {
732732
optional node_id node = 1;
@@ -7108,6 +7108,7 @@ provisional cluster CameraAvStreamManagement = 1361 {
71087108
kOnScreenDisplay = 0x80;
71097109
kLocalStorage = 0x100;
71107110
kHighDynamicRange = 0x200;
7111+
kNightVision = 0x400;
71117112
}
71127113

71137114
struct VideoResolutionStruct {
@@ -7142,6 +7143,8 @@ provisional cluster CameraAvStreamManagement = 1361 {
71427143
int8u referenceCount = 6;
71437144
boolean encodedPixels = 7;
71447145
boolean hardwareEncoder = 8;
7146+
optional boolean watermarkEnabled = 9;
7147+
optional boolean OSDEnabled = 10;
71457148
}
71467149

71477150
struct SnapshotCapabilitiesStruct {
@@ -7193,7 +7196,7 @@ provisional cluster CameraAvStreamManagement = 1361 {
71937196
readonly attribute optional int8u maxConcurrentEncoders = 0;
71947197
readonly attribute optional int32u maxEncodedPixelRate = 1;
71957198
readonly attribute optional VideoSensorParamsStruct videoSensorParams = 2;
7196-
readonly attribute optional boolean nightVisionCapable = 3;
7199+
readonly attribute optional boolean nightVisionUsesInfrared = 3;
71977200
readonly attribute optional VideoResolutionStruct minViewport = 4;
71987201
readonly attribute optional RateDistortionTradeOffPointsStruct rateDistortionTradeOffPoints[] = 5;
71997202
readonly attribute int32u maxContentBufferSize = 6;
@@ -8542,7 +8545,7 @@ endpoint 0 {
85428545
}
85438546

85448547
server cluster UnitLocalization {
8545-
persist attribute temperatureUnit default = 0;
8548+
callback attribute temperatureUnit;
85468549
callback attribute supportedTemperatureUnits;
85478550
callback attribute generatedCommandList;
85488551
callback attribute acceptedCommandList;
@@ -9825,7 +9828,7 @@ endpoint 1 {
98259828
ram attribute colorCapabilities default = 0x1F;
98269829
ram attribute colorTempPhysicalMinMireds default = 0x009A;
98279830
ram attribute colorTempPhysicalMaxMireds default = 0x01C6;
9828-
ram attribute coupleColorTempToLevelMinMireds;
9831+
ram attribute coupleColorTempToLevelMinMireds default = 0x009A;
98299832
persist attribute startUpColorTemperatureMireds default = 0x00FA;
98309833
ram attribute featureMap default = 0x1F;
98319834
ram attribute clusterRevision default = 7;

examples/all-clusters-app/all-clusters-common/all-clusters-app.zap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,10 +1563,10 @@
15631563
"side": "server",
15641564
"type": "TempUnitEnum",
15651565
"included": 1,
1566-
"storageOption": "NVM",
1566+
"storageOption": "External",
15671567
"singleton": 0,
15681568
"bounded": 0,
1569-
"defaultValue": "0",
1569+
"defaultValue": null,
15701570
"reportable": 1,
15711571
"minInterval": 1,
15721572
"maxInterval": 65534,
@@ -17077,7 +17077,7 @@
1707717077
"storageOption": "RAM",
1707817078
"singleton": 0,
1707917079
"bounded": 0,
17080-
"defaultValue": "",
17080+
"defaultValue": "0x009A",
1708117081
"reportable": 1,
1708217082
"minInterval": 0,
1708317083
"maxInterval": 65344,

examples/all-clusters-app/all-clusters-common/src/camera-av-stream-delegate-impl.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,14 +333,15 @@ void emberAfCameraAvStreamManagementClusterInitCallback(EndpointId endpoint)
333333

334334
BitFlags<Feature> features;
335335
features.Set(Feature::kSnapshot);
336+
features.Set(Feature::kNightVision);
336337

337338
BitFlags<OptionalAttribute> optionalAttrs;
338339
optionalAttrs.Set(OptionalAttribute::kNightVision);
339340
optionalAttrs.Set(OptionalAttribute::kNightVisionIllum);
340341
uint32_t maxConcurrentVideoEncoders = 1;
341342
uint32_t maxEncodedPixelRate = 10000;
342343
VideoSensorParamsStruct sensorParams = { 4608, 2592, 120, Optional<uint16_t>(30) }; // Typical numbers for Pi camera.
343-
bool nightVisionCapable = false;
344+
bool nightVisionUsesInfrared = false;
344345
VideoResolutionStruct minViewport = { 854, 480 }; // Assuming 480p resolution.
345346
std::vector<RateDistortionTradeOffStruct> rateDistortionTradeOffPoints = {};
346347
uint32_t maxContentBufferSize = 1024;
@@ -354,7 +355,7 @@ void emberAfCameraAvStreamManagementClusterInitCallback(EndpointId endpoint)
354355

355356
sCameraAVStreamMgmtClusterServerInstance = std::make_unique<CameraAVStreamMgmtServer>(
356357
*sCameraAVStreamMgrInstance.get(), endpoint, features, optionalAttrs, maxConcurrentVideoEncoders, maxEncodedPixelRate,
357-
sensorParams, nightVisionCapable, minViewport, rateDistortionTradeOffPoints, maxContentBufferSize, micCapabilities,
358+
sensorParams, nightVisionUsesInfrared, minViewport, rateDistortionTradeOffPoints, maxContentBufferSize, micCapabilities,
358359
spkrCapabilities, twowayTalkSupport, snapshotCapabilities, maxNetworkBandwidth, supportedStreamUsages,
359360
rankedStreamPriorities);
360361
sCameraAVStreamMgmtClusterServerInstance->Init();

0 commit comments

Comments
 (0)