CN115396247B - Distribution network method, device and system of Matter equipment - Google Patents

Distribution network method, device and system of Matter equipment Download PDF

Info

Publication number
CN115396247B
CN115396247B CN202211018524.4A CN202211018524A CN115396247B CN 115396247 B CN115396247 B CN 115396247B CN 202211018524 A CN202211018524 A CN 202211018524A CN 115396247 B CN115396247 B CN 115396247B
Authority
CN
China
Prior art keywords
matter
network
distribution network
equipment
unique identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211018524.4A
Other languages
Chinese (zh)
Other versions
CN115396247A (en
Inventor
俞洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Tuya Information Technology Co Ltd
Original Assignee
Hangzhou Tuya Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Tuya Information Technology Co Ltd filed Critical Hangzhou Tuya Information Technology Co Ltd
Priority to CN202211018524.4A priority Critical patent/CN115396247B/en
Publication of CN115396247A publication Critical patent/CN115396247A/en
Application granted granted Critical
Publication of CN115396247B publication Critical patent/CN115396247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast

Abstract

The application relates to a network distribution method, device and system of a water device, wherein the method comprises the following steps: acquiring network distribution parameters corresponding to the Matter equipment through a broadcast packet sent by the Matter equipment; acquiring a character string corresponding to the Matter equipment through the broadcast packet; resolving a unique identifier corresponding to the Matter equipment through the character string; requesting a distribution network key from a cloud server through the unique identifier; acquiring a distribution network key matched with the unique identifier; and carrying out network configuration on the Matter equipment according to the distribution network parameters and the distribution network secret key. According to the scheme, on one hand, the distribution network of the Matter equipment can be realized without scanning the two-dimensional code of the Matter equipment, and the equipment for executing the distribution network is not required to be provided with a camera; on the other hand, by receiving and analyzing the broadcast packets sent by the plurality of Matter devices, the distribution network parameters and the distribution network keys of the plurality of Matter devices can be obtained simultaneously, so that batch distribution of the plurality of Matter devices is realized, and the distribution network efficiency is improved.

Description

Distribution network method, device and system of Matter equipment
Technical Field
The application relates to the technical field of intelligent home, in particular to a network distribution method, device and system of a Matter device.
Background
The Matter protocol is an intelligent home open source standard project, is initiated by the combination of Amazon, apple, google and ZigBee alliance, aims to develop and popularize a new link protocol without patent fee, and short-term equipment following the Matter protocol is Matter equipment.
In the prior art, a network is allocated to a Matter device, for example, an intelligent home is allocated to the intelligent home, a two-dimensional code is required to be arranged on the intelligent home, a client device must scan the two-dimensional code on the intelligent home when the network is allocated, and a network allocation secret key is obtained by scanning the two-dimensional code. And the Matter device is also provided with a communication module, such as a Bluetooth module, and the Bluetooth module transmits the distribution network parameters to the client through broadcasting data packets in the distribution network process. And the client adopts a distribution network key obtained by code scanning and a distribution network parameter obtained by a Bluetooth module to complete distribution network of the Matter equipment.
In addition, in the process of distributing the network to the Matter equipment, the next equipment can be scanned after the network distribution to one equipment is completed.
Disclosure of Invention
The inventor finds that in the process of carrying out network distribution on the Matter equipment, the prior art requires that the code scanning is required, the client equipment is required to be provided with a device capable of scanning the two-dimensional code, and the hardware configuration of the client is required; in addition, as the distribution network secret key is obtained through code scanning, any client can obtain the distribution network secret key through code scanning, so that the safety problem exists; in addition, the distribution network has to be scanned one by one, and the distribution network process is very tedious and inconvenient.
In view of the foregoing, according to a first aspect of the present application, there is provided a network distribution method of a Matter device, which is characterized by comprising:
acquiring network distribution parameters corresponding to the Matter equipment through a broadcast packet sent by the Matter equipment;
acquiring a character string corresponding to the Matter equipment through the broadcast packet;
resolving a unique identifier corresponding to the Matter equipment through the character string;
requesting a distribution network key from a cloud server through the unique identifier;
acquiring a distribution network key matched with the unique identifier; and
and carrying out network configuration on the Matter equipment according to the distribution network parameters and the distribution network secret key.
According to a second aspect of the present application, there is provided a network distribution device of a Matter device, which is characterized by comprising:
the first acquisition module is used for acquiring the distribution network parameters corresponding to the Matter equipment through the broadcast packet sent by the Matter equipment;
the second acquisition module is used for acquiring a character string corresponding to the Matter equipment through the broadcast packet;
the analysis module is used for analyzing a unique identifier corresponding to the Matter equipment through the character string;
the request module is used for requesting the network distribution secret key from the cloud server through the unique identifier;
a third obtaining module, configured to obtain a distribution network key that matches the unique identifier; and
and the configuration module is used for carrying out network configuration on the Matter equipment according to the distribution network parameters and the distribution network secret key.
According to a third aspect of the present application, there is provided a network distribution system of a Matter device, which is characterized by comprising the Matter device, a client device and a cloud server, wherein:
the Matter device is used for sending a broadcast packet, and the broadcast packet contains distribution network parameters;
the client device performing the method as described in the first aspect; and
the cloud server is used for responding to the unique identifier received by the client, sending a configuration network key matched with the unique identifier to the client, and receiving data related to network configuration from the client.
According to a fourth aspect of the present application, there is provided an electronic device comprising:
a processor and a memory. The memory stores computer instructions which, when executed by the processor, perform the method according to the first aspect.
According to a fifth aspect of the present application there is provided a non-transitory computer storage medium storing a computer program which, when executed by a plurality of processors, causes the processors to perform the method as described in the first aspect.
According to the distribution network scheme of the Matter device, on one hand, the distribution network parameters and the unique identifiers corresponding to the distribution network secret keys are placed into the broadcast packets, the distribution network parameters and the unique identifiers can be obtained by receiving and analyzing the broadcast packets, so that the distribution network of the Matter device can be realized without scanning the two-dimensional code of the Matter device, and the device for executing the distribution network does not need to be provided with a camera; on the other hand, by receiving and analyzing the broadcast packets sent by the plurality of Matter devices, the distribution network parameters and the distribution network keys of the plurality of Matter devices can be obtained simultaneously, so that batch distribution of the plurality of Matter devices is realized, the distribution network efficiency is improved, and the method is particularly suitable for site scenes.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art from these drawings without departing from the scope of protection of the present application.
Fig. 1 is a schematic diagram of a distribution network system of a Matter device according to an embodiment of the present application.
Fig. 2 is a flowchart of a network allocation method of a Matter device according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a distribution network device of a Matter device according to an embodiment of the present application.
Fig. 4 is a block diagram of an electronic device provided in the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Fig. 1 is a schematic diagram of a distribution network system of a Matter device according to an embodiment of the present application. As shown in fig. 1, the system includes a cloud server, a client, and a Matter device. Where the client includes, but is not limited to, a cell phone, tablet, computer, etc., the Matter device is a device that complies with the Matter protocol, the number of which may be plural, and in addition, the Matter device may be configured with a bluetooth module and/or a wired communication module, or other communication modules.
In order to realize the distribution network of the Matter device, the client needs to obtain the distribution network parameters corresponding to the Matter device, and also needs to obtain the distribution network key corresponding to the Matter device, and then completes the network configuration of the Matter device through the distribution network parameters and the distribution network key. According to the system shown in fig. 1, the process of performing a batch distribution network is as follows.
1. After the client enters the distribution network page, automatically displaying a list of the material equipment capable of being distributed with the network, and displaying one or more material equipment needing to be distributed with the network in the list.
2. The Bluetooth authority (only limited by the non-wired devices) of the client and the WIFI authority are opened, the Matter devices needing to be distributed are selected, the network distribution flow is entered, and a plurality of Matter devices can be simultaneously selected.
3. Scanning a Bluetooth broadcasting packet when the Matter equipment is provided with a Bluetooth module, receiving the Bluetooth broadcasting packet by a client, and obtaining distribution network parameters through the Bluetooth broadcasting packet; the local area network scans service broadcast packets (e.g., DNS-SD service broadcast packets) when the Matter device is equipped with the wired communication module, and the client receives the service broadcast packets, through which the distribution network parameters are obtained. The distribution network parameters include discirmitor, vendorId and ProductId parameters.
4. When the Matter device is provided with a Bluetooth module, the client establishes a Bluetooth link with the Matter device, and acquires a character string corresponding to the Matter device, such as a c3 characteristic value, wherein a unique identifier of the Matter device is written in the character string; the client analyzes the character string and obtains a unique identifier of the Matter equipment; when the Matter device is equipped with the wired communication module, scanning a service broadcast packet (e.g., DNS-SD service broadcast packet) through the local area network, the client receives the service broadcast packet, and obtains a character string, such as a RotatedId, through the service broadcast packet, wherein a unique identifier of the Matter device has been written in the character string; and resolving the unique identifier of the Matter equipment through the character string. The unique identifier of the Matter device includes a UUID (Universally Unique Identifier, universal unique identifier) field or other fields that distinguish the Matter device from other devices, such as a MAC address, a preset serial number, and the like.
5. The client requests a secret key used by the distribution network, such as a passcode parameter, from the cloud server through the unique identifier of the Matter device, and the secret key is used for establishing an encryption channel with the Matter device.
6. After receiving the unique identifier of the Matter equipment, the cloud server inquires the corresponding relation between the unique identifier of the Matter equipment and the secret key to obtain the secret key, and sends the secret key to the client. And the client establishes a communication channel with the equipment through the acquired secret key, and completes the network distribution flow of the Matter equipment through the acquired network distribution parameters.
7. After the network is successfully allocated, the client synchronizes data related to the network configuration of the Matter equipment to the cloud server, and the cloud server receives and stores the data related to the network configuration from the client.
Based on the system shown in fig. 1, according to an aspect of the present application, a network distribution method of the Matter device is also provided. Fig. 2 is a flowchart of a network allocation method of a Matter device according to an embodiment of the present application. As shown in fig. 2, the method includes the following steps.
Step S201, acquiring the network distribution parameters corresponding to the Matter equipment through the broadcast packet sent by the Matter equipment.
The Matter device can be configured with a Bluetooth module and/or a wired communication module, or other communication modules, and the client obtains the distribution network parameters corresponding to the Matter device in different modes according to different types of the Matter device.
According to one embodiment, the distribution network parameters corresponding to the Matter device are placed in a broadcast packet. Scanning a Bluetooth broadcasting packet when the Matter equipment is provided with a Bluetooth module, receiving the Bluetooth broadcasting packet by a client, and obtaining distribution network parameters through the Bluetooth broadcasting packet; the local area network scans service broadcast packets (e.g., DNS-SD service broadcast packets) when the Matter device is equipped with the wired communication module, and the client receives the service broadcast packets, through which the distribution network parameters are obtained. The distribution network parameters include discirmitor, vendorId and ProductId parameters.
Thus, step S201 includes sub-step S2011 and/or sub-step S2012:
and in the substep 2011, acquiring the network distribution parameters through a Bluetooth broadcasting packet broadcasted by the Matter equipment.
In step S2012, the service broadcast packet broadcast by the Matter device is received through the lan, and the network allocation parameters are obtained.
Step S202, acquiring a character string corresponding to the Matter device through a broadcast packet.
According to one embodiment, when the Matter device is equipped with a bluetooth module, the client establishes a bluetooth link with the Matter device, and obtains a character string corresponding to the Matter device, for example, a c3 characteristic value, where a unique identifier of the Matter device has been written in the character string. After the client obtains the Bluetooth broadcasting packet, the broadcasting packet is parsed, and the character string is obtained at a predetermined position, so that the unique identifier of the Matter device is obtained.
In one particular embodiment, the unique identifier of the Matter device may be subjected to, for example, compression, scrambling, etc., before being written to the c3 characteristic value. The bluetooth protocol format cannot be changed during the process of uniquely identifying the Matter device. For example, the number of bytes of the unique identifier itself of the Matter device may be too large to directly write the c3 characteristic value, requiring processing of the unique identifier, such as compression, so that the format of the bluetooth broadcast of the unique identifier written to the Matter device is unchanged. Thus, the bluetooth broadcast packet has versatility even if the unique identifier of the Matter device is written in the c3 characteristic value of the bluetooth broadcast packet. After the client obtains the character string, the unique identifier is obtained through corresponding processing, such as decompression, order adjustment, and the like.
According to another embodiment, when the Matter device is equipped with a wired communication module, the service broadcast packet (e.g., DNS-SD service broadcast packet) is scanned through the local area network, and the client receives the service broadcast packet, and a character string, such as RotatedId, is obtained through the service broadcast packet, wherein the unique identifier of the Matter device has been written in the character string. After the client obtains the service broadcast packet, the broadcast packet is parsed, and a character string is obtained at a predetermined position, so that a unique identifier of the Matter device is obtained.
In one particular embodiment, some processing, such as compression, scrambling, etc., may be performed on the unique identifier of the Matter device prior to writing the unique identifier to the string. After the client obtains the character string, the unique identifier is obtained through corresponding processing, such as decompression, order adjustment, and the like.
Thus, step S202 includes sub-step S2021 and sub-step S2022.
Substep S2021, by establishing a bluetooth link with the Matter device, acquires a character string corresponding to the Matter device.
In a substep S2022, the service broadcast packet broadcast by the Matter device is received through the lan, and the character string is acquired.
Step S203, a unique identifier corresponding to the Matter equipment is resolved through the character string.
According to one embodiment, for a character string obtained through a Bluetooth link, a client parses the character string to obtain a unique identifier for the Matter device; for character strings obtained through the local area network, the client obtains the unique identification of the Matter device by analyzing the character strings. Wherein the unique identifier of the Matter device includes a UUID field.
In order to ensure the security of the information interaction process of the Matter device, in a specific embodiment, the character string may be an encrypted character string, and after obtaining the encrypted character string, the client needs to decrypt to obtain the unique identifier of the Matter device placed in the character string. In the encrypting process, the character string can be encrypted symmetrically or asymmetrically, and the method is not limited in any way. Before the network is allocated to the Matter equipment, the legal client is informed of the decryption key in a safe mode, and further, the decryption key can be stored in a fixed position of the client or written into hardware of the client, so that the client can conveniently take the decryption key when in use, and the safety of the decryption key is ensured.
Thus, step S203 specifically includes: and decrypting the character string to obtain the unique identifier corresponding to the Matter device.
In step S204, the network key is requested from the cloud server through the unique identifier.
According to one embodiment, the client requests a key, such as a passcode parameter, used by the distribution network from the cloud server via the unique identifier of the Matter device for establishing an encrypted channel with the Matter device.
Step S205, obtain the distribution network key matched with the unique identifier.
Step S206, the network configuration is carried out on the Matter equipment according to the distribution network parameters and the distribution network secret key.
According to one embodiment, after receiving the unique identifier of the Matter device, the cloud server queries the corresponding relationship between the unique identifier of the Matter device and the key to obtain the key, and sends the key to the client. And the client establishes a communication channel with the equipment through the acquired secret key, and completes the network distribution flow of the Matter equipment through the acquired network distribution parameters.
According to one embodiment, after successful network provisioning, the client synchronizes data related to the network configuration of the Matter device to the cloud server.
The above describes a process of distributing a network to one Matter device, in the process of distributing a network to a plurality of Matter devices, a client can receive broadcast packets sent by the plurality of Matter devices at the same time, obtain unique identifiers and network distribution parameters of the respective Matter devices, and obtain a network distribution key through the unique identifiers of the respective Matter devices, thereby distributing the network to the plurality of Matter devices and realizing batch network distribution. In a specific embodiment, the client may establish a buffer for a plurality of Matter devices to be configured, where the buffer stores a list of the Matter devices to be configured, and the list displays the Matter devices to be configured and corresponding distribution network keys and distribution network parameters, and according to the list, the client may automatically configure the plurality of Matter devices one by one or configure one or more devices of the plurality of Matter devices under a command of a user. Therefore, the network distribution process of a single Matter device is simplified, and for scenes (for example, site scenes) where a plurality of Matter devices exist, the network distribution process is greatly simplified, the network distribution efficiency is improved, and the user experience is improved.
Based on the system shown in fig. 1, according to another aspect of the present application, there is also provided a network distribution device of the Matter device. Fig. 3 is a schematic diagram of a distribution network device of a Matter device according to an embodiment of the present application. As shown in fig. 3, the apparatus includes the following modules.
The first obtaining module 301 is configured to obtain a network allocation parameter corresponding to the Matter device through a broadcast packet sent by the Matter device.
The Matter device can be configured with a Bluetooth module and/or a wired communication module, or other communication modules, and the client obtains the distribution network parameters corresponding to the Matter device in different modes according to different types of the Matter device.
According to one embodiment, the distribution network parameters corresponding to the Matter device are placed in a broadcast packet. Scanning a Bluetooth broadcasting packet when the Matter equipment is provided with a Bluetooth module, receiving the Bluetooth broadcasting packet by a client, and obtaining distribution network parameters through the Bluetooth broadcasting packet; the local area network scans service broadcast packets (e.g., DNS-SD service broadcast packets) when the Matter device is equipped with the wired communication module, and the client receives the service broadcast packets, through which the distribution network parameters are obtained. The distribution network parameters include discirmitor, vendorId and ProductId parameters.
Thus, the first acquisition module 301 includes a first acquisition unit 3011 and/or a second acquisition unit 3012:
the first obtaining unit 3011 is configured to obtain a network configuration parameter through a bluetooth broadcast packet broadcasted by the Matter device.
The second obtaining unit 3012 is configured to obtain a network allocation parameter by receiving a service broadcast packet broadcast by the Matter device through the local area network.
A second obtaining module 302, configured to obtain a character string corresponding to the Matter device through a broadcast packet.
According to one embodiment, when the Matter device is equipped with a bluetooth module, the client establishes a bluetooth link with the Matter device, and obtains a character string corresponding to the Matter device, for example, a c3 characteristic value, where a unique identifier of the Matter device has been written in the character string. After the client obtains the Bluetooth broadcasting packet, the broadcasting packet is parsed, and the character string is obtained at a predetermined position, so that the unique identifier of the Matter device is obtained.
In one particular embodiment, the unique identifier of the Matter device may be subjected to, for example, compression, scrambling, etc., before being written to the c3 characteristic value. The bluetooth protocol format cannot be changed during the process of uniquely identifying the Matter device. For example, the number of bytes of the unique identifier itself of the Matter device may be too large to directly write the c3 characteristic value, requiring processing of the unique identifier, such as compression, so that the format of the bluetooth broadcast of the unique identifier written to the Matter device is unchanged. Thus, the bluetooth broadcast packet has versatility even if the unique identifier of the Matter device is written in the c3 characteristic value of the bluetooth broadcast packet. After the client obtains the character string, the unique identifier is obtained through corresponding processing, such as decompression, order adjustment, and the like.
According to another embodiment, when the Matter device is equipped with a wired communication module, the service broadcast packet (e.g., DNS-SD service broadcast packet) is scanned through the local area network, and the client receives the service broadcast packet, and a character string, such as RotatedId, is obtained through the service broadcast packet, wherein the unique identifier of the Matter device has been written in the character string. After the client obtains the service broadcast packet, the broadcast packet is parsed, and the character string is obtained at a predetermined location, thereby obtaining the unique identifier of the Matter device.
In one particular embodiment, some processing, such as compression, scrambling, etc., may be performed on the unique identifier of the Matter device prior to writing the unique identifier to the string. After the client obtains the character string, the unique identifier is obtained through corresponding processing, such as decompression, order adjustment, and the like.
In this way, the second acquisition module 302 includes the third acquisition unit 3021 and the fourth acquisition unit 3022.
A third acquiring unit 3021 configured to acquire a character string corresponding to the Matter device by establishing a bluetooth link with the Matter device.
A fourth acquisition unit 3022 for receiving a service broadcast packet broadcast by the Matter device through the local area network, and acquiring the character string.
And the parsing module 303 is used for parsing out the unique identifier corresponding to the Matter device through the character string.
According to one embodiment, for a character string obtained through a Bluetooth link, a client parses the character string to obtain a unique identifier for the Matter device; for character strings obtained through the local area network, the client obtains the unique identification of the Matter device by analyzing the character strings. Wherein the unique identifier of the Matter device includes a UUID field.
In order to ensure the security of the information interaction process of the Matter device, in a specific embodiment, the character string may be an encrypted character string, and after obtaining the encrypted character string, the client needs to decrypt to obtain the unique identifier of the Matter device placed in the character string. In the encrypting process, the character string can be encrypted symmetrically or asymmetrically, and the method is not limited in any way. Before the network is allocated to the Matter equipment, the legal client is informed of the decryption key in a safe mode, and further, the decryption key can be stored in a fixed position of the client or written into hardware of the client, so that the client can conveniently take the decryption key when in use, and the safety of the decryption key is ensured.
Thus, the parsing module 303 is specifically configured to: and decrypting the character string to obtain the unique identifier corresponding to the Matter device.
The request module 304 is configured to request the distribution network key from the cloud server through the unique identifier.
According to one embodiment, the client requests a key, such as a passcode parameter, used by the distribution network from the cloud server via the unique identifier of the Matter device for establishing an encrypted channel with the Matter device.
A third obtaining module 305 is configured to obtain the distribution network key matched with the unique identifier.
And a provisioning module 306, configured to perform network configuration on the Matter device according to the network distribution parameter and the network distribution key.
According to one embodiment, after receiving the unique identifier of the Matter device, the cloud server queries the corresponding relationship between the unique identifier of the Matter device and the key to obtain the key, and sends the key to the client. And the client establishes a communication channel with the equipment through the acquired secret key, and completes the network distribution flow of the Matter equipment through the acquired network distribution parameters.
According to one embodiment, after successful network provisioning, the client synchronizes data related to the network configuration of the Matter device to the cloud server.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
Referring to fig. 4, fig. 4 provides an electronic device including a processor and a memory. The memory stores computer instructions that, when executed by the processor, cause the processor to execute the computer instructions to implement the method and refinement as shown in fig. 2.
It should be understood that the above-described device embodiments are illustrative only and that the disclosed device may be implemented in other ways. For example, the division of the units/modules in the above embodiments is merely a logic function division, and there may be another division manner in actual implementation. For example, multiple units, modules, or components may be combined, or may be integrated into another system, or some features may be omitted or not performed.
In addition, unless specifically described, each functional unit/module in each embodiment of the present invention may be integrated into one unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated together. The integrated units/modules described above may be implemented either in hardware or in software program modules.
The integrated units/modules, if implemented in hardware, may be digital circuits, analog circuits, etc. Physical implementations of hardware structures include, but are not limited to, transistors, memristors, and the like. The processor or chip may be any suitable hardware processor, such as CPU, GPU, FPGA, DSP and ASIC, etc., unless otherwise specified. The on-chip cache, off-chip Memory, memory may be any suitable magnetic or magneto-optical storage medium, such as resistive Random Access Memory RRAM (Resistive Random Access Memory), dynamic Random Access Memory DRAM (Dynamic Random Access Memory), static Random Access Memory SRAM (Static Random Access Memory), enhanced dynamic Random Access Memory EDRAM (Enhanced Dynamic Random Access Memory), high-Bandwidth Memory HBM (High-Bandwidth Memory), hybrid Memory cube HMC (Hybrid Memory Cube), and the like, unless otherwise indicated.
The integrated units/modules may be stored in a computer readable memory if implemented in the form of software program modules and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Embodiments of the present application also provide a non-transitory computer storage medium storing a computer program that, when executed by a plurality of processors, causes the processors to perform the method and refinement as shown in fig. 2.
According to the distribution network scheme of the Matter device, on one hand, the distribution network parameters and the unique identifiers corresponding to the distribution network secret keys are placed into the broadcast packets, the distribution network parameters and the unique identifiers can be obtained by receiving and analyzing the broadcast packets, so that the distribution network of the Matter device can be realized without scanning the two-dimensional code of the Matter device, and the device for executing the distribution network does not need to be provided with a camera; on the other hand, by receiving and analyzing the broadcast packets sent by the plurality of Matter devices, the distribution network parameters and the distribution network keys of the plurality of Matter devices can be obtained simultaneously, so that batch distribution of the plurality of Matter devices is realized, the distribution network efficiency is improved, and the method is particularly suitable for site scenes.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all alternative embodiments, and that the acts and modules referred to are not necessarily required in the present application.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples have been provided herein to illustrate the principles and embodiments of the present application, and wherein the above examples are provided to assist in the understanding of the methods and concepts of the present application. Meanwhile, based on the ideas of the present application, those skilled in the art can make changes or modifications on the specific embodiments and application scope of the present application, which belong to the scope of the protection of the present application. In view of the foregoing, this description should not be construed as limiting the application.

Claims (10)

1. A network distribution method of a Matter device, applied to a client device, comprising:
acquiring network distribution parameters corresponding to the Matter equipment through a broadcast packet sent by the Matter equipment;
acquiring a character string corresponding to the Matter equipment through the broadcast packet;
resolving a unique identifier corresponding to the Matter equipment through the character string;
requesting a distribution network key from a cloud server through the unique identifier;
acquiring a distribution network key matched with the unique identifier; and
and carrying out network configuration on the Matter equipment according to the distribution network parameters and the distribution network secret key.
2. The method of claim 1, wherein the acquiring the network allocation parameters corresponding to the Matter device:
acquiring the network distribution parameters through a Bluetooth broadcast packet broadcast by the Matter equipment;
or alternatively, the first and second heat exchangers may be,
and receiving a service broadcast packet broadcast by the Matter equipment through a local area network, and acquiring the distribution network parameters.
3. The method of claim 1, wherein the acquiring the character string corresponding to the Matter device through the broadcast packet comprises:
and establishing a Bluetooth link with the Matter equipment to acquire the character string corresponding to the Matter equipment.
4. The method of claim 1, wherein the acquiring the character string corresponding to the Matter device through the broadcast packet comprises:
and receiving a service broadcast packet broadcast by the Matter equipment through a local area network, and acquiring the character string.
5. The method of any one of claims 1 to 4, further comprising:
and synchronizing data related to the network configuration of the Matter equipment to the cloud server.
6. The method of any one of claims 1 to 4, wherein the character string is an encrypted character string, and the parsing out the unique identifier corresponding to the Matter device by the character string comprises:
and decrypting the character string to obtain a unique identifier corresponding to the Matter device.
7. A distribution network device of a Matter device, comprising:
the first acquisition module is used for acquiring the distribution network parameters corresponding to the Matter equipment through the broadcast packet sent by the Matter equipment;
the second acquisition module is used for acquiring a character string corresponding to the Matter equipment through the broadcast packet;
the analysis module is used for analyzing a unique identifier corresponding to the Matter equipment through the character string;
the request module is used for requesting the network distribution secret key from the cloud server through the unique identifier;
a third obtaining module, configured to obtain a distribution network key that matches the unique identifier; and
and the configuration module is used for carrying out network configuration on the Matter equipment according to the distribution network parameters and the distribution network secret key.
8. The distribution network system of the Matter equipment is characterized by comprising the Matter equipment, the client equipment and a cloud server, wherein:
the Matter device is used for sending a broadcast packet, and the broadcast packet contains distribution network parameters;
the client device performing the method of any one of claims 1 to 6; and
the cloud server is used for responding to the unique identifier received by the client, sending a configuration network key matched with the unique identifier to the client, and receiving data related to network configuration from the client.
9. An electronic device, comprising:
a processor; and
a memory storing computer instructions that, when executed by the processor, cause the processor to perform the method of any of claims 1-6.
10. A non-transitory computer storage medium storing a computer program, characterized in that the computer program, when executed by a plurality of processors, causes the processors to perform the method of any of claims 1-6.
CN202211018524.4A 2022-08-24 2022-08-24 Distribution network method, device and system of Matter equipment Active CN115396247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211018524.4A CN115396247B (en) 2022-08-24 2022-08-24 Distribution network method, device and system of Matter equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211018524.4A CN115396247B (en) 2022-08-24 2022-08-24 Distribution network method, device and system of Matter equipment

Publications (2)

Publication Number Publication Date
CN115396247A CN115396247A (en) 2022-11-25
CN115396247B true CN115396247B (en) 2023-12-19

Family

ID=84121138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211018524.4A Active CN115396247B (en) 2022-08-24 2022-08-24 Distribution network method, device and system of Matter equipment

Country Status (1)

Country Link
CN (1) CN115396247B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632814A (en) * 2017-03-17 2018-10-09 上海庆科信息技术有限公司 A kind of terminal device network collocating method and system
CN110601870A (en) * 2019-07-31 2019-12-20 华为技术有限公司 Method, device and system for registering device distribution network
CN110995665A (en) * 2019-11-15 2020-04-10 北京小米移动软件有限公司 Network distribution method and device, electronic equipment and storage medium
CN111752443A (en) * 2019-03-28 2020-10-09 华为技术有限公司 Method, related device and system for controlling page by display equipment
CN113271579A (en) * 2021-05-24 2021-08-17 杭州涂鸦信息技术有限公司 Bluetooth device control method, client, computer device and readable storage medium
CN114390521A (en) * 2020-10-18 2022-04-22 Oppo广东移动通信有限公司 Key updating method, device, equipment and storage medium
CN114793178A (en) * 2022-05-07 2022-07-26 北京百度网讯科技有限公司 Network distribution method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9531587B2 (en) * 2014-11-12 2016-12-27 Smartlabs, Inc. Systems and methods to link network controllers using installed network devices
US20170099647A1 (en) * 2015-10-05 2017-04-06 Nebulae LLC Systems and Methods for Registering Devices in a Wireless Network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632814A (en) * 2017-03-17 2018-10-09 上海庆科信息技术有限公司 A kind of terminal device network collocating method and system
CN111752443A (en) * 2019-03-28 2020-10-09 华为技术有限公司 Method, related device and system for controlling page by display equipment
CN110601870A (en) * 2019-07-31 2019-12-20 华为技术有限公司 Method, device and system for registering device distribution network
CN110995665A (en) * 2019-11-15 2020-04-10 北京小米移动软件有限公司 Network distribution method and device, electronic equipment and storage medium
CN114390521A (en) * 2020-10-18 2022-04-22 Oppo广东移动通信有限公司 Key updating method, device, equipment and storage medium
CN113271579A (en) * 2021-05-24 2021-08-17 杭州涂鸦信息技术有限公司 Bluetooth device control method, client, computer device and readable storage medium
CN114793178A (en) * 2022-05-07 2022-07-26 北京百度网讯科技有限公司 Network distribution method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Matter设备的配网方法、装置和系统";李意莲;《中国优秀硕士学位论文全文数据库(电子期刊)工程科技Ⅱ辑》;全文 *

Also Published As

Publication number Publication date
CN115396247A (en) 2022-11-25

Similar Documents

Publication Publication Date Title
US10623954B2 (en) AP connection method, terminal, and server
US10581599B2 (en) Cloud storage method and system
EP3748928A1 (en) Method and system for apparatus awaiting network configuration to access hot spot network apparatus
US11303431B2 (en) Method and system for performing SSL handshake
EP3065334A1 (en) Key configuration method, system and apparatus
CN107517179B (en) Authentication method, device and system
US9633029B2 (en) Method, server, and user terminal for providing and acquiring media content
WO2016078301A1 (en) Wireless network access method and access apparatus, client and storage medium
US20180365395A1 (en) Multimedia data processing method, apparatus, system, and storage medium
EP3337088B1 (en) Data encryption method, decryption method, apparatus, and system
JP6756009B2 (en) Data transmission
KR20190099066A (en) Digital certificate management method and device
CN106411504B (en) Data encryption system, method and device
TW201517668A (en) Network sharing device, system and method
CN113301563A (en) Network configuration method, device, equipment and storage medium
CN110913351B (en) Multicast control method, device, network equipment and storage medium
CN115396247B (en) Distribution network method, device and system of Matter equipment
JP5721183B2 (en) Wireless LAN communication system, wireless LAN base unit, communication connection establishment method, and program
WO2014201783A1 (en) Encryption and authentication method, system and terminal for ad hoc network
CN117501653A (en) Apparatus, system and method for operating a wireless network
CN110839237B (en) Method and device for accessing equipment to be configured with network to access point
CN109274765B (en) Data transmission method, equipment and system
CN113194471B (en) Wireless network access method, device and terminal based on block chain network
WO2024041177A1 (en) Method for verifying access request, user terminal, and base station
TW201705739A (en) An authentication system and method based on time stamp

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant