WO2023205988A1 - Method and apparatus for transmitting control information - Google Patents
Method and apparatus for transmitting control information Download PDFInfo
- Publication number
- WO2023205988A1 WO2023205988A1 PCT/CN2022/088902 CN2022088902W WO2023205988A1 WO 2023205988 A1 WO2023205988 A1 WO 2023205988A1 CN 2022088902 W CN2022088902 W CN 2022088902W WO 2023205988 A1 WO2023205988 A1 WO 2023205988A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- relay
- service
- cluster
- relay device
- request
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 155
- 230000004044 response Effects 0.000 claims description 194
- 230000015654 memory Effects 0.000 claims description 31
- 238000004590 computer program Methods 0.000 claims description 28
- 238000012545 processing Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 abstract description 30
- 239000003795 chemical substances by application Substances 0.000 description 37
- 230000008569 process Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 7
- 238000013499 data model Methods 0.000 description 7
- 230000003993 interaction Effects 0.000 description 6
- 230000006399 behavior Effects 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 4
- 238000010408 sweeping Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000012806 monitoring device Methods 0.000 description 2
- 235000008694 Humulus lupulus Nutrition 0.000 description 1
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000005406 washing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/08—Reselecting an access point
Definitions
- the present application relates to the field of communication technology, and more specifically, to methods and devices for transmitting control information.
- the client device can send control information to the service device through the network to control the service device.
- the client device leaves the communication network (eg, home network) where the service device is located, the client device can no longer control the service device, resulting in a lower user experience.
- the communication network eg, home network
- This application provides a method for transmitting control information, a first relay device, a client device, a first service device and a configuration device to improve user experience.
- a method for transmitting control information including: a first relay device receiving control information sent by a client device, the control information being used to control the first service device; The first relay device sends the control information to the first service device.
- a second aspect provides a method for transmitting control information, including: a client device sending control information to a first service device through a first relay device, the control information being used to control the first service device .
- a method for transmitting control information including: a first service device receiving control information sent by a client device through a first relay device, and the control information is used to transmit control information to the first service device. control.
- a method for transmitting control information including: a configuration device sends second configuration information to a target device, where the second configuration information is used to configure a first relay device to provide control information for a first service device.
- Relay service wherein the target device is the first relay device and the first service device, and the control information is used by the client device to control the first service device.
- a relay device (also known as “first relay device”) including: a receiving unit configured to receive control information sent by a client device, where the control information is used to provide the first service The device performs control; a sending unit is configured to send the control information to the first service device.
- a sixth aspect provides a client device, including: a sending unit configured to send control information to a first service device through a first relay device, where the control information is used to control the first service device.
- a service device (also called “first service device”) including: a receiving unit configured to receive control information sent by a client device through a first relay device, where the control information is used to The first service device is controlled.
- a configuration device including: a sending unit configured to send second configuration information to a target device, where the second configuration information is used to configure a first relay device to provide control information relay for a first service device. Service, wherein the target device is the first relay device and the first service device, and the control information is used by the client device to control the first service device.
- a relay device (also called “first relay device”) including a processor, a memory, and a communication interface.
- the memory is used to store one or more computer programs, and the processor is used to call The computer program in the memory causes the terminal device to perform some or all of the steps in the method of the first aspect.
- a client device including a processor, a memory, and a communication interface.
- the memory is used to store one or more computer programs.
- the processor is used to call the computer program in the memory so that the terminal The device performs some or all of the steps of the method of the second aspect.
- a service device (also called “first service device”) including a processor, a memory and a communication interface.
- the memory is used to store one or more computer programs, and the processor is used to call the The computer program in the memory causes the terminal device to perform some or all of the steps in the method of the third aspect.
- a configuration device including a processor, a memory and a communication interface, the memory is used to store one or more computer programs, the processor is used to call the computer program in the memory so that the terminal The device performs some or all of the steps in the method of the fourth aspect.
- embodiments of the present application provide a communication system, which includes the above-mentioned relay device, client device, service device, and configuration device.
- the system may also include other devices that interact with the above-mentioned device in the solutions provided by the embodiments of the present application.
- embodiments of the present application provide a computer-readable storage medium that stores a computer program, and the computer program causes the terminal to perform some or all of the steps in the methods of the above aspects.
- embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause the terminal to execute the above Some or all of the steps in various aspects of the method.
- the computer program product can be a software installation package.
- embodiments of the present application provide a chip, which includes a memory and a processor.
- the processor can call and run a computer program from the memory to implement some or all of the steps described in the methods of the above aspects. .
- the client device can send control information to the first service device through the first relay device. In this way, even when the client device leaves the communication network where the service device is located, the client device can send control information to the first service device through the first relay device. The device sends control information to control the first service device to improve user experience.
- Figure 1 is a model structure of a Matter device applicable to the embodiment of this application.
- Figure 2 is a schematic diagram of a communication system applicable to the embodiment of the present application.
- Figure 3 is a schematic diagram of a communication system to which the proxy mechanism is applicable.
- Figure 4 is a flow chart of a method for transmitting control information according to an embodiment of the present application.
- Figure 5 is a schematic diagram of a communication system applicable to the embodiment of the present application.
- Figure 6 is a flow chart of a method for transmitting control information according to an embodiment of the present application.
- Figure 7 is a flow chart of a method for transmitting control information according to another embodiment of the present application.
- Figure 8 is a flow chart of a method for transmitting control information according to another embodiment of the present application.
- Figure 9 is a schematic diagram of a relay device according to an embodiment of the present application.
- Figure 10 is a schematic diagram of a client device according to an embodiment of the present application.
- Figure 11 is a schematic diagram of a service device according to an embodiment of the present application.
- Figure 12 is a schematic diagram of a configuration device according to an embodiment of the present application.
- Figure 13 is a schematic structural diagram of a communication device according to an embodiment of the present application.
- IoT The Internet of things
- IoT devices may be smart home devices.
- IoT devices may include smart air conditioners, smart refrigerators, washing machines, rice cookers, sweeping robots, and other devices.
- the IoT device may be an intelligent monitoring device.
- the IoT device may include a surveillance camera, a temperature sensor, a sound sensor, etc.
- the Connectivity Standards Alliance launched an Internet of Things application layer technology standard—Matter Standard Protocol, which can provide an interoperable application layer for smart home devices based on Internet Protocol (Internet Protocol, IP) solution.
- IP Internet Protocol
- the matter standard may also be called a connected home over IP (CHIP) standard.
- the Matter standard can support three underlying communication protocols: Ethernet, Wi-Fi, and Thread, and can allow IoT devices with different protocols to communicate with each other.
- Figure 1 is a model structure of a Matter device applicable to the embodiment of this application.
- the data model structure 100 of the Matter device includes a node 110, an endpoint 120, and a cluster 130.
- Node 110 encapsulates an addressable and unique resource on the network and has a set of functions and capabilities that users can clearly view as a functional whole.
- node 110 may be the highest or outermost first-order element in the data model. In other words, node 110 is the only addressable element in the outermost layer of the data model.
- one physical entity can support multiple nodes 110 .
- a node can have multiple node IDs, and the scope of each node ID is a specific network (fabric). For example, when a node ID is used as the target address for an interaction, the network within the scope of the specified node ID is the access network for the interaction.
- a node may include one or more endpoints 120. Endpoint 120 is an instance, which can be a service or a virtual device, as indicated by the device type. Each endpoint 120 conforms to one or more device type definitions that define the clusters supported on the endpoint. Whereas a cluster is an object class instantiated on an endpoint.
- a device type defines a consistent set of endpoints 120.
- a device type defines a set of requirements for a node 110 or endpoint 120.
- Clusters 130 are functional building block elements of the data model, and therefore clusters may also be referred to as "functional sets.”
- the cluster specification defines clients and servers that interact with each other.
- Cluster 130 can be viewed as an interface, service or object class, which is the lowest independent functional element in the data model.
- Each cluster 130 is defined by a cluster specification that defines the elements of the cluster 130, including properties, events, commands, and behaviors related to interactions with these elements. Properties, events, commands, and behaviors in cluster 130 are mandatory or optional depending on the definition of cluster 130 .
- the above clusters can be divided into two categories: utility cluster (utility cluster) or application cluster (application cluster).
- Utility clusters are not part of the endpoint's primary application operations. It can be used for configuration, discovery, addressing, diagnostics, monitoring device health, software updates, and more. It may have a temporary relationship with its cluster counterpart.
- the utility cluster may include one or more of a relay configuration cluster, an effective relay cluster, and a relay discovery cluster.
- Application clusters support the primary operations of endpoints.
- Application clustering supports one or more persistent application interactions between clustered clients and clustered servers.
- the client of the cluster can send control commands to the server of the cluster (i.e., switch cluster) to control the switch of the smart light.
- a cluster command (also known as a "command") is a set of data fields, each data type, that is passed between client and server cluster instances to invoke the behavior of the command recipient.
- each command can be listed in a table, which can contain the data quality columns of the command: identification (ID), name (name), direction (direction), response (response), access (access) ), constraint consistency. Accordingly, a command can indicate zero or more fields defined in a table. Each command field is defined as a row in the table.
- Properties are cluster data. Currently, it is agreed in the agreement that each attribute can be listed in a table, and the data quality columns can include ID, name, (data) type, constraints, other qualities, access, default (value) and consistency. In some implementations, properties may also define their associated semantics and behavior. Properties can reflect the device's queryable/settable status, configuration, and capabilities. In some cases, if no privileges are explicitly defined for a property, default access privileges take effect.
- commands and attributes in the embodiments of this application may also include other quantitative qualities, or include part of the above-mentioned data qualities.
- the embodiments of the present application do not limit this.
- Identification represents the unique field ID of the field, or in other words, it is the unique identification of the command.
- Name represents the unique name of the field, or in other words, the name of the command.
- Type indicating the data type of the field (or command).
- Direction usually present in the command list, is used to define the transmission direction of the command. For example, it can be defined as from client to server. For another example, it can be determined from the server to the client.
- Access permissions are used to define how an element can be accessed (such as read or write) and what permissions are required to access the data.
- access rights may include V, where V indicates that read access or call access requires view privileges.
- Access permissions can also include O, which means "read access”, “write access” or “call access” require operation permissions.
- Access permissions can also include R, which stands for read access.
- Access permissions can also include W, which represents write access.
- Response usually present in the command list, is used to define the response message of the command.
- Default used to define the default value. It should be noted that the default value is not the value used when the service device returns to the factory refresh settings. The default value can indicate that the consistency specified for the data field can be optional or change over time. Default values can be defined to complete the dependency when the actual data field value is not present.
- Consistency defines the optionality and dependencies of any data model element or set of elements.
- this column is valid for properties, commands, events, enumerations, and fields of commands, events, or structures.
- "M" indicates that the corresponding command is part of the basic mandatory feature set.
- client-to-server command consistency means that the server should recognize and support client-to-server commands and generate responses as defined.
- Server-to-client command consistency means that the server should send commands in a manner defined by cluster behavior, i.e., in response to client-to-server commands. The consistency of the command depends on the supported server features. Clients should not be required to support optional commands or commands that rely on optional features.
- Constraints including all and desc. Among them, all is defined in the numeric data type to allow all values. desc indicates that the constraint is defined in the description section.
- the communication system applicable to the embodiment of the present application is introduced below with reference to FIG. 2 .
- the communication system shown in Figure 2 includes a Matter client 210, a Matter service device 220, and a configuration device 230. It should be noted that the data model of the Matter client 210 and the Matter service device 220 can be as shown in Figure 1 .
- the configuration device 230 is used to configure the Matter service device 220.
- the configuration device 230 may be an application (application, APP) or applet.
- the configuration device 230 can be installed on a terminal device, where the terminal device can be a mobile phone, a computer, a tablet, a smart bracelet, a smart watch, etc. This is not limited in the embodiments of the present application.
- the Matter client 210 is a client on the user side, and the Matter client 210 can communicate with the Matter service device 220 .
- the Matter client 210 can send control information to the Matter service device 220 to control the Matter service device 220 .
- the Matter service device 220 is a smart air conditioner
- the Matter client 210 can control the temperature adjustment of the Matter service device 220 by sending control information to the Matter service device 220 .
- the above-mentioned Matter client 210 may be an application (application, APP) or applet, etc.
- the Matter client 210 can be installed on a terminal device, where the terminal device can be a mobile phone, a computer, a tablet, a smart bracelet, a smart watch, etc. This is not limited in the embodiments of the present application.
- configuration device 230 may be the same APP or applet as the Matter client 210.
- the configuration device 230 may be a different APP or applet from the Matter client 210.
- the embodiments of the present application do not limit this.
- the matter service device 220 may refer to an Internet of Things device that supports the matter standard protocol.
- the Matter service device 220 can directly communicate with the Matter client 210, so that the Matter client 210 controls the Matter service device 220.
- the Matter client 210 can control the switch of the smart air conditioner and set the air conditioner temperature, wind speed, etc.
- the Matter service device 220 is a sweeping robot that supports the matter standard protocol
- the Matter client 210 can control the sweeping robot to start or stop working, control the working mode of the sweeping robot, etc.
- control interfaces supported by the Matter service device 220 mainly include control and subscribe and report.
- control can be understood as a group of clusters that can modify or retrieve one or more attribute values of the Matter service device.
- the Matter client is a smart speaker and the Matter service device is a smart air conditioner.
- Alice can say "cool down” to the smart speaker, and then the smart speaker sends a control command to lower the temperature to the smart air conditioner.
- the Matter client is a smart speaker
- the Matter service device is a smart air conditioner
- Alice can subscribe to the indoor temperature measured by the air conditioner sensor through the smart speaker. At this point, she can monitor the indoor temperature by receiving periodic reports.
- the Matter service device cannot directly handle the subscription request, and a proxy mechanism can be used to help the Matter service device process the subscription request.
- the proxy service can realize the proxy capability of subscribing to resources in the Matter service device.
- proxy services usually involve Matter clients, source Matter service devices, and proxy devices.
- the source Matter service device refers to the node that is the original source of a set of data authenticity.
- the source Matter service device can act as a publisher of data.
- Matter client refers to the node that wants to subscribe to a source Matter service device.
- the feed proxy device can "mirror" the data of the source Matter service device to the Matter client, and for the Matter client, no matter whether it interacts with the proxy device or the source Matter service device, the Matter client does not need to change its interaction.
- the proxy process can include the following processes: discovering that the Matter service device requires a proxy; finding a proxy on the network that can handle its subscription request; setting up the proxy to subscribe to the Matter service device.
- a Matter service device can indicate its capabilities as a certified Matter proxy by declaring support for the subscribing proxy device type.
- the configuration device should recognize this capability and can write the node IDs of all Matter service devices that require a proxy to the proxy configuration cluster on the proxy device.
- it can be configured to wildcard proxy all Matter service devices, eliminating the need to specify a specific set of node IDs.
- the configuration device can write the node ID of the newly added agent to a valid agent cluster on the Matter service device that requires the agent.
- the cluster can store a static list of candidate agents for a given device. Typically, this configuration needs to be written for the Matter service device that supports the cluster.
- subscriptions may be declined. Since there is no a priori heuristic that can be used to infer whether the Matter service device requires a proxy. So when the Matter service appliance cannot handle more incremental subscriptions, that's when a proxy is needed. When the Matter client tries to subscribe to the Matter service device, it will find that the subscription cannot be processed and return a StatusResponse, which will contain an IM status code indicating that the resources of the Matter service device have been exhausted. At this time, the Matter service device cannot process the subscription request.
- the Matter client After receiving the IM status code, the Matter client can call get valid proxies request on the Matter service device. In response, the Matter client can receive a get valid proxies response (get valid proxies response) sent by the Matter service device, where the get valid proxies response contains the node ID of the valid proxy.
- the Matter client can try to discover a valid proxy that can proxy its subscription request.
- the Matter client can send the agent discovery request as a multicast message to the group to which all agents belong. It should be noted that before transmitting this message, the Matter client should immediately subscribe to the IPv6 address mapped to this group to receive the response sent by the agent (i.e., the agent discovery response).
- the proxy should only send a proxy discovery response if it is able to handle the subscription request. It should be noted that the agent can send an agent discovery response regardless of whether it is currently subscribed to the Matter service device. Additionally, the broker discovery response may contain metadata indicating the broker's ability to handle subscriptions.
- the Matter client can associate the two messages based on the source node identifier (SourceNodeId) of the Matter service device in the two messages.
- SourceNodeId source node identifier
- Matter clients should wait for a proxy scan cycle to aggregate all responses, and filter the set of responses received.
- a Matter client can subscribe to the proxy of its choice. Accordingly, the agent can do one of two things: Option 1: If no other agent is already subscribed to the Matter service device, the agent will subscribe directly to the Matter service device: Option 2: If there is already another agent subscribed to the Matter service device, The selected agent will be subscribed to the agent.
- the agent does not attempt to subscribe to the Matter service device directly because the agent does not know whether the Matter service device has any available slots to support the subscription. If it does so, it may cause the subscription to fail.
- an agent can choose between these two options by "sniffing" "Agent Discovery Response” command messages issued by other agents. This allows the candidate agent to determine if there is another agent subscribed to the Matter service device.
- the proxy can only subscribe to that Matter service device once. This is necessary to ensure timely execution of the ACL in the event that a Matter client no longer has access to the Matter service device, and subsequent state changes will not be available to that Matter client.
- the Matter service appliance may evict some Matter client subscriptions. For example, the Matter service appliance may not be able to handle another subscription, and the Matter service appliance cancels the non-agent subscription to make room for the agent subscription.
- the commands included in the agent discovery cluster include agent discovery requests and agent discovery responses.
- the transmission direction of the proxy discovery request is from the client to the service device, and the response to the proxy discovery request is the proxy discovery response.
- the transmission direction of the proxy discovery response is from the server to the client, and the response of the proxy discovery response is None.
- the field “SourceNodeId” is the node ID of the source Matter service device.
- the field “NumAttributePaths” indicates the number of attribute paths to be subscribed by the Matter client.
- the field “NumEventPaths” indicates the number of event paths to be subscribed by the Matter client.
- the field “SourceNodeId” is the node ID of the source Matter service device.
- the field “NumHopsToSource” indicates the number of hops that the agent subscribes to the source Matter service device. When the agent directly subscribes to the source Matter service device, the value is 1.
- the field “AvailableCapacitys” indicates how much space the broker has left to support subscriptions to cluster properties.
- Proxy configuration clustering provides a way for a proxy-capable device to be informed of the set of nodes (Matter service devices) it will proxy to.
- the properties included in the proxy configuration cluster are configuration lists.
- the configuration list can store in the form of a list the node identification of the Matter service device that the proxy can provide proxy services for subscription requests.
- the data type of the list may specifically include the following attributes.
- the attribute "FabricIndex” represents the identifier of the interwoven network where the proxy and Matter service devices are located.
- the attribute "SourceList” is the list of source Matter service devices being proxied. Attributes
- ProxyAllNodes being true means that the proxy can proxy all nodes, in which case the SourceList attribute should be ignored. If the attribute "ProxyAllNodes” is false, it means that the proxy cannot proxy all nodes, but can only proxy the source Matter service devices in the SourceList.
- Tables 6 through 8 show the properties and commands contained by a valid agent cluster.
- Valid proxy clustering provides a way for Matter serving devices to inform the Matter serving device of valid proxies.
- the attribute name contained in the valid proxy cluster is valid proxy list (ValidProxyList), and its data type is list.
- the commands included in the effective proxy cluster include obtaining effective proxy requests and obtaining effective proxy responses.
- the transmission direction of obtaining a valid proxy request is from the client to the service device, and the response to obtaining a valid proxy request is obtaining a valid proxy response.
- the transmission direction to obtain a valid proxy response is from the server to the client, and the transmission direction to obtain a valid proxy response is None.
- the client can send control to the service device through the communication network to control the service device (also known as the "first service device").
- the service device also known as the "first service device”
- the client device can no longer control the service device, resulting in a lower user experience.
- the client device can send control information to the first service device through the first relay device, or in other words, the first relay device can provide control
- the information relay service enables the control information sent by the client device to be sent to the first service device through the relay link provided by the control information relay service. In this way, even when the client device leaves the communication network where the first service device is located, the client device can send control information to the first service device through the first relay device to control the first service device to improve user experience.
- the flow of the method for transmitting control information according to the embodiment of the present application is introduced below with reference to FIG. 4 .
- the method shown in Figure 4 includes step S410 and step S420.
- step S410 the client device sends control information to the first relay device.
- step S420 the first relay device sends the control information to the first service device.
- the first relay device can send the control information sent by the client device to the first service device. Therefore, the first relay device usually has the ability to connect to the network.
- the first relay device can be any device with network connection capabilities. For example, routers, smart speakers, etc.
- the following will first introduce the stage of establishing the control information relay service in which the first relay device provides control information for the first service device, that is, the establishment stage of the control information relay service.
- the first relay device when the first relay device receives the control information, it can promptly feed back the response result given by the first service device in response to the control information to the client device.
- the control information control can be set in the first relay device.
- the first service device in the business cluster That is, assuming that the control information is used to control the first service cluster in the first service device, the first relay device may include a target cluster, and the target cluster is the same as the first service cluster.
- the above target cluster is the same as the first business cluster. It can be understood that the control functions supported by the target cluster are the same as the control functions supported by the first business cluster. In some implementations, the service list and command list included in the target cluster are the same as the service list and command list included in the first service cluster.
- the first relay device can read the node, endpoint and business cluster information of the first service device, and then send a subscription request to the first service device. , to request to subscribe to the business list and command list of the above-mentioned first business cluster.
- the first service device may send the service list and the command list of the first service cluster to the first relay device.
- the first relay device may provide control information relay services for multiple service devices. Therefore, a cluster of multiple service devices may be set in the first relay device.
- the first relay device may be provided with multiple virtual nodes, each virtual node corresponds to a node of the service device, and the virtual node is provided with a cluster having the same function as the service cluster in the service device node. That is to say, the target cluster in the first relay device can be set in a virtual node, and the virtual node corresponds to the node where the first cluster is located, or in other words, the endpoint contained in the virtual node is the same as the endpoint where the first cluster is located. The endpoints are the same.
- the above virtual node may be generated by the first relay device.
- relay device 1 can provide control information relay services for service device 1 and service device 2, and the control information relay service provided by relay device 1 for service device 1 is for the business cluster in service device 1.
- business cluster 1 is located in endpoint EP1 in node 1 in service device 1.
- control information relay service provided by the relay device 1 to the service device 2 is for the service cluster 2 in the service device 2.
- the service cluster 2 is located in the endpoint EP1 in the node 0 in the service device 2.
- the relay device 1 includes two virtual nodes, virtual node 0 and virtual node 1.
- the virtual node 0 corresponds to the service device 1, and the virtual node 0 is configured with the endpoint EP1 in the node 1 and the target cluster 1, where the target cluster 1 can be the same as the business cluster 1.
- Virtual node 1 corresponds to service device 2, and virtual node 1 is provided with endpoint EP1 in node 0 and target cluster 2, where target cluster 2 can be the same as business cluster 2.
- different client devices may have different permissions to access the first service device. Therefore, in order to prevent the first relay device from relaying control information sent by a client device that does not have control permissions to the first service device, That is, unnecessary control information relay services are provided, and the same control authority as that of the node where the first cluster is located can be set for the virtual node of the first relay device.
- the first relay may store an ACL of the first service device, where the ACL of the first service device is used to record whether the client device has the authority to control the first service device, or in other words, the first service device The ACL of the device is used to record whether the client device has the permissions required to control the first service device through the above control information.
- the virtual node of the first relay device can be associated with the ACL. Accordingly, before step S420, the above method further includes: the first relay device queries the ACL to determine that the client device has the authority to control the first service device. In other words, when it is determined based on the ACL that the client device has the authority to control the first service device, the first relay device sends control information to the service device.
- the first relay device may obtain the ACL of the first service device.
- the first relay device may send a subscription request to the first service device to request to subscribe to the ACL of the first service device.
- the first service device sends the ACL of the first service device to the first relay device.
- Figure 5 introduces the establishment phase of the control information relay service according to the embodiment of the present application.
- the following describes the configuration phase of the control information relay service and the triggering phase of the control information relay service in the embodiment of the present application with reference to the figures.
- the configuration phase of the control information relay service may be executed before the establishment phase of the control information relay service, and the triggering phase of the control information relay service may be executed after the establishment phase of the control information relay service.
- the user can configure the first relay device through the configuration device.
- the configuration device can send the first configuration information to the first relay device to configure the first relay device as The first service device provides a control information relay service.
- the first configuration information may include an identification of the first service device.
- a first cluster may be set in the first relay device, where the first cluster is used to configure one or more devices that need to provide control information relay services for the first relay device.
- service devices wherein one or more service devices include a first service device. Therefore, the above-mentioned first cluster can also be called “relay configuration cluster (relay configuration cluster)".
- service devices that the first relay device can provide control information relay services may be recorded in a list in the relay configuration cluster.
- the list may be called a "target list", and the node IDs of all service devices that the first relay device can provide control information relay services are recorded in the target list.
- the above-mentioned relay configuration cluster may include the identification of the interwoven network where one or more service devices are located, so that when configuring the service device that the first relay device can provide control information relay services, the user can choose to be located in the same location as the first relay device. Service equipment on the same interwoven network.
- the first relay device needs to communicate with the service device, that is to say, the first relay device and the service device are usually located in the same interwoven network. Therefore, the above identification of the interwoven network can also be understood as The identification of the interwoven network where the service device is located.
- the relay configuration cluster includes first indication information to indicate whether the first relay device is located in the cloud, so that the user can configure it more reasonably.
- the first relay device may provide a service device that controls information relay service.
- the first indication information may be indicated by a Boolean value. For example, when the Boolean value is true, the first indication information indicates that the first relay device runs on the cloud platform. When the Boolean value is false, the first indication information indicates that the first relay device does not run on the cloud platform.
- the first indication information may also indicate whether the first relay device is running on the cloud platform through a bitmap. The embodiments of the present application do not limit this.
- the relay configuration cluster includes second indication information, where the second indication information is used to Indicates whether the first relay device can provide control information relay services for all service devices in the network where the first relay device is located, so that the user can more reasonably configure service devices where the first relay device can provide control information relay services.
- the second indication information may use a Boolean value to indicate whether the first relay device can provide control information relay services for all service devices in the network. For example, when the Boolean value is true, the second indication information indicates that the first relay device can provide control information relay services for all service devices in the network.
- the second indication information indicates that the first relay device cannot provide control information relay services for all service devices in the network.
- the second indication information may also indicate through a bitmap that the first relay device can provide control information relay services for all service devices in the network. The embodiments of the present application do not limit this.
- the target list in the relay configuration cluster becomes invalid. Otherwise, if the second indication information indicates that the first relay device cannot provide control information relay services for all service devices in the network, at this time, the target list in the relay configuration cluster is valid, that is, the first relay device can only Provides control information relay services for service devices in the target list.
- the above-mentioned second indication information can be used in conjunction with the first indication information. That is to say, the above-mentioned first indication information
- the information may be represented by the second indication information, that is, whether the first relay device is located in the cloud may be indicated by the second indication information.
- the first relay device is also a relay device located in the cloud.
- the second indication information indicates that the first relay device cannot provide control information relay services for all service devices in the network, the first relay device is not a relay device located in the cloud at the same time.
- the relay configuration cluster can include the identification of the attribute (ID), the name of the attribute (name), the type of the attribute (type), the range of the attribute (range), the quality of the attribute (quality), and the access of the attribute (access). ), the default value of the attribute (default), and the conformance of the attribute (conformance).
- attribute ID 0 is used to identify attribute 0 in the relay configuration cluster; the name of attribute 0 is the configuration list; the type of attribute 0 is a list presented in a structure; the scope of attribute 0 is all (all); attribute 0
- the quality of is none (none), the access of attribute 0 is RW; the default value of attribute 0 is empty; the consistency of the attribute is M.
- Table 10 shows the information contained in the list presented as a structure.
- the information contained in the structure includes the identification of the attribute, the name of the attribute, the type of the attribute, the scope of the attribute, the quality of the attribute, access to the attribute, the default value of the attribute and the consistency of the attribute.
- the name of the attribute corresponding to attribute identifier 0 is the identifier of the interwoven network to which relay device 0 is connected.
- the type of this attribute is the fabric-idx.
- the name of the attribute corresponding to attribute identification 1 is relay all nodes, which is used to indicate whether relay device 0 can provide control information relay services for all service devices in the network.
- the type of this attribute is Boolean ( bool). Generally, when the Boolean value is "true”, it means that relay device 0 can provide control information relay services for all service devices in the network. When the Boolean value is "false”, it means that relay device 0 cannot provide control information relay services for all service devices in the network.
- the attribute name of the attribute corresponding to attribute identifier 2 is a target list, and the type of the target list is a list containing a node identifier, where the node identifier is used to indicate that the relay device can provide a service device with a control information relay service.
- relay device 0 can provide control information relay services for all service devices in the network.
- the attribute "Target List” is invalid. attribute, or can be ignored.
- the Boolean value of the attribute "Relay All Nodes” is false, relay device 0 cannot provide control information relay services for all service devices in the network.
- the attribute "Target List” is a valid attribute, that is to say , relay device 0 can only provide control information relay services for the service device corresponding to the node ID included in the target list.
- the first relay device can provide a configuration interface through the first cluster.
- the user may not yet know which devices in the network can provide control information relay services. Therefore, before the user configures the first relay device through the configuration device, the user needs to know that the network can provide control information.
- Relay equipment for relay services are used.
- the relay devices that can provide control information relay services in the network can be divided into a relay group in advance.
- the configuration device may send a third request to the relay group in the form of a multicast message to request discovery of relay devices in the network, or in other words, the third request is used to discover relay devices that can provide control information relay services.
- the relay device in the relay group may return a third response to the third request to the configuration device to inform the configuration device that the control information relay service can be provided.
- the above third response may carry the node identification of the relay device.
- relay devices typically have different connectivity capabilities. For example, some relay devices can be connected to the local area network (LAN), some relay devices can be connected to the wide area network (WAN), and some relay devices can be located in the cloud. Therefore, in order to improve the accuracy of the relay device obtained by the user, the user can carry indication information 1 (also known as "fourth indication information") in the third request.
- the indication information 1 is used to indicate the connection of the relay device requested to be discovered. capabilities (e.g., secondary connectivity capabilities).
- only the relay device in the relay group that meets the connection capability can send the third response to the configuration device.
- the above third response may carry indication information indicating the connection capability of the relay device.
- only relay devices that are configured to meet the connection capability may send the third response to the configuration device. In this case, the third response may not carry the above indication information.
- the third request sent by the configuration device to the relay group is used to request a relay device with WAN connection capability.
- the relay device in the relay group that only has LAN connection capability cannot send the third response to the configuration device.
- a relay device for example, a router
- WAN connection capability in the relay group may send a third response to the configuration device.
- the user can determine the connection capabilities of the relay device requested to be discovered in the third request through the network where the first service device to be controlled is located. For example, if the network where the first service device is located is a LAN, then the indication information 1 in the third request indicates a request to discover a relay device with LAN connection capabilities.
- relay devices have different connectivity capabilities.
- the above-mentioned relay device with LAN connection capability can be understood as a relay device with private network connection capability, such as a smart speaker.
- this type of relay device can only provide control information relay services for service devices in the local area network.
- the above-mentioned relay device with WAN connection capability can be understood as a relay device with external network or public network connection capability, such as a router.
- a relay device with external network or public network connection capability such as a router.
- such relay devices can connect to a home network where the first service device is located and an external network.
- such relay devices may not be able to provide control information relay services for service devices located in multiple home networks.
- router 1 is located in home network 1, it can provide control information relay service for service device 1 in home network 1.
- the router 1 cannot provide the control information relay service for the service device 2.
- the above-mentioned relay device located in the cloud can be understood as a virtual device in the cloud.
- such relay devices can connect to some or all service devices on the cloud.
- Relay devices located in the cloud All can provide control information relay services.
- the above describes the configuration process of configuring the device as the first relay device in the configuration phase of the control information relay service.
- the configuration device also needs to configure the first service device.
- the following describes the configuration process of the first service device by the configuration device.
- the user can configure the first service device by configuring the device.
- the configuration device can send configuration information (also called "second configuration information") to the first service device to configure a relay device that can provide control information relay services for the first service device, or in other words, The second configuration information is used to configure the first relay device to provide the control information relay service for the first service device.
- a second cluster can be set in the first service device, where the second cluster is used to indicate one or more valid ones that can provide the control information relay service for the first service device.
- the relay device one or more effective relay devices includes the first relay device. Therefore, the above-mentioned second cluster can also be called a "valid relay cluster".
- effective relay devices that can provide control information relay services for the first service device may be recorded in a list in the effective relay cluster.
- the list may be called a "valid relay list", and the node ID of the valid relay device is recorded in the valid relay list.
- the above-mentioned effective relay cluster may include an identifier of the interwoven network where the first service device is located.
- the effective relay device needs to communicate with the first service device, the effective relay device and the first service device are usually located in the same interwoven network. Therefore, the interwoven network where the above-mentioned first service device is located.
- the identifier can also be understood as the identifier of the interwoven network where the effective relay device is located.
- the effective relay cluster can also record the connectivity (connectivity) of each relay device in one or more effective relay devices, and each The connection capability of the relay device is used to indicate the type of network to which each relay device is connected, where the network can be understood to include networks such as LAN and WAN.
- a valid relay cluster may include the identity of the attribute, the name of the attribute, the type of the attribute, the scope of the attribute, the quality of the attribute, the access to the attribute, the default value of the attribute, and the consistency of the attribute.
- the identifier 0 of the attribute is used to identify the attribute 0 in the effective relay cluster; the name of the attribute 0 is the effective relay list; the type of the attribute 0 is the effective relay list presented in the structure; the scope of the attribute 0 is N/ A; the quality of attribute 0 is none (none), the access of attribute 0 is RW; the default value of attribute 0 is empty; the consistency of attribute 0 is M.
- Table 12 shows the information contained in the valid relay list presented as a structure.
- the information contained in the structure includes the identification of the attribute, the name of the attribute, the type of the attribute, the scope of the attribute, the quality of the attribute, access to the attribute, the default value of the attribute and the consistency of the attribute.
- the name of the attribute corresponding to attribute identifier 0 is the identifier of the interwoven network to which relay device 0 is connected.
- the type of this attribute is fabric-idx.
- the first service device needs to communicate with the effective relay device, that is to say, the first service device and the effective relay device are located in the same network, therefore, the above identification can also be understood as an effective relay.
- the name of the attribute corresponding to attribute identification 1 is node identification, which is used to indicate a valid relay device that can provide control information relay services for the first service device.
- the type of this attribute is the node index (node-idx) of the valid relay device. .
- the attribute name of the attribute corresponding to attribute identification 2 is connection capability, and the type of connection capability is an 8-bit bitmap used to indicate the connection capability of each valid relay device.
- each bit in the 8-bit bitmap can indicate the connection capability of the corresponding effective relay device, where BIT(0) indicates that the corresponding effective relay device has the connection capability of LAN, and BIT(1) indicates that the corresponding effective relay device has the connection capability of LAN.
- the effective relay device has WAN connection capabilities, and BIT(2) indicates that the corresponding effective relay device has the connection capabilities of the cloud platform (or, in other words, runs on the cloud platform).
- an effective relay device may have multiple connection capabilities.
- the router's connection capabilities may include LAN and WAN connection capabilities.
- some effective relay devices may also have only one connection capability, which is not limited in the embodiments of the present application.
- the above-mentioned bitmap representing the connection capability of the effective relay device may also have other number of bits, for example, 4 bits, etc.
- other methods may be used to represent the connection capabilities of effective relay devices.
- the user can identify the node of the effective relay device in the effective relay device list in the above-mentioned effective relay cluster.
- the connection capability of the effective relay device can also be recorded in the attribute 2 connection capability. For example, assuming that the effective relay device is a router, and the router's connection capability is to have LAN and WAN connection capabilities, then 00000011 can be stored in the router's corresponding connection capability, and the bit value 1 on bit 7 indicates that the router has LAN The connection capability, the bit value 1 in bit 8 indicates that the router has WAN connection capability.
- relay devices located in the cloud usually have a wider range of connection capabilities, or can be connected to a larger number of service devices. Therefore, in order to facilitate users to select relay devices, they can also directly Indicates whether the relay device is in the cloud or not.
- the effective relay cluster may also include a network location indication parameter of the corresponding relay device, where the network location indication parameter is used to indicate whether the relay device is located in the cloud.
- Table 13 shows another implementation of a valid relay structure. It should be noted that the parts common to Table 13 and Table 12 (for example, the identification attributes and node identification attributes of the interwoven network) have the same functions and meanings. For the sake of simplicity, they will not be described again below.
- the attribute name of the attribute corresponding to attribute identification 3 is cloud relay (Is cloud relay), and the type of cloud relay is a Boolean value, which is used to indicate whether the corresponding valid relay device is running on the cloud platform. For example, when the Boolean value is "true”, it means that the corresponding effective relay device runs on the cloud platform, or is a cloud relay. When the Boolean value is "false”, it means that the corresponding valid relay device does not run on the cloud platform, or is not a cloud relay.
- attribute identifier 3 can be used as an example of the above "network location indication parameter".
- the configuration device also needs to configure the ACL of the first service device so that the first relay device can access the first service device.
- control information relay service The configuration phase of the control information relay service is introduced above in conjunction with Table 9 and Table 13, and the triggering phase of the control information relay service is introduced below in conjunction with Tables 14 to 17.
- the client device Before the first relay device provides the control information relay service for the first service device, the client device usually needs to select a relay device that provides the control information relay service for the first service device to trigger the control information relay. service, so it can be called the "control information relay service triggering phase".
- a relay device that provides the control information relay service for the first service device to trigger the control information relay. service, so it can be called the "control information relay service triggering phase".
- two methods of selecting the control information relay service are provided. These two methods of triggering the control information relay service will be introduced below.
- the client device can obtain a relay device that can provide the control information relay service (ie, the effective relay device above) from the first service device to trigger the control information relay service.
- a relay device that can provide the control information relay service (ie, the effective relay device above) from the first service device to trigger the control information relay service.
- the active relay cluster may support the first request and the first response to the first request.
- the first request is used for the client device to request to query one or more valid relay devices. Therefore, the first request can also be called “get valid relays request (get valid relays request)" and the first response is used for the first
- the service device returns information about one or more valid relay devices to the client device. Therefore, the first response can also be called “get valid relays response”.
- the first request and the first response may include the identification of the command, the name of the command, the direction of the command, the response of the command, the access of the command, and the consistency of the command.
- the name of the command corresponding to command identifier 0 is to obtain a valid relay request.
- the direction of obtaining a valid relay request is sent by a client (for example, a client device) of the valid relay cluster to a server (for example, a service device) of the valid relay cluster.
- the response to the Get Valid Relay request is Get Valid Relay Response.
- the name of the command corresponding to command identifier 1 is to obtain a valid relay response.
- the direction to obtain a valid relay response is sent by the server of the valid relay cluster to the client of the valid relay cluster.
- the response to getting a valid relay response is None.
- the user can carry indication information 2 (also known as "third indication information") in the request to obtain a valid relay.
- the indication information 2 is used to indicate the valid relay device of the request. connection capabilities.
- only the effective relay devices that meet the connection capability among the effective relay devices recorded in the effective relay cluster can send the obtain effective relay response to the configuration device.
- the above-mentioned response for obtaining a valid relay may carry indication information indicating the connection capability of the valid relay device.
- only valid relay devices that meet the connection capability may be configured to send the Get Valid Relay response to the configuration device. In this case, the Get Valid Relay response may not carry the above indication information.
- the obtain valid relay request sent by the client device to the first service device is used to request a relay device with WAN connection capability.
- the obtain valid relay response sent by the first service device to the client device only carries Information about valid relay devices with WAN connectivity capabilities (e.g., node ID).
- the client device can directly read the information of the effective relay devices recorded in the effective relay cluster to select a relay device that can provide the control information relay service for the first service device.
- the above information about the effective relay device may include all or part of the information recorded in the effective relay cluster. For example, it may include the node identification of the effective relay device, the connection capability of the effective relay device, etc.
- the client device in order to facilitate the user to change the relay device that provides the control information relay service for the first service device through the client device, the client device can store the first service device Information about valid relay devices.
- the client device can obtain from the first relay device a service device that the first relay device can provide the control information relay service to trigger the control information relay service.
- a third cluster in order to support the client device's need to discover the relay device, a third cluster can be set up in the first relay device.
- the commands supported by the third cluster can be used by the client device to discover whether the first relay device can A control information relay service can be provided for the first service device. Therefore, the above third cluster can also be called “relay discovery cluster (relay discovery cluster)".
- the command supported by the relay discovery cluster may include a second request and a second response to the second request.
- the second request is used by the client device to request to discover whether the first relay device can provide control information relay services for the first service device. Therefore, the second request can be called a "relay discovery request (relay discover request)" .
- the second response is used to indicate whether the first relay device can provide the control information relay service for the first service device. Therefore, the second response may be called a "relay discovery response (relay discover response)".
- the above-mentioned relay discovery response may also carry at least one of the connection capability of the first relay device, the identification of the first serving device, and the identification of the first relay device.
- whether the first relay device can provide the control information relay service for the first service device may be indicated by sending or not sending the second response. For example, when the second response is sent, it may be indicated that the first relay device can provide the control information relay service for the first service device. Correspondingly, when the second response is not sent, it may be indicated that the first relay device is unable to provide the control information relay service for the first service device.
- whether the first relay device can provide the control information relay service for the first service device can also be determined directly through the content of the second response, which is not limited in the embodiments of the present application.
- Tables 15 to 17 take the relay discovery cluster in the first relay device as an example to introduce the relay discovery request and the relay discovery response. It should be noted that the meanings of the data quality columns (for example, access, consistency, default, constraints, etc.) included in the commands in Table 15 to Table 17 have been explained in detail above, and for the sake of brevity, they will not be repeated below.
- the relay discovery request and the relay discovery response may include the identification of the command, the name of the command, the direction of the command, the response of the command, the access of the command, and the consistency of the command.
- the name of the command corresponding to command identifier 0 is relay discovery request.
- the direction of the relay discovery request is sent by the client of the relay discovery cluster to the service device (server) of the relay discovery cluster, for example, by the client device to the first relay device.
- the response to the relay discovery request is the relay discovery response.
- the parameters carried by the relay discovery request can be seen in Table 16.
- the identifier of the parameters that can be carried by the relay discovery request is 0.
- the field of this parameter is the target node ID (target node id), which is used to indicate the first service device.
- the type is Node identification (node-id).
- the name of the command corresponding to command identifier 1 is relay discovery response.
- the direction of the relay discovery response is sent by the server of the relay discovery cluster to the client of the relay discovery cluster, for example, by the first relay device to the client device.
- the response to the relay discovery response is None.
- the parameters carried by the relay discovery response can be seen in Table 17.
- the parameters that can be carried by the relay discovery response include parameters marked with 0 and parameters marked with 1.
- the field of the parameter identified as 0 is the target node ID (target node id), which is used to indicate the first service device, and the type is node ID (node-id).
- the field of the parameter identified as 1 is the connection capability, which is used to indicate the connection capability of the first relay device, and the type is an 8-bit bitmap.
- each bit in the 8-bit bitmap may indicate the connection capability of the first relay device, where BIT(0) indicates that the first relay device has the connection capability of LAN, and BIT(1) indicates that the first relay device has the connection capability of LAN.
- the device has WAN connection capabilities, and BIT(2) indicates that the first relay device is located in the cloud.
- the relay discovery request does not need to carry the target node identifier, or the field containing the target node identifier in the relay discovery request is empty. In this case, it can be understood that the relay that receives the relay discovery request The device is required to send a relay discovery response.
- the first relay device may have multiple connection capabilities.
- the connection capabilities of the router may include connection capabilities of LAN and WAN.
- the first relay device may also have only one connection capability, which is not limited in the embodiments of the present application.
- the above-mentioned bitmap representing the connection capability of the first relay device may also have other number of bits, for example, 4 bits, etc.
- other methods may be used to represent the connection capability of the first relay device.
- Figure 6 is a flow chart of a method for transmitting control information according to an embodiment of the present application.
- the method shown in Figure 6 includes steps S611 to S636.
- the control information relay service configuration phase 610 includes steps S611 to S616.
- step S611 the user searches for the relay device in the network by configuring the device.
- the user can configure the device to send a subscription request 1 to the group in the home network in the form of multicast to request to subscribe to the relay device.
- the group address GroupID can be 0xFFFC.
- the above group may include all devices in the home network.
- the above group may include devices in the home network that can provide control information relay services.
- the embodiments of the present application do not limit this.
- step S612 the router returns response message 1 to the subscription request 1 to the configuration device.
- response message 1 may carry router information, such as the router's node identifier and the router's connection capabilities.
- step S613 the user selects the router as the first relay device by configuring the device to provide control information relay services for the smart home device 1.
- the relay device needs to have external network access capabilities at this time, so the user can select the router as the first relay device.
- step S614 the user configures the ACL of the smart home device 1 through the configuration device so that the router has the authority to access the smart home device 1.
- step S615 the user configures an effective relay cluster of the smart home device 1 through the configuration device to add the router as an effective relay device.
- the router's connection capability may be recorded in the effective relay cluster as 00000011, indicating that the router has LAN and WAN connection capabilities.
- step S616 the user configures the relay configuration cluster of the router through the configuration device to add the node label of the smart home device 1 in the target list of the relay configuration cluster.
- the control information relay service establishment phase 620 includes steps S621 to S625.
- step S621 the router obtains the information of the service cluster 1 in the smart home device 1.
- the router can read the node, endpoint, and cluster information of the smart home device 1. And initiate a subscription request 2 to the business cluster 1 in the smart home device 1 to request to subscribe to the attribute list and command list contained in the business cluster 1. Correspondingly, after the smart home device 1 allows the above subscription request 2, the smart home device 1 sends the attribute list and command list contained in the service cluster 1 to the router.
- step S622 the router creates a virtual node.
- the nodes, endpoints, and business clusters of the above virtual nodes are the same as those of the smart home device 1.
- step S623 the router sends a subscription request 3 to the smart home device 1 to request to subscribe to the ACL of the service cluster 1.
- step S624 after the smart home device 1 allows the subscription, the smart home device 1 sends the ACL of the service cluster 1 to the router.
- step S625 the relay device associates the ACL of service cluster 1 to the virtual node.
- the control information relay service triggering phase 630 includes steps S631 to S636.
- step S631 the user obtains a relay device that can provide control information relay services for the smart home device 1 through the Matter client.
- the Matter client can directly read the effective relay cluster of smart home device 1 to obtain information about all effective relay devices of smart home device 1. In addition, the Matter client can save information about valid relay devices.
- the Matter client can also obtain the valid relay device of smart home device 1 by obtaining a valid relay request.
- the smart home device 1 can send a response to obtain a valid relay to the Matter client, and Router information.
- step S632 the Matter client sends control information to the router, and the control information is used to control the business cluster 1 of the smart home device 1.
- the Matter client When the Matter client is outside the home network, the Matter client cannot directly connect to the smart home device 1. The user can send the above control information to the virtual node of the router through the Matter client.
- step S633 the router queries the ACL associated with the virtual node and confirms that the Matter client has the permissions required to control the information.
- step S634 the router sends the above control information to the smart home device 1.
- step S635 after executing the command corresponding to the control information, the smart home device 1 returns a result or response to the router.
- step S636 the router returns the result or response to the Matter client.
- Figure 7 is a flow chart of a method for transmitting control information according to another embodiment of the present application.
- the method shown in Figure 7 includes steps S711 to S738.
- the control information relay service configuration phase 810 includes steps S711 to S716.
- step S711 the user searches for the relay device in the network by configuring the device.
- the user can configure the device to send a subscription request 1 to the group in the home network in the form of multicast to request to subscribe to the relay device.
- the group's address Group ID can be 0xFFFC.
- the above group may include all devices in the home network.
- the above group may include devices in the home network that can provide control information relay services.
- the embodiments of the present application do not limit this.
- step S712 the smart speaker returns response message 1 to the subscription request 1 to the configuration device.
- response message 1 may carry information about the smart speaker, such as the node identifier of the smart speaker and the connection capability of the smart speaker.
- step S713 the user selects the smart speaker as the first relay device to provide control information relay services for the smart home device 2.
- the relay device needs to have external network access capabilities at this time. Therefore, the user can select the smart speaker as the first relay device.
- step S714 the user configures the ACL of the smart home device 2 through the configuration device so that the smart speaker has the authority to access the smart home device 2.
- step S715 the user configures an effective relay cluster of the smart home device 2 through the configuration device to add the smart speaker as an effective relay device.
- connection capability of the smart speaker can be recorded in the effective relay cluster as 00000011, indicating that the smart speaker has LAN and WAN connection capabilities.
- step S716 the user configures the relay configuration cluster of the smart speaker through the configuration device to add the node label of the smart home device 2 in the target list of the relay configuration cluster.
- the control information relay service establishment phase 720 includes steps S721 to S725.
- step S721 the smart speaker obtains the information of the business cluster 1 in the smart home device 2.
- the smart speaker can read the node, endpoint, and cluster information of the smart home device 2. And initiate a subscription request 2 to the business cluster 1 in the smart home device 2 to request to subscribe to the attribute list and command list contained in the business cluster 1. Correspondingly, after the smart home device 2 allows the above-mentioned subscription request 2, the smart home device 2 sends the attribute list and command list contained in the business cluster 1 to the smart speaker.
- step S722 the smart speaker creates a virtual node.
- the nodes, endpoints, and business clusters of the above virtual nodes are the same as those of the smart home device 2.
- step S723 the smart speaker sends a subscription request 3 to the smart home device 2 to request to subscribe to the ACL of the service cluster 1.
- step S724 after the smart home device 2 allows the subscription, the smart home device 2 sends the ACL of the service cluster 1 to the smart speaker.
- step S725 the relay device associates the ACL of service cluster 1 to the virtual node.
- the control information relay service triggering phase 730 includes steps S731 to S738.
- step S731 the Matter client sends a relay discovery request to request the discovery of a relay device that can provide control information relay services for the smart home device 2.
- users can send relay discovery requests to groups in the home network in the form of multicast through the Matter client to request discovery of the above-mentioned relay devices.
- the group address GroupID can be 0xFFFC.
- the above group may include all devices in the home network.
- the above group may include devices in the home network that can provide control information relay services.
- the embodiments of the present application do not limit this.
- step S732 the smart speaker returns a relay discovery response to the Matter client.
- the relay discovery response may carry information about the smart speaker, such as the node identifier of the smart speaker and the connection capability of the smart speaker.
- step S733 the Matter client queries the target list of the smart speaker to select the smart home device 2 in the target list for control.
- the Matter client can select a smart speaker to connect based on the connection capabilities of the relay device, as a relay device that provides relay services for control information for the smart home device 2.
- step S734 the Matter client sends control information to the smart speaker, and the control information is used to control the business cluster 1 of the smart home device 2.
- the Matter client When the Matter client is outside the home network, the Matter client cannot directly connect to the smart home device 2. The user can send the above control information to the virtual node of the smart speaker through the Matter client.
- step S735 the smart speaker queries the ACL associated with the virtual node and confirms that the Matter client has the permissions required to control the information.
- step S736 the smart speaker sends the above control information to the smart home device 2.
- step S737 after executing the command corresponding to the control information, the smart home device 2 returns a result or response to the smart speaker.
- step S738 the smart speaker returns the result or response to the Matter client.
- Figure 8 is a flow chart of a method for transmitting control information according to another embodiment of the present application.
- the method shown in Figure 8 includes steps S811 to S838.
- the control information relay service configuration phase 810 includes steps S811 to S816.
- step S811 the user obtains the identity of cloud relay 1 on the cloud platform by configuring the device.
- step S812 the cloud platform sends the identification of cloud relay 1 to the configuration device.
- step S813 the user configures the ACL of the smart home device 3 through the configuration device, so that the cloud relay 1 has the permission to access the smart home device 3.
- step S814 the user configures the effective relay cluster of the smart home device 3 through the configuration device to add the cloud relay 1 as an effective relay device.
- the Boolean value corresponding to the attribute named Cloud Relay in the effective relay cluster can be set to "true” to indicate that Cloud Relay 1 has the ability to connect to the cloud platform.
- step S815 the user configures the smart home device 3 to connect to the cloud platform through the configuration device.
- the configuration device can send the address of the cloud platform to the smart home device 3 so that the smart home device 3 can access the cloud platform.
- the smart home device 3 can use a node operational certificate (NOC) to establish a CASE secure connection with the cloud platform.
- NOC node operational certificate
- step S816 the user configures the relay configuration cluster of cloud relay 1 through the configuration device.
- the configuration device can configure the relay configuration cluster of the cloud relay 1 to add the node label of the smart home device 3 in the target list of the relay configuration cluster.
- the configuration device may configure the relay configuration cluster of cloud relay 1 to set the Boolean value of the attribute "relay all nodes” corresponding to cloud relay 1 in the relay configuration cluster to "true”.
- the execution order among the above-mentioned steps S816, S813 and S814 is not limited in the embodiment of the present application.
- the execution order from early to late may be step S813, step S814 and step S816.
- the execution order from early to late may be step S813, step S816 and step S814.
- the control information relay service establishment phase 820 includes steps S821 to S825.
- step S821 the cloud relay 1 obtains the information of the business cluster 1 in the smart home device 3.
- the cloud relay 1 can read the node, endpoint, and cluster information of the smart home device 3. And initiate a subscription request 2 to the business cluster 1 in the smart home device 3 to request to subscribe to the attribute list and command list contained in the business cluster 1. Correspondingly, after the smart home device 3 allows the above-mentioned subscription request 2, the smart home device 3 sends the attribute list and command list contained in the business cluster 1 to the cloud relay 1.
- step S822 cloud relay 1 creates a virtual node.
- the nodes, endpoints, and business clusters of the above virtual nodes are the same as those of the smart home device 3.
- step S823 the cloud relay 1 sends a subscription request 3 to the smart home device 3 to request to subscribe to the ACL of the service cluster 1.
- step S824 after the smart home device 3 allows the subscription, the smart home device 3 sends the ACL of the service cluster 1 to the cloud relay 1.
- step S825 the relay device associates the ACL of service cluster 1 with the virtual node.
- the control information relay service triggering phase 830 includes steps S831 to S838.
- step S831 the Matter client sends a relay discovery request to request the discovery of a relay device that can provide control information relay services for the smart home device 3.
- step S832 cloud relay 1 returns a relay discovery response to the Matter client.
- the relay discovery response may carry information about cloud relay 1, such as the node identifier of cloud relay 1.
- step S833 the Matter client queries the target list of the cloud relay 1 to select the smart home device 3 in the target list for control.
- the Matter client can select the cloud relay 1 for connection based on the relay device's connection capabilities, as a relay device that provides relay services for control information for the smart home device 3.
- step S834 the Matter client sends control information to the cloud relay 1, and the control information is used to control the business cluster 1 of the smart home device 3.
- the Matter client When the Matter client is outside the home network, the Matter client cannot directly connect to the smart home device 3. The user can send the above control information to the virtual node of the cloud relay 1 through the Matter client.
- step S835 cloud relay 1 queries the ACL associated with the virtual node and confirms that the Matter client has the permissions required to control the information.
- step S836 the cloud relay 1 sends the above control information to the smart home device 3.
- step S837 after executing the command corresponding to the control information, the smart home device 3 returns a result or response to the cloud relay 1.
- step S8308 cloud relay 1 returns the result or response to the Matter client.
- Figure 9 is a schematic diagram of a relay device according to an embodiment of the present application.
- the relay device 900 shown in Figure 9 (also known as the "first relay device") includes: a receiving unit 910 and a sending unit 920.
- the receiving unit 910 is configured to receive control information sent by the client device, where the control information is used to control the first service device;
- the sending unit 920 is configured to send the control information to the first service device.
- the first relay device includes a first cluster, and the first cluster is used to configure one or more services that the first relay device can provide a control information relay service.
- the one or more service devices include the first service device.
- the first cluster includes the identity of the one or more service devices, and/or the identity of the interwoven network where the one or more service devices are located.
- the first cluster includes first indication information, the first indication information is used to indicate whether the first relay device is located in the cloud, and/or the first cluster includes Second indication information, the second indication information is used to indicate whether the first relay device can provide control information relay services for all service devices connected to the first relay device.
- the first service device includes a second cluster, the second cluster is used to indicate one or more effective relays that can provide control information relay services for the first service device.
- the one or more effective relay devices include the first relay device.
- the second cluster is used to indicate one or more of the following information of each of the one or more valid relay devices: each of the The connection capability of the relay device, the connection capability of each relay device is used to indicate the network type to which each relay device is connected; the network location indication parameter of each relay device; the network location indication parameter of each relay device The identification of the device; the identification of the interwoven network where each relay device is located.
- the connection capability includes a connection capability to a local area network LAN, and/or a connection capability to a wide area network WAN.
- the network indication parameter of each relay device indicates whether each relay device is located in the cloud.
- the second cluster includes a first request and a first response to the first request, the first request is for the client device to request to query the one or more Valid relay device, the first response is used for the first service device to return the information of the one or more valid relay devices to the client device.
- the first relay device includes a third cluster, and the third cluster is used by the client device to discover whether the first relay device can serve as the first service device. Provide control information relay services.
- the third cluster includes a second request and a second response to the second request, where the second request is used for the client device to request discovery of the first relay. Whether the device can provide a control information relay service for the first service device, and the second response is used to indicate whether the first relay device can provide a control information relay service for the first service device.
- the second response includes at least one of the connection capability of the first relay device, the identity of the first service device, and the identity of the first relay device.
- the receiving unit is further configured to: receive a third request sent by the configuration device, where the third request is used to discover a relay device that can provide control information relay services; the sending A unit further configured to send a third response to the configuration device in response to the third request, where the third response is used to indicate that the first relay device can provide a control information relay service.
- the receiving unit is further configured to receive first configuration information sent by the configuration device, where the first configuration information is used to configure the first relay device to be the first relay device.
- a service device provides control information relay services.
- the first configuration information includes an identification of the first service device.
- the first relay device stores an access control list ACL of the first service device, and the ACL of the first service device is used to record whether the client device controls all The permissions of the first service device.
- the sending unit is further configured to: when it is determined according to the ACL that the client device has the authority to control the first service device, send the request to the service device. Describe control information.
- control information is used to control the first service cluster in the first service device, and the target cluster included in the first relay device is the same as the first service cluster. , the target cluster is located in the virtual node of the first relay device, and the ACL is associated with the virtual node.
- the relay device further includes a generating unit, the generating unit being configured to generate the virtual node.
- the sending unit is configured to send a subscription request to the first service device, where the subscription request is used to request to subscribe to the ACL; in response to the subscription request, the receiving unit , used to receive the ACL sent by the first service device.
- FIG 10 is a schematic diagram of a client device according to an embodiment of the present application.
- the client device 1000 shown in Figure 10 includes a sending unit 1010.
- the sending unit 1010 is configured to send control information to the first service device through the first relay device, where the control information is used to control the first service device.
- the first relay device includes a first cluster, and the first cluster is used to configure one or more control information relay services for the first relay device.
- Service device the one or more service devices include the first service device.
- the first cluster includes the identity of the one or more service devices and/or the identity of the interwoven network where the multiple service devices are located.
- the first cluster includes first indication information, the first indication information is used to indicate whether the first relay device is located in the cloud, and/or the first cluster includes Second indication information, the second indication information is used to indicate whether the first relay device provides control information relay services for all service devices in the network where the first relay device is located.
- the first service device includes a second cluster, the second cluster is used to indicate one or more effective relays that can provide control information relay services for the first service device.
- the one or more effective relay devices include the first relay device.
- the second cluster is used to indicate one or more of the following information of each of the one or more valid relay devices: each of the The connection capability of the relay device, the connection capability of each relay device is used to indicate the network type to which each relay device is connected; the network location indication parameter of each relay device; the network location indication parameter of each relay device The identification of the device; the identification of the interwoven network where each relay device is located.
- the connection capability includes a connection capability to a local area network LAN, and/or a connection capability to a wide area network WAN.
- the network indication parameter of each relay device indicates whether each relay device is located in the cloud.
- the second cluster includes a first request and a first response to the first request, the first request is for the client device to request to query the one or more Valid relay device, the first response is used for the first service device to return information of the one or more valid relay devices to the client device.
- the sending unit is further configured to send the first request to the first service device, where the first request carries third indication information, and the third indication information is Instructing to request an effective relay device whose connection capability is the first connection capability among the one or more effective relay devices; the receiving unit is also configured to receive the first response sent by the first service device, The first response indicates that an effective relay device with the first connection capability among the one or more effective relay devices is the first relay device.
- the client device further includes a processing unit, and the processing unit is further configured to read the second cluster to obtain the one or more valid relay devices.
- the first relay device includes a third cluster, and the third cluster is used by the client device to discover whether the first relay device can serve as the first service device. Provide control information relay services.
- the third cluster includes a second request and a second response to the second request, where the second request is used for the client device to request discovery of the first relay. Whether the device can provide a control information relay service for the first service device, and the second response is used to indicate whether the first relay device can provide a control information relay service for the first service device.
- the second response includes at least one of the connection capabilities of the one or more relay devices, the identity of the first service device, and the identity of the first relay device. kind.
- the first relay device stores an access control list ACL of the first service device, and the ACL of the first service device is used to record whether the client device controls all The permissions of the first service device.
- control information is used to control the first service cluster in the first service device, and the target cluster included in the first relay device is the same as the first service cluster.
- the target service cluster is located at a virtual node of the first relay device, and the ACL is associated with the virtual node.
- FIG 11 is a schematic diagram of a service device according to an embodiment of the present application.
- the service device 1100 shown in Figure 11 includes a receiving unit 1110.
- the receiving unit 1110 is configured to receive control information sent by the client device through the first relay device, where the control information is used to control the first service device.
- the first relay device includes a first cluster, and the first cluster is used to configure one or more control information relay services for the first relay device.
- Service device the one or more service devices include the first service device.
- the first cluster includes the identity of the one or more service devices and/or the identity of the interwoven network where the multiple service devices are located.
- the first cluster includes first indication information, the first indication information is used to indicate whether the first relay device is located in the cloud, and/or the first cluster includes Second indication information, the second indication information is used to indicate whether the first relay device provides control information relay services for all service devices in the network where the first relay device is located.
- the first service device includes a second cluster, the second cluster is used to indicate one or more effective relays that can provide control information relay services for the first service device.
- the one or more effective relay devices include the first relay device.
- the second cluster is used to indicate one or more of the following information of each of the one or more valid relay devices: each of the The connection capability of the relay device, the connection capability of each relay device is used to indicate the network type to which each relay device is connected; the network location indication parameter of each relay device; the network location indication parameter of each relay device The identification of the device; the identification of the interwoven network where each relay device is located.
- the connection capability includes a connection capability to a local area network LAN, and/or a connection capability to a wide area network WAN.
- the network indication parameter of each relay device indicates whether each relay device is located in the cloud.
- the second cluster includes a first request and a first response to the first request, the first request is for the client device to request to query the one or more Valid relay device, the first response is used for the first service device to return information of the one or more valid relay devices to the client device.
- the first service device further includes a first receiving unit, the first receiving unit is configured to: receive the first request sent by the client device, the first The request carries third indication information, and the third indication information is used to indicate requesting an effective relay device whose connection capability is the first connection capability among the one or more effective relay devices; the sending unit is configured to The client device sends the first response, and the first response indicates that among the one or more valid relay devices, the valid relay device with the first connection capability is the first relay device. .
- the first relay device includes a third cluster, and the third cluster is used by the client device to discover whether the first relay device can serve as the first service device. Provide control information relay services.
- the third cluster includes a second request and a second response to the second request, where the second request is used for the client device to request discovery of the first relay. Whether the device can provide a control information relay service for the first service device, and the second response is used to indicate whether the first relay device can provide a control information relay service for the first service device.
- the second response includes at least one of the connection capabilities of the one or more relay devices, the identity of the first service device, and the identity of the first relay device. kind.
- the first relay device stores an access control list ACL of the first service device, and the ACL of the first service device is used to record whether the client device controls all The permissions of the first service device.
- control information is used to control the first service cluster in the first service device, and the target cluster included in the first relay device is the same as the first service cluster. , the target cluster is located in the virtual node of the first relay device, and the ACL is associated with the virtual node.
- the client device further includes a second receiving unit, the second receiving unit is configured to receive a subscription request sent by the first relay device, the subscription request is used to request Subscribe to the ACL; in response to the subscription request, the sending unit is configured to send the ACL to the first relay device.
- Figure 12 is a schematic diagram of a configuration device according to an embodiment of the present application.
- the configuration device 1200 shown in Figure 12 includes a sending unit 1210.
- the sending unit 1210 is configured to send second configuration information to the target device, where the second configuration information is used to configure the first relay device to provide a control information relay service for the first service device, wherein the target device is the The first relay device and the first service device, the control information is used by the client device to control the first service device.
- the sending unit is further configured to send the second configuration information to the first cluster in the first relay device.
- the first relay device includes a first cluster, and the first cluster is used to configure one or more service devices that need to provide control information relay services for the first relay device.
- the one or more The service device includes the first service device.
- the first cluster includes an identity of the one or more service devices and/or an identity of the interwoven network in which the one or more service devices are located.
- the first cluster includes first indication information, the first indication information is used to indicate whether the first relay device is located in the cloud, and/or the first cluster includes Second indication information, the second indication information is used to indicate whether the first relay device provides control information relay services for all service devices in the network where the first relay device is located.
- the first service device includes a second cluster, the second cluster is used to indicate one or more effective relays that can provide control information relay services for the first service device.
- the one or more effective relay devices include the first relay device.
- the second cluster is used to indicate one or more of the following information of each of the one or more valid relay devices: each of the The connection capability of the relay device, the connection capability of each relay device is used to indicate the network type to which each relay device is connected; the network location indication parameter of each relay device; the network location indication parameter of each relay device The identification of the device; the identification of the interwoven network where each relay device is located.
- the connection capability includes a connection capability to a local area network LAN, and/or a connection capability to a wide area network WAN.
- the network indication parameter of each relay device indicates whether each relay device is located in the cloud.
- the second cluster includes a first request and a first response to the first request, the first request is for the client device to request to query the one or more Valid relay device, the first response is used for the first service device to return information of the one or more valid relay devices to the client device.
- the first request is used to carry third indication information
- the third indication information is used to indicate that the connection capability in the one or more effective relay devices is requested to be the first connection capability. valid relay device.
- the target device is the first service device
- the sending unit is configured to send the second configuration information to the second cluster in the first service device.
- the first relay device includes a third cluster, and the third cluster is used by the client device to discover whether the first relay device can serve as the first service device. Provide control information relay services.
- the third cluster includes a second request and a second response to the second request, where the second request is used for the client device to request discovery of the first relay. Whether the device can provide a control information relay service for the first service device, and the second response is used to indicate whether the first relay device can provide a control information relay service for the first service device.
- the second response includes at least one of the connection capabilities of the one or more relay devices, the identity of the first service device, and the identity of the first relay device. kind.
- the target device is the first relay device
- the configuration device includes a receiving unit
- the sending unit is configured to send a third request to the first relay device, so The third request is used to discover a relay device that can provide the control information relay service; in response to the third request, the receiving unit is used to receive a third response sent by the first relay device, so The third response is used to indicate that the first relay device can provide control information relay service.
- the second configuration information includes an identification of the first service device.
- the first relay device stores an access control list ACL of the first service device, and the ACL of the first service device is used to record whether the client device controls all The permissions of the first service device.
- control information is used to control the first service cluster in the first service device, and the target cluster included in the first relay device is the same as the first service cluster.
- the target cluster is located at a virtual node of the first relay device, and the ACL is associated with the virtual node.
- Figure 13 is a schematic structural diagram of a communication device according to an embodiment of the present application.
- the dashed line in Figure 13 indicates that the unit or module is optional.
- the device 1300 can be used to implement the method described in the above method embodiment.
- Device 1300 may be a chip, terminal device or network device.
- Apparatus 1300 may include one or more processors 1310.
- the processor 1310 can support the device 1300 to implement the method described in the foregoing method embodiments.
- the processor 1310 may be a general-purpose processor or a special-purpose processor.
- the processor may be a central processing unit (CPU).
- the processor can also be another general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), or an off-the-shelf programmable gate array (FPGA) Or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA off-the-shelf programmable gate array
- a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
- Apparatus 1300 may also include one or more memories 1320.
- the memory 1320 stores a program, which can be executed by the processor 1310, so that the processor 1310 executes the method described in the foregoing method embodiment.
- the memory 1320 may be independent of the processor 1310 or integrated in the processor 1310.
- Apparatus 1300 may also include a transceiver 1330.
- Processor 1310 may communicate with other devices or chips through transceiver 1330.
- the processor 1310 can transmit and receive data with other devices or chips through the transceiver 1330.
- An embodiment of the present application also provides a computer-readable storage medium for storing a program.
- the computer-readable storage medium can be applied in the terminal or network device provided by the embodiments of the present application, and the program causes the computer to execute the methods performed by the terminal or network device in various embodiments of the present application.
- An embodiment of the present application also provides a computer program product.
- the computer program product includes a program.
- the computer program product can be applied in the terminal or network device provided by the embodiments of the present application, and the program causes the computer to execute the methods performed by the terminal or network device in various embodiments of the present application.
- An embodiment of the present application also provides a computer program.
- the computer program can be applied to the terminal or network device provided by the embodiments of the present application, and the computer program causes the computer to execute the methods performed by the terminal or network device in various embodiments of the present application.
- cluster in the embodiment of the present application can be called a “functional set” in addition to the above introduction, and can also be called a “cluster” or “cluster”.
- the embodiments of this application do not limit the names of the above clusters.
- the "interwoven network” can be understood as an ecological network of the Internet of Things.
- the interwoven network in the embodiment of this application can also be replaced by any ecological network in the future Internet of Things.
- system and “network” may be used interchangeably in this application.
- terms used in this application are only used to explain specific embodiments of the application and are not intended to limit the application.
- the terms “first”, “second”, “third” and “fourth” in the description, claims and drawings of this application are used to distinguish different objects, rather than to describe a specific sequence. .
- the terms “including” and “having” and any variations thereof are intended to cover non-exclusive inclusion.
- the "instruction" mentioned may be a direct instruction, an indirect instruction, or an association relationship.
- a indicates B which can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association between A and B. relation.
- B corresponding to A means that B is associated with A, and B can be determined based on A.
- determining B based on A does not mean determining B only based on A.
- B can also be determined based on A and/or other information.
- the term "correspondence” can mean that there is a direct correspondence or indirect correspondence between the two, or it can also mean that there is an association between the two, or it can also mean indicating and being instructed, configuring and being configured, etc. relation.
- predefinition or “preconfiguration” can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in devices (for example, including terminal devices and network devices).
- devices for example, including terminal devices and network devices.
- predefined can refer to what is defined in the protocol.
- the "protocol” may refer to a standard protocol in the communication field, which may include, for example, LTE protocol, NR protocol, and related protocols applied in future communication systems. This application does not limit this.
- the size of the sequence numbers of the above-mentioned processes does not mean the order of execution.
- the execution order of each process should be determined by its functions and internal logic, and should not be determined by the implementation process of the embodiments of the present application. constitute any limitation.
- the disclosed systems, devices and methods can be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of the units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented.
- the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
- the computer program product includes one or more computer instructions.
- the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
- the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
- the computer-readable storage medium may be any available medium that can be read by a computer or a data storage device such as a server or data center integrated with one or more available media.
- the available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVD)) or semiconductor media (e.g., solid state disks (SSD) )wait.
- magnetic media e.g., floppy disks, hard disks, magnetic tapes
- optical media e.g., digital video discs (DVD)
- semiconductor media e.g., solid state disks (SSD)
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
本申请涉及通信技术领域,并且更为具体地,涉及用于传输控制信息的方法及装置。The present application relates to the field of communication technology, and more specifically, to methods and devices for transmitting control information.
客户端设备可以通过网络向服务设备发送控制信息,以对服务设备进行控制。然而,当客户端设备离开服务设备所在的通信网络(例如,家庭网络)时,客户端设备便无法再对服务设备进行控制,导致用户体验较低。The client device can send control information to the service device through the network to control the service device. However, when the client device leaves the communication network (eg, home network) where the service device is located, the client device can no longer control the service device, resulting in a lower user experience.
发明内容Contents of the invention
本申请提供一种用于传输控制信息的方法、第一中继设备、客户端设备、第一服务设备以及配置设备,以提高用户体验。This application provides a method for transmitting control information, a first relay device, a client device, a first service device and a configuration device to improve user experience.
第一方面,提供了一种用于传输控制信息的方法,包括:第一中继设备接收客户端设备发送的控制信息,所述控制信息用于对所述第一服务设备进行控制;所述第一中继设备向所述第一服务设备发送所述控制信息。In a first aspect, a method for transmitting control information is provided, including: a first relay device receiving control information sent by a client device, the control information being used to control the first service device; The first relay device sends the control information to the first service device.
第二方面,提供一种用于传输控制信息的方法,包括:客户端设备通过第一中继设备向第一服务设备发送控制信息,所述控制信息用于对所述第一服务设备进行控制。A second aspect provides a method for transmitting control information, including: a client device sending control information to a first service device through a first relay device, the control information being used to control the first service device .
第三方面,提供一种用于传输控制信息的方法,包括:第一服务设备通过第一中继设备接收客户端设备发送的控制信息,所述控制信息用于对所述第一服务设备进行控制。In a third aspect, a method for transmitting control information is provided, including: a first service device receiving control information sent by a client device through a first relay device, and the control information is used to transmit control information to the first service device. control.
第四方面,提供一种用于传输控制信息的方法,包括:配置设备向目标设备发送第二配置信息,所述第二配置信息用于配置第一中继设备为第一服务设备提供控制信息中继服务,其中,所述目标设备为所述第一中继设备和所述第一服务设备,所述控制信息用于客户端设备对所述第一服务设备进行控制。In a fourth aspect, a method for transmitting control information is provided, including: a configuration device sends second configuration information to a target device, where the second configuration information is used to configure a first relay device to provide control information for a first service device. Relay service, wherein the target device is the first relay device and the first service device, and the control information is used by the client device to control the first service device.
第五方面,提供一种中继设备(又称“第一中继设备”),包括:接收单元,用于接收客户端设备发送的控制信息,所述控制信息用于对所述第一服务设备进行控制;发送单元,用于向所述第一服务设备发送所述控制信息。In a fifth aspect, a relay device (also known as "first relay device") is provided, including: a receiving unit configured to receive control information sent by a client device, where the control information is used to provide the first service The device performs control; a sending unit is configured to send the control information to the first service device.
第六方面,提供一种客户端设备,包括:发送单元,用于通过第一中继设备向第一服务设备发送控制信息,所述控制信息用于对所述第一服务设备进行控制。A sixth aspect provides a client device, including: a sending unit configured to send control information to a first service device through a first relay device, where the control information is used to control the first service device.
第七方面,提供一种服务设备(又称“第一服务设备”),包括:接收单元,用于通过第一中继设备接收客户端设备发送的控制信息,所述控制信息用于对所述第一服务设备进行控制。In a seventh aspect, a service device (also called "first service device") is provided, including: a receiving unit configured to receive control information sent by a client device through a first relay device, where the control information is used to The first service device is controlled.
第八方面,提供一种配置设备,包括:发送单元,用于向目标设备发送第二配置信息,所述第二配置信息用于配置第一中继设备为第一服务设备提供控制信息中继服务,其中,所述目标设备为所述第一中继设备和所述第一服务设备,所述控制信息用于客户端设备对所述第一服务设备进行控制。In an eighth aspect, a configuration device is provided, including: a sending unit configured to send second configuration information to a target device, where the second configuration information is used to configure a first relay device to provide control information relay for a first service device. Service, wherein the target device is the first relay device and the first service device, and the control information is used by the client device to control the first service device.
第九方面,提供一种中继设备(又称“第一中继设备”),包括处理器、存储器以及通信接口,所述存储器用于存储一个或多个计算机程序,所述处理器用于调用所述存储器中的计算机程序使得所述终端设备执行第一方面的方法中的部分或全部步骤。In a ninth aspect, a relay device (also called "first relay device") is provided, including a processor, a memory, and a communication interface. The memory is used to store one or more computer programs, and the processor is used to call The computer program in the memory causes the terminal device to perform some or all of the steps in the method of the first aspect.
第十方面,提供一种客户端设备,包括处理器、存储器以及通信接口,所述存储器用于存储一个或多个计算机程序,所述处理器用于调用所述存储器中的计算机程序使得所述终端设备执行第二方面的方法中的部分或全部步骤。In a tenth aspect, a client device is provided, including a processor, a memory, and a communication interface. The memory is used to store one or more computer programs. The processor is used to call the computer program in the memory so that the terminal The device performs some or all of the steps of the method of the second aspect.
第十一方面,提供一种服务设备(又称“第一服务设备”),包括处理器、存储器以及通信接口,所述存储器用于存储一个或多个计算机程序,所述处理器用于调用所述存储器中的计算机程序使得所述终端设备执行第三方面的方法中的部分或全部步骤。In an eleventh aspect, a service device (also called "first service device") is provided, including a processor, a memory and a communication interface. The memory is used to store one or more computer programs, and the processor is used to call the The computer program in the memory causes the terminal device to perform some or all of the steps in the method of the third aspect.
第十二方面,提供一种配置设备,包括处理器、存储器以及通信接口,所述存储器用于存储一个或多个计算机程序,所述处理器用于调用所述存储器中的计算机程序使得所述终端设备执行第四方面的方法中的部分或全部步骤。A twelfth aspect, a configuration device is provided, including a processor, a memory and a communication interface, the memory is used to store one or more computer programs, the processor is used to call the computer program in the memory so that the terminal The device performs some or all of the steps in the method of the fourth aspect.
第十三方面,本申请实施例提供了一种通信系统,该系统包括上述的中继设备、客户端设备、服务设备以及配置设备。在另一种可能的设计中,该系统还可以包括本申请实施例提供的方案中与该上述装置进行交互的其他设备。In a thirteenth aspect, embodiments of the present application provide a communication system, which includes the above-mentioned relay device, client device, service device, and configuration device. In another possible design, the system may also include other devices that interact with the above-mentioned device in the solutions provided by the embodiments of the present application.
第十四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序使得终端执行上述各个方面的方法中的部分或全部步骤。In a fourteenth aspect, embodiments of the present application provide a computer-readable storage medium that stores a computer program, and the computer program causes the terminal to perform some or all of the steps in the methods of the above aspects.
第十五方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计 算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使终端执行上述各个方面的方法中的部分或全部步骤。在一些实现方式中,该计算机程序产品可以为一个软件安装包。In a fifteenth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause the terminal to execute the above Some or all of the steps in various aspects of the method. In some implementations, the computer program product can be a software installation package.
第十六方面,本申请实施例提供了一种芯片,该芯片包括存储器和处理器,处理器可以从存储器中调用并运行计算机程序,以实现上述各个方面的方法中所描述的部分或全部步骤。In a sixteenth aspect, embodiments of the present application provide a chip, which includes a memory and a processor. The processor can call and run a computer program from the memory to implement some or all of the steps described in the methods of the above aspects. .
客户端设备可以通过第一中继设备向第一服务设备来发送控制信息,这样,即使客户端设备离开服务设备所在的通信网络时,客户端设备也可以通过第一中继设备向第一服务设备发送控制信息,以对第一服务设备进行控制,以提高用户体验。The client device can send control information to the first service device through the first relay device. In this way, even when the client device leaves the communication network where the service device is located, the client device can send control information to the first service device through the first relay device. The device sends control information to control the first service device to improve user experience.
图1是本申请实施例适用的Matter设备的模型结构。Figure 1 is a model structure of a Matter device applicable to the embodiment of this application.
图2是本申请实施例适用的通信系统的示意图。Figure 2 is a schematic diagram of a communication system applicable to the embodiment of the present application.
图3是代理机制适用的通信系统的示意图。Figure 3 is a schematic diagram of a communication system to which the proxy mechanism is applicable.
图4是本申请实施例的用于传输控制信息的方法的流程图。Figure 4 is a flow chart of a method for transmitting control information according to an embodiment of the present application.
图5是本申请实施例的适用的通信系统的示意图。Figure 5 is a schematic diagram of a communication system applicable to the embodiment of the present application.
图6是本申请实施例的用于传输控制信息的方法的流程图。Figure 6 is a flow chart of a method for transmitting control information according to an embodiment of the present application.
图7是本申请另一实施例的用于传输控制信息的方法的流程图。Figure 7 is a flow chart of a method for transmitting control information according to another embodiment of the present application.
图8是本申请另一实施例的用于传输控制信息的方法的流程图。Figure 8 is a flow chart of a method for transmitting control information according to another embodiment of the present application.
图9是本申请实施例的中继设备的示意图。Figure 9 is a schematic diagram of a relay device according to an embodiment of the present application.
图10是本申请实施例的客户端设备的示意图。Figure 10 is a schematic diagram of a client device according to an embodiment of the present application.
图11是本申请实施例的服务设备的示意图。Figure 11 is a schematic diagram of a service device according to an embodiment of the present application.
图12是本申请实施例的配置设备的示意图。Figure 12 is a schematic diagram of a configuration device according to an embodiment of the present application.
图13是本申请实施例的通信装置的示意性结构图。Figure 13 is a schematic structural diagram of a communication device according to an embodiment of the present application.
下面将结合附图,对本申请中的技术方案进行描述。为了便于理解,下文结合图1至图介绍本申请实施例涉及的术语。需要说明的是,下文以Matter协议的场景为例,介绍本申请实施例涉及的术语,以及本申请实施例的方案。当然,本申请实施例的方案还可以应用于其他物联网协议。The technical solutions in this application will be described below with reference to the accompanying drawings. For ease of understanding, terminology involved in the embodiments of the present application is introduced below with reference to Figures 1 to 1 . It should be noted that the following uses the Matter protocol scenario as an example to introduce the terminology involved in the embodiments of the present application and the solutions of the embodiments of the present application. Of course, the solutions in the embodiments of this application can also be applied to other Internet of Things protocols.
物联网(internet of things,IoT)即“万物相连的互联网”,其是在互联网基础上延伸和扩展的网络,可以通过各种信息传感设备(如射频识别、全球定位系统等)将任何物品与互联网连接起来形成一个巨大的网络,进行信息交换和通信,以实现万物之间的互联互通。在一些实施例中,物联网设备可以是智能家居设备,例如,物联网设备可以包括智能空调、智能冰箱、洗衣机、电饭煲、扫地机器人等设备。在一些实施例中,物联网设备可以是智能监控设备,例如,物联网设备可以包括监控摄像头、温度传感器、声音传感器等。The Internet of things (IoT) is the "Internet where everything is connected". It is a network that is extended and expanded based on the Internet. It can connect any item through various information sensing devices (such as radio frequency identification, global positioning system, etc.) Connected to the Internet to form a huge network for information exchange and communication to achieve interconnection among all things. In some embodiments, IoT devices may be smart home devices. For example, IoT devices may include smart air conditioners, smart refrigerators, washing machines, rice cookers, sweeping robots, and other devices. In some embodiments, the IoT device may be an intelligent monitoring device. For example, the IoT device may include a surveillance camera, a temperature sensor, a sound sensor, etc.
目前,不同厂家可能使用不同的通信协议(也可以称为生态链协议),实现支持该通信协议的物联网设备之间的互联互通,这样可能导致不同厂家生产的物联网设备之间不能通信,不能达到真正的万物互联。At present, different manufacturers may use different communication protocols (also called ecological chain protocols) to achieve interconnection and interoperability between IoT devices that support this communication protocol. This may cause IoT devices produced by different manufacturers to be unable to communicate with each other. The true Internet of Everything cannot be achieved.
基于此,连接标准联盟(connectivity standards alliance,CSA)推出一种物联网应用层技术标准—Matter标准协议,其可以提供基于互联网协议(internet protocol,IP)的智能家居设备的可互操作的应用层解决方案。在一些实施例中,matter标准也可以称为基于IP的互联家居(connected home over IP,CHIP)标准。在一些实施例中,Matter标准可以支持以太网、Wi-Fi和Thread三种底层通信协议,并且可以让不同协议的物联网设备互相通信。Based on this, the Connectivity Standards Alliance (CSA) launched an Internet of Things application layer technology standard—Matter Standard Protocol, which can provide an interoperable application layer for smart home devices based on Internet Protocol (Internet Protocol, IP) solution. In some embodiments, the matter standard may also be called a connected home over IP (CHIP) standard. In some embodiments, the Matter standard can support three underlying communication protocols: Ethernet, Wi-Fi, and Thread, and can allow IoT devices with different protocols to communicate with each other.
Matter设备的模型Matter device model
图1是本申请实施例适用的Matter设备的模型结构。Matter设备的数据模型结构100包括节点(node)110、端点(endpoint)120、群集(cluster)130。Figure 1 is a model structure of a Matter device applicable to the embodiment of this application. The
节点(node)110,封装了网络上可寻址的、唯一的资源,具有一组功能和能力,用户可以清楚地将其视为一个功能整体。通常,节点110可以是数据模型中最高或最外层的一阶元素。或者说,节点110是数据模型最外层唯一的可寻址元素。Node 110 encapsulates an addressable and unique resource on the network and has a set of functions and capabilities that users can clearly view as a functional whole. Typically, node 110 may be the highest or outermost first-order element in the data model. In other words, node 110 is the only addressable element in the outermost layer of the data model.
需要说明的是,一个物理实体(例如,Matter设备)可以支持多个节点110。另外,一个节点可以有多个节点ID,每个节点ID的作用域是一个特定的网络(fabric)。例如,当节点ID被用作交互的目标地址时,指定节点ID作用域的网络就是交互的访问网络。一个节点可以包括一个或多个端点120。端点120是一个实例,它可以是一个服务或虚拟设备,由设备类型指示。每个端点120都符合一个或多个设备类型定义,这些设备类型定义了端点上支持的群集。而群集是在端点上实例化的对象类。It should be noted that one physical entity (for example, Matter device) can support multiple nodes 110 . In addition, a node can have multiple node IDs, and the scope of each node ID is a specific network (fabric). For example, when a node ID is used as the target address for an interaction, the network within the scope of the specified node ID is the access network for the interaction. A node may include one or more endpoints 120. Endpoint 120 is an instance, which can be a service or a virtual device, as indicated by the device type. Each endpoint 120 conforms to one or more device type definitions that define the clusters supported on the endpoint. Whereas a cluster is an object class instantiated on an endpoint.
需要说明的是,在这个体系结构模型中,上述设备类型可以是最高语义元素。设备类型定义了一组端点120的一致性。设备类型为节点110或端点120定义了一组需求。It should be noted that in this architectural model, the above device types can be the highest semantic elements. A device type defines a consistent set of endpoints 120. A device type defines a set of requirements for a node 110 or endpoint 120.
群集130是数据模型的功能构建块元素,因此,群集又可以称为“功能集”。群集规范定义了通过交互相互对应的客户端和服务端。群集130可以被视为接口、服务或对象类,是数据模型中最低的独立功能元素。每个群集130都由一个群集规范定义,该规范定义了群集130的元素,包括属性、事件、命令以及与这些元素交互相关的行为。群集130中的属性、事件、命令和行为是强制性的还是可选的,取决于群集130的定义。Clusters 130 are functional building block elements of the data model, and therefore clusters may also be referred to as "functional sets." The cluster specification defines clients and servers that interact with each other. Cluster 130 can be viewed as an interface, service or object class, which is the lowest independent functional element in the data model. Each cluster 130 is defined by a cluster specification that defines the elements of the cluster 130, including properties, events, commands, and behaviors related to interactions with these elements. Properties, events, commands, and behaviors in cluster 130 are mandatory or optional depending on the definition of cluster 130 .
通常,上述群集可以分为实用程序群集(utility cluster)或应用程序群集(application cluster)两类。实用程序群集不是端点的主要应用程序操作的一部分。它可以用于配置、发现、寻址、诊断、监视设备运行状况、软件更新等。它可能与它的群集对等物有一个临时的关系。在本申请实施例中,实用程序群集可以包括中继配置群集、有效中继群集以及中继发现群集中的一种或多种。Generally, the above clusters can be divided into two categories: utility cluster (utility cluster) or application cluster (application cluster). Utility clusters are not part of the endpoint's primary application operations. It can be used for configuration, discovery, addressing, diagnostics, monitoring device health, software updates, and more. It may have a temporary relationship with its cluster counterpart. In this embodiment of the present application, the utility cluster may include one or more of a relay configuration cluster, an effective relay cluster, and a relay discovery cluster.
应用程序群集(又称“业务群集”)支持端点的主要操作。应用程序群集支持群集的客户端和群集的服务端之间的一个或多个持久应用程序交互。例如,智能电灯中的开关群集(On/Off cluster),该群集的客户端可以向群集的服务端(即,开关群集)发送控制命令,以控制智能电灯的开关。Application clusters (also known as "business clusters") support the primary operations of endpoints. Application clustering supports one or more persistent application interactions between clustered clients and clustered servers. For example, in a switch cluster (On/Off cluster) in a smart light, the client of the cluster can send control commands to the server of the cluster (i.e., switch cluster) to control the switch of the smart light.
群集命令(又称“命令”)是一组数据字段,每个数据类型在客户端和服务端群集实例之间传递,以调用命令接收者的行为。目前,协议中约定,每个命令都可以列在一个表中,该表可以包含命令的数据质量列:标识(ID)、名称(name)、方向(direction)、响应(response)、访问(access)、约束(constraint)一致性(conformance)。相应地,一条命令可以指示一个表中定义的零个或多个字段。每个命令字段定义为表中的一行。A cluster command (also known as a "command") is a set of data fields, each data type, that is passed between client and server cluster instances to invoke the behavior of the command recipient. Currently, the agreement stipulates that each command can be listed in a table, which can contain the data quality columns of the command: identification (ID), name (name), direction (direction), response (response), access (access) ), constraint consistency. Accordingly, a command can indicate zero or more fields defined in a table. Each command field is defined as a row in the table.
属性是群集数据。目前,协议中约定,每个属性可以列在一个表中,包含数据质量列可以包括ID、name、(数据)类型、约束、其他质量、访问、默认(值)和一致性。在一些实现方式中,属性还可以定义其相关的语义和行为。属性可以反映设备的可查询/可设置的状态、配置和能力。在一些情况下,如果没有为属性显式定义特权,则默认的访问特权生效。Properties are cluster data. Currently, it is agreed in the agreement that each attribute can be listed in a table, and the data quality columns can include ID, name, (data) type, constraints, other qualities, access, default (value) and consistency. In some implementations, properties may also define their associated semantics and behavior. Properties can reflect the device's queryable/settable status, configuration, and capabilities. In some cases, if no privileges are explicitly defined for a property, default access privileges take effect.
为了便于理解,下文介绍命令和属性中包含几种常见的数据质量的含义。需要说明的是,本申请实施例中的命令和属性中还可以包含其他数量质量,或者包含上述数据质量中的部分。本申请实施例对此不作限定。For ease of understanding, the following describes the meanings of several common data qualities contained in commands and properties. It should be noted that the commands and attributes in the embodiments of this application may also include other quantitative qualities, or include part of the above-mentioned data qualities. The embodiments of the present application do not limit this.
标识,表示字段的唯一字段ID,或者说,是命令的唯一标识。Identification represents the unique field ID of the field, or in other words, it is the unique identification of the command.
名称,表示字段的唯一名称,或者说,表示命令的名称。Name represents the unique name of the field, or in other words, the name of the command.
类型,表示字段(或者命令)的数据类型。Type, indicating the data type of the field (or command).
方向,通常存在于命令列表中,用于定义命令的传输方向,例如,可以定义为从客户端到服务端。又例如,可以定于为从服务端到客户端。Direction, usually present in the command list, is used to define the transmission direction of the command. For example, it can be defined as from client to server. For another example, it can be determined from the server to the client.
访问权限,用于定义一个元素如何被访问(例如读或写)以及访问该数据需要哪些权限。Access permissions are used to define how an element can be accessed (such as read or write) and what permissions are required to access the data.
在一些实现方式中,访问权限可以包括V,V表示读取访问或调用访问需要视图特权。访问权限还可以包括O,O表示“读访问”、“写访问”或“调用访问”需要操作权限。访问权限还可以包括R,R表示读访问。访问权限还可以包括W,W表示写访问。In some implementations, access rights may include V, where V indicates that read access or call access requires view privileges. Access permissions can also include O, which means "read access", "write access" or "call access" require operation permissions. Access permissions can also include R, which stands for read access. Access permissions can also include W, which represents write access.
响应,通常存在于命令列表中,用于定义命令的响应消息。Response, usually present in the command list, is used to define the response message of the command.
质量,用于定义其他列中没有涉及的其他数据质量。Quality, used to define additional data quality not covered in other columns.
默认,用于定义的默认值。需要说明的是,默认值并不是服务设备返回出厂刷新设置时使用的值。默认值可以指示为数据字段指定的一致性可以是可选的,也可以随时间变化。当实际数据字段值不存在时,可以定义默认值以完成依赖关系。Default, used to define the default value. It should be noted that the default value is not the value used when the service device returns to the factory refresh settings. The default value can indicate that the consistency specified for the data field can be optional or change over time. Default values can be defined to complete the dependency when the actual data field value is not present.
一致性,定义了任何数据模型元素或元素集的可选性和依赖性。Consistency defines the optionality and dependencies of any data model element or set of elements.
通常,此列对属性、命令、事件、枚举以及命令、事件或结构的字段有效。在一些实现方式中,“M”表示对应的命令为基本的强制特性集的一部分。Typically, this column is valid for properties, commands, events, enumerations, and fields of commands, events, or structures. In some implementations, "M" indicates that the corresponding command is part of the basic mandatory feature set.
对于命令而言,客户端到服务端命令的一致性意味着服务器应该识别并支持客户端到服务器的命令,并按照定义生成响应。服务端到客户端命令的一致性意味着服务器应该按照群集行为定义的方式发送命令,例如,响应客户端到服务器的命令。命令的一致性取决于所支持的服务器特性。客户端不应被要求支持可选命令或依赖于可选特性的命令。For commands, client-to-server command consistency means that the server should recognize and support client-to-server commands and generate responses as defined. Server-to-client command consistency means that the server should send commands in a manner defined by cluster behavior, i.e., in response to client-to-server commands. The consistency of the command depends on the supported server features. Clients should not be required to support optional commands or commands that rely on optional features.
约束,包含all和desc。其中,all定义在数值数据类型中表示允许所有值。desc表示约束是在描述部分定义的。Constraints, including all and desc. Among them, all is defined in the numeric data type to allow all values. desc indicates that the constraint is defined in the description section.
范围(range),包含“N/A”表示不适用。Range, including "N/A" means not applicable.
基于Matter协议的通信系统Communication system based on Matter protocol
下文结合图2介绍本申请实施例适用的通信系统。图2所示的通信系统包含Matter客户端210、 Matter服务设备220、配置设备230。需要说明的是,Matter客户端210、Matter服务设备220的数据模型可以为图1所示。The communication system applicable to the embodiment of the present application is introduced below with reference to FIG. 2 . The communication system shown in Figure 2 includes a Matter client 210, a Matter service device 220, and a configuration device 230. It should be noted that the data model of the Matter client 210 and the Matter service device 220 can be as shown in Figure 1 .
配置设备230用于对Matter服务设备220进行配置。在一些实现方式中,配置设备230可以为应用程序(application,APP)或者小程序等。在另一些实现方式中,配置设备230可以安装在终端设备上,其中,终端设备可以是手机、电脑、平板电脑、智能手环、智能手表等,本申请实施例对此并不进行限定。The configuration device 230 is used to configure the Matter service device 220. In some implementations, the configuration device 230 may be an application (application, APP) or applet. In other implementations, the configuration device 230 can be installed on a terminal device, where the terminal device can be a mobile phone, a computer, a tablet, a smart bracelet, a smart watch, etc. This is not limited in the embodiments of the present application.
Matter客户端210为用户侧的客户端,Matter客户端210可以与Matter服务设备220进行通信。在一些实现方式中,Matter客户端210可以向Matter服务设备220发送控制信息,以对Matter服务设备220进行控制。例如当Matter服务设备220为智能空调时,Matter客户端210可以通过向Matter服务设备220发送控制信息,以控制Matter服务设备220的调节温度。The Matter client 210 is a client on the user side, and the Matter client 210 can communicate with the Matter service device 220 . In some implementations, the Matter client 210 can send control information to the Matter service device 220 to control the Matter service device 220 . For example, when the Matter service device 220 is a smart air conditioner, the Matter client 210 can control the temperature adjustment of the Matter service device 220 by sending control information to the Matter service device 220 .
在一些实施例中,上述Matter客户端210可以为应用程序(application,APP)或者小程序等。在另一些实现方式中,Matter客户端210可以安装在终端设备上,其中,终端设备可以是手机、电脑、平板电脑、智能手环、智能手表等,本申请实施例对此并不进行限定。In some embodiments, the above-mentioned Matter client 210 may be an application (application, APP) or applet, etc. In other implementations, the Matter client 210 can be installed on a terminal device, where the terminal device can be a mobile phone, a computer, a tablet, a smart bracelet, a smart watch, etc. This is not limited in the embodiments of the present application.
需要说明的是,上述配置设备230可以与Matter客户端210是相同的APP或小程序,当然,配置设备230可以与Matter客户端210是不同的APP或小程序。本申请实施例对此不作限定。It should be noted that the above configuration device 230 may be the same APP or applet as the Matter client 210. Of course, the configuration device 230 may be a different APP or applet from the Matter client 210. The embodiments of the present application do not limit this.
Matter服务设备220可以指支持matter标准协议的物联网设备。Matter服务设备220可以直接和Matter客户端210进行通信,以便Matter客户端210对Matter服务设备220进行控制。The matter service device 220 may refer to an Internet of Things device that supports the matter standard protocol. The Matter service device 220 can directly communicate with the Matter client 210, so that the Matter client 210 controls the Matter service device 220.
示例性地,当Matter服务设备220为支持Matter标准协议的智能空调时,Matter客户端210可以控制智能空调的开关以及设置空调温度、风速等。当Matter服务设备220为支持matter标准协议的扫地机器人时,Matter客户端210可以控制扫地机器人开始工作或停止工作、控制扫地机器人的工作模式等。For example, when the Matter service device 220 is a smart air conditioner that supports the Matter standard protocol, the Matter client 210 can control the switch of the smart air conditioner and set the air conditioner temperature, wind speed, etc. When the Matter service device 220 is a sweeping robot that supports the matter standard protocol, the Matter client 210 can control the sweeping robot to start or stop working, control the working mode of the sweeping robot, etc.
目前,Matter服务设备220所支持的操控接口主要包含控制(control)、订阅上报(subscribe and report)两类。Currently, the control interfaces supported by the Matter service device 220 mainly include control and subscribe and report.
其中,控制可以理解为可以修改或检索Matter服务设备的一个或多个属性值的一组群集。例如,Matter客户端为智能扬声器,Matter服务设备为智能空调,爱丽丝可以对智能扬声器说“降温”,然后,智能扬声器向智能空调发送降低温度的控制命令。Among them, control can be understood as a group of clusters that can modify or retrieve one or more attribute values of the Matter service device. For example, the Matter client is a smart speaker and the Matter service device is a smart air conditioner. Alice can say "cool down" to the smart speaker, and then the smart speaker sends a control command to lower the temperature to the smart air conditioner.
利用订阅交互模型,定义可以订阅的属性以及订阅的要求,例如触发阈值、报告间隔和持续时间等。例如,Matter客户端为智能扬声器,Matter服务设备为智能空调,爱丽丝爱丽丝可以通过智能扬声器订阅空调传感器测得的室内温度。此时,她可以通过定期接收报告来监测室内温度。Utilize the subscription interaction model to define the properties that can be subscribed and the requirements for subscription, such as trigger thresholds, reporting intervals and durations, etc. For example, the Matter client is a smart speaker, the Matter service device is a smart air conditioner, and Alice can subscribe to the indoor temperature measured by the air conditioner sensor through the smart speaker. At this point, she can monitor the indoor temperature by receiving periodic reports.
为订阅操作提供的代理机制Proxy mechanism provided for subscription operations
在一些情况下(例如,Matter服务设备资源不足),Matter服务设备无法直接处理订阅请求,则可以使用代理机制来帮助Matter服务设备处理请阅请求。也就是说,代理服务可以实现对Matter服务设备中资源进行订阅的代理能力。In some cases (for example, the Matter service device has insufficient resources), the Matter service device cannot directly handle the subscription request, and a proxy mechanism can be used to help the Matter service device process the subscription request. In other words, the proxy service can realize the proxy capability of subscribing to resources in the Matter service device.
参见图3,代理服务通常涉及Matter客户端、源Matter服务设备以及代理设备。其中,源Matter服务设备指作为一组数据真实性原始来源的节点。源Matter服务设备可以充当数据的发布者。Matter客户端指希望订阅某个源Matter服务设备的节点。订阅源代理设备可以将源Matter服务设备的数据“镜像”呈现给Matter客户端,而对于Matter客户端而言,无论其是与代理设备交互还是与源Matter服务设备交互,Matter客户端都无需改变其交互。Referring to Figure 3, proxy services usually involve Matter clients, source Matter service devices, and proxy devices. Among them, the source Matter service device refers to the node that is the original source of a set of data authenticity. The source Matter service device can act as a publisher of data. Matter client refers to the node that wants to subscribe to a source Matter service device. The feed proxy device can "mirror" the data of the source Matter service device to the Matter client, and for the Matter client, no matter whether it interacts with the proxy device or the source Matter service device, the Matter client does not need to change its interaction.
通常,从Matter客户端的角度而言,代理的流程可以包含以下几个过程:发现Matter服务设备需要代理;在网络上找到能够处理其订阅请求的代理;设置代理以订阅Matter服务设备。Generally, from the perspective of the Matter client, the proxy process can include the following processes: discovering that the Matter service device requires a proxy; finding a proxy on the network that can handle its subscription request; setting up the proxy to subscribe to the Matter service device.
在代理设置过程中,Matter服务设备可以通过声明对订阅代理设备类型的支持来表明其作为已经过认证的Matter代理的能力。当配置此类Matter服务设备时,配置设备应识别此能力,并可将需要代理的所有Matter服务设备的节点ID写入代理设备上的代理配置集群。或者,它可以将代理配置为通配符代理所有Matter服务设备,从而无需指定一组特定的节点ID。During the proxy setup process, a Matter service device can indicate its capabilities as a certified Matter proxy by declaring support for the subscribing proxy device type. When configuring such a Matter service device, the configuration device should recognize this capability and can write the node IDs of all Matter service devices that require a proxy to the proxy configuration cluster on the proxy device. Alternatively, it can be configured to wildcard proxy all Matter service devices, eliminating the need to specify a specific set of node IDs.
此外,配置设备可以将新添加代理的节点ID写入需要代理的Matter服务设备上的有效代理群集。该集群可以存储给定设备的候选代理的静态列表。通常,对于支持该群集的Matter服务设备需要编写此配置。In addition, the configuration device can write the node ID of the newly added agent to a valid agent cluster on the Matter service device that requires the agent. The cluster can store a static list of candidate agents for a given device. Typically, this configuration needs to be written for the Matter service device that supports the cluster.
在一些情况下,订阅可能会被拒绝。由于没有任何先验启发可以用来推断Matter服务设备是否需要代理。因此,当Matter服务设备无法处理更多增量订阅时,即需要代理时。当Matter客户端尝试订阅Matter服务设备时才会发现订阅无法被处理,并返回StatusResponse,其中会包含指示Matter服务设备的资源被耗尽的IM状态代码,此时,Matter服务设备无法处理订阅请求。In some cases, subscriptions may be declined. Since there is no a priori heuristic that can be used to infer whether the Matter service device requires a proxy. So when the Matter service appliance cannot handle more incremental subscriptions, that's when a proxy is needed. When the Matter client tries to subscribe to the Matter service device, it will find that the subscription cannot be processed and return a StatusResponse, which will contain an IM status code indicating that the resources of the Matter service device have been exhausted. At this time, the Matter service device cannot process the subscription request.
在收到IM状态代码后,Matter客户端可以在Matter服务设备上调用获取有效代理请求(get valid proxies request)。作为响应,Matter客户端可以将接收Matter服务设备发送的获取有效代理响应(get valid proxies response),其中,获取有效代理响应包含有效代理的节点ID。After receiving the IM status code, the Matter client can call get valid proxies request on the Matter service device. In response, the Matter client can receive a get valid proxies response (get valid proxies response) sent by the Matter service device, where the get valid proxies response contains the node ID of the valid proxy.
在代理发现的过程中,在Matter客户端接收到有效代理列表后,Matter客户端可以尝试发现能够代理其订阅请求的有效代理。在一些实现方式中,Matter客户端可以将代理发现请求作为组播消息发送给全部代理所在的组。需要说明的是,在传输此消息之前,Matter客户端应立即订阅映射到该组的IPv6地址,以接收代理发送的响应(即代理发现响应)。During the proxy discovery process, after the Matter client receives the valid proxy list, the Matter client can try to discover a valid proxy that can proxy its subscription request. In some implementations, the Matter client can send the agent discovery request as a multicast message to the group to which all agents belong. It should be noted that before transmitting this message, the Matter client should immediately subscribe to the IPv6 address mapped to this group to receive the response sent by the agent (i.e., the agent discovery response).
在代理响应的过程中,代理只有在能够处理订阅请求时才应发送代理发现响应。需要说明的是,无论代理其当前是否已订阅Matter服务设备,代理都可以发送代理发现响应。另外,该代理发现响应可以包含指示代理处理订阅能力的元数据。During the proxy response process, the proxy should only send a proxy discovery response if it is able to handle the subscription request. It should be noted that the agent can send an agent discovery response regardless of whether it is currently subscribed to the Matter service device. Additionally, the broker discovery response may contain metadata indicating the broker's ability to handle subscriptions.
需要说明的是,代理发现响应应作为与原始请求(代理发现请求)完全独立、不相关的信息发送。Matter客户端可以基于两条消息中的Matter服务设备的源节点标识(SourceNodeId)将两者关联起来。It should be noted that the proxy discovery response should be sent as completely independent and unrelated information from the original request (the proxy discovery request). The Matter client can associate the two messages based on the source node identifier (SourceNodeId) of the Matter service device in the two messages.
在代理选择过程中,Matter客户端应等待代理扫描周期来汇总所有响应,并过滤收到的响应集。During the proxy selection process, Matter clients should wait for a proxy scan cycle to aggregate all responses, and filter the set of responses received.
在代理订阅的过程中,Matter客户端可以订阅它选择的代理。相应地,代理可以执行以下两项操作之一:选项1:如果没有其他代理已订阅Matter服务设备,则代理将直接订阅Matter服务设备:选项2:如果已经有另一个代理订阅该Matter服务设备,则所选代理将订阅该代理。During the proxy subscription process, a Matter client can subscribe to the proxy of its choice. Accordingly, the agent can do one of two things: Option 1: If no other agent is already subscribed to the Matter service device, the agent will subscribe directly to the Matter service device: Option 2: If there is already another agent subscribed to the Matter service device, The selected agent will be subscribed to the agent.
需要说明的是,代理不尝试直接订阅Matter服务设备,因为代理不知道Matter服务设备是否有任何可用的可用插槽来支持订阅,如果这样做,可能会导致订阅失败。It should be noted that the agent does not attempt to subscribe to the Matter service device directly because the agent does not know whether the Matter service device has any available slots to support the subscription. If it does so, it may cause the subscription to fail.
在一些实现方式中,代理可以通过“嗅探”其他代理发出的“代理发现响应”命令消息,在这两个选项之间进行选择。这允许候选代理确定是否有另一个代理已订阅到Matter服务设备。In some implementations, an agent can choose between these two options by "sniffing" "Agent Discovery Response" command messages issued by other agents. This allows the candidate agent to determine if there is another agent subscribed to the Matter service device.
无论Matter客户端对给定Matter服务设备的订阅请求数量如何,代理只能对该Matter服务设备进行一次订阅。这对于确保在Matter客户端不再具有对Matter服务设备的访问权限,并且随后的状态更改将不可用于该Matter客户端的情况下及时执行ACL是必要的。Regardless of the number of subscription requests from a Matter client to a given Matter service device, the proxy can only subscribe to that Matter service device once. This is necessary to ensure timely execution of the ACL in the event that a Matter client no longer has access to the Matter service device, and subsequent state changes will not be available to that Matter client.
在一些情况下,Matter服务设备可能会驱逐一些Matter客户端的订阅。例如,Matter服务设备可能无法处理另一个订阅,Matter服务设备会取消非代理订阅,以便为代理订阅腾出空间。In some cases, the Matter service appliance may evict some Matter client subscriptions. For example, the Matter service appliance may not be able to handle another subscription, and the Matter service appliance cancels the non-agent subscription to make room for the agent subscription.
下文结合表1至表8介绍上述的代理机制中涉及的群集中的命令和属性。需要说明的是,命令和属性一些数据质量列(例如,访问、一致性、默认、约束等)的含义在上文已经详细说明,为了简洁,下文不再赘述。表1至表3示出了代理发现群集中包含的命令和属性。The commands and attributes in the cluster involved in the above proxy mechanism are introduced below in conjunction with Table 1 to Table 8. It should be noted that the meanings of some data quality columns of commands and attributes (for example, access, consistency, default, constraints, etc.) have been explained in detail above. For the sake of brevity, they will not be repeated below. Tables 1 through 3 show the commands and properties included in the agent discovery cluster.
表1Table 1
参见表1,代理发现群集包含的命令包括代理发现请求以及代理发现响应。其中,代理发现请求的传输方向为从客户端到服务设备,代理发现请求的响应为代理发现响应。代理发现响应的传输方向为从服务端向客户端传输,代理发现响应的响应为无。Referring to Table 1, the commands included in the agent discovery cluster include agent discovery requests and agent discovery responses. The transmission direction of the proxy discovery request is from the client to the service device, and the response to the proxy discovery request is the proxy discovery response. The transmission direction of the proxy discovery response is from the server to the client, and the response of the proxy discovery response is None.
表2Table 2
参见表2,示出了发现代理请求中可以携带的参数。其中,字段“SourceNodeId”为源Matter服务设备的节点ID。字段“NumAttributePaths”表示Matter客户端要订阅的属性路径数量。字段“NumEventPaths”表示Matter客户端要订阅的事件路径数量。Refer to Table 2, which shows the parameters that can be carried in the discovery proxy request. Among them, the field "SourceNodeId" is the node ID of the source Matter service device. The field "NumAttributePaths" indicates the number of attribute paths to be subscribed by the Matter client. The field "NumEventPaths" indicates the number of event paths to be subscribed by the Matter client.
表3table 3
参见表3,示出了发现代理响应中可以携带的参数。其中,字段“SourceNodeId”源Matter服务设备的节点ID。字段“NumHopsToSource”表示代理订阅到源Matter服务设备的跳数,当代理直接订阅源Matter服务设备时,该值为1。字段“AvailableCapacitys”表示代理还剩余多少空间来支持对群集属性的订阅。Refer to Table 3, which shows the parameters that can be carried in the discovery agent response. Among them, the field "SourceNodeId" is the node ID of the source Matter service device. The field "NumHopsToSource" indicates the number of hops that the agent subscribes to the source Matter service device. When the agent directly subscribes to the source Matter service device, the value is 1. The field "AvailableCapacitys" indicates how much space the broker has left to support subscriptions to cluster properties.
表4至表5示出了代理配置群集中包含的属性。代理配置群集提供了一种方法,让具有代理功能 的设备被告知它将代理的一组节点(Matter服务设备)。Tables 4-5 show the properties included in the agent configuration cluster. Proxy configuration clustering provides a way for a proxy-capable device to be informed of the set of nodes (Matter service devices) it will proxy to.
表4Table 4
参见表4,代理配置群集包含的属性为配置列表,配置列表可以以列表的形式存储代理可以提供订阅请求的代理服务的Matter服务设备的节点标识。Referring to Table 4, the properties included in the proxy configuration cluster are configuration lists. The configuration list can store in the form of a list the node identification of the Matter service device that the proxy can provide proxy services for subscription requests.
表5table 5
参见表5,列表的数据类型具体可以包括以下属性,属性“FabricIndex”表示代理和Matter服务设备所在的交织网络的标识符。属性“SourceList”是所代理的源Matter服务设备列表。属性Referring to Table 5, the data type of the list may specifically include the following attributes. The attribute "FabricIndex" represents the identifier of the interwoven network where the proxy and Matter service devices are located. The attribute "SourceList" is the list of source Matter service devices being proxied. Attributes
“ProxyAllNodes”为真表示代理可以代理全部节点,此时应忽略SourceList属性。属性“ProxyAllNodes”为假表示代理不可以代理全部节点,只能代理SourceList中的源Matter服务设备。"ProxyAllNodes" being true means that the proxy can proxy all nodes, in which case the SourceList attribute should be ignored. If the attribute "ProxyAllNodes" is false, it means that the proxy cannot proxy all nodes, but can only proxy the source Matter service devices in the SourceList.
表6至表8示出了有效代理群集包含的属性和命令。有效代理群集为Matter服务设备提供了一种方法,可以告知Matter服务设备的有效代理。Tables 6 through 8 show the properties and commands contained by a valid agent cluster. Valid proxy clustering provides a way for Matter serving devices to inform the Matter serving device of valid proxies.
表6Table 6
参见表6,有效代理群集包含的属性名称为有效代理列表(ValidProxyList),其数据类型为列表。Referring to Table 6, the attribute name contained in the valid proxy cluster is valid proxy list (ValidProxyList), and its data type is list.
表7Table 7
参见表7,属性“FabricIndex”Matter服务设备和代理所在交织网络的标识符。属性“NodeID”表示代理订阅Matter服务设备的有效代理的节点ID。See Table 7, attribute "FabricIndex" Matter The identifier of the interwoven network where the service device and agent are located. The attribute "NodeID" represents the node ID of the effective agent that the agent subscribes to the Matter service device.
表8Table 8
参见表8,有效代理群集包含的命令包括获取有效代理请求以及获取有效代理响应。其中,获取有效代理请求的传输方向为从客户端到服务设备,获取有效代理请求的响应为获取有效代理响应。获取有效代理响应的传输方向为从服务端向客户端传输,获取有效代理响应为无。Referring to Table 8, the commands included in the effective proxy cluster include obtaining effective proxy requests and obtaining effective proxy responses. Among them, the transmission direction of obtaining a valid proxy request is from the client to the service device, and the response to obtaining a valid proxy request is obtaining a valid proxy response. The transmission direction to obtain a valid proxy response is from the server to the client, and the transmission direction to obtain a valid proxy response is None.
在目前的物联网协议(例如,Matter协议)中,客户端可以通过通信网络向服务设备发送控制,以对服务设备(又称“第一服务设备”)进行控制。然而,当客户端设备离开服务设备所在的通信网络(例如,家庭网络)时,客户端设备便无法再对服务设备进行控制,导致用户体验较低。In the current Internet of Things protocol (for example, Matter protocol), the client can send control to the service device through the communication network to control the service device (also known as the "first service device"). However, when the client device leaves the communication network (eg, home network) where the service device is located, the client device can no longer control the service device, resulting in a lower user experience.
为了避免上述问题,本申请实施例提供一种用于传输控制信息的方案,客户端设备可以通过第一中继设备向第一服务设备发送控制信息,或者说,第一中继设备可以提供控制信息中继服务,使得客户端设备发送的控制信息可以通过控制信息中继服务提供的中继链路发送到第一服务设备。这样,即使客户端设备离开第一服务设备所在的通信网络时,客户端设备也可以通过第一中继设备向第一服务设备发送控制信息,以对第一服务设备进行控制,以提高用户体验。In order to avoid the above problems, embodiments of the present application provide a solution for transmitting control information. The client device can send control information to the first service device through the first relay device, or in other words, the first relay device can provide control The information relay service enables the control information sent by the client device to be sent to the first service device through the relay link provided by the control information relay service. In this way, even when the client device leaves the communication network where the first service device is located, the client device can send control information to the first service device through the first relay device to control the first service device to improve user experience. .
下文结合图4介绍本申请实施例的用于传输控制信息的方法的流程。图4所示的方法包括步骤S410和步骤S420。The flow of the method for transmitting control information according to the embodiment of the present application is introduced below with reference to FIG. 4 . The method shown in Figure 4 includes step S410 and step S420.
在步骤S410中,客户端设备向第一中继设备发送控制信息。In step S410, the client device sends control information to the first relay device.
在步骤S420中,第一中继设备将控制信息发送给第一服务设备。In step S420, the first relay device sends the control information to the first service device.
如上文所介绍,第一中继设备可以将客户端设备发送的控制信息,发送给第一服务设备,因此,第一中继设备通常具有连接网络的能力。或者说,第一中继设备可以是任意具有网络连接能力的设备。例如,路由器、智能音箱等。As introduced above, the first relay device can send the control information sent by the client device to the first service device. Therefore, the first relay device usually has the ability to connect to the network. In other words, the first relay device can be any device with network connection capabilities. For example, routers, smart speakers, etc.
为了便于理解本申请实施例的方法,下文先介绍建立第一中继设备为第一服务设备提供控制信息的控制信息中继服务的阶段,即控制信息中继服务的建立阶段。In order to facilitate understanding of the method of the embodiment of the present application, the following will first introduce the stage of establishing the control information relay service in which the first relay device provides control information for the first service device, that is, the establishment stage of the control information relay service.
为了进一步提高用户体验,当第一中继设备接收到控制信息后,可以及时向客户端设备反馈第一服务设备针对控制信息给出的响应结果,可以在第一中继设备中设置控制信息控制的第一服务设备中的业务群集。也就是说,假设控制信息用于对第一服务设备中的第一业务群集进行控制,那么第一中继设备可以包括目标群集,目标群集与第一业务群集相同。In order to further improve the user experience, when the first relay device receives the control information, it can promptly feed back the response result given by the first service device in response to the control information to the client device. The control information control can be set in the first relay device. The first service device in the business cluster. That is, assuming that the control information is used to control the first service cluster in the first service device, the first relay device may include a target cluster, and the target cluster is the same as the first service cluster.
上述目标群集与第一业务群集相同,可以理解为,目标群集所支持的控制功能和第一业务群集所支持的控制功能相同。在一些实现方式中,目标群集所包含的业务列表以及命令列表与第一业务群集所包含的业务列表以及命令列表相同。The above target cluster is the same as the first business cluster. It can be understood that the control functions supported by the target cluster are the same as the control functions supported by the first business cluster. In some implementations, the service list and command list included in the target cluster are the same as the service list and command list included in the first service cluster.
配置上述目标群集和第一业务群集相同的实现方式有很多种,例如,第一中继设备可以读取第一服务设备的节点、端点以及业务群集信息,再通过向第一服务设备发送订阅请求,以请求订阅上述第一业务群集的业务列表以及命令列表。相应地,在第一服务设备允许后,第一服务设备可以向第一中继设备发送第一业务群集的业务列表以及命令列表。There are many ways to configure the above target cluster to be the same as the first service cluster. For example, the first relay device can read the node, endpoint and business cluster information of the first service device, and then send a subscription request to the first service device. , to request to subscribe to the business list and command list of the above-mentioned first business cluster. Correspondingly, after the first service device allows it, the first service device may send the service list and the command list of the first service cluster to the first relay device.
为了提高第一中继设备的资源利用率,第一中继设备可以为多个服务设备提供控制信息中继服务。因此,第一中继设备中可以设置有多个服务设备的群集。在一些实现方式中,第一中继设备中可以设置有多个虚拟节点,每个虚拟节点对应一个服务设备的节点,且虚拟节点中设置有与服务设备节点中业务群集功能相同的群集。也就是说,在第一中继设备中的目标群集可以设置在虚拟节点中,并且该虚拟节点是与第一群集所在的节点对应的,或者说,虚拟节点中包含的端点与第一群集所在的端点相同。在另一些实现方式中,上述虚拟节点可以是由第一中继设备生成的。In order to improve resource utilization of the first relay device, the first relay device may provide control information relay services for multiple service devices. Therefore, a cluster of multiple service devices may be set in the first relay device. In some implementations, the first relay device may be provided with multiple virtual nodes, each virtual node corresponds to a node of the service device, and the virtual node is provided with a cluster having the same function as the service cluster in the service device node. That is to say, the target cluster in the first relay device can be set in a virtual node, and the virtual node corresponds to the node where the first cluster is located, or in other words, the endpoint contained in the virtual node is the same as the endpoint where the first cluster is located. The endpoints are the same. In other implementations, the above virtual node may be generated by the first relay device.
参见图5,假设中继设备1可以为服务设备1与服务设备2提供控制信息中继服务,并且,中继设备1为服务设备1提供的控制信息中继服务是针对服务设备1中业务群集1的,业务群集1在服务设备1中位于节点1中的端点EP1内。另外,中继设备1为服务设备2提供的控制信息中继服务是针对服务设备2中业务群集2的,业务群集2在服务设备2中位于节点0中的端点EP1内。Referring to Figure 5, it is assumed that relay device 1 can provide control information relay services for service device 1 and service device 2, and the control information relay service provided by relay device 1 for service device 1 is for the business cluster in service device 1. 1, business cluster 1 is located in endpoint EP1 in node 1 in service device 1. In addition, the control information relay service provided by the relay device 1 to the service device 2 is for the service cluster 2 in the service device 2. The service cluster 2 is located in the endpoint EP1 in the node 0 in the service device 2.
因此,中继设备1中包括两个虚拟节点,虚拟节点0和虚拟节点1。其中,虚拟节点0对应服务设备1,且虚拟节点0中设置有节点1中的端点EP1以及目标群集1,其中,目标群集1可以与业务群集1相同。虚拟节点1对应服务设备2,且虚拟节点1中设置有节点0中的端点EP1以及目标群集2,其中,目标群集2可以与业务群集2相同。Therefore, the relay device 1 includes two virtual nodes, virtual node 0 and virtual node 1. The virtual node 0 corresponds to the service device 1, and the virtual node 0 is configured with the endpoint EP1 in the node 1 and the target cluster 1, where the target cluster 1 can be the same as the business cluster 1. Virtual node 1 corresponds to service device 2, and virtual node 1 is provided with endpoint EP1 in node 0 and target cluster 2, where target cluster 2 can be the same as business cluster 2.
在一些场景中,不同的客户端设备访问第一服务设备的权限可能不同,因此,为了避免第一中继设备将不具有控制权限的客户端设备发送的控制信息中继到第一服务设备,即提供不必要的控制信息中继服务,可以为第一中继设备的虚拟节点设置与第一群集所在节点相同的控制权限。In some scenarios, different client devices may have different permissions to access the first service device. Therefore, in order to prevent the first relay device from relaying control information sent by a client device that does not have control permissions to the first service device, That is, unnecessary control information relay services are provided, and the same control authority as that of the node where the first cluster is located can be set for the virtual node of the first relay device.
在一些实现方式中,第一中继可以存储有第一服务设备的ACL,其中,第一服务设备的ACL用于记录客户端设备是否有控制第一服务设备的权限,或者说,第一服务设备的ACL用于记录客户端设备是否有通过上述控制信息控制第一服务设备所需的权限。并且,可以将第一中继设备的虚拟节点关联该ACL。相应地,在步骤S420之前,上述方法还包括:第一中继设备查询ACL,确定客户端设备具有控制第一服务设备的权限。或者说,在根据ACL确定客户端设备具有控制第一服务设备的权限的情况下,第一中继设备向服务设备发送控制信息。In some implementations, the first relay may store an ACL of the first service device, where the ACL of the first service device is used to record whether the client device has the authority to control the first service device, or in other words, the first service device The ACL of the device is used to record whether the client device has the permissions required to control the first service device through the above control information. Furthermore, the virtual node of the first relay device can be associated with the ACL. Accordingly, before step S420, the above method further includes: the first relay device queries the ACL to determine that the client device has the authority to control the first service device. In other words, when it is determined based on the ACL that the client device has the authority to control the first service device, the first relay device sends control information to the service device.
上述第一中继设备获取第一服务设备的ACL的方式有很多中,例如,第一中继设备可以向第一服务设备发送订阅请求,以请求订阅第一服务设备的ACL。相应地,在第一服务设备允许后,第一服务设备会向第一中继设备发送第一服务设备的ACL。There are many ways for the first relay device to obtain the ACL of the first service device. For example, the first relay device may send a subscription request to the first service device to request to subscribe to the ACL of the first service device. Correspondingly, after the first service device allows it, the first service device sends the ACL of the first service device to the first relay device.
上文结合图4介绍了第一中继设备提供控制信息中继服务的过程,并图5介绍了本申请实施例的控制信息中继服务的建立阶段。下文结合图介绍本申请实施例的控制信息中继服务的配置阶段以及控制信息中继服务的触发阶段。通常,控制信息中继服务的配置阶段可以在控制信息中继服务的建立阶段之前执行,控制信息中继服务的触发阶段可以在控制信息中继服务的建立阶段之后执行。The above describes the process of the first relay device providing the control information relay service with reference to Figure 4, and Figure 5 introduces the establishment phase of the control information relay service according to the embodiment of the present application. The following describes the configuration phase of the control information relay service and the triggering phase of the control information relay service in the embodiment of the present application with reference to the figures. Generally, the configuration phase of the control information relay service may be executed before the establishment phase of the control information relay service, and the triggering phase of the control information relay service may be executed after the establishment phase of the control information relay service.
在控制信息中继服务的配置阶段,用户可以通过配置设备来对第一中继设备进行配置,例如,配置设备可以向第一中继设备发送第一配置信息,来配置第一中继设备为第一服务设备提供控制信息中继服务,在一些实现方式中,第一配置信息可以包括第一服务设备的标识。In the configuration phase of the control information relay service, the user can configure the first relay device through the configuration device. For example, the configuration device can send the first configuration information to the first relay device to configure the first relay device as The first service device provides a control information relay service. In some implementations, the first configuration information may include an identification of the first service device.
相应地,为了给配置设备提供的配置接口,可以在第一中继设备中设置第一群集,其中,第一群集用于为第一中继设备配置需要提供控制信息中继服务的一个或多个服务设备,其中,一个或多个服务设备包括第一服务设备。因此,上述第一群集又可以称为“中继配置群集(relay configuration cluster)”。Correspondingly, in order to provide a configuration interface for the configuration device, a first cluster may be set in the first relay device, where the first cluster is used to configure one or more devices that need to provide control information relay services for the first relay device. service devices, wherein one or more service devices include a first service device. Therefore, the above-mentioned first cluster can also be called "relay configuration cluster (relay configuration cluster)".
在一些实现方式中,可以在中继配置群集中以列表的方式记录第一中继设备可以提供控制信息中继服务的服务设备。例如,列表可以称为“目标列表”,并且在该目标列表中记录有第一中继设备可以提供控制信息中继服务的全部服务设备的节点标识(node ID)。In some implementations, service devices that the first relay device can provide control information relay services may be recorded in a list in the relay configuration cluster. For example, the list may be called a "target list", and the node IDs of all service devices that the first relay device can provide control information relay services are recorded in the target list.
上述中继配置群集可以包括一个或多个服务设备所在的交织网络的标识,以便用户在配置第一中继设备可以提供控制信息中继服务的服务设备时,可以选择与第一中继设备位于相同交织网络的服务 设备。The above-mentioned relay configuration cluster may include the identification of the interwoven network where one or more service devices are located, so that when configuring the service device that the first relay device can provide control information relay services, the user can choose to be located in the same location as the first relay device. Service equipment on the same interwoven network.
需要说明的是,由于第一中继设备需要与服务设备进行通信,也就是说,第一中继设备与服务设备通常位于同一个交织网络中,因此,上述交织网络的标识也可以理解为是服务设备所在的交织网络的标识。It should be noted that since the first relay device needs to communicate with the service device, that is to say, the first relay device and the service device are usually located in the same interwoven network. Therefore, the above identification of the interwoven network can also be understood as The identification of the interwoven network where the service device is located.
通常,位于云端的中继设备可以提供的控制信息中继服务的范围较广泛,因此,中继配置群集包括第一指示信息,来指示第一中继设备是否位于云端,以便用户更加合理的配置第一中继设备可以提供控制信息中继服务的服务设备。在一些实现方式中,第一指示信息指示第一中继设备是否位于云端时,第一指示信息可以通过布尔值来指示。例如,当布尔值为真时,第一指示信息指示第一中继设备运行在云平台上。当布尔值为假时,第一指示信息指示第一中继设备不运行在云平台上。当然,本申请实施例中,第一指示信息还可以通过比特图来指示第一中继设备是否运行在云平台上。本申请实施例对此不作限定。Generally, a relay device located in the cloud can provide a wide range of control information relay services. Therefore, the relay configuration cluster includes first indication information to indicate whether the first relay device is located in the cloud, so that the user can configure it more reasonably. The first relay device may provide a service device that controls information relay service. In some implementations, when the first indication information indicates whether the first relay device is located in the cloud, the first indication information may be indicated by a Boolean value. For example, when the Boolean value is true, the first indication information indicates that the first relay device runs on the cloud platform. When the Boolean value is false, the first indication information indicates that the first relay device does not run on the cloud platform. Of course, in this embodiment of the present application, the first indication information may also indicate whether the first relay device is running on the cloud platform through a bitmap. The embodiments of the present application do not limit this.
另外,还有一种中继设备的中继能力较强,可以为网络中的全部服务设备提供控制信息中继服务,因此,中继配置群集包括第二指示信息,其中,第二指示信息用于指示第一中继设备是否可以为第一中继设备所在的网络中的全部服务设备提供控制信息中继服务,以便用户更加合理的配置第一中继设备可以提供控制信息中继服务的服务设备。在一些实现方式中,第二指示信息可以通过布尔值来指示第一中继设备是否可以为网络中的全部服务设备提供控制信息中继服务。例如,当布尔值为真时,第二指示信息指示第一中继设备可以为网络中的全部服务设备提供控制信息中继服务。当布尔值为假时,第二指示信息指示第一中继设备不可以为网络中的全部服务设备提供控制信息中继服务。当然,本申请实施例中,第二指示信息还可以通过比特图来指示第一中继设备可以为网络中的全部服务设备提供控制信息中继服务。本申请实施例对此不作限定。In addition, there is a relay device with strong relay capability that can provide control information relay services for all service devices in the network. Therefore, the relay configuration cluster includes second indication information, where the second indication information is used to Indicates whether the first relay device can provide control information relay services for all service devices in the network where the first relay device is located, so that the user can more reasonably configure service devices where the first relay device can provide control information relay services. . In some implementations, the second indication information may use a Boolean value to indicate whether the first relay device can provide control information relay services for all service devices in the network. For example, when the Boolean value is true, the second indication information indicates that the first relay device can provide control information relay services for all service devices in the network. When the Boolean value is false, the second indication information indicates that the first relay device cannot provide control information relay services for all service devices in the network. Of course, in this embodiment of the present application, the second indication information may also indicate through a bitmap that the first relay device can provide control information relay services for all service devices in the network. The embodiments of the present application do not limit this.
需要说明的是,如果第二指示信息指示第一中继设备可以为网络中的全部服务设备提供控制信息中继服务,此时,中继配置群集中的目标列表失效。否则,如果第二指示信息指示第一中继设备不可以为网络中的全部服务设备提供控制信息中继服务,此时,中继配置群集中的目标列表有效,即,第一中继设备仅可以为目标列表中的服务设备提供控制信息中继服务。It should be noted that if the second indication information indicates that the first relay device can provide control information relay services for all service devices in the network, at this time, the target list in the relay configuration cluster becomes invalid. Otherwise, if the second indication information indicates that the first relay device cannot provide control information relay services for all service devices in the network, at this time, the target list in the relay configuration cluster is valid, that is, the first relay device can only Provides control information relay services for service devices in the target list.
另外,如上文所述,通常位于云端的中继设备可以提供控制信息中继服务的范围比较广,因此,上述第二指示信息可以与第一指示信息结合使用,也就是说,上述第一指示信息可以通过第二指示信息表示,即可以通过第二指示信息来指示第一中继设备是否位于云端。例如,第二指示信息指示第一中继设备可以为网络中的全部服务设备提供控制信息中继服务时,第一中继设备同时也是位于云端的中继设备。第二指示信息指示第一中继设备不可以为网络中的全部服务设备提供控制信息中继服务时,第一中继设备同时也不是位于云端的中继设备。In addition, as mentioned above, relay devices usually located in the cloud can provide a wide range of control information relay services. Therefore, the above-mentioned second indication information can be used in conjunction with the first indication information. That is to say, the above-mentioned first indication information The information may be represented by the second indication information, that is, whether the first relay device is located in the cloud may be indicated by the second indication information. For example, when the second indication information indicates that the first relay device can provide control information relay services for all service devices in the network, the first relay device is also a relay device located in the cloud. When the second indication information indicates that the first relay device cannot provide control information relay services for all service devices in the network, the first relay device is not a relay device located in the cloud at the same time.
为了便于理解,下文结合表9和表10,以中继设备0中的中继配置群集为例介绍中继配置群集包含的属性。需要说明的是,表9和表10中属性包含的数据质量列(例如,访问、一致性、默认、约束等)的含义在上文已经详细说明,为了简洁,下文不再赘述。For ease of understanding, the following uses Table 9 and Table 10 to introduce the attributes included in the relay configuration cluster, taking the relay configuration cluster in relay device 0 as an example. It should be noted that the meanings of the data quality columns (for example, access, consistency, default, constraints, etc.) included in the attributes in Tables 9 and 10 have been explained in detail above, and for the sake of brevity, they will not be repeated below.
表9Table 9
参见表9,中继配置群集可以包括属性的标识(ID)、属性的名称(name)、属性的类型(type)、属性的范围(range)、属性的质量(quality)、属性的访问(access)、属性的默认值(default)以及属性的一致性(conformance)。Referring to Table 9, the relay configuration cluster can include the identification of the attribute (ID), the name of the attribute (name), the type of the attribute (type), the range of the attribute (range), the quality of the attribute (quality), and the access of the attribute (access). ), the default value of the attribute (default), and the conformance of the attribute (conformance).
其中,属性的标识0用于标识中继配置群集中的属性0;属性0的名称为配置列表;属性0的类型为以结构体呈现的列表;属性0的范围为全部(all);属性0的质量为无(none),属性0的访问为RW;属性0的默认值为空;属性的一致性为M。Among them, attribute ID 0 is used to identify attribute 0 in the relay configuration cluster; the name of attribute 0 is the configuration list; the type of attribute 0 is a list presented in a structure; the scope of attribute 0 is all (all); attribute 0 The quality of is none (none), the access of attribute 0 is RW; the default value of attribute 0 is empty; the consistency of the attribute is M.
表10Table 10
表10示出了以结构体呈现的列表中包含的信息。参见表10,结构体中包含的信息包括属性的标识、属性的名称、属性的类型、属性的范围、属性的质量、属性的访问、属性的默认值以及属性的一致性。Table 10 shows the information contained in the list presented as a structure. Referring to Table 10, the information contained in the structure includes the identification of the attribute, the name of the attribute, the type of the attribute, the scope of the attribute, the quality of the attribute, access to the attribute, the default value of the attribute and the consistency of the attribute.
其中,属性标识0对应的属性的名称为中继设备0所接入的交织网络的标识。该属性的类型为交织网络的索引(fabric-idx)。The name of the attribute corresponding to attribute identifier 0 is the identifier of the interwoven network to which relay device 0 is connected. The type of this attribute is the fabric-idx.
属性标识1对应的属性的名称为中继全部节点(relay all nodes),用于指示中继设备0是否可以为网络中的全部服务设备提供控制信息中继服务,该属性的类型为布尔值(bool)。通常,布尔值为“真”时,表示中继设备0可以为网络中的全部服务设备提供控制信息中继服务。布尔值为“假”时,表示中继设备0不能为网络中的全部服务设备提供控制信息中继服务。The name of the attribute corresponding to attribute identification 1 is relay all nodes, which is used to indicate whether relay device 0 can provide control information relay services for all service devices in the network. The type of this attribute is Boolean ( bool). Generally, when the Boolean value is "true", it means that relay device 0 can provide control information relay services for all service devices in the network. When the Boolean value is "false", it means that relay device 0 cannot provide control information relay services for all service devices in the network.
属性标识2对应的属性的属性名称为目标列表,目标列表的类型为包含节点标识的列表,其中,节点标识用于指示中继设备可以提供控制信息中继服务的服务设备。The attribute name of the attribute corresponding to attribute identifier 2 is a target list, and the type of the target list is a list containing a node identifier, where the node identifier is used to indicate that the relay device can provide a service device with a control information relay service.
需要说明的是,当属性“中继全部节点”的布尔值为真时,中继设备0可以为网络中的全部服务设备提供控制信息中继服务,此时,属性“目标列表”为无效的属性,或者说可以忽略。当属性“中继全部节点”的布尔值为假时,中继设备0不可以为网络中的全部服务设备提供控制信息中继服务,此时,属性“目标列表”为有效的属性,也就是说,中继设备0只能为目标列表中包含的节点标识对应的服务设备提供控制信息中继服务。It should be noted that when the Boolean value of the attribute "Relay All Nodes" is true, relay device 0 can provide control information relay services for all service devices in the network. At this time, the attribute "Target List" is invalid. attribute, or can be ignored. When the Boolean value of the attribute "Relay All Nodes" is false, relay device 0 cannot provide control information relay services for all service devices in the network. At this time, the attribute "Target List" is a valid attribute, that is to say , relay device 0 can only provide control information relay services for the service device corresponding to the node ID included in the target list.
上文介绍了第一中继设备可以通过第一群集为提供配置接口。但是,在一些情况下,用户可能还不知道网络中那些设备可以提供控制信息中继服务,因此,在用户通过配置设备对第一中继设备进行配置之前,用户需要获知网络中可以提供控制信息中继服务的中继设备。The above describes that the first relay device can provide a configuration interface through the first cluster. However, in some cases, the user may not yet know which devices in the network can provide control information relay services. Therefore, before the user configures the first relay device through the configuration device, the user needs to know that the network can provide control information. Relay equipment for relay services.
在本申请实例中,为了用户可以获取网络中可以提供控制信息中继服务的中继设备,可以预先将网络中可以提供控制信息中继服务的中继设备划分为一个中继组,这样,用户可以通过配置设备向中继组以组播消息的方式发送第三请求以请求发现网络中的中继设备,或者说,第三请求用于发现能够提供控制信息中继服务的中继设备。相应地,中继组内的中继设备在接收到第三请求后,可以向配置设备返回针对第三请求的第三响应,以告知配置设备可以提供控制信息中继服务。在一些实现方式中,上述第三响应中可以携带中继设备的节点标识。In the example of this application, in order for users to obtain relay devices that can provide control information relay services in the network, the relay devices that can provide control information relay services in the network can be divided into a relay group in advance. In this way, the user The configuration device may send a third request to the relay group in the form of a multicast message to request discovery of relay devices in the network, or in other words, the third request is used to discover relay devices that can provide control information relay services. Correspondingly, after receiving the third request, the relay device in the relay group may return a third response to the third request to the configuration device to inform the configuration device that the control information relay service can be provided. In some implementations, the above third response may carry the node identification of the relay device.
通常,不同中继设备具有不同的连接能力。例如,有的中继设备可以与局域网(local area network,LAN)连接,有的中继设备可以与广域网(wide area network,WAN)连接,有的中继设备可以位于云端。因此,为了提高用户获取的中继设备的精准性,用户可以在第三请求中携带指示信息1(又称“第四指示信息”),指示信息1用于指示请求发现的中继设备的连接能力(例如,第二连接能力)。相应地,中继组中满足该连接能力的中继设备才可以向配置设备发送第三响应。Typically, different relay devices have different connectivity capabilities. For example, some relay devices can be connected to the local area network (LAN), some relay devices can be connected to the wide area network (WAN), and some relay devices can be located in the cloud. Therefore, in order to improve the accuracy of the relay device obtained by the user, the user can carry indication information 1 (also known as "fourth indication information") in the third request. The indication information 1 is used to indicate the connection of the relay device requested to be discovered. capabilities (e.g., secondary connectivity capabilities). Correspondingly, only the relay device in the relay group that meets the connection capability can send the third response to the configuration device.
在一些实现方式中,上述第三响应中可以携带指示中继设备的连接能力的指示信息。在另一些实现方式中,可以仅配置满足该连接能力的中继设备才可以向配置设备发送第三响应,此时,第三响应中也可以不携带上述指示信息。In some implementations, the above third response may carry indication information indicating the connection capability of the relay device. In other implementations, only relay devices that are configured to meet the connection capability may send the third response to the configuration device. In this case, the third response may not carry the above indication information.
例如,配置设备向中继组发送的第三请求用于请求具有WAN连接能力的中继设备,此时,中继组中仅具有LAN连接能力的中继设备不可以向配置设备发送第三响应,中继组中具有WAN连接能力的中继设备(例如,路由器)可以向配置设备发送第三响应。For example, the third request sent by the configuration device to the relay group is used to request a relay device with WAN connection capability. At this time, the relay device in the relay group that only has LAN connection capability cannot send the third response to the configuration device. , a relay device (for example, a router) with WAN connection capability in the relay group may send a third response to the configuration device.
需要说明的是,用户可以通过待控制的第一服务设备所在的网络,来确定第三请求中请求发现的中继设备的连接能力。例如,第一服务设备所在的网络为LAN,那么,第三请求中的指示信息1指示请求发现具有LAN连接能力的中继设备。It should be noted that the user can determine the connection capabilities of the relay device requested to be discovered in the third request through the network where the first service device to be controlled is located. For example, if the network where the first service device is located is a LAN, then the indication information 1 in the third request indicates a request to discover a relay device with LAN connection capabilities.
如上文所述,不同的中继设备具有不同的连接能力。上述具有LAN连接能力的中继设备可以理解为具有私网连接能力的中继设备,例如,智能音箱。通常,来说此类中继设备只能为局域网中的服务设备提供控制信息中继服务。As mentioned above, different relay devices have different connectivity capabilities. The above-mentioned relay device with LAN connection capability can be understood as a relay device with private network connection capability, such as a smart speaker. Generally speaking, this type of relay device can only provide control information relay services for service devices in the local area network.
上述具有WAN连接能力的中继设备可以理解为具有外网或公网连接能力的中继设备,例如,路由器。通常,来说此类中继设备可以连接第一服务设备所在的某一家庭网络以及外网,但是,此类中继设备可能无法为位于多个家庭网络内的服务设备提供控制信息中继服务。例如,假设路由器1位于家庭网络1中,可以为家庭网络1中的服务设备1提供控制信息中继服务。但是,对于位于家庭网络2中的服务设备2,路由器1则无法为服务设备2提供控制信息中继服务。The above-mentioned relay device with WAN connection capability can be understood as a relay device with external network or public network connection capability, such as a router. Generally speaking, such relay devices can connect to a home network where the first service device is located and an external network. However, such relay devices may not be able to provide control information relay services for service devices located in multiple home networks. . For example, assuming that router 1 is located in home network 1, it can provide control information relay service for service device 1 in home network 1. However, for the service device 2 located in the home network 2, the router 1 cannot provide the control information relay service for the service device 2.
上述位于云端中继设备(或者说运行在云平台上的中继设备)可以理解为是云端的一个虚拟设备。通常,来说此类中继设备可以连接云端上的部分或全部服务设备,对于此类中继设备而言,无需考虑云端的多个服务设备是否位于不同的家庭网络,位于云端的中继设备都可以提供控制信息中继服务。The above-mentioned relay device located in the cloud (or the relay device running on the cloud platform) can be understood as a virtual device in the cloud. Generally speaking, such relay devices can connect to some or all service devices on the cloud. For such relay devices, there is no need to consider whether multiple service devices in the cloud are located in different home networks. Relay devices located in the cloud All can provide control information relay services.
上文介绍了在控制信息中继服务的配置阶段,配置设备为第一中继设备的配置过程。相应地,配置设备还需要对第一服务设备进行配置。下文介绍配置设备对第一服务设备的配置过程。The above describes the configuration process of configuring the device as the first relay device in the configuration phase of the control information relay service. Correspondingly, the configuration device also needs to configure the first service device. The following describes the configuration process of the first service device by the configuration device.
在控制信息中继服务的配置阶段,用户可以通过配置设备来对第一服务设备进行配置。在一些实现方式中,配置设备可以向第一服务设备发送配置信息(又称“第二配置信息”),来为第一服务设备配置可以提供控制信息中继服务的中继设备,或者说,通过第二配置信息用于配置第一中继设备为第一服务设备提供控制信息中继服务。相应地,为了给配置设备提供的配置接口,可以在第一服务设备中设置第二群集,其中,第二群集用于指示能够为第一服务设备提供控制信息中继服务的一个或多个有效中继 设备,一个或多个有效中继设备包括第一中继设备。因此,上述第二群集又可以称为“有效中继群集(valid relay cluster)”。In the configuration phase of the control information relay service, the user can configure the first service device by configuring the device. In some implementations, the configuration device can send configuration information (also called "second configuration information") to the first service device to configure a relay device that can provide control information relay services for the first service device, or in other words, The second configuration information is used to configure the first relay device to provide the control information relay service for the first service device. Correspondingly, in order to provide a configuration interface for the configuration device, a second cluster can be set in the first service device, where the second cluster is used to indicate one or more valid ones that can provide the control information relay service for the first service device. The relay device, one or more effective relay devices includes the first relay device. Therefore, the above-mentioned second cluster can also be called a "valid relay cluster".
在一些实现方式中,可以在有效中继群集中以列表的方式记录可以为第一服务设备提供控制信息中继服务的有效中继设备。例如,列表可以称为“有效中继列表”,并且在该有效中继列表中记录有有效中继设备的节点标识(node ID)。In some implementations, effective relay devices that can provide control information relay services for the first service device may be recorded in a list in the effective relay cluster. For example, the list may be called a "valid relay list", and the node ID of the valid relay device is recorded in the valid relay list.
为了便于用户在为第一服务设备配置有效中继设备时,可以选择与第一服务设备位于相同交织网络的中继设备,上述有效中继群集可以包括第一服务设备所在的交织网络的标识。In order to facilitate the user to select a relay device located in the same interwoven network as the first service device when configuring an effective relay device for the first service device, the above-mentioned effective relay cluster may include an identifier of the interwoven network where the first service device is located.
需要说明的是,由于有效中继设备需要与第一服务设备进行通信,因此,有效中继设备与第一服务设备通常位于同一个交织网络中,因此,上述第一服务设备所在的交织网络的标识也可以理解为是有效中继设备所在的交织网络的标识。It should be noted that since the effective relay device needs to communicate with the first service device, the effective relay device and the first service device are usually located in the same interwoven network. Therefore, the interwoven network where the above-mentioned first service device is located The identifier can also be understood as the identifier of the interwoven network where the effective relay device is located.
如上文所述,不同的中继设备可能具有不同的连接能力,因此,还可以有效中继群集记录一个或多个有效中继设备中每个中继设备的连接能力(connectivity),每个中继设备的连接能力用于指示每个中继设备连接的网络类型,其中,网络可以理解为包括LAN、WAN等网络。As mentioned above, different relay devices may have different connectivity capabilities. Therefore, the effective relay cluster can also record the connectivity (connectivity) of each relay device in one or more effective relay devices, and each The connection capability of the relay device is used to indicate the type of network to which each relay device is connected, where the network can be understood to include networks such as LAN and WAN.
为了便于理解,下文结合表11和表12,以服务设备1中的有效中继群集为例介绍有效中继群集包含的属性。需要说明的是,表11和表12中属性包含的数据质量列(例如,访问、一致性、默认、约束等)的含义在上文已经详细说明,为了简洁,下文不再赘述。For ease of understanding, the following uses Table 11 and Table 12 to introduce the attributes contained in an effective relay cluster, taking the effective relay cluster in service device 1 as an example. It should be noted that the meanings of the data quality columns (for example, access, consistency, default, constraints, etc.) included in the attributes in Table 11 and Table 12 have been explained in detail above, and for the sake of brevity, they will not be repeated below.
表11Table 11
参见表11,有效中继群集可以包括属性的标识、属性的名称、属性的类型、属性的范围、属性的质量、属性的访问、属性的默认值以及属性的一致性。Referring to Table 11, a valid relay cluster may include the identity of the attribute, the name of the attribute, the type of the attribute, the scope of the attribute, the quality of the attribute, the access to the attribute, the default value of the attribute, and the consistency of the attribute.
其中,属性的标识0用于标识有效中继群集中的属性0;属性0的名称为有效中继列表;属性0的类型为以结构体呈现的有效中继列表;属性0的范围为N/A;属性0的质量为无(none),属性0的访问为RW;属性0的默认值为空;属性0的一致性为M。Among them, the identifier 0 of the attribute is used to identify the attribute 0 in the effective relay cluster; the name of the attribute 0 is the effective relay list; the type of the attribute 0 is the effective relay list presented in the structure; the scope of the attribute 0 is N/ A; the quality of attribute 0 is none (none), the access of attribute 0 is RW; the default value of attribute 0 is empty; the consistency of attribute 0 is M.
表12Table 12
表12示出了以结构体呈现的有效中继列表中包含的信息。参见表12,结构体中包含的信息包括属性的标识、属性的名称、属性的类型、属性的范围、属性的质量、属性的访问、属性的默认值以及属性的一致性。Table 12 shows the information contained in the valid relay list presented as a structure. Referring to Table 12, the information contained in the structure includes the identification of the attribute, the name of the attribute, the type of the attribute, the scope of the attribute, the quality of the attribute, access to the attribute, the default value of the attribute and the consistency of the attribute.
其中,属性标识0对应的属性的名称为中继设备0所接入的交织网络的标识。该属性的类型为交织网络索引(fabric-idx)。The name of the attribute corresponding to attribute identifier 0 is the identifier of the interwoven network to which relay device 0 is connected. The type of this attribute is fabric-idx.
需要说明的是,由于第一服务设备需要与有效中继设备进行通信,也就是说,第一服务设备与有效中继设备位于同一个网络中,因此,上述标识也可以理解为是有效中继设备所在的交织网络的标识。It should be noted that since the first service device needs to communicate with the effective relay device, that is to say, the first service device and the effective relay device are located in the same network, therefore, the above identification can also be understood as an effective relay. The identification of the interwoven network on which the device is located.
属性标识1对应的属性的名称为节点标识,用于指示可以为第一服务设备提供控制信息中继服务的有效中继设备,该属性的类型为有效中继设备的节点索引(node-idx)。The name of the attribute corresponding to attribute identification 1 is node identification, which is used to indicate a valid relay device that can provide control information relay services for the first service device. The type of this attribute is the node index (node-idx) of the valid relay device. .
属性标识2对应的属性的属性名称为连接能力,连接能力的类型为8比特的比特图,用于指示每个有效中继设备的连接能力。例如,8比特的比特位图中每位比特可以指示对应的有效中继设备的连接能力,其中,BIT(0)表示对应的有效中继设备具有LAN的连接能力,BIT(1)表示对应的有效中继设备具有WAN的连接能力,BIT(2)表示对应的有效中继设备具有云平台的连接能力(或者说,运行在云平台上)。The attribute name of the attribute corresponding to attribute identification 2 is connection capability, and the type of connection capability is an 8-bit bitmap used to indicate the connection capability of each valid relay device. For example, each bit in the 8-bit bitmap can indicate the connection capability of the corresponding effective relay device, where BIT(0) indicates that the corresponding effective relay device has the connection capability of LAN, and BIT(1) indicates that the corresponding effective relay device has the connection capability of LAN. The effective relay device has WAN connection capabilities, and BIT(2) indicates that the corresponding effective relay device has the connection capabilities of the cloud platform (or, in other words, runs on the cloud platform).
需要说明的是,对于一个有效中继设备而言,可能具有多种连接能力。例如,当有效中继设备为路由器时,路由器的连接能力可以包括具有LAN和WAN的连接能力。当然,有些有效中继设备也可以仅具有一种连接能力,本申请实施例对此不作限定。It should be noted that an effective relay device may have multiple connection capabilities. For example, when the effective relay device is a router, the router's connection capabilities may include LAN and WAN connection capabilities. Of course, some effective relay devices may also have only one connection capability, which is not limited in the embodiments of the present application.
在本申请实施例中,上述表示有效中继设备的连接能力的比特位图还可以是其他位数的,例如,4位等。另外,在对另一些实现方式中,还可以使用其他方式表示有效中继设备的连接能力。In this embodiment of the present application, the above-mentioned bitmap representing the connection capability of the effective relay device may also have other number of bits, for example, 4 bits, etc. In addition, in other implementations, other methods may be used to represent the connection capabilities of effective relay devices.
相应地,用户通过配置设备获取到有效中继设备后,可以将有效中继设备的节点标识上述有效中继群集中的有效中继设备列表中。另外,在添加的过程中,还可以将有效中继设备的连接能力记录在属性2连接能力中。例如,假设有效中继设备为路由器,并且路由器的连接能力为具有LAN和WAN的连接能力,那么可以在路由器对应的连接能力中存储00000011,并通过第7位上的比特值1表示路由器具有LAN的连接能力,通过第8位上的比特值1表示路由器具有WAN的连接能力。Correspondingly, after the user obtains the effective relay device by configuring the device, the user can identify the node of the effective relay device in the effective relay device list in the above-mentioned effective relay cluster. In addition, during the adding process, the connection capability of the effective relay device can also be recorded in the attribute 2 connection capability. For example, assuming that the effective relay device is a router, and the router's connection capability is to have LAN and WAN connection capabilities, then 00000011 can be stored in the router's corresponding connection capability, and the bit value 1 on bit 7 indicates that the router has LAN The connection capability, the bit value 1 in bit 8 indicates that the router has WAN connection capability.
如上文所述,位于云端的中继设备通常具有较大范围的连接能力,或者说,可以连接到较多数量的服务设备,因此,为了便于用户选择中继设备,还可以直接在有效中继群集中指示中继设备是否位于云端。或者说,有效中继群集中还可以包含对应的中继设备的网络位置指示参数,其中,网络位置指示参数用于指示中继设备是否位于云端。As mentioned above, relay devices located in the cloud usually have a wider range of connection capabilities, or can be connected to a larger number of service devices. Therefore, in order to facilitate users to select relay devices, they can also directly Indicates whether the relay device is in the cloud or not. In other words, the effective relay cluster may also include a network location indication parameter of the corresponding relay device, where the network location indication parameter is used to indicate whether the relay device is located in the cloud.
表13示出了有效中继结构体的另一种实现方式。需要说明的是,表13和表12共有的部分(例如,交织网络的标识属性和节点标识属性)功能含义相同,为了简洁,下文不再赘述。Table 13 shows another implementation of a valid relay structure. It should be noted that the parts common to Table 13 and Table 12 (for example, the identification attributes and node identification attributes of the interwoven network) have the same functions and meanings. For the sake of simplicity, they will not be described again below.
表13Table 13
属性标识3对应的属性的属性名称为云端中继(Is cloud relay),云端中继的类型为布尔值,用于指示对应的有效中继设备是否运行在云平台上。例如,布尔值为“真”时,说明对应的有效中继设备运行在云平台上,或者说为云端中继。布尔值为“假”时,说明对应的有效中继设备不运行在云平台上,或者说不为云端中继。其中,属性标识3可以作为上文“网络位置指示参数”的一个实例。The attribute name of the attribute corresponding to attribute identification 3 is cloud relay (Is cloud relay), and the type of cloud relay is a Boolean value, which is used to indicate whether the corresponding valid relay device is running on the cloud platform. For example, when the Boolean value is "true", it means that the corresponding effective relay device runs on the cloud platform, or is a cloud relay. When the Boolean value is "false", it means that the corresponding valid relay device does not run on the cloud platform, or is not a cloud relay. Among them, attribute identifier 3 can be used as an example of the above "network location indication parameter".
另外,配置设备还需要配置第一服务设备的ACL,使得第一中继设备可以访问第一服务设备。In addition, the configuration device also needs to configure the ACL of the first service device so that the first relay device can access the first service device.
上文结合表9和表13介绍了控制信息中继服务的配置阶段,下文结合表14至表17介绍控制信息中继服务的触发阶段。The configuration phase of the control information relay service is introduced above in conjunction with Table 9 and Table 13, and the triggering phase of the control information relay service is introduced below in conjunction with Tables 14 to 17.
在第一中继设备为第一服务设备提供控制信息中继服务之前,客户端设备通常需要选取为第一服务设备提供控制信息的控制信息中继服务的中继设备,来触发控制信息中继服务,因此可以称为“控制信息中继服务触发阶段”。在本申请实施例中,提供了两种选择控制信息中继服务的方式,下文将分别介绍这两种触发控制信息中继服务的方式。Before the first relay device provides the control information relay service for the first service device, the client device usually needs to select a relay device that provides the control information relay service for the first service device to trigger the control information relay. service, so it can be called the "control information relay service triggering phase". In the embodiment of this application, two methods of selecting the control information relay service are provided. These two methods of triggering the control information relay service will be introduced below.
选择方式一,客户端设备可以从第一服务设备处获取可以提供控制信息中继服务的中继设备(即上文中的有效中继设备),来触发控制信息中继服务。In option one, the client device can obtain a relay device that can provide the control information relay service (ie, the effective relay device above) from the first service device to trigger the control information relay service.
在一些实现方式中,为了支持上述客户端设备的查询需求,有效中继群集可以支持第一请求以及针对第一请求的第一响应。其中,第一请求用于客户端设备请求查询一个或多个有效中继设备,因此,第一请求又可以称为“获取有效中继请求(get valid relays request)”第一响应用于第一服务设备向客户端设备返回一个或多个有效中继设备的信息,因此,第一响应又可以称为“获取有效中继响应(get valid relays response)”。In some implementations, in order to support the above query requirements of the client device, the active relay cluster may support the first request and the first response to the first request. Among them, the first request is used for the client device to request to query one or more valid relay devices. Therefore, the first request can also be called "get valid relays request (get valid relays request)" and the first response is used for the first The service device returns information about one or more valid relay devices to the client device. Therefore, the first response can also be called "get valid relays response".
为了便于理解,下文结合表14示出有效中继群集中支持的上述第一请求以及第一响应的相关内容。需要说明的是,表14中命令包含的数据质量列(例如,访问、一致性、默认、约束等)的含义在上文已经详细说明,为了简洁,下文不再赘述。For ease of understanding, the relevant content of the above-mentioned first request and first response supported in the effective relay cluster is shown below in conjunction with Table 14. It should be noted that the meanings of the data quality columns (for example, access, consistency, default, constraints, etc.) included in the commands in Table 14 have been explained in detail above, and for the sake of brevity, they will not be repeated below.
表14Table 14
参见表14,第一请求以及第一响应可以包括命令的标识、命令的名称、命令的方向(direction)、命令的响应(response)、命令的访问以及命令的一致性。Referring to Table 14, the first request and the first response may include the identification of the command, the name of the command, the direction of the command, the response of the command, the access of the command, and the consistency of the command.
其中,命令标识0对应的命令的名称为获取有效中继请求。获取有效中继请求的方向是由有效中继群集的客户端(client)(例如,客户端设备)发送给有效中继群集的服务端(server)(例如,服务设备)的。获取有效中继请求的响应为获取有效中继响应。Among them, the name of the command corresponding to command identifier 0 is to obtain a valid relay request. The direction of obtaining a valid relay request is sent by a client (for example, a client device) of the valid relay cluster to a server (for example, a service device) of the valid relay cluster. The response to the Get Valid Relay request is Get Valid Relay Response.
命令标识1对应的命令的名称为获取有效中继响应。获取有效中继响应的方向是由有效中继群集的服务端发送给有效中继群集的客户端的。获取有效中继响应的响应为无。The name of the command corresponding to command identifier 1 is to obtain a valid relay response. The direction to obtain a valid relay response is sent by the server of the valid relay cluster to the client of the valid relay cluster. The response to getting a valid relay response is None.
如上文介绍,不同中继设备具有不同的连接能力。因此,为了提高用户获取的中继设备的精准性,用户可以在获取有效中继请求中携带指示信息2(又称“第三指示信息”),指示信息2用于指示请求的有效中继设备的连接能力。相应地,有效中继群集中记录的有效中继设备中满足该连接能力的有效中继设备才可以向配置设备发送获取有效中继响应。As introduced above, different relay devices have different connection capabilities. Therefore, in order to improve the accuracy of the relay device obtained by the user, the user can carry indication information 2 (also known as "third indication information") in the request to obtain a valid relay. The indication information 2 is used to indicate the valid relay device of the request. connection capabilities. Correspondingly, only the effective relay devices that meet the connection capability among the effective relay devices recorded in the effective relay cluster can send the obtain effective relay response to the configuration device.
在一些实现方式中,上述获取有效中继响应中可以携带指示有效中继设备的连接能力的指示信息。在另一些实现方式中,可以仅配置满足该连接能力的有效中继设备才可以向配置设备发送获取有效中继响应,此时,获取有效中继响应中也可以不携带上述指示信息。In some implementations, the above-mentioned response for obtaining a valid relay may carry indication information indicating the connection capability of the valid relay device. In other implementations, only valid relay devices that meet the connection capability may be configured to send the Get Valid Relay response to the configuration device. In this case, the Get Valid Relay response may not carry the above indication information.
例如,客户端设备向第一服务设备发送的获取有效中继请求用于请求具有WAN连接能力的中继设备,此时,第一服务设备向客户端设备发送的获取有效中继响应中仅携带具有WAN连接能力的有效中 继设备的信息(例如,节点标识)。For example, the obtain valid relay request sent by the client device to the first service device is used to request a relay device with WAN connection capability. At this time, the obtain valid relay response sent by the first service device to the client device only carries Information about valid relay devices with WAN connectivity capabilities (e.g., node ID).
在另一些实现方式中,客户端设备可以直接读取有效中继群集中记录的有效中继设备的信息,来选择可以为第一服务设备提供控制信息中继服务的中继设备。In other implementations, the client device can directly read the information of the effective relay devices recorded in the effective relay cluster to select a relay device that can provide the control information relay service for the first service device.
需要说明的是,上述有效中继设备的信息可以包括有效中继群集中记录的全部或部分信息,例如,可以包括有效中继设备的节点标识,有效中继设备的连接能力等。It should be noted that the above information about the effective relay device may include all or part of the information recorded in the effective relay cluster. For example, it may include the node identification of the effective relay device, the connection capability of the effective relay device, etc.
通常,在一些情况下(例如,选择的中继设备故障),为了便于用户通过客户端设备改变为第一服务设备提供控制信息中继服务的中继设备,客户端设备可以存储第一服务设备的有效中继设备的信息。Generally, in some cases (for example, the selected relay device fails), in order to facilitate the user to change the relay device that provides the control information relay service for the first service device through the client device, the client device can store the first service device Information about valid relay devices.
选择方式二、客户端设备可以从第一中继设备处获取第一中继设备可以提供控制信息中继服务的服务设备,来触发控制信息中继服务。Selection method 2: The client device can obtain from the first relay device a service device that the first relay device can provide the control information relay service to trigger the control information relay service.
在一些实现方式中,为了支持客户端设备发现中继设备的需求,可以在第一中继设备中设置第三群集,第三群集支持的命令可以供客户端设备发现第一中继设备是否能够能够为所述第一服务设备提供控制信息中继服务。因此,上述第三群集又可以称为“中继发现群集(relay discovery cluster)”。In some implementations, in order to support the client device's need to discover the relay device, a third cluster can be set up in the first relay device. The commands supported by the third cluster can be used by the client device to discover whether the first relay device can A control information relay service can be provided for the first service device. Therefore, the above third cluster can also be called "relay discovery cluster (relay discovery cluster)".
中继发现群集支持的命令可以包括第二请求以及针对第二请求的第二响应。其中,第二请求用于客户端设备请求发现第一中继设备是否能够为第一服务设备提供控制信息中继服务,因此,第二请求可以称为“中继发现请求(relay discover request)”。第二响应用于指示第一中继设备是否能够为第一服务设备提供控制信息中继服务,因此,第二响应可以称为“中继发现响应(relay discover response)”。在一些实现方式中,上述中继发现响应中还可以携带第一中继设备的连接能力、第一服务设备的标识、第一中继设备的标识中的至少一种。The command supported by the relay discovery cluster may include a second request and a second response to the second request. The second request is used by the client device to request to discover whether the first relay device can provide control information relay services for the first service device. Therefore, the second request can be called a "relay discovery request (relay discover request)" . The second response is used to indicate whether the first relay device can provide the control information relay service for the first service device. Therefore, the second response may be called a "relay discovery response (relay discover response)". In some implementations, the above-mentioned relay discovery response may also carry at least one of the connection capability of the first relay device, the identification of the first serving device, and the identification of the first relay device.
需要说明的是,可以通过第二响应的发送或不发送指示第一中继设备是否能够为所述第一服务设备提供控制信息中继服务。例如,当第二响应被发送时,可以指示第一中继设备能够为所述第一服务设备提供控制信息中继服务。相应地,当第二响应未被发送时,可以指示第一中继设备不能够为所述第一服务设备提供控制信息中继服务。当然,还可以直接通过第二响应的内容来确定第一中继设备是否能够为第一服务设备提供控制信息中继服务,本申请实施例对此不作限定。It should be noted that whether the first relay device can provide the control information relay service for the first service device may be indicated by sending or not sending the second response. For example, when the second response is sent, it may be indicated that the first relay device can provide the control information relay service for the first service device. Correspondingly, when the second response is not sent, it may be indicated that the first relay device is unable to provide the control information relay service for the first service device. Of course, whether the first relay device can provide the control information relay service for the first service device can also be determined directly through the content of the second response, which is not limited in the embodiments of the present application.
为了便于理解,表15至表17以第一中继设备中的中继发现群集为例,介绍中继发现请求以及中继发现响应。需要说明的是,表15至表17中命令包含的数据质量列(例如,访问、一致性、默认、约束等)的含义在上文已经详细说明,为了简洁,下文不再赘述。For ease of understanding, Tables 15 to 17 take the relay discovery cluster in the first relay device as an example to introduce the relay discovery request and the relay discovery response. It should be noted that the meanings of the data quality columns (for example, access, consistency, default, constraints, etc.) included in the commands in Table 15 to Table 17 have been explained in detail above, and for the sake of brevity, they will not be repeated below.
表15Table 15
表16Table 16
表17Table 17
参见表15,中继发现请求以及中继发现响应可以包括命令的标识、命令的名称、命令的方向、命令的响应、命令的访问以及命令的一致性。Referring to Table 15, the relay discovery request and the relay discovery response may include the identification of the command, the name of the command, the direction of the command, the response of the command, the access of the command, and the consistency of the command.
其中,命令标识0对应的命令的名称为中继发现请求。中继发现请求的方向是由中继发现群集的客户端(client)发送给中继发现群集的服务设备(server)的,例如,由客户端设备发送给第一中继设备。中继发现请求的响应为中继发现响应。Among them, the name of the command corresponding to command identifier 0 is relay discovery request. The direction of the relay discovery request is sent by the client of the relay discovery cluster to the service device (server) of the relay discovery cluster, for example, by the client device to the first relay device. The response to the relay discovery request is the relay discovery response.
中继发现请求携带的参数可以参见表16所示,中继发现请求可以携带的参数的标识为0,该参数的字段为目标节点标识(target node id)用于指示第一服务设备,类型为节点标识(node-id)。The parameters carried by the relay discovery request can be seen in Table 16. The identifier of the parameters that can be carried by the relay discovery request is 0. The field of this parameter is the target node ID (target node id), which is used to indicate the first service device. The type is Node identification (node-id).
命令标识1对应的命令的名称为中继发现响应。中继发现响应的方向是由中继发现群集的服务端发送给中继发现群集的客户端的,例如,由第一中继设备发送给客户端设备。中继发现响应的响应为无。The name of the command corresponding to command identifier 1 is relay discovery response. The direction of the relay discovery response is sent by the server of the relay discovery cluster to the client of the relay discovery cluster, for example, by the first relay device to the client device. The response to the relay discovery response is None.
中继发现响应携带的参数可以参见表17所示,中继发现响应可以携带的参数包括标识为0的参数和标识为1的参数。标识为0的参数的字段为目标节点标识(target node id)用于指示第一服务设备,类型为节点标识(node-id)。标识为1的参数的字段为连接能力用于指示第一中继设备的连接能力,类型为8位的比特位图。例如,8比特的比特位图中每位比特可以指示第一中继设备的连接能力,其中,BIT(0)表示第一中继设备具有LAN的连接能力,BIT(1)表示第一中继设备具有WAN的连接能力,BIT(2)表示第一中继设备位于云端。The parameters carried by the relay discovery response can be seen in Table 17. The parameters that can be carried by the relay discovery response include parameters marked with 0 and parameters marked with 1. The field of the parameter identified as 0 is the target node ID (target node id), which is used to indicate the first service device, and the type is node ID (node-id). The field of the parameter identified as 1 is the connection capability, which is used to indicate the connection capability of the first relay device, and the type is an 8-bit bitmap. For example, each bit in the 8-bit bitmap may indicate the connection capability of the first relay device, where BIT(0) indicates that the first relay device has the connection capability of LAN, and BIT(1) indicates that the first relay device has the connection capability of LAN. The device has WAN connection capabilities, and BIT(2) indicates that the first relay device is located in the cloud.
在一些情况下,中继发现请求中也可以不携带目标节点标识,或者说中继发现请求中目标节点标识所在的字段为空,此时,可以理解为,收到中继发现请求的中继设备都需要发送中继发现响应。In some cases, the relay discovery request does not need to carry the target node identifier, or the field containing the target node identifier in the relay discovery request is empty. In this case, it can be understood that the relay that receives the relay discovery request The device is required to send a relay discovery response.
需要说明的是,第一中继设备可能具有多种连接能力。例如,当第一中继设备为路由器时,路由器的连接能力可以包括具有LAN和WAN的连接能力。当然,第一中继设备也可以仅具有一种连接能力,本申请实施例对此不作限定。It should be noted that the first relay device may have multiple connection capabilities. For example, when the first relay device is a router, the connection capabilities of the router may include connection capabilities of LAN and WAN. Of course, the first relay device may also have only one connection capability, which is not limited in the embodiments of the present application.
在本申请实施例中,上述表示第一中继设备的连接能力的比特位图还可以是其他位数的,例如,4位等。另外,在对另一些实现方式中,还可以使用其他方式表示第一中继设备的连接能力。In this embodiment of the present application, the above-mentioned bitmap representing the connection capability of the first relay device may also have other number of bits, for example, 4 bits, etc. In addition, in other implementations, other methods may be used to represent the connection capability of the first relay device.
为了便于理解,下文结合图6至图8,以基于Matter协议通信场景为例介绍本申请实施例的方法流程。需要说明的是,在基于Matter协议通信场景中,上文中的客户端设备又可以称为“Matter客户端”,上文中的第一服务设备又可以称为“第一Matter服务设备”。另外,图6至图8所示的方法中涉及的群集在上文中详细介绍,为了简洁,下文不再赘述。In order to facilitate understanding, the method flow of the embodiment of the present application will be introduced below with reference to Figures 6 to 8, taking a communication scenario based on the Matter protocol as an example. It should be noted that in a communication scenario based on the Matter protocol, the client device mentioned above can also be called the "Matter client", and the first service device mentioned above can also be called the "first Matter service device". In addition, the clusters involved in the methods shown in Figures 6 to 8 are introduced in detail above, and for the sake of brevity, they will not be described again below.
假设第一Matter服务设备为智能家居设备1,并且需要为智能家居设备1中的业务群集1提供控制信息的中继服务,路由器与智能家居设备1在同一家庭网络,配置设备与Matter客户端为终端设备上的app。下文分三个阶段,结合图6介绍本申请实施例的方法。图6是本申请实施例的用于传输控制信息的方法的流程图。图6所示的方法包括步骤S611至步骤S636。Assume that the first Matter service device is smart home device 1 and needs to provide control information relay services for business cluster 1 in smart home device 1. The router and smart home device 1 are on the same home network. The configuration device and Matter client are app on the terminal device. The following describes the method of the embodiment of the present application in three stages with reference to Figure 6 . Figure 6 is a flow chart of a method for transmitting control information according to an embodiment of the present application. The method shown in Figure 6 includes steps S611 to S636.
控制信息的中继服务配置阶段610包括步骤S611至步骤S616。The control information relay
在步骤S611中,用户通过配置设备在网络中查找中继设备。In step S611, the user searches for the relay device in the network by configuring the device.
在一些实现方式中,用户可以通过配置设备,以组播的形式向家庭网络中的组发送订阅请求1,以请求订阅中继设备。其中,组的地址GroupID可以是0xFFFC。In some implementations, the user can configure the device to send a subscription request 1 to the group in the home network in the form of multicast to request to subscribe to the relay device. Among them, the group address GroupID can be 0xFFFC.
需要说明的是,上述组中可以包括家庭网络中的全部设备。当然,上述组中可以包括家庭网络中可以提供控制信息中继服务的设备。本申请实施例对此不作限定。It should be noted that the above group may include all devices in the home network. Of course, the above group may include devices in the home network that can provide control information relay services. The embodiments of the present application do not limit this.
在步骤S612中,路由器向配置设备返回针对订阅请求1的响应消息1。In step S612, the router returns response message 1 to the subscription request 1 to the configuration device.
在一些实现方式中,响应消息1中可以携带路由器的信息,例如路由器的节点标识以及路由器的连接能力。In some implementations, response message 1 may carry router information, such as the router's node identifier and the router's connection capabilities.
在步骤S613中,用户通过配置设备选择路由器作为第一中继设备,以为智能家居设备1提供控制信息中继服务。In step S613, the user selects the router as the first relay device by configuring the device to provide control information relay services for the smart home device 1.
假设此时需要中继设备具有外部网络访问能力,因此,用户可以选择路由器作为第一中继设备。It is assumed that the relay device needs to have external network access capabilities at this time, so the user can select the router as the first relay device.
在步骤S614中,用户通过配置设备配置智能家居设备1的ACL,使路由器有访问智能家居设备1的权限。In step S614, the user configures the ACL of the smart home device 1 through the configuration device so that the router has the authority to access the smart home device 1.
在步骤S615中,用户通过配置设备配置智能家居设备1的有效中继群集,以将路由器添加为有效中继设备。In step S615, the user configures an effective relay cluster of the smart home device 1 through the configuration device to add the router as an effective relay device.
在一些实现方式中,可以在有效中继群集中记录路由器的连接能力为00000011,表示路由器具有LAN和WAN的连接能力。In some implementations, the router's connection capability may be recorded in the effective relay cluster as 00000011, indicating that the router has LAN and WAN connection capabilities.
在步骤S616中,用户通过配置设备配置路由器的中继配置群集,以在中继配置群集的目标列表中添加智能家居设备1的节点标示。In step S616, the user configures the relay configuration cluster of the router through the configuration device to add the node label of the smart home device 1 in the target list of the relay configuration cluster.
控制信息的中继服务建立阶段620包括步骤S621至步骤S625。The control information relay
在步骤S621中,路由器获取智能家居设备1中的业务群集1的信息。In step S621, the router obtains the information of the service cluster 1 in the smart home device 1.
在一些实现方式中,路由器可以读取智能家居设备1的节点、端点、群集信息。并向智能家居设备1中的业务群集1发起订阅请求2,以请求订阅业务群集1所包含的属性列表和命令列表。相应地,在智能家居设备1允许上述订阅请求2后,智能家居设备1向路由器发送业务群集1所包含的属性列表和命令列表。In some implementations, the router can read the node, endpoint, and cluster information of the smart home device 1. And initiate a subscription request 2 to the business cluster 1 in the smart home device 1 to request to subscribe to the attribute list and command list contained in the business cluster 1. Correspondingly, after the smart home device 1 allows the above subscription request 2, the smart home device 1 sends the attribute list and command list contained in the service cluster 1 to the router.
在步骤S622中,路由器创建虚拟节点。In step S622, the router creates a virtual node.
上述虚拟节点的节点、端点、业务群集与智能家居设备1相同。The nodes, endpoints, and business clusters of the above virtual nodes are the same as those of the smart home device 1.
在步骤S623中,路由器向智能家居设备1发送订阅请求3,以请求订阅业务群集1的ACL。In step S623, the router sends a subscription request 3 to the smart home device 1 to request to subscribe to the ACL of the service cluster 1.
在步骤S624中,在智能家居设备1允许订阅后,智能家居设备1向路由器发送业务群集1的ACL。In step S624, after the smart home device 1 allows the subscription, the smart home device 1 sends the ACL of the service cluster 1 to the router.
在步骤S625中,中继设备将业务群集1的ACL关联到虚拟节点。In step S625, the relay device associates the ACL of service cluster 1 to the virtual node.
控制信息的中继服务触发阶段630包括步骤S631至步骤S636。The control information relay
在步骤S631中,用户通过Matter客户端获取可以为智能家居设备1提供控制信息中继服务的中继设备。In step S631, the user obtains a relay device that can provide control information relay services for the smart home device 1 through the Matter client.
在一些实现方式中,Matter客户端可以直接读取智能家居设备1的有效中继群集,以获得智能家居设备1的全部有效中继设备的信息。另外,Matter客户端可以保存有效中继设备的信息。In some implementations, the Matter client can directly read the effective relay cluster of smart home device 1 to obtain information about all effective relay devices of smart home device 1. In addition, the Matter client can save information about valid relay devices.
在另一些实现方式中,Matter客户端也可以通过获取有效中继请求获得智能家居设备1的有效中继 设备。In other implementations, the Matter client can also obtain the valid relay device of smart home device 1 by obtaining a valid relay request.
例如,当获取有效中继请求中携带连接能力的参数为00000010时,表示查询具有WAN连接能力的有效中继设备,此时,智能家居设备1可以向Matter客户端发送获取有效中继响应,并路由器的信息。For example, when the parameter carrying the connection capability in the request to obtain a valid relay is 00000010, it means querying a valid relay device with WAN connection capability. At this time, the smart home device 1 can send a response to obtain a valid relay to the Matter client, and Router information.
在步骤S632中,Matter客户端向路由器发送控制信息,控制信息用于对智能家居设备1的业务群集1进行控制。In step S632, the Matter client sends control information to the router, and the control information is used to control the business cluster 1 of the smart home device 1.
当Matter客户端处于家庭网络之外时,Matter客户端无法直接连接智能家居设备1,用户可以通过Matter客户端向路由器的虚拟节点发送上述控制信息。When the Matter client is outside the home network, the Matter client cannot directly connect to the smart home device 1. The user can send the above control information to the virtual node of the router through the Matter client.
在步骤S633中,路由器查询虚拟节点关联的ACL,确认Matter客户端有控制信息所需的权限。In step S633, the router queries the ACL associated with the virtual node and confirms that the Matter client has the permissions required to control the information.
在步骤S634中,路由器向智能家居设备1发送上述控制信息。In step S634, the router sends the above control information to the smart home device 1.
在步骤S635中,智能家居设备1执行控制信息对应的命令后,向路由器返回结果或响应。In step S635, after executing the command corresponding to the control information, the smart home device 1 returns a result or response to the router.
在步骤S636中,路由器将结果或响应返回给Matter客户端。In step S636, the router returns the result or response to the Matter client.
假设第一Matter服务设备为智能家居设备2,并且需要为智能家居设备2中的业务群集1提供控制信息的中继服务,智能音箱与智能家居设备2在同一家庭网络,配置设备与Matter客户端为终端设备上的app。下文分三个阶段,结合图7介绍本申请实施例的方法。图7是本申请另一实施例的用于传输控制信息的方法的流程图。图7所示的方法包括步骤S711至步骤S738。Assume that the first Matter service device is smart home device 2, and needs to provide control information relay services for business cluster 1 in smart home device 2. The smart speaker and smart home device 2 are on the same home network, and the configuration device and Matter client For the app on the terminal device. The following describes the method of the embodiment of the present application in three stages with reference to Figure 7 . Figure 7 is a flow chart of a method for transmitting control information according to another embodiment of the present application. The method shown in Figure 7 includes steps S711 to S738.
控制信息的中继服务配置阶段810包括步骤S711至步骤S716。The control information relay
在步骤S711中,用户通过配置设备在网络中查找中继设备。In step S711, the user searches for the relay device in the network by configuring the device.
在一些实现方式中,用户可以通过配置设备,以组播的形式向家庭网络中的组发送订阅请求1,以请求订阅中继设备。其中,组的地址Group ID可以是0xFFFC。In some implementations, the user can configure the device to send a subscription request 1 to the group in the home network in the form of multicast to request to subscribe to the relay device. Among them, the group's address Group ID can be 0xFFFC.
需要说明的是,上述组中可以包括家庭网络中的全部设备。当然,上述组中可以包括家庭网络中可以提供控制信息中继服务的设备。本申请实施例对此不作限定。It should be noted that the above group may include all devices in the home network. Of course, the above group may include devices in the home network that can provide control information relay services. The embodiments of the present application do not limit this.
在步骤S712中,智能音箱向配置设备返回针对订阅请求1的响应消息1。In step S712, the smart speaker returns response message 1 to the subscription request 1 to the configuration device.
在一些实现方式中,响应消息1中可以携带智能音箱的信息,例如智能音箱的节点标识以及智能音箱的连接能力。In some implementations, response message 1 may carry information about the smart speaker, such as the node identifier of the smart speaker and the connection capability of the smart speaker.
在步骤S713中,用户选择智能音箱作为第一中继设备,以为智能家居设备2提供控制信息中继服务。In step S713, the user selects the smart speaker as the first relay device to provide control information relay services for the smart home device 2.
假设此时需要中继设备具有外部网络访问能力,因此,用户可以选择智能音箱作为第一中继设备。It is assumed that the relay device needs to have external network access capabilities at this time. Therefore, the user can select the smart speaker as the first relay device.
在步骤S714中,用户通过配置设备配置智能家居设备2的ACL,使智能音箱有访问智能家居设备2的权限。In step S714, the user configures the ACL of the smart home device 2 through the configuration device so that the smart speaker has the authority to access the smart home device 2.
在步骤S715中,用户通过配置设备配置智能家居设备2的有效中继群集,以将智能音箱添加为有效中继设备。In step S715, the user configures an effective relay cluster of the smart home device 2 through the configuration device to add the smart speaker as an effective relay device.
在一些实现方式中,可以在有效中继群集中记录智能音箱的连接能力为00000011,表示智能音箱具有LAN和WAN的连接能力。In some implementations, the connection capability of the smart speaker can be recorded in the effective relay cluster as 00000011, indicating that the smart speaker has LAN and WAN connection capabilities.
在步骤S716中,用户通过配置设备配置智能音箱的中继配置群集,以在中继配置群集的目标列表中添加智能家居设备2的节点标示。In step S716, the user configures the relay configuration cluster of the smart speaker through the configuration device to add the node label of the smart home device 2 in the target list of the relay configuration cluster.
控制信息的中继服务建立阶段720包括步骤S721至步骤S725。The control information relay
在步骤S721中,智能音箱获取智能家居设备2中的业务群集1的信息。In step S721, the smart speaker obtains the information of the business cluster 1 in the smart home device 2.
在一些实现方式中,智能音箱可以读取智能家居设备2的节点、端点、群集信息。并向智能家居设备2中的业务群集1发起订阅请求2,以请求订阅业务群集1所包含的属性列表和命令列表。相应地,在智能家居设备2允许上述订阅请求2后,智能家居设备2向智能音箱发送业务群集1所包含的属性列表和命令列表。In some implementations, the smart speaker can read the node, endpoint, and cluster information of the smart home device 2. And initiate a subscription request 2 to the business cluster 1 in the smart home device 2 to request to subscribe to the attribute list and command list contained in the business cluster 1. Correspondingly, after the smart home device 2 allows the above-mentioned subscription request 2, the smart home device 2 sends the attribute list and command list contained in the business cluster 1 to the smart speaker.
在步骤S722中,智能音箱创建虚拟节点。In step S722, the smart speaker creates a virtual node.
上述虚拟节点的节点、端点、业务群集与智能家居设备2相同。The nodes, endpoints, and business clusters of the above virtual nodes are the same as those of the smart home device 2.
在步骤S723中,智能音箱向智能家居设备2发送订阅请求3,以请求订阅业务群集1的ACL。In step S723, the smart speaker sends a subscription request 3 to the smart home device 2 to request to subscribe to the ACL of the service cluster 1.
在步骤S724中,在智能家居设备2允许订阅后,智能家居设备2向智能音箱发送业务群集1的ACL。In step S724, after the smart home device 2 allows the subscription, the smart home device 2 sends the ACL of the service cluster 1 to the smart speaker.
在步骤S725中,中继设备将业务群集1的ACL关联到虚拟节点。In step S725, the relay device associates the ACL of service cluster 1 to the virtual node.
控制信息的中继服务触发阶段730包括步骤S731至步骤S738。The control information relay
在步骤S731中,Matter客户端发送中继发现请求,以请求发现可以为智能家居设备2提供控制信息中继服务的中继设备。In step S731, the Matter client sends a relay discovery request to request the discovery of a relay device that can provide control information relay services for the smart home device 2.
在一些实现方式中,用户可以通过Matter客户端,以组播的形式向家庭网络中的组发送中继发现 请求,以请求发现上述中继设备。其中,组的地址GroupID可以是0xFFFC。In some implementations, users can send relay discovery requests to groups in the home network in the form of multicast through the Matter client to request discovery of the above-mentioned relay devices. Among them, the group address GroupID can be 0xFFFC.
需要说明的是,上述组中可以包括家庭网络中的全部设备。当然,上述组中可以包括家庭网络中可以提供控制信息中继服务的设备。本申请实施例对此不作限定。It should be noted that the above group may include all devices in the home network. Of course, the above group may include devices in the home network that can provide control information relay services. The embodiments of the present application do not limit this.
在步骤S732中,智能音箱向Matter客户端返回中继发现响应。In step S732, the smart speaker returns a relay discovery response to the Matter client.
在一些实现方式中,中继发现响应中可以携带智能音箱的信息,例如智能音箱的节点标识以及智能音箱的连接能力。In some implementations, the relay discovery response may carry information about the smart speaker, such as the node identifier of the smart speaker and the connection capability of the smart speaker.
在步骤S733中,Matter客户端查询智能音箱的目标列表,以选择目标列表中的智能家居设备2进行控制。In step S733, the Matter client queries the target list of the smart speaker to select the smart home device 2 in the target list for control.
在一些实现方式中,Matter客户端可以根据中继设备连接能力,选择智能音箱进行连接,作为为智能家居设备2提供控制信息的中继服务的中继设备。In some implementations, the Matter client can select a smart speaker to connect based on the connection capabilities of the relay device, as a relay device that provides relay services for control information for the smart home device 2.
在步骤S734中,Matter客户端向智能音箱发送控制信息,控制信息用于对智能家居设备2的业务群集1进行控制。In step S734, the Matter client sends control information to the smart speaker, and the control information is used to control the business cluster 1 of the smart home device 2.
当Matter客户端处于家庭网络之外时,Matter客户端无法直接连接智能家居设备2,用户可以通过Matter客户端向智能音箱的虚拟节点发送上述控制信息。When the Matter client is outside the home network, the Matter client cannot directly connect to the smart home device 2. The user can send the above control information to the virtual node of the smart speaker through the Matter client.
在步骤S735中,智能音箱查询虚拟节点关联的ACL,确认Matter客户端有控制信息所需的权限。In step S735, the smart speaker queries the ACL associated with the virtual node and confirms that the Matter client has the permissions required to control the information.
在步骤S736中,智能音箱向智能家居设备2发送上述控制信息。In step S736, the smart speaker sends the above control information to the smart home device 2.
在步骤S737中,智能家居设备2执行控制信息对应的命令后,向智能音箱返回结果或响应。In step S737, after executing the command corresponding to the control information, the smart home device 2 returns a result or response to the smart speaker.
在步骤S738中,智能音箱将结果或响应返回给Matter客户端。In step S738, the smart speaker returns the result or response to the Matter client.
假设第一Matter服务设备为智能家居设备3,并且需要为智能家居设备3中的业务群集1提供控制信息的中继服务,配置设备与Matter客户端为终端设备上的app。下文分三个阶段,结合图8介绍本申请实施例的方法。图8是本申请另一实施例的用于传输控制信息的方法的流程图。图8所示的方法包括步骤S811至步骤S838。Assume that the first Matter service device is smart home device 3 and needs to provide control information relay services for business cluster 1 in smart home device 3. The configuration device and Matter client are apps on the terminal device. The following describes the method of the embodiment of the present application in three stages with reference to Figure 8 . Figure 8 is a flow chart of a method for transmitting control information according to another embodiment of the present application. The method shown in Figure 8 includes steps S811 to S838.
控制信息的中继服务配置阶段810包括步骤S811至步骤S816。The control information relay
在步骤S811中,用户通过配置设备获取云平台上云端中继1的标识。In step S811, the user obtains the identity of cloud relay 1 on the cloud platform by configuring the device.
在步骤S812中,云平台将云端中继1的标识发送给配置设备。In step S812, the cloud platform sends the identification of cloud relay 1 to the configuration device.
在步骤S813中,用户通过配置设备配置智能家居设备3的ACL,使云端中继1有访问智能家居设备3的权限。In step S813, the user configures the ACL of the smart home device 3 through the configuration device, so that the cloud relay 1 has the permission to access the smart home device 3.
在步骤S814中,用户通过配置设备配置智能家居设备3的有效中继群集,以将云端中继1添加为有效中继设备。In step S814, the user configures the effective relay cluster of the smart home device 3 through the configuration device to add the cloud relay 1 as an effective relay device.
在一些实现方式中,可以将有效中继群集中的名称为云端中继的属性对应的布尔值设置为“真”,以说明云端中继1具有连接云平台的能力。In some implementations, the Boolean value corresponding to the attribute named Cloud Relay in the effective relay cluster can be set to "true" to indicate that Cloud Relay 1 has the ability to connect to the cloud platform.
在步骤S815中,用户通过配置设备配置智能家居设备3与云平台相连。In step S815, the user configures the smart home device 3 to connect to the cloud platform through the configuration device.
在一些实现方式中,配置设备可以将云平台的地址发送给智能家居设备3,以便智能家居设备3接入云平台。在另一些实现方式中,智能家居设备3可以使用操作证书(node operational certificate,NOC)与云平台建立CASE安全连接。In some implementations, the configuration device can send the address of the cloud platform to the smart home device 3 so that the smart home device 3 can access the cloud platform. In other implementations, the smart home device 3 can use a node operational certificate (NOC) to establish a CASE secure connection with the cloud platform.
在步骤S816中,用户通过配置设备配置云端中继1的中继配置群集。In step S816, the user configures the relay configuration cluster of cloud relay 1 through the configuration device.
在一些实现方式中,配置设备可以配置云端中继1的中继配置群集,以在中继配置群集的目标列表中添加智能家居设备3的节点标示。In some implementations, the configuration device can configure the relay configuration cluster of the cloud relay 1 to add the node label of the smart home device 3 in the target list of the relay configuration cluster.
在另一些实现方式中,配置设备可以配置云端中继1的中继配置群集,以将中继配置群集中云端中继1对应的属性“中继全部节点”的布尔值设置为“真”。In other implementations, the configuration device may configure the relay configuration cluster of cloud relay 1 to set the Boolean value of the attribute "relay all nodes" corresponding to cloud relay 1 in the relay configuration cluster to "true".
需要说明的是,上述步骤S816、步骤S813以及步骤S814之间的执行顺序本申请实施例不作限定,例如,执行顺序从早到晚可以是步骤S813、步骤S814以及步骤S816。又例如,执行顺序从早到晚可以是步骤S813、步骤S816以及步骤S814。It should be noted that the execution order among the above-mentioned steps S816, S813 and S814 is not limited in the embodiment of the present application. For example, the execution order from early to late may be step S813, step S814 and step S816. For another example, the execution order from early to late may be step S813, step S816 and step S814.
控制信息的中继服务建立阶段820包括步骤S821至步骤S825。The control information relay
在步骤S821中,云端中继1获取智能家居设备3中的业务群集1的信息。In step S821, the cloud relay 1 obtains the information of the business cluster 1 in the smart home device 3.
在一些实现方式中,云端中继1可以读取智能家居设备3的节点、端点、群集信息。并向智能家居设备3中的业务群集1发起订阅请求2,以请求订阅业务群集1所包含的属性列表和命令列表。相应地,在智能家居设备3允许上述订阅请求2后,智能家居设备3向云端中继1发送业务群集1所包含的属性列表和命令列表。In some implementations, the cloud relay 1 can read the node, endpoint, and cluster information of the smart home device 3. And initiate a subscription request 2 to the business cluster 1 in the smart home device 3 to request to subscribe to the attribute list and command list contained in the business cluster 1. Correspondingly, after the smart home device 3 allows the above-mentioned subscription request 2, the smart home device 3 sends the attribute list and command list contained in the business cluster 1 to the cloud relay 1.
在步骤S822中,云端中继1创建虚拟节点。In step S822, cloud relay 1 creates a virtual node.
上述虚拟节点的节点、端点、业务群集与智能家居设备3相同。The nodes, endpoints, and business clusters of the above virtual nodes are the same as those of the smart home device 3.
在步骤S823中,云端中继1向智能家居设备3发送订阅请求3,以请求订阅业务群集1的ACL。In step S823, the cloud relay 1 sends a subscription request 3 to the smart home device 3 to request to subscribe to the ACL of the service cluster 1.
在步骤S824中,在智能家居设备3允许订阅后,智能家居设备3向云端中继1发送业务群集1的ACL。In step S824, after the smart home device 3 allows the subscription, the smart home device 3 sends the ACL of the service cluster 1 to the cloud relay 1.
在步骤S825中,中继设备将业务群集1的ACL关联到虚拟节点。In step S825, the relay device associates the ACL of service cluster 1 with the virtual node.
控制信息的中继服务触发阶段830包括步骤S831至步骤S838。The control information relay
在步骤S831中,Matter客户端发送中继发现请求,以请求发现可以为智能家居设备3提供控制信息中继服务的中继设备。In step S831, the Matter client sends a relay discovery request to request the discovery of a relay device that can provide control information relay services for the smart home device 3.
在一些实现方式中,中继发现请求中携带的参数“云端中继”的布尔值为“真”时,表示Matter客户端请求发现云端中继。In some implementations, when the Boolean value of the parameter "cloud relay" carried in the relay discovery request is "true", it means that the Matter client requests to discover the cloud relay.
在步骤S832中,云端中继1向Matter客户端返回中继发现响应。In step S832, cloud relay 1 returns a relay discovery response to the Matter client.
在一些实现方式中,中继发现响应中可以携带云端中继1的信息,例如云端中继1的节点标识。In some implementations, the relay discovery response may carry information about cloud relay 1, such as the node identifier of cloud relay 1.
在步骤S833中,Matter客户端查询云端中继1的目标列表,以选择目标列表中的智能家居设备3进行控制。In step S833, the Matter client queries the target list of the cloud relay 1 to select the smart home device 3 in the target list for control.
在一些实现方式中,Matter客户端可以根据中继设备连接能力,选择云端中继1进行连接,作为为智能家居设备3提供控制信息的中继服务的中继设备。In some implementations, the Matter client can select the cloud relay 1 for connection based on the relay device's connection capabilities, as a relay device that provides relay services for control information for the smart home device 3.
在步骤S834中,Matter客户端向云端中继1发送控制信息,控制信息用于对智能家居设备3的业务群集1进行控制。In step S834, the Matter client sends control information to the cloud relay 1, and the control information is used to control the business cluster 1 of the smart home device 3.
当Matter客户端处于家庭网络之外时,Matter客户端无法直接连接智能家居设备3,用户可以通过Matter客户端向云端中继1的虚拟节点发送上述控制信息。When the Matter client is outside the home network, the Matter client cannot directly connect to the smart home device 3. The user can send the above control information to the virtual node of the cloud relay 1 through the Matter client.
在步骤S835中,云端中继1查询虚拟节点关联的ACL,确认Matter客户端有控制信息所需的权限。In step S835, cloud relay 1 queries the ACL associated with the virtual node and confirms that the Matter client has the permissions required to control the information.
在步骤S836中,云端中继1向智能家居设备3发送上述控制信息。In step S836, the cloud relay 1 sends the above control information to the smart home device 3.
在步骤S837中,智能家居设备3执行控制信息对应的命令后,向云端中继1返回结果或响应。In step S837, after executing the command corresponding to the control information, the smart home device 3 returns a result or response to the cloud relay 1.
在步骤S838中,云端中继1将结果或响应返回给Matter客户端。In step S838, cloud relay 1 returns the result or response to the Matter client.
上文结合图1至图8,详细描述了本申请的方法实施例,下面结合图9至图13,详细描述本申请的装置实施例。应理解,方法实施例的描述与装置实施例的描述相互对应,因此,未详细描述的部分可以参见前面方法实施例。The method embodiments of the present application are described in detail above with reference to FIGS. 1 to 8 , and the device embodiments of the present application are described in detail below with reference to FIGS. 9 to 13 . It should be understood that the description of the method embodiments corresponds to the description of the device embodiments. Therefore, the parts not described in detail can be referred to the previous method embodiments.
图9是本申请实施例的中继设备的示意图,图9所示的中继设备900(又称“第一中继设备”)包括:接收单元910和发送单元920。Figure 9 is a schematic diagram of a relay device according to an embodiment of the present application. The relay device 900 shown in Figure 9 (also known as the "first relay device") includes: a receiving unit 910 and a sending unit 920.
接收单元910,用于接收客户端设备发送的控制信息,所述控制信息用于对所述第一服务设备进行控制;The receiving unit 910 is configured to receive control information sent by the client device, where the control information is used to control the first service device;
发送单元920,用于向所述第一服务设备发送所述控制信息。The sending unit 920 is configured to send the control information to the first service device.
在一种可能的实现方式中,所述第一中继设备中包括第一群集,所述第一群集用于配置所述第一中继设备能够提供控制信息中继服务的一个或多个服务设备,所述一个或多个服务设备包括所述第一服务设备。In a possible implementation, the first relay device includes a first cluster, and the first cluster is used to configure one or more services that the first relay device can provide a control information relay service. Device, the one or more service devices include the first service device.
在一种可能的实现方式中,所述第一群集包括所述一个或多个服务设备的标识,和/或,所述一个或多个服务设备所在的交织网络的标识。In a possible implementation, the first cluster includes the identity of the one or more service devices, and/or the identity of the interwoven network where the one or more service devices are located.
在一种可能的实现方式中,所述第一群集包括第一指示信息,所述第一指示信息用于指示所述第一中继设备是否位于云端,和/或,所述第一群集包括第二指示信息,所述第二指示信息用于指示所述第一中继设备能否为连接所述第一中继设备的全部服务设备提供控制信息中继服务。In a possible implementation, the first cluster includes first indication information, the first indication information is used to indicate whether the first relay device is located in the cloud, and/or the first cluster includes Second indication information, the second indication information is used to indicate whether the first relay device can provide control information relay services for all service devices connected to the first relay device.
在一种可能的实现方式中,所述第一服务设备包括第二群集,所述第二群集用于指示能够为所述第一服务设备提供控制信息中继服务的一个或多个有效中继设备,所述一个或多个有效中继设备包括所述第一中继设备。In a possible implementation, the first service device includes a second cluster, the second cluster is used to indicate one or more effective relays that can provide control information relay services for the first service device. Device, the one or more effective relay devices include the first relay device.
在一种可能的实现方式中,所述第二群集用于指示能够所述一个或多个有效中继设备中每个中继设备的以下信息中的一种或多种:所述每个中继设备的连接能力,所述每个中继设备的连接能力用于指示所述每个中继设备连接的网络类型;所述每个中继设备的网络位置指示参数;所述每个中继设备的标识;所述每个中继设备所在的交织网络的标识。In a possible implementation, the second cluster is used to indicate one or more of the following information of each of the one or more valid relay devices: each of the The connection capability of the relay device, the connection capability of each relay device is used to indicate the network type to which each relay device is connected; the network location indication parameter of each relay device; the network location indication parameter of each relay device The identification of the device; the identification of the interwoven network where each relay device is located.
在一种可能的实现方式中,所述连接能力包括具有连接到局域网LAN的连接能力,和/或,具有连接到广域网WAN的连接能力。In a possible implementation, the connection capability includes a connection capability to a local area network LAN, and/or a connection capability to a wide area network WAN.
在一种可能的实现方式中,所述每个中继设备的网络指示参数指示所述每个中继设备是否位于云端。In a possible implementation, the network indication parameter of each relay device indicates whether each relay device is located in the cloud.
在一种可能的实现方式中,所述第二群集包括第一请求以及针对所述第一请求的第一响应,所述第一请求用于所述客户端设备请求查询所述一个或多个有效中继设备,所述第一响应用于所述第一服务 设备向所述客户端设备返回所述一个或多个有效中继设备的信息。In a possible implementation, the second cluster includes a first request and a first response to the first request, the first request is for the client device to request to query the one or more Valid relay device, the first response is used for the first service device to return the information of the one or more valid relay devices to the client device.
在一种可能的实现方式中,所述第一中继设备包括第三群集,所述第三群集用于所述客户端设备发现所述第一中继设备是否能够为所述第一服务设备提供控制信息中继服务。In a possible implementation, the first relay device includes a third cluster, and the third cluster is used by the client device to discover whether the first relay device can serve as the first service device. Provide control information relay services.
在一种可能的实现方式中,所述第三群集包括第二请求以及针对所述第二请求的第二响应,所述第二请求用于所述客户端设备请求发现所述第一中继设备是否能够为所述第一服务设备提供控制信息中继服务,所述第二响应用于指示所述第一中继设备是否能够为所述第一服务设备提供控制信息中继服务。In a possible implementation, the third cluster includes a second request and a second response to the second request, where the second request is used for the client device to request discovery of the first relay. Whether the device can provide a control information relay service for the first service device, and the second response is used to indicate whether the first relay device can provide a control information relay service for the first service device.
在一种可能的实现方式中,所述第二响应包括所述第一中继设备的连接能力、所述第一服务设备的标识、所述第一中继设备的标识中的至少一种。In a possible implementation, the second response includes at least one of the connection capability of the first relay device, the identity of the first service device, and the identity of the first relay device.
在一种可能的实现方式中,所述接收单元,还用于:接收配置设备发送的第三请求,所述第三请求用于发现能够提供控制信息中继服务的中继设备;所述发送单元,还用于响应于所述第三请求,向所述配置设备发送第三响应,所述第三响应用于指示所述第一中继设备能够提供控制信息中继服务。In a possible implementation, the receiving unit is further configured to: receive a third request sent by the configuration device, where the third request is used to discover a relay device that can provide control information relay services; the sending A unit further configured to send a third response to the configuration device in response to the third request, where the third response is used to indicate that the first relay device can provide a control information relay service.
在一种可能的实现方式中,所述接收单元,还用于:接收所述配置设备发送的第一配置信息,所述第一配置信息用于配置所述第一中继设备为所述第一服务设备提供控制信息中继服务。In a possible implementation, the receiving unit is further configured to receive first configuration information sent by the configuration device, where the first configuration information is used to configure the first relay device to be the first relay device. A service device provides control information relay services.
在一种可能的实现方式中,所述第一配置信息中包括所述第一服务设备的标识。In a possible implementation, the first configuration information includes an identification of the first service device.
在一种可能的实现方式中,所述第一中继设备存储有所述第一服务设备的访问控制列表ACL,所述第一服务设备的ACL用于记录所述客户端设备是否有控制所述第一服务设备的权限。In a possible implementation, the first relay device stores an access control list ACL of the first service device, and the ACL of the first service device is used to record whether the client device controls all The permissions of the first service device.
在一种可能的实现方式中,所述发送单元,还用于:在根据所述ACL确定所述客户端设备具有控制所述第一服务设备的权限的情况下,向所述服务设备发送所述控制信息。In a possible implementation, the sending unit is further configured to: when it is determined according to the ACL that the client device has the authority to control the first service device, send the request to the service device. Describe control information.
在一种可能的实现方式中,所述控制信息用于对所述第一服务设备中的第一业务群集进行控制,所述第一中继设备包括的目标群集与所述第一业务群集相同,所述目标群集位于所述第一中继设备的虚拟节点中,所述ACL与所述虚拟节点关联。In a possible implementation, the control information is used to control the first service cluster in the first service device, and the target cluster included in the first relay device is the same as the first service cluster. , the target cluster is located in the virtual node of the first relay device, and the ACL is associated with the virtual node.
在一种可能的实现方式中,所述中继设备还包括生成单元,所述生成单元,用于生成所述虚拟节点。In a possible implementation, the relay device further includes a generating unit, the generating unit being configured to generate the virtual node.
在一种可能的实现方式中,所述发送单元,用于向所述第一服务设备发送订阅请求,所述订阅请求用于请求订阅所述ACL;响应于所述订阅请求,所述接收单元,用于接收所述第一服务设备发送的所述ACL。In a possible implementation, the sending unit is configured to send a subscription request to the first service device, where the subscription request is used to request to subscribe to the ACL; in response to the subscription request, the receiving unit , used to receive the ACL sent by the first service device.
图10是本申请实施例的客户端设备的示意图,图10所示的客户端设备1000包括:发送单元1010。Figure 10 is a schematic diagram of a client device according to an embodiment of the present application. The client device 1000 shown in Figure 10 includes a sending unit 1010.
发送单元1010,用于通过第一中继设备向第一服务设备发送控制信息,所述控制信息用于对所述第一服务设备进行控制。The sending unit 1010 is configured to send control information to the first service device through the first relay device, where the control information is used to control the first service device.
在一种可能的实现方式中,所述第一中继设备中包括第一群集,所述第一群集用于为所述第一中继设备配置需要提供控制信息中继服务的一个或多个服务设备,所述一个或多个服务设备包括所述第一服务设备。In a possible implementation, the first relay device includes a first cluster, and the first cluster is used to configure one or more control information relay services for the first relay device. Service device, the one or more service devices include the first service device.
在一种可能的实现方式中,所述第一群集包括所述一个或多个服务设备的标识和/或所述多个服务设备所在的交织网络的标识。In a possible implementation, the first cluster includes the identity of the one or more service devices and/or the identity of the interwoven network where the multiple service devices are located.
在一种可能的实现方式中,所述第一群集包括第一指示信息,所述第一指示信息用于指示所述第一中继设备是否位于云端,和/或,所述第一群集包括第二指示信息,所述第二指示信息用于指示所述第一中继设备是否为所述第一中继设备所在网络中的全部服务设备提供控制信息中继服务。In a possible implementation, the first cluster includes first indication information, the first indication information is used to indicate whether the first relay device is located in the cloud, and/or the first cluster includes Second indication information, the second indication information is used to indicate whether the first relay device provides control information relay services for all service devices in the network where the first relay device is located.
在一种可能的实现方式中,所述第一服务设备包括第二群集,所述第二群集用于指示能够为所述第一服务设备提供控制信息中继服务的一个或多个有效中继设备,所述一个或多个有效中继设备包括所述第一中继设备。In a possible implementation, the first service device includes a second cluster, the second cluster is used to indicate one or more effective relays that can provide control information relay services for the first service device. Device, the one or more effective relay devices include the first relay device.
在一种可能的实现方式中,所述第二群集用于指示能够所述一个或多个有效中继设备中每个中继设备的以下信息中的一种或多种:所述每个中继设备的连接能力,所述每个中继设备的连接能力用于指示所述每个中继设备连接的网络类型;所述每个中继设备的网络位置指示参数;所述每个中继设备的标识;所述每个中继设备所在的交织网络的标识。In a possible implementation, the second cluster is used to indicate one or more of the following information of each of the one or more valid relay devices: each of the The connection capability of the relay device, the connection capability of each relay device is used to indicate the network type to which each relay device is connected; the network location indication parameter of each relay device; the network location indication parameter of each relay device The identification of the device; the identification of the interwoven network where each relay device is located.
在一种可能的实现方式中,所述连接能力包括具有连接到局域网LAN的连接能力,和/或,具有连接到广域网WAN的连接能力。In a possible implementation, the connection capability includes a connection capability to a local area network LAN, and/or a connection capability to a wide area network WAN.
在一种可能的实现方式中,所述每个中继设备的网络指示参数指示所述每个中继设备是否位于云端。In a possible implementation, the network indication parameter of each relay device indicates whether each relay device is located in the cloud.
在一种可能的实现方式中,所述第二群集包括第一请求以及针对所述第一请求的第一响应,所述第一请求用于所述客户端设备请求查询所述一个或多个有效中继设备,所述第一响应用于所述第一服务设备向所述客户端设备返回所述一个或多个有效中继设备的信息。In a possible implementation, the second cluster includes a first request and a first response to the first request, the first request is for the client device to request to query the one or more Valid relay device, the first response is used for the first service device to return information of the one or more valid relay devices to the client device.
在一种可能的实现方式中,所述发送单元,还用于向所述第一服务设备发送所述第一请求,所述第一请求中携带第三指示信息,所述第三指示信息用于指示请求所述一个或多个有效中继设备中连接能力为第一连接能力的有效中继设备;所述接收单元,还用于接收所述第一服务设备发送的所述第一响应,所述第一响应指示所述一个或多个有效中继设备中连接能力所述第一连接能力的有效中继设备为所述第一中继设备。In a possible implementation, the sending unit is further configured to send the first request to the first service device, where the first request carries third indication information, and the third indication information is Instructing to request an effective relay device whose connection capability is the first connection capability among the one or more effective relay devices; the receiving unit is also configured to receive the first response sent by the first service device, The first response indicates that an effective relay device with the first connection capability among the one or more effective relay devices is the first relay device.
在一种可能的实现方式中,所述客户端设备还包括处理单元,所述处理单元还用于读取所述第二群集,以获取所述一个或多个有效中继设备。In a possible implementation, the client device further includes a processing unit, and the processing unit is further configured to read the second cluster to obtain the one or more valid relay devices.
在一种可能的实现方式中,所述第一中继设备包括第三群集,所述第三群集用于所述客户端设备发现所述第一中继设备是否能够为所述第一服务设备提供控制信息中继服务。In a possible implementation, the first relay device includes a third cluster, and the third cluster is used by the client device to discover whether the first relay device can serve as the first service device. Provide control information relay services.
在一种可能的实现方式中,所述第三群集包括第二请求以及针对所述第二请求的第二响应,所述第二请求用于所述客户端设备请求发现所述第一中继设备是否能够为所述第一服务设备提供控制信息中继服务,所述第二响应用于指示所述第一中继设备是否能够为所述第一服务设备提供控制信息中继服务。In a possible implementation, the third cluster includes a second request and a second response to the second request, where the second request is used for the client device to request discovery of the first relay. Whether the device can provide a control information relay service for the first service device, and the second response is used to indicate whether the first relay device can provide a control information relay service for the first service device.
在一种可能的实现方式中,所述第二响应包括所述一个或多个中继设备的连接能力、所述第一服务设备的标识、所述第一中继设备的标识中的至少一种。In a possible implementation, the second response includes at least one of the connection capabilities of the one or more relay devices, the identity of the first service device, and the identity of the first relay device. kind.
在一种可能的实现方式中,所述第一中继设备存储有所述第一服务设备的访问控制列表ACL,所述第一服务设备的ACL用于记录所述客户端设备是否有控制所述第一服务设备的权限。In a possible implementation, the first relay device stores an access control list ACL of the first service device, and the ACL of the first service device is used to record whether the client device controls all The permissions of the first service device.
在一种可能的实现方式中,所述控制信息用于对所述第一服务设备中的第一业务群集进行控制,所述第一中继设备包括的目标群集与所述第一业务群集相同,所述目标业务群集位于所述第一中继设备的虚拟节点,所述ACL与所述虚拟节点关联。In a possible implementation, the control information is used to control the first service cluster in the first service device, and the target cluster included in the first relay device is the same as the first service cluster. , the target service cluster is located at a virtual node of the first relay device, and the ACL is associated with the virtual node.
图11是本申请实施例的服务设备的示意图,图11所示的服务设备1100包括接收单元1110。Figure 11 is a schematic diagram of a service device according to an embodiment of the present application. The service device 1100 shown in Figure 11 includes a receiving unit 1110.
接收单元1110,用于通过第一中继设备接收客户端设备发送的控制信息,所述控制信息用于对所述第一服务设备进行控制。The receiving unit 1110 is configured to receive control information sent by the client device through the first relay device, where the control information is used to control the first service device.
在一种可能的实现方式中,所述第一中继设备中包括第一群集,所述第一群集用于为所述第一中继设备配置需要提供控制信息中继服务的一个或多个服务设备,所述一个或多个服务设备包括所述第一服务设备。In a possible implementation, the first relay device includes a first cluster, and the first cluster is used to configure one or more control information relay services for the first relay device. Service device, the one or more service devices include the first service device.
在一种可能的实现方式中,所述第一群集包括所述一个或多个服务设备的标识和/或所述多个服务设备所在的交织网络的标识。In a possible implementation, the first cluster includes the identity of the one or more service devices and/or the identity of the interwoven network where the multiple service devices are located.
在一种可能的实现方式中,所述第一群集包括第一指示信息,所述第一指示信息用于指示所述第一中继设备是否位于云端,和/或,所述第一群集包括第二指示信息,所述第二指示信息用于指示所述第一中继设备是否为所述第一中继设备所在网络中的全部服务设备提供控制信息中继服务。In a possible implementation, the first cluster includes first indication information, the first indication information is used to indicate whether the first relay device is located in the cloud, and/or the first cluster includes Second indication information, the second indication information is used to indicate whether the first relay device provides control information relay services for all service devices in the network where the first relay device is located.
在一种可能的实现方式中,所述第一服务设备包括第二群集,所述第二群集用于指示能够为所述第一服务设备提供控制信息中继服务的一个或多个有效中继设备,所述一个或多个有效中继设备包括所述第一中继设备。In a possible implementation, the first service device includes a second cluster, the second cluster is used to indicate one or more effective relays that can provide control information relay services for the first service device. Device, the one or more effective relay devices include the first relay device.
在一种可能的实现方式中,所述第二群集用于指示能够所述一个或多个有效中继设备中每个中继设备的以下信息中的一种或多种:所述每个中继设备的连接能力,所述每个中继设备的连接能力用于指示所述每个中继设备连接的网络类型;所述每个中继设备的网络位置指示参数;所述每个中继设备的标识;所述每个中继设备所在的交织网络的标识。In a possible implementation, the second cluster is used to indicate one or more of the following information of each of the one or more valid relay devices: each of the The connection capability of the relay device, the connection capability of each relay device is used to indicate the network type to which each relay device is connected; the network location indication parameter of each relay device; the network location indication parameter of each relay device The identification of the device; the identification of the interwoven network where each relay device is located.
在一种可能的实现方式中,所述连接能力包括具有连接到局域网LAN的连接能力,和/或,具有连接到广域网WAN的连接能力。In a possible implementation, the connection capability includes a connection capability to a local area network LAN, and/or a connection capability to a wide area network WAN.
在一种可能的实现方式中,所述每个中继设备的网络指示参数指示所述每个中继设备是否位于云端。In a possible implementation, the network indication parameter of each relay device indicates whether each relay device is located in the cloud.
在一种可能的实现方式中,所述第二群集包括第一请求以及针对所述第一请求的第一响应,所述第一请求用于所述客户端设备请求查询所述一个或多个有效中继设备,所述第一响应用于所述第一服务设备向所述客户端设备返回所述一个或多个有效中继设备的信息。In a possible implementation, the second cluster includes a first request and a first response to the first request, the first request is for the client device to request to query the one or more Valid relay device, the first response is used for the first service device to return information of the one or more valid relay devices to the client device.
在一种可能的实现方式中,所述第一服务设备还包括第一接收单元,所述第一接收单元,用于:接收所述客户端设备发送的所述第一请求,所述第一请求中携带第三指示信息,所述第三指示信息用于指示请求所述一个或多个有效中继设备中连接能力为第一连接能力的有效中继设备;所述发送单元,用于向所述客户端设备发送所述第一响应,所述第一响应指示所述一个或多个有效中继设备中连接能力所述第一连接能力的有效中继设备为所述第一中继设备。In a possible implementation, the first service device further includes a first receiving unit, the first receiving unit is configured to: receive the first request sent by the client device, the first The request carries third indication information, and the third indication information is used to indicate requesting an effective relay device whose connection capability is the first connection capability among the one or more effective relay devices; the sending unit is configured to The client device sends the first response, and the first response indicates that among the one or more valid relay devices, the valid relay device with the first connection capability is the first relay device. .
在一种可能的实现方式中,所述第一中继设备包括第三群集,所述第三群集用于所述客户端设备发现所述第一中继设备是否能够为所述第一服务设备提供控制信息中继服务。In a possible implementation, the first relay device includes a third cluster, and the third cluster is used by the client device to discover whether the first relay device can serve as the first service device. Provide control information relay services.
在一种可能的实现方式中,所述第三群集包括第二请求以及针对所述第二请求的第二响应,所述第二请求用于所述客户端设备请求发现所述第一中继设备是否能够为所述第一服务设备提供控制信息中继服务,所述第二响应用于指示所述第一中继设备是否能够为所述第一服务设备提供控制信息中继服务。In a possible implementation, the third cluster includes a second request and a second response to the second request, where the second request is used for the client device to request discovery of the first relay. Whether the device can provide a control information relay service for the first service device, and the second response is used to indicate whether the first relay device can provide a control information relay service for the first service device.
在一种可能的实现方式中,所述第二响应包括所述一个或多个中继设备的连接能力、所述第一服务设备的标识、所述第一中继设备的标识中的至少一种。In a possible implementation, the second response includes at least one of the connection capabilities of the one or more relay devices, the identity of the first service device, and the identity of the first relay device. kind.
在一种可能的实现方式中,所述第一中继设备存储有所述第一服务设备的访问控制列表ACL,所述第一服务设备的ACL用于记录所述客户端设备是否有控制所述第一服务设备的权限。In a possible implementation, the first relay device stores an access control list ACL of the first service device, and the ACL of the first service device is used to record whether the client device controls all The permissions of the first service device.
在一种可能的实现方式中,所述控制信息用于对所述第一服务设备中的第一业务群集进行控制,所述第一中继设备包括的目标群集与所述第一业务群集相同,所述目标群集位于所述第一中继设备的虚拟节点中,所述ACL与所述虚拟节点关联。In a possible implementation, the control information is used to control the first service cluster in the first service device, and the target cluster included in the first relay device is the same as the first service cluster. , the target cluster is located in the virtual node of the first relay device, and the ACL is associated with the virtual node.
在一种可能的实现方式中,所述客户端设备还包括第二接收单元,所述第二接收单元,用于接收所述第一中继设备发送的订阅请求,所述订阅请求用于请求订阅所述ACL;响应于所述订阅请求,所述发送单元用于向所述第一中继设备发送所述ACL。In a possible implementation, the client device further includes a second receiving unit, the second receiving unit is configured to receive a subscription request sent by the first relay device, the subscription request is used to request Subscribe to the ACL; in response to the subscription request, the sending unit is configured to send the ACL to the first relay device.
图12是本申请实施例的配置设备的示意图,图12所示的配置设备1200包括发送单元1210。Figure 12 is a schematic diagram of a configuration device according to an embodiment of the present application. The configuration device 1200 shown in Figure 12 includes a sending unit 1210.
发送单元1210,用于向目标设备发送第二配置信息,所述第二配置信息用于配置第一中继设备为第一服务设备提供控制信息中继服务,其中,所述目标设备为所述第一中继设备和所述第一服务设备,所述控制信息用于客户端设备对所述第一服务设备进行控制。The sending unit 1210 is configured to send second configuration information to the target device, where the second configuration information is used to configure the first relay device to provide a control information relay service for the first service device, wherein the target device is the The first relay device and the first service device, the control information is used by the client device to control the first service device.
在一种可能的实现方式中,所述发送单元,还用于向所述第一中继设备中的所述第一群集发送所述第二配置信息。In a possible implementation, the sending unit is further configured to send the second configuration information to the first cluster in the first relay device.
所述第一中继设备中包括第一群集,所述第一群集用于为所述第一中继设备配置需要提供控制信息中继服务的一个或多个服务设备,所述一个或多个服务设备包括所述第一服务设备。The first relay device includes a first cluster, and the first cluster is used to configure one or more service devices that need to provide control information relay services for the first relay device. The one or more The service device includes the first service device.
在一种可能的实现方式中,所述第一群集包括所述一个或多个服务设备的标识和/或所述一个或多个服务设备所在的交织网络的标识。In a possible implementation, the first cluster includes an identity of the one or more service devices and/or an identity of the interwoven network in which the one or more service devices are located.
在一种可能的实现方式中,所述第一群集包括第一指示信息,所述第一指示信息用于指示所述第一中继设备是否位于云端,和/或,所述第一群集包括第二指示信息,所述第二指示信息用于指示所述第一中继设备是否为所述第一中继设备所在网络中的全部服务设备提供控制信息中继服务。In a possible implementation, the first cluster includes first indication information, the first indication information is used to indicate whether the first relay device is located in the cloud, and/or the first cluster includes Second indication information, the second indication information is used to indicate whether the first relay device provides control information relay services for all service devices in the network where the first relay device is located.
在一种可能的实现方式中,所述第一服务设备包括第二群集,所述第二群集用于指示能够为所述第一服务设备提供控制信息中继服务的一个或多个有效中继设备,所述一个或多个有效中继设备包括所述第一中继设备。In a possible implementation, the first service device includes a second cluster, the second cluster is used to indicate one or more effective relays that can provide control information relay services for the first service device. Device, the one or more effective relay devices include the first relay device.
在一种可能的实现方式中,所述第二群集用于指示能够所述一个或多个有效中继设备中每个中继设备的以下信息中的一种或多种:所述每个中继设备的连接能力,所述每个中继设备的连接能力用于指示所述每个中继设备连接的网络类型;所述每个中继设备的网络位置指示参数;所述每个中继设备的标识;所述每个中继设备所在的交织网络的标识。In a possible implementation, the second cluster is used to indicate one or more of the following information of each of the one or more valid relay devices: each of the The connection capability of the relay device, the connection capability of each relay device is used to indicate the network type to which each relay device is connected; the network location indication parameter of each relay device; the network location indication parameter of each relay device The identification of the device; the identification of the interwoven network where each relay device is located.
在一种可能的实现方式中,所述连接能力包括具有连接到局域网LAN的连接能力,和/或,具有连接到广域网WAN的连接能力。In a possible implementation, the connection capability includes a connection capability to a local area network LAN, and/or a connection capability to a wide area network WAN.
在一种可能的实现方式中,所述每个中继设备的网络指示参数指示所述每个中继设备是否位于云端。In a possible implementation, the network indication parameter of each relay device indicates whether each relay device is located in the cloud.
在一种可能的实现方式中,所述第二群集包括第一请求以及针对所述第一请求的第一响应,所述第一请求用于所述客户端设备请求查询所述一个或多个有效中继设备,所述第一响应用于所述第一服务设备向所述客户端设备返回所述一个或多个有效中继设备的信息。In a possible implementation, the second cluster includes a first request and a first response to the first request, the first request is for the client device to request to query the one or more Valid relay device, the first response is used for the first service device to return information of the one or more valid relay devices to the client device.
在一种可能的实现方式中,所述第一请求用于携带第三指示信息,所述第三指示信息用于指示请求所述一个或多个有效中继设备中连接能力为第一连接能力的有效中继设备。In a possible implementation, the first request is used to carry third indication information, and the third indication information is used to indicate that the connection capability in the one or more effective relay devices is requested to be the first connection capability. valid relay device.
在一种可能的实现方式中,所述目标设备为所述第一服务设备,所述发送单元用于向所述第一服务设备中的所述第二群集发送所述第二配置信息。In a possible implementation, the target device is the first service device, and the sending unit is configured to send the second configuration information to the second cluster in the first service device.
在一种可能的实现方式中,所述第一中继设备包括第三群集,所述第三群集用于所述客户端设备发现所述第一中继设备是否能够为所述第一服务设备提供控制信息中继服务。In a possible implementation, the first relay device includes a third cluster, and the third cluster is used by the client device to discover whether the first relay device can serve as the first service device. Provide control information relay services.
在一种可能的实现方式中,所述第三群集包括第二请求以及针对所述第二请求的第二响应,所述第二请求用于所述客户端设备请求发现所述第一中继设备是否能够为所述第一服务设备提供控制信息中继服务,所述第二响应用于指示所述第一中继设备是否能够为所述第一服务设备提供控制信息中继服务。In a possible implementation, the third cluster includes a second request and a second response to the second request, where the second request is used for the client device to request discovery of the first relay. Whether the device can provide a control information relay service for the first service device, and the second response is used to indicate whether the first relay device can provide a control information relay service for the first service device.
在一种可能的实现方式中,所述第二响应包括所述一个或多个中继设备的连接能力、所述第一服务 设备的标识、所述第一中继设备的标识中的至少一种。In a possible implementation, the second response includes at least one of the connection capabilities of the one or more relay devices, the identity of the first service device, and the identity of the first relay device. kind.
在一种可能的实现方式中,所述目标设备为所述第一中继设备,所述配置设备包括接收单元,所述发送单元用于向所述第一中继设备发送第三请求,所述第三请求用于发现能够提供所述控制信息中继服务的中继设备;响应于所述第三请求,所述接收单元用于接收所述第一中继设备发送的第三响应,所述第三响应用于指示所述第一中继设备能够提供控制信息中继服务。In a possible implementation, the target device is the first relay device, the configuration device includes a receiving unit, and the sending unit is configured to send a third request to the first relay device, so The third request is used to discover a relay device that can provide the control information relay service; in response to the third request, the receiving unit is used to receive a third response sent by the first relay device, so The third response is used to indicate that the first relay device can provide control information relay service.
在一种可能的实现方式中,所述第二配置信息中包括所述第一服务设备的标识。In a possible implementation, the second configuration information includes an identification of the first service device.
在一种可能的实现方式中,所述第一中继设备存储有所述第一服务设备的访问控制列表ACL,所述第一服务设备的ACL用于记录所述客户端设备是否有控制所述第一服务设备的权限。In a possible implementation, the first relay device stores an access control list ACL of the first service device, and the ACL of the first service device is used to record whether the client device controls all The permissions of the first service device.
在一种可能的实现方式中,所述控制信息用于对所述第一服务设备中的第一业务群集进行控制,所述第一中继设备包括的目标群集与所述第一业务群集相同,所述目标群集位于所述第一中继设备的虚拟节点,所述ACL与所述虚拟节点关联。In a possible implementation, the control information is used to control the first service cluster in the first service device, and the target cluster included in the first relay device is the same as the first service cluster. , the target cluster is located at a virtual node of the first relay device, and the ACL is associated with the virtual node.
图13是本申请实施例的通信装置的示意性结构图。图13中的虚线表示该单元或模块为可选的。该装置1300可用于实现上述方法实施例中描述的方法。装置1300可以是芯片、终端设备或网络设备。Figure 13 is a schematic structural diagram of a communication device according to an embodiment of the present application. The dashed line in Figure 13 indicates that the unit or module is optional. The device 1300 can be used to implement the method described in the above method embodiment. Device 1300 may be a chip, terminal device or network device.
装置1300可以包括一个或多个处理器1310。该处理器1310可支持装置1300实现前文方法实施例所描述的方法。该处理器1310可以是通用处理器或者专用处理器。例如,该处理器可以为中央处理单元(central processing unit,CPU)。或者,该处理器还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。Apparatus 1300 may include one or more processors 1310. The processor 1310 can support the device 1300 to implement the method described in the foregoing method embodiments. The processor 1310 may be a general-purpose processor or a special-purpose processor. For example, the processor may be a central processing unit (CPU). Alternatively, the processor can also be another general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), or an off-the-shelf programmable gate array (FPGA) Or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
装置1300还可以包括一个或多个存储器1320。存储器1320上存储有程序,该程序可以被处理器1310执行,使得处理器1310执行前文方法实施例所描述的方法。存储器1320可以独立于处理器1310也可以集成在处理器1310中。Apparatus 1300 may also include one or more memories 1320. The memory 1320 stores a program, which can be executed by the processor 1310, so that the processor 1310 executes the method described in the foregoing method embodiment. The memory 1320 may be independent of the processor 1310 or integrated in the processor 1310.
装置1300还可以包括收发器1330。处理器1310可以通过收发器1330与其他设备或芯片进行通信。例如,处理器1310可以通过收发器1330与其他设备或芯片进行数据收发。Apparatus 1300 may also include a transceiver 1330. Processor 1310 may communicate with other devices or chips through transceiver 1330. For example, the processor 1310 can transmit and receive data with other devices or chips through the transceiver 1330.
本申请实施例还提供一种计算机可读存储介质,用于存储程序。该计算机可读存储介质可应用于本申请实施例提供的终端或网络设备中,并且该程序使得计算机执行本申请各个实施例中的由终端或网络设备执行的方法。An embodiment of the present application also provides a computer-readable storage medium for storing a program. The computer-readable storage medium can be applied in the terminal or network device provided by the embodiments of the present application, and the program causes the computer to execute the methods performed by the terminal or network device in various embodiments of the present application.
本申请实施例还提供一种计算机程序产品。该计算机程序产品包括程序。该计算机程序产品可应用于本申请实施例提供的终端或网络设备中,并且该程序使得计算机执行本申请各个实施例中的由终端或网络设备执行的方法。An embodiment of the present application also provides a computer program product. The computer program product includes a program. The computer program product can be applied in the terminal or network device provided by the embodiments of the present application, and the program causes the computer to execute the methods performed by the terminal or network device in various embodiments of the present application.
本申请实施例还提供一种计算机程序。该计算机程序可应用于本申请实施例提供的终端或网络设备中,并且该计算机程序使得计算机执行本申请各个实施例中的由终端或网络设备执行的方法。An embodiment of the present application also provides a computer program. The computer program can be applied to the terminal or network device provided by the embodiments of the present application, and the computer program causes the computer to execute the methods performed by the terminal or network device in various embodiments of the present application.
应理解,本申请实施例中的“群集”除了上文介绍又可以称为“功能集”,还可以称为“簇”或者“群集”。本申请实施例对上述群集的名称不作限定。It should be understood that the "cluster" in the embodiment of the present application can be called a "functional set" in addition to the above introduction, and can also be called a "cluster" or "cluster". The embodiments of this application do not limit the names of the above clusters.
在本申请实施例中,“交织网络”可以理解为是一种物联网的生态网络,当然,本申请实施例中的交织网络还可以替换为未来物联网中的任一种生态网络。In the embodiment of this application, the "interwoven network" can be understood as an ecological network of the Internet of Things. Of course, the interwoven network in the embodiment of this application can also be replaced by any ecological network in the future Internet of Things.
本申请中术语“系统”和“网络”可以被可互换使用。另外,本申请使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。The terms "system" and "network" may be used interchangeably in this application. In addition, the terms used in this application are only used to explain specific embodiments of the application and are not intended to limit the application. The terms “first”, “second”, “third” and “fourth” in the description, claims and drawings of this application are used to distinguish different objects, rather than to describe a specific sequence. . Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion.
在本申请的实施例中,提到的“指示”可以是直接指示,也可以是间接指示,还可以是表示具有关联关系。举例说明,A指示B,可以表示A直接指示B,例如B可以通过A获取;也可以表示A间接指示B,例如A指示C,B可以通过C获取;还可以表示A和B之间具有关联关系。In the embodiments of this application, the "instruction" mentioned may be a direct instruction, an indirect instruction, or an association relationship. For example, A indicates B, which can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association between A and B. relation.
在本申请实施例中,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。In the embodiment of this application, "B corresponding to A" means that B is associated with A, and B can be determined based on A. However, it should also be understood that determining B based on A does not mean determining B only based on A. B can also be determined based on A and/or other information.
在本申请实施例中,术语“对应”可表示两者之间具有直接对应或间接对应的关系,也可以表示两者之间具有关联关系,也可以是指示与被指示、配置与被配置等关系。In the embodiments of this application, the term "correspondence" can mean that there is a direct correspondence or indirect correspondence between the two, or it can also mean that there is an association between the two, or it can also mean indicating and being instructed, configuring and being configured, etc. relation.
本申请实施例中,“预定义”或“预配置”可以通过在设备(例如,包括终端设备和网络设备)中预先保存相应的代码、表格或其他可用于指示相关信息的方式来实现,本申请对于其具体的实现方式不做限定。比如预定义可以是指协议中定义的。In the embodiment of this application, "predefinition" or "preconfiguration" can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in devices (for example, including terminal devices and network devices). The application does not limit its specific implementation method. For example, predefined can refer to what is defined in the protocol.
本申请实施例中,所述“协议”可以指通信领域的标准协议,例如可以包括LTE协议、NR协议以及应用于未来的通信系统中的相关协议,本申请对此不做限定。In the embodiment of this application, the "protocol" may refer to a standard protocol in the communication field, which may include, for example, LTE protocol, NR protocol, and related protocols applied in future communication systems. This application does not limit this.
本申请实施例中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in the embodiment of this application is only an association relationship describing associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, and A and B exist simultaneously. , there are three situations of B alone. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship.
在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。In the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be determined by the implementation process of the embodiments of the present application. constitute any limitation.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够读取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,数字通用光盘(digital video disc,DVD))或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be read by a computer or a data storage device such as a server or data center integrated with one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVD)) or semiconductor media (e.g., solid state disks (SSD) )wait.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application. should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims (151)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2022/088902 WO2023205988A1 (en) | 2022-04-25 | 2022-04-25 | Method and apparatus for transmitting control information |
CN202280081534.4A CN119014043A (en) | 2022-04-25 | 2022-04-25 | Method and device for transmitting control information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2022/088902 WO2023205988A1 (en) | 2022-04-25 | 2022-04-25 | Method and apparatus for transmitting control information |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023205988A1 true WO2023205988A1 (en) | 2023-11-02 |
Family
ID=88516686
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/088902 WO2023205988A1 (en) | 2022-04-25 | 2022-04-25 | Method and apparatus for transmitting control information |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN119014043A (en) |
WO (1) | WO2023205988A1 (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106154845A (en) * | 2015-03-31 | 2016-11-23 | 宁波家天下智能系统有限公司 | A kind of intelligent domestic system |
CN106161151A (en) * | 2016-06-12 | 2016-11-23 | 青岛海信移动通信技术股份有限公司 | The control method of a kind of Smart Home and equipment |
CN107612705A (en) * | 2017-07-29 | 2018-01-19 | 深圳市盛路物联通讯技术有限公司 | A kind of method and trunking of the equipment power saving of bulk management internet-of-things terminal |
US20210005205A1 (en) * | 2019-07-03 | 2021-01-07 | Samsung Electronics Co., Ltd. | Electronic apparatus and control method thereof |
WO2021096104A1 (en) * | 2019-11-12 | 2021-05-20 | 삼성전자주식회사 | Electronic device, and method for controlling same |
CN114363970A (en) * | 2020-08-25 | 2022-04-15 | 华为技术有限公司 | Communication method and device |
-
2022
- 2022-04-25 CN CN202280081534.4A patent/CN119014043A/en active Pending
- 2022-04-25 WO PCT/CN2022/088902 patent/WO2023205988A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106154845A (en) * | 2015-03-31 | 2016-11-23 | 宁波家天下智能系统有限公司 | A kind of intelligent domestic system |
CN106161151A (en) * | 2016-06-12 | 2016-11-23 | 青岛海信移动通信技术股份有限公司 | The control method of a kind of Smart Home and equipment |
CN107612705A (en) * | 2017-07-29 | 2018-01-19 | 深圳市盛路物联通讯技术有限公司 | A kind of method and trunking of the equipment power saving of bulk management internet-of-things terminal |
US20210005205A1 (en) * | 2019-07-03 | 2021-01-07 | Samsung Electronics Co., Ltd. | Electronic apparatus and control method thereof |
WO2021096104A1 (en) * | 2019-11-12 | 2021-05-20 | 삼성전자주식회사 | Electronic device, and method for controlling same |
CN114363970A (en) * | 2020-08-25 | 2022-04-15 | 华为技术有限公司 | Communication method and device |
Also Published As
Publication number | Publication date |
---|---|
CN119014043A (en) | 2024-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11711682B2 (en) | Cross-resource subscription for M2M service layer | |
JP5981662B2 (en) | Method and apparatus for access authorization authentication in a wireless communication system | |
JP6798667B2 (en) | Systems and methods for managing dynamic virtualized network function descriptors | |
JP6055111B2 (en) | Method and apparatus for proximity control in a wireless communication system | |
KR20200012945A (en) | Methods, Registration Centers, and Devices for Service Discovery | |
US10015684B2 (en) | Method and apparatus for managing specific resource in wireless communication system | |
JP2017531357A (en) | Method and apparatus for automatically generating an event dictionary in an Internet of Things (IoT) network | |
WO2021232197A1 (en) | Method and apparatus for monitoring device state, device, and storage medium | |
EP3425853B1 (en) | Network system, terminal, sensor data collection method, and program | |
US20190044755A1 (en) | Network system, control apparatus, method and program for building virtual network function | |
JP2017528023A (en) | Method and apparatus for incrementally sharing a greater amount of information between user devices | |
US10375021B2 (en) | Method and apparatus for processing request for stopping notification receipt in wireless communication system | |
US10194417B2 (en) | Method for processing notification message in wireless communication system and apparatus therefor | |
CN107948339B (en) | A network addressing method, device and device | |
US10193709B2 (en) | Method for processing request messages in wireless communication system, and device for same | |
US20180034923A1 (en) | Device discovery framework | |
US10979394B2 (en) | Network system, control apparatus, method for constructing a virtual network, and program | |
US20180359322A1 (en) | Service element host selection | |
WO2023205988A1 (en) | Method and apparatus for transmitting control information | |
WO2024050832A1 (en) | Command transmission method and apparatus, chip, storage medium and computer program | |
US20220124008A1 (en) | Automated Service Layer Message Flow Management In A Communications Network | |
JP2006171917A (en) | Protocol for radio multi-hop ad hoc network | |
WO2024152326A1 (en) | Method for determining connection state between devices, and client device, and serving-end device | |
WO2024187299A1 (en) | Method and apparatus for information push, communication device, chip, and storage medium | |
WO2024103257A1 (en) | Method and apparatus for access control |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22938847 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 202280081534.4 Country of ref document: CN |
|
NENP | Non-entry into the national phase |
Ref country code: DE |