Skip to content

Commit

Permalink
Merge branch 'master' into diagnostics_software_to_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Oct 29, 2023
2 parents 2291054 + b812732 commit 25405f6
Show file tree
Hide file tree
Showing 159 changed files with 3,946 additions and 1,196 deletions.
13 changes: 6 additions & 7 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,13 @@ RUN curl https://raw.githubusercontent.com/restyled-io/restyler/master/bin/resty
RUN mkdir -p /opt/sdk/sdks/ \
&& chown -R $USERNAME:$USERNAME \
/opt/sdk/sdks/ `# NXP uses a patch_sdk script to change SDK files` \
/opt/espressif/esp-idf `# $USERNAME needs to own the esp-idf and tools for the examples to build` \
/opt/espressif/tools \
/opt/NordicSemiconductor/nrfconnect/ `# $USERNAME needs to own west configuration to build nRF Connect examples` \
/opt/ubuntu-21.04-aarch64-sysroot/usr/ `# allow read/write access to header and libraries` \
/opt/android/sdk `# allow licenses to be accepted` \
/opt/ameba/ambd_sdk_with_chip_non_NDA/ `# AmebaD requires access to change build_info.h` \
/opt/fsl-imx-xwayland/5.15-kirkstone/ \
/opt/openocd \
$IDF_PATH `# $USERNAME needs to own the esp-idf and tools for the examples to build` \
$IDF_TOOLS_PATH \
$SYSROOT_AARCH64 `# allow read/write access to header and libraries` \
$ANDROID_HOME `# allow licenses to be accepted` \
$AMEBA_PATH `# AmebaD requires access to change build_info.h` \
$IMX_SDK_ROOT \
&& :

