Skip to content

Commit

Permalink
Merge branch 'master' into use-field-identifiers-when-code-gen-struct…
Browse files Browse the repository at this point in the history
…-items
  • Loading branch information
mlepage-google committed Nov 25, 2021
2 parents 175f2d3 + ec95ba7 commit 59a497a
Show file tree
Hide file tree
Showing 435 changed files with 88,830 additions and 43,620 deletions.
3 changes: 1 addition & 2 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ Gv
gz
hardcoded
hardknott
hardwarever
HardwareVersion
HardwareVersionString
hci
Expand Down Expand Up @@ -743,8 +744,6 @@ prj
ProductID
ProductLabel
ProductName
productrev
ProductRevision
ProductURL
proto
protobuf
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/zap_templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Use Java
- name: Use Java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
Expand All @@ -56,7 +56,7 @@ jobs:
npm rebuild canvas --update-binary
npm run build-spa
- name: Generate all
timeout-minutes: 5
timeout-minutes: 15
run: scripts/tools/zap_regen_all.py
- name: Check for uncommited changes
run: |
Expand Down
20 changes: 10 additions & 10 deletions config/esp32/components/chip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -400,26 +400,26 @@ menu "CHIP Device Layer"
The device product id (in hex). This is a unique id assigned by the device vendor to identify the product or device type.
Defaults to a CHIP-assigned id designating a non-production or test "product".

config DEFAULT_DEVICE_PRODUCT_REVISION
int "Default Device Product Revision"
config DEFAULT_DEVICE_HARDWARE_VERSION
int "Default Device Hardware Version"
range 0 65535
default 0
help
The default device product revision.
The default device hardware version.

Product revisions are specific to a particular device vendor and product id, and typically
correspond to a revision of the physical device, a change to its packaging, and/or a change
Hardware versions are specific to a particular device vendor and product id, and typically
correspond to a version of the physical device, a change to its packaging, and/or a change
to its marketing presentation. This value is generally *not* incremented for device software
revisions.
versions.

This is a default value which is used when a product revision has not been stored in device
This is a default value which is used when a hardware version has not been stored in device
persistent storage (e.g. by a factory provisioning process).

config DEVICE_FIRMWARE_REVISION
string "Device Firmware Revision"
config DEVICE_SOFTWARE_VERSION
string "Device Software Version"
default ""
help
A string identifying the firmware revision running on the device.
A string identifying the software version running on the device.

config DEVICE_TYPE
int "Default Device type"
Expand Down
17 changes: 17 additions & 0 deletions config/nrfconnect/app/overlay-ota_requestor.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# Copyright (c) 2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

