Skip to content

Commit

Permalink
Merge branch 'master' into mei_data_in_all_clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Jun 9, 2022
2 parents 6f363b1 + ac7e2f7 commit 17823c2
Show file tree
Hide file tree
Showing 260 changed files with 28,031 additions and 21,715 deletions.
1 change: 1 addition & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ if (current_toolchain != "${dir_pw_toolchain}/default:default") {
if (chip_link_tests) {
deps = [
"//:fake_platform_tests",
"//examples/chef:chef.tests",
"//scripts/build:build_examples.tests",
"//scripts/idl:idl.tests",
"//src:tests_run",
Expand Down
3 changes: 2 additions & 1 deletion build/config/BUILDCONFIG.gn
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ if (_chip_defaults.custom_toolchain != "") {
"${_build_overrides.build_root}/toolchain/tizen:tizen_${target_cpu}"
} else if (target_os == "webos") {
if (target_cpu == "arm" || target_cpu == "arm64") {
_default_toolchain = "//build/toolchain/webos"
_default_toolchain =
"${_build_overrides.build_root}/toolchain/webos"
} else {
assert(false,
"Unsupported target_cpu: ${current_cpu}. Shall be arm for webOS")
Expand Down
5 changes: 3 additions & 2 deletions docs/guides/BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ On Debian-based Linux distributions such as Ubuntu, these dependencies can be
satisfied with the following:

```
sudo apt-get install git gcc g++ python pkg-config libssl-dev libdbus-1-dev \
sudo apt-get install git gcc g++ pkg-config libssl-dev libdbus-1-dev \
libglib2.0-dev libavahi-client-dev ninja-build python3-venv python3-dev \
python3-pip unzip libgirepository1.0-dev libcairo2-dev libreadline-dev
```
Expand Down Expand Up @@ -86,7 +86,8 @@ architectures on a micro SD card. This release will have bluez 5.55 or newer
which is required for BLE functionality.

Boot the SD card, login with the default user account "ubuntu" and password
"ubuntu", then proceed with "How to install prerequisites on Linux".
"ubuntu", then proceed with
[Installing prerequisites on Linux](#installing-prerequisites-on-linux).

Finally, install some Raspberry Pi specific dependencies:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3042,7 +3042,7 @@ server cluster TemperatureMeasurement = 1026 {
readonly attribute int16u clusterRevision = 65533;
}

server cluster TestCluster = 1295 {
server cluster TestCluster = 4294048773 {
enum SimpleEnum : ENUM8 {
kUnspecified = 0;
kValueA = 1;
Expand Down Expand Up @@ -4229,7 +4229,7 @@ endpoint 1 {
server cluster LevelControl {
persist attribute currentLevel default = 0xFE;
ram attribute remainingTime;
ram attribute minLevel;
ram attribute minLevel default = 0x01;
ram attribute maxLevel default = 0xFE;
ram attribute currentFrequency;
ram attribute minFrequency;
Expand Down Expand Up @@ -4365,7 +4365,7 @@ endpoint 1 {
}

server cluster WindowCovering {
ram attribute type;
ram attribute type default = 0x08;
ram attribute physicalClosedLimitLift default = 0xFFFF;
ram attribute physicalClosedLimitTilt default = 0xFFFF;
persist attribute currentPositionLift default = 0x7FFF;
Expand Down Expand Up @@ -4682,6 +4682,22 @@ endpoint 1 {
ram attribute clusterRevision default = 1;
}

server cluster ElectricalMeasurement {
ram attribute measurementType;
ram attribute totalActivePower;
ram attribute rmsVoltage default = 0xffff;
ram attribute rmsVoltageMin default = 0x8000;
ram attribute rmsVoltageMax default = 0x8000;
ram attribute rmsCurrent default = 0xffff;
ram attribute rmsCurrentMin default = 0xffff;
ram attribute rmsCurrentMax default = 0xffff;
ram attribute activePower default = 0xffff;
ram attribute activePowerMin default = 0xffff;
ram attribute activePowerMax default = 0xffff;
ram attribute featureMap;
ram attribute clusterRevision default = 3;
}

server cluster TestCluster {
ram attribute boolean;
ram attribute bitmap8;
Expand Down Expand Up @@ -4766,22 +4782,6 @@ endpoint 1 {
ram attribute featureMap;
ram attribute clusterRevision default = 1;
}

server cluster ElectricalMeasurement {
ram attribute measurementType;
ram attribute totalActivePower;
ram attribute rmsVoltage default = 0xffff;
ram attribute rmsVoltageMin default = 0x8000;
ram attribute rmsVoltageMax default = 0x8000;
ram attribute rmsCurrent default = 0xffff;
ram attribute rmsCurrentMin default = 0xffff;
ram attribute rmsCurrentMax default = 0xffff;
ram attribute activePower default = 0xffff;
ram attribute activePowerMin default = 0xffff;
ram attribute activePowerMax default = 0xffff;
ram attribute featureMap;
ram attribute clusterRevision default = 3;
}
}
endpoint 2 {
device type onofflight = 256;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8268,7 +8268,7 @@
},
{
"name": "Test Cluster",
"code": 1295,
"code": 4294048773,
"mfgCode": null,
"define": "TEST_CLUSTER",
"side": "client",
Expand Down Expand Up @@ -8320,7 +8320,7 @@
},
{
"name": "Test Cluster",
"code": 1295,
"code": 4294048773,
"mfgCode": null,
"define": "TEST_CLUSTER",
"side": "server",
Expand Down Expand Up @@ -9701,7 +9701,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": "0x01",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -13618,7 +13618,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": "0x08",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -19171,7 +19171,7 @@
},
{
"name": "Test Cluster",
"code": 1295,
"code": 4294048773,
"mfgCode": null,
"define": "TEST_CLUSTER",
"side": "client",
Expand Down Expand Up @@ -19343,7 +19343,7 @@
},
{
"name": "Test Cluster",
"code": 1295,
"code": 4294048773,
"mfgCode": null,
"define": "TEST_CLUSTER",
"side": "server",
Expand Down Expand Up @@ -25158,5 +25158,6 @@
"endpointVersion": 1,
"deviceIdentifier": 61442
}
]
}
],
"log": []
}
3 changes: 2 additions & 1 deletion examples/all-clusters-app/linux/entitlements/codesign.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def get_identity():
"No valid identity has been found. Application will run without entitlements.")
exit(0)

identity = re.search(r'\b[0-9a-fA-F]{40}\b', command_result)
command_result = command_result.replace("\\n", "\n")
identity = re.search(r'\b[0-9a-fA-F]{40}\b(?![^\n]*\(CSSMERR_TP_CERT_EXPIRED\))', command_result)
if identity is None:
print(
"No valid identity has been found. Application will run without entitlements.")
Expand Down
Loading

0 comments on commit 17823c2

Please sign in to comment.