# Fix Tizen SDK paths for new user
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
],
"initializeCommand": ".devcontainer/build.sh --tag matter-dev-environment:local --version 20",
"initializeCommand": ".devcontainer/build.sh --tag matter-dev-environment:local --version 22",
"image": "matter-dev-environment:local",
"remoteUser": "vscode",
"customizations": {
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ jobs:
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace-to json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_RVCCLEANM_1_2.py" --script-args "--int-arg PIXIT_ENDPOINT:1 --storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace-to json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_RVCRUNM_1_2.py" --script-args "--int-arg PIXIT_ENDPOINT:1 --storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --script "src/python_testing/TestMatterTestingSupport.py" --script-args "--trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --script "src/python_testing/TestConformanceSupport.py" --script-args "--trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-lock-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-lock-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace-to json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_DRLK_2_2.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-lock-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-lock-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace-to json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_DRLK_2_3.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-lock-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-lock-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace-to json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_DRLK_2_12.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -836,22 +836,22 @@ server cluster OperationalCredentials = 62 {
readonly attribute int16u clusterRevision = 65533;

request struct AttestationRequestRequest {
octet_string attestationNonce = 0;
octet_string<32> attestationNonce = 0;
}

request struct CertificateChainRequestRequest {
CertificateChainTypeEnum certificateType = 0;
}

request struct CSRRequestRequest {
octet_string CSRNonce = 0;
octet_string<32> CSRNonce = 0;
optional boolean isForUpdateNOC = 1;
}

request struct AddNOCRequest {
octet_string NOCValue = 0;
optional octet_string ICACValue = 1;
octet_string IPKValue = 2;
octet_string<400> NOCValue = 0;
optional octet_string<400> ICACValue = 1;
octet_string<16> IPKValue = 2;
int64u caseAdminSubject = 3;
vendor_id adminVendorId = 4;
}
Expand All @@ -874,12 +874,12 @@ server cluster OperationalCredentials = 62 {
}

response struct AttestationResponse = 1 {
octet_string attestationElements = 0;
octet_string attestationSignature = 1;
octet_string<900> attestationElements = 0;
octet_string<64> attestationSignature = 1;
}

response struct CertificateChainResponse = 3 {
octet_string certificate = 0;
octet_string<600> certificate = 0;
}

response struct CSRResponse = 5 {
Expand All @@ -890,7 +890,7 @@ server cluster OperationalCredentials = 62 {
response struct NOCResponse = 8 {
NodeOperationalCertStatusEnum statusCode = 0;
optional fabric_idx fabricIndex = 1;
optional char_string debugText = 2;
optional char_string<128> debugText = 2;
}

command access(invoke: administer) AttestationRequest(AttestationRequestRequest): AttestationResponse = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ server cluster EthernetNetworkDiagnostics = 55 {
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

command ResetCounts(): DefaultSuccess = 0;
command access(invoke: manage) ResetCounts(): DefaultSuccess = 0;
}

/** Commands to trigger a Node to allow a new Administrator to commission it. */
Expand Down Expand Up @@ -1103,22 +1103,22 @@ server cluster OperationalCredentials = 62 {
readonly attribute int16u clusterRevision = 65533;

request struct AttestationRequestRequest {
octet_string attestationNonce = 0;
octet_string<32> attestationNonce = 0;
}

request struct CertificateChainRequestRequest {
CertificateChainTypeEnum certificateType = 0;
}

request struct CSRRequestRequest {
octet_string CSRNonce = 0;
octet_string<32> CSRNonce = 0;
optional boolean isForUpdateNOC = 1;
}

request struct AddNOCRequest {
octet_string NOCValue = 0;
optional octet_string ICACValue = 1;
octet_string IPKValue = 2;
octet_string<400> NOCValue = 0;
optional octet_string<400> ICACValue = 1;
octet_string<16> IPKValue = 2;
int64u caseAdminSubject = 3;
vendor_id adminVendorId = 4;
}
Expand All @@ -1141,12 +1141,12 @@ server cluster OperationalCredentials = 62 {
}

response struct AttestationResponse = 1 {
octet_string attestationElements = 0;
octet_string attestationSignature = 1;
octet_string<900> attestationElements = 0;
octet_string<64> attestationSignature = 1;
}

response struct CertificateChainResponse = 3 {
octet_string certificate = 0;
octet_string<600> certificate = 0;
}

response struct CSRResponse = 5 {
Expand All @@ -1157,7 +1157,7 @@ server cluster OperationalCredentials = 62 {
response struct NOCResponse = 8 {
NodeOperationalCertStatusEnum statusCode = 0;
optional fabric_idx fabricIndex = 1;
optional char_string debugText = 2;
optional char_string<128> debugText = 2;
}

command access(invoke: administer) AttestationRequest(AttestationRequestRequest): AttestationResponse = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ void AirQualitySensorManager::Init()

void AirQualitySensorManager::OnAirQualityChangeHandler(AirQualityEnum newValue)
{
mAirQualityInstance.UpdateAirQuality(static_cast<AirQualityEnum>(newValue));
ChipLogDetail(NotSpecified, "Updated AirQuality value: %huu", newValue);
mAirQualityInstance.UpdateAirQuality(newValue);
ChipLogDetail(NotSpecified, "Updated AirQuality value: %huu", chip::to_underlying(newValue));
}

void AirQualitySensorManager::OnCarbonDioxideMeasurementChangeHandler(float newValue)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ server cluster Groups = 4 {

request struct AddGroupRequest {
group_id groupID = 0;
char_string groupName = 1;
char_string<16> groupName = 1;
}

request struct ViewGroupRequest {
Expand All @@ -84,7 +84,7 @@ server cluster Groups = 4 {

request struct AddGroupIfIdentifyingRequest {
group_id groupID = 0;
char_string groupName = 1;
char_string<16> groupName = 1;
}

response struct AddGroupResponse = 0 {
Expand All @@ -95,7 +95,7 @@ server cluster Groups = 4 {
response struct ViewGroupResponse = 1 {
enum8 status = 0;
group_id groupID = 1;
char_string groupName = 2;
char_string<16> groupName = 2;
}

response struct GetGroupMembershipResponse = 2 {
Expand Down Expand Up @@ -1979,7 +1979,7 @@ server cluster EthernetNetworkDiagnostics = 55 {
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

command ResetCounts(): DefaultSuccess = 0;
command access(invoke: manage) ResetCounts(): DefaultSuccess = 0;
}

/** Accurate time is required for a number of reasons, including scheduling, display and validating security materials. */
Expand Down Expand Up @@ -2268,22 +2268,22 @@ server cluster OperationalCredentials = 62 {
readonly attribute int16u clusterRevision = 65533;

request struct AttestationRequestRequest {
octet_string attestationNonce = 0;
octet_string<32> attestationNonce = 0;
}

request struct CertificateChainRequestRequest {
CertificateChainTypeEnum certificateType = 0;
}

request struct CSRRequestRequest {
octet_string CSRNonce = 0;
octet_string<32> CSRNonce = 0;
optional boolean isForUpdateNOC = 1;
}

request struct AddNOCRequest {
octet_string NOCValue = 0;
optional octet_string ICACValue = 1;
octet_string IPKValue = 2;
octet_string<400> NOCValue = 0;
optional octet_string<400> ICACValue = 1;
octet_string<16> IPKValue = 2;
int64u caseAdminSubject = 3;
vendor_id adminVendorId = 4;
}
Expand All @@ -2306,12 +2306,12 @@ server cluster OperationalCredentials = 62 {
}

response struct AttestationResponse = 1 {
octet_string attestationElements = 0;
octet_string attestationSignature = 1;
octet_string<900> attestationElements = 0;
octet_string<64> attestationSignature = 1;
}

response struct CertificateChainResponse = 3 {
octet_string certificate = 0;
octet_string<600> certificate = 0;
}

response struct CSRResponse = 5 {
Expand All @@ -2322,7 +2322,7 @@ server cluster OperationalCredentials = 62 {
response struct NOCResponse = 8 {
NodeOperationalCertStatusEnum statusCode = 0;
optional fabric_idx fabricIndex = 1;
optional char_string debugText = 2;
optional char_string<128> debugText = 2;
}

command access(invoke: administer) AttestationRequest(AttestationRequestRequest): AttestationResponse = 0;
Expand Down Expand Up @@ -2463,6 +2463,26 @@ server cluster IcdManagement = 70 {
kLongIdleTimeSupport = 0x4;
}

bitmap UserActiveModeTriggerBitmap : bitmap32 {
kPowerCycle = 0x1;
kSettingsMenu = 0x2;
kCustomInstruction = 0x4;
kDeviceManual = 0x8;
kActuateSensor = 0x10;
kActuateSensorSeconds = 0x20;
kActuateSensorTimes = 0x40;
kActuateSensorLightsBlink = 0x80;
kResetButton = 0x100;
kResetButtonLightsBlink = 0x200;
kResetButtonSeconds = 0x400;
kResetButtonTimes = 0x800;
kSetupButton = 0x1000;
kSetupButtonSeconds = 0x2000;
kSetupButtonLightsBlink = 0x4000;
kSetupButtonTimes = 0x8000;
kAppDefinedButton = 0x10000;
}

fabric_scoped struct MonitoringRegistrationStruct {
fabric_sensitive node_id checkInNodeID = 1;
fabric_sensitive int64u monitoredSubject = 2;
Expand Down Expand Up @@ -2983,7 +3003,7 @@ server cluster SmokeCoAlarm = 92 {
readonly attribute AlarmStateEnum interconnectSmokeAlarm = 8;
readonly attribute AlarmStateEnum interconnectCOAlarm = 9;
readonly attribute ContaminationStateEnum contaminationState = 10;
attribute SensitivityEnum smokeSensitivityLevel = 11;
attribute access(write: manage) SensitivityEnum smokeSensitivityLevel = 11;
readonly attribute epoch_s expiryDate = 12;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
Expand Down Expand Up @@ -5624,7 +5644,7 @@ endpoint 0 {
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 1;
ram attribute clusterRevision default = 1;
ram attribute clusterRevision default = 2;

handle command RegisterClient;
handle command RegisterClientResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6031,7 +6031,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "2",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
Loading

0 comments on commit 25405f6

Please sign in to comment.