CONFIG_CHIP_OTA_REQUESTOR=y
1 change: 1 addition & 0 deletions config/nrfconnect/chip-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ chip_gn_arg_bool ("chip_enable_openthread" CONFIG_NET_L2_OPENTH
chip_gn_arg_bool ("chip_config_network_layer_ble" CONFIG_BT)
chip_gn_arg_bool ("chip_inet_config_enable_ipv4" CONFIG_NET_IPV4)
chip_gn_arg_bool ("chip_enable_nfc" CONFIG_CHIP_NFC_COMMISSIONING)
chip_gn_arg_bool ("chip_enable_ota_requestor" CONFIG_CHIP_OTA_REQUESTOR)
chip_gn_arg_bool ("chip_build_tests" CONFIG_CHIP_BUILD_TESTS)
chip_gn_arg_bool ("chip_monolithic_tests" CONFIG_CHIP_BUILD_TESTS)
chip_gn_arg_bool ("chip_inet_config_enable_tcp_endpoint" CONFIG_CHIP_BUILD_TESTS)
Expand Down
9 changes: 8 additions & 1 deletion config/nrfconnect/chip-module/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,11 @@ config CHIP_NFC_COMMISSIONING
imply NFC_NDEF_URI_REC
imply NFC_NDEF_URI_MSG
help
Enables NFC commissioning by sharing onboarding payload in NFC tag.
Enables NFC commissioning by sharing onboarding payload in NFC tag.

# See config/zephyr/Kconfig for full definition
config CHIP_OTA_REQUESTOR
bool
imply DFU_TARGET
imply STREAM_FLASH
imply STREAM_FLASH_ERASE
7 changes: 7 additions & 0 deletions config/zephyr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ config CHIP_ENABLE_SLEEPY_END_DEVICE_SUPPORT
help
Enables Thread Sleepy End Device support in Matter.

config CHIP_OTA_REQUESTOR
bool "Enable OTA requestor"
help
Enables OTA (Over-the-air) Requestor role that allows a device to perform
Device Firmware Upgrade by quering and downloading a new firmware image
from an external OTA Provider node.

config APP_LINK_WITH_CHIP
bool "Link 'app' with Connected Home over IP"
default y
Expand Down
8 changes: 4 additions & 4 deletions docs/guides/nrfconnect_examples_cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ available configuration data or to add a specific subcommand.
```shell
VendorId: 9050 (0x235A)
ProductId: 20043 (0x4E4B)
ProductRevision: 1 (0x1)
HardwareVersion: 1 (0x1)
FabricId:
PinCode: 020202021
Discriminator: f00
Expand Down Expand Up @@ -208,12 +208,12 @@ uart:~$ matter config productid
20043 (0x4E4B)
```

#### productrev
#### hardwarever

Prints the product revision of the device. Takes no arguments.
Prints the hardware version of the device. Takes no arguments.

```shell
uart:~$ matter config productrev
uart:~$ matter config hardwarever
1 (0x1)
```

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/python_chip_controller_building.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ I: 254 [DL]Device Configuration:
I: 257 [DL] Serial Number: TEST_SN
I: 260 [DL] Vendor Id: 9050 (0x235A)
I: 263 [DL] Product Id: 20043 (0x4E4B)
I: 267 [DL] Product Revision: 1
I: 267 [DL] Hardware Version: 1
I: 270 [DL] Setup Pin Code: 20202021
I: 273 [DL] Setup Discriminator: 3840 (0xF00)
I: 278 [DL] Manufacturing Date: (not set)
Expand Down
90 changes: 75 additions & 15 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@
"reportableChange": 0
},
{
"name": "UserLabel",
"name": "NodeLabel",
"code": 5,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -1209,6 +1209,21 @@
"maxInterval": 65344,
"reportableChange": 0
},
{
"name": "UniqueID",
"code": 18,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"singleton": 1,
"bounded": 0,
"defaultValue": "",
"reportable": 0,
"minInterval": 0,
"maxInterval": 65344,
"reportableChange": 0
},
{
"name": "ClusterRevision",
"code": 65533,
Expand Down Expand Up @@ -1517,6 +1532,21 @@
"maxInterval": 65344,
"reportableChange": 0
},
{
"name": "FeatureMap",
"code": 65532,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "6",
"reportable": 0,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "ClusterRevision",
"code": 65533,
Expand Down Expand Up @@ -1708,7 +1738,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "1",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -2026,6 +2056,21 @@
"maxInterval": 65344,
"reportableChange": 0
},
{
"name": "FeatureMap",
"code": 65532,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"reportable": 0,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "ClusterRevision",
"code": 65533,
Expand Down Expand Up @@ -3483,6 +3528,21 @@
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "FeatureMap",
"code": 65532,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "3",
"reportable": 0,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "ClusterRevision",
"code": 65533,
Expand Down Expand Up @@ -8281,7 +8341,7 @@
"reportableChange": 0
},
{
"name": "UserLabel",
"name": "NodeLabel",
"code": 5,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -9147,7 +9207,7 @@
"reportableChange": 0
},
{
"name": "UserLabel",
"name": "NodeLabel",
"code": 5,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -10500,7 +10560,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
"defaultValue": "0x7FFF",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand All @@ -10515,7 +10575,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
"defaultValue": "0x7FFF",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -10545,7 +10605,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0xFF",
"defaultValue": "50",
"reportable": 1,
"minInterval": 0,
"maxInterval": 100,
Expand All @@ -10560,7 +10620,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0xFF",
"defaultValue": "50",
"reportable": 1,
"minInterval": 0,
"maxInterval": 100,
Expand Down Expand Up @@ -10590,7 +10650,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0xFF",
"defaultValue": "500",
"reportable": 1,
"minInterval": 0,
"maxInterval": 10000,
Expand All @@ -10605,7 +10665,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0xFFFF",
"defaultValue": "500",
"reportable": 1,
"minInterval": 0,
"maxInterval": 10000,
Expand Down Expand Up @@ -10635,7 +10695,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0xFF",
"defaultValue": "500",
"reportable": 1,
"minInterval": 0,
"maxInterval": 10000,
Expand All @@ -10650,7 +10710,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0xFF",
"defaultValue": "500",
"reportable": 1,
"minInterval": 0,
"maxInterval": 10000,
Expand Down Expand Up @@ -11217,7 +11277,7 @@
"code": 21,
"mfgCode": null,
"side": "server",
"included": 0,
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
Expand All @@ -11232,7 +11292,7 @@
"code": 22,
"mfgCode": null,
"side": "server",
"included": 0,
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
Expand Down Expand Up @@ -17396,7 +17456,7 @@
"reportableChange": 0
},
{
"name": "UserLabel",
"name": "NodeLabel",
"code": 5,
"mfgCode": null,
"side": "server",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ EmberAfStatus StaticSupportedModesManager::getModeOptionByMode(unsigned short en
}
}
emberAfPrintln(EMBER_AF_PRINT_DEBUG, "Cannot find the mode %" PRIu8, mode);
return EMBER_ZCL_STATUS_INVALID_ARGUMENT;
return EMBER_ZCL_STATUS_INVALID_VALUE;
}

const ModeSelect::SupportedModesManager * ModeSelect::getSupportedModesManager()
Expand Down
Loading

0 comments on commit 59a497a

Please sign in to comment.