Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/light-switch-app/asr/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import("${chip_root}/src/platform/ASR/args.gni")
asr_target_project =
get_label_info(":light_switch_app_sdk_sources", "label_no_toolchain")

chip_config_enable_groupcast = true

declare_args() {
# Disable lock tracking, since our FreeRTOS configuration does not set
# INCLUDE_xSemaphoreGetMutexHolder
Expand Down
5 changes: 4 additions & 1 deletion examples/light-switch-app/esp32/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@ CONFIG_LWIP_IPV6_NUM_ADDRESSES=6
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y

# Enable OTA Requestor
CONFIG_ENABLE_OTA_REQUESTOR=y
CONFIG_ENABLE_OTA_REQUESTOR=y

# Enable Groupcast cluster
CONFIG_CHIP_ENABLE_GROUPCAST=y
1 change: 1 addition & 0 deletions examples/light-switch-app/genio/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"

chip_enable_ble = true
chip_config_enable_groupcast = true

declare_args() {
chip_enable_ota_requestor = false
Expand Down
1 change: 1 addition & 0 deletions examples/light-switch-app/infineon/cyw30739/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ app_data_model = "${chip_root}/examples/light-switch-app/light-switch-common"
chip_openthread_ftd = false
chip_enable_icd_server = true
chip_enable_ota_requestor = true
chip_config_enable_groupcast = true

matter_product_id = "0x0005"
matter_product_name = "CYW30739 Light-Switch App"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2587,6 +2587,116 @@ provisional cluster ScenesManagement = 98 {
fabric command access(invoke: manage) CopyScene(CopySceneRequest): CopySceneResponse = 64;
}

/** The Groupcast cluster manages the content of the node-wide multicast Group membership that is part of the underlying interaction layer. */
provisional cluster Groupcast = 101 {
revision 1;

enum GroupcastTestResultEnum : enum8 {
kSuccess = 0;
kGeneralError = 1;
kMessageReplay = 2;
kFailedAuth = 3;
kNoAvailableKey = 4;
kSendFailure = 5;
}

enum GroupcastTestingEnum : enum8 {
kDisableTesting = 0;
kEnableListenerTesting = 1;
kEnableSenderTesting = 2;
}

enum MulticastAddrPolicyEnum : enum8 {
kIanaAddr = 0;
kPerGroup = 1;
}

bitmap Feature : bitmap32 {
kListener = 0x1;
kSender = 0x2;
kPerGroup = 0x4;
}

fabric_scoped struct MembershipStruct {
group_id groupID = 0;
optional endpoint_no endpoints[] = 1;
fabric_sensitive int16u keySetID = 2;
optional boolean hasAuxiliaryACL = 3;
MulticastAddrPolicyEnum mcastAddrPolicy = 4;
fabric_idx fabricIndex = 254;
}

provisional fabric_sensitive info event access(read: administer) GroupcastTesting = 0 {
optional octet_string sourceIpAddress = 0;
optional octet_string destinationIpAddress = 1;
optional group_id groupID = 2;
optional endpoint_no endpointID = 3;
optional cluster_id clusterID = 4;
optional int32u elementID = 5;
optional boolean accessAllowed = 6;
GroupcastTestResultEnum groupcastTestResult = 7;
fabric_idx fabricIndex = 254;
}

provisional readonly attribute MembershipStruct membership[] = 0;
provisional readonly attribute int16u maxMembershipCount = 1;
provisional readonly attribute int16u maxMcastAddrCount = 2;
provisional readonly attribute int16u usedMcastAddrCount = 3;
provisional readonly attribute fabric_idx fabricUnderTest = 4;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

request struct JoinGroupRequest {
group_id groupID = 0;
endpoint_no endpoints[] = 1;
int16u keySetID = 2;
optional octet_string<16> key = 3;
optional boolean useAuxiliaryACL = 4;
optional boolean replaceEndpoints = 5;
optional MulticastAddrPolicyEnum mcastAddrPolicy = 6;
}

request struct LeaveGroupRequest {
group_id groupID = 0;
optional endpoint_no endpoints[] = 1;
}

response struct LeaveGroupResponse = 2 {
group_id groupID = 0;
endpoint_no endpoints[] = 1;
}

request struct UpdateGroupKeyRequest {
group_id groupID = 0;
int16u keySetID = 1;
optional octet_string<16> key = 2;
}

request struct ConfigureAuxiliaryACLRequest {
group_id groupID = 0;
boolean useAuxiliaryACL = 1;
}

request struct GroupcastTestingRequest {
GroupcastTestingEnum testOperation = 0;
optional int16u durationSeconds = 1;
}

/** This command SHALL be used to instruct the server to join a multicast group. */
fabric command access(invoke: manage) JoinGroup(JoinGroupRequest): DefaultSuccess = 0;
/** This command SHALL allow a maintainer to request that the server withdraws itself or specific endpoints from a specific group or from all groups of this client's fabric. */
fabric command access(invoke: manage) LeaveGroup(LeaveGroupRequest): LeaveGroupResponse = 1;
/** This command SHALL allow a fabric administrator to update the OperationalGroupKey associated with the existing group identified by GroupID, which is already joined. */
fabric command access(invoke: manage) UpdateGroupKey(UpdateGroupKeyRequest): DefaultSuccess = 3;
/** This command SHALL allow an Administrator to enable or disable the generation of AuxiliaryACL entries in the Access Control Cluster based on the groups joined (see Groupcast Auxiliary ACL Handling). */
fabric command access(invoke: administer) ConfigureAuxiliaryACL(ConfigureAuxiliaryACLRequest): DefaultSuccess = 4;
/** This command SHALL allow an Administrator to configure test modes that allow validation of Groupcast communication. */
fabric command access(invoke: administer) GroupcastTesting(GroupcastTestingRequest): DefaultSuccess = 5;
}

/** Attributes and commands for controlling the color properties of a color-capable light. */
cluster ColorControl = 768 {
revision 9;
Expand Down Expand Up @@ -3299,6 +3409,25 @@ endpoint 0 {
handle command UnregisterClient;
handle command StayActiveRequest;
}

server cluster Groupcast {
emits event GroupcastTesting;
callback attribute membership;
callback attribute maxMembershipCount;
callback attribute maxMcastAddrCount;
callback attribute usedMcastAddrCount;
callback attribute fabricUnderTest;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 6;
callback attribute clusterRevision default = 1;

handle command JoinGroup;
handle command LeaveGroup;
handle command UpdateGroupKey;
handle command GroupcastTesting;
}
}
endpoint 1 {
device type ma_onofflightswitch = 259, version 4;
Expand Down
Loading
Loading