Equipment network distribution method and device, electronic equipment and storage medium

Through the central controller, the information of the distributed equipment is determined and obtained, and the equipment is automatically distributed, which solves the problems of cumbersome and low efficiency of distribution networks in the existing technology, and improves the distribution network efficiency.

CN119136230APending Publication Date: 2024-12-13GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411121091.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

In the prior art, the equipment distribution network is complicated and inefficient, especially after the router password is replaced, the distribution network needs to be distributed one by one, resulting in a complicated distribution process.

Method used

Through the central controller, determine whether there is a terminal device or device gateway that has been distributed in the current network, obtain its distribution network information, and send it to the device to be distributed, so that it can access the network based on the information, thereby realizing automatic distribution network .

Benefits of technology

The equipment distribution network process is simplified, the distribution network efficiency is improved, and the user's operation steps are reduced. Especially after the router password is changed, only one device needs to be reconfigured to automatically complete the distribution network of other devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119136230A_ABST
    Figure CN119136230A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an equipment network distribution method and device, electronic equipment and a storage medium, and the method comprises the steps: judging whether a second terminal device with a distributed network exists in a current network or not when receiving target fault notification information which is sent by a first terminal device after the network distribution fails and is used for representing a network distribution fault, the second terminal device is a terminal device which uses a preset protocol for communication in the current network; acquiring network distribution information of the second terminal equipment when it is judged that the second terminal equipment which has been subjected to network distribution exists in the current network; and sending the network distribution information to the first terminal device, so that the first terminal device accesses the current network based on the network distribution information. According to the embodiment of the invention, in the network distribution process, after one terminal device is configured, automatic network distribution of other terminal devices can be realized, the network distribution process of the device is simplified, and the network distribution efficiency of the device is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network connection technology, and in particular to a device network configuration method and device, electronic equipment, and storage medium. Background Art

[0002] In the prior art, the user needs to manually configure each device to be configured one by one. After completing the configuration, when the router password is changed, the configuration needs to be performed again for each device one by one. The configuration process is cumbersome and the configuration efficiency is low. Summary of the invention

[0003] In view of the above problems, a device network configuration method and apparatus, electronic device, and storage medium are proposed to overcome the above problems or at least partially solve the above problems, including:

[0004] A device network configuration method, applied to a central controller, comprising:

[0005] Upon receiving target fault notification information indicating a network configuration failure sent by a first terminal device after a network configuration failure, determining whether there is a second terminal device that has been configured in the current network, the second terminal device being a terminal device that uses a preset protocol to communicate in the current network;

[0006] When it is determined that there is a second terminal device that has been networked in the current network, obtaining network configuration information of the second terminal device;

[0007] The network configuration information is sent to the first terminal device, so that the first terminal device accesses the current network based on the network configuration information.

[0008] Optionally, determining whether there is a second terminal device that has been networked in the current network includes:

[0009] Determine the configured terminal devices in the current network;

[0010] Receiving a target protocol field sent by the network-provisioned terminal device during the network configuration process;

[0011] Based on the target protocol field, it is determined whether there is a second terminal device that has been configured in the current network.

[0012] Optionally, judging whether there is a second terminal device that has been networked in the current network based on the target protocol field includes:

[0013] Determine the protocol type used by the configured terminal device for communication according to the target protocol field;

[0014] When the protocol type is a preset protocol, determining that the network-configured terminal device is the second terminal device;

[0015] When the protocol type is not a preset type, it is determined that the network-configured terminal device is not the majority second terminal device.

[0016] Optionally, the network configuration information includes wireless access point information and verification information of the device.

[0017] Optionally, the preset protocol is a matter protocol.

[0018] A device network configuration method, applied to a central controller, comprising:

[0019] Upon receiving target fault notification information indicating a network configuration failure sent by a first terminal device after a network configuration failure, determining whether there is a network-configured device gateway in the current network, the device gateway being connected to one or more third terminal devices that communicate using a non-preset protocol, the device gateway being used for communication between a second terminal device that communicates using a preset protocol corresponding to the current network and the third terminal device;

[0020] When it is determined that there is a network-configured device gateway in the current network, obtaining network configuration information of the device gateway;

[0021] The network configuration information is sent to the first terminal device, so that the first terminal device accesses the current network based on the network configuration information.

[0022] A device network configuration method, applied to a first terminal device, the method comprising:

[0023] After detecting that the first terminal device fails to configure the network, generating target fault notification information for indicating the network configuration failure;

[0024] Sending the target fault notification information to the central controller, so that the central controller obtains the network configuration information from the second terminal device and / or the device gateway that has been configured in the current network based on the target fault notification information, the second terminal device is a terminal device that uses a preset protocol to communicate in the current network, the device gateway is connected to one or more third terminal devices that use a non-preset protocol to communicate, and the device gateway is used for communication between the second terminal device that uses the preset protocol corresponding to the current network and the third terminal device;

[0025] Receiving network configuration information sent by the central controller;

[0026] Access the current network based on the network configuration information.

[0027] Optionally, the detecting that the first terminal device fails to configure the network includes:

[0028] During the network configuration process of the first terminal device, when the network configuration verification of the first terminal device fails and / or the number of reconnections is greater than or equal to a preset number of times, it is determined that the network configuration failure of the first terminal device is detected.

[0029] A device network configuration method is applied to a second terminal device and / or a device gateway that has been configured in a current network, wherein the second terminal device is a terminal device that uses a preset protocol to communicate in the current network, and the device gateway is connected to one or more third terminal devices that use a non-preset protocol to communicate, and the device gateway is used for communication between the second terminal device that uses the preset protocol corresponding to the current network and the third terminal device, and the method includes:

[0030] Obtain network configuration information for terminal devices to configure in the current network;

[0031] The network configuration information is sent to a central controller so that the central controller forwards the network configuration information to a first terminal device to be configured.

[0032] A device network distribution device, applied to a central controller, comprising:

[0033] A first judgment module is used to judge whether there is a second terminal device that has been networked in the current network when receiving target fault notification information sent by the first terminal device after the network configuration fails and used to indicate the network configuration fault, wherein the second terminal device is a terminal device that uses a preset protocol to communicate in the current network;

[0034] A first network configuration information acquisition module, configured to acquire network configuration information of the second terminal device when it is determined that there is a second terminal device that has been configured in the current network;

[0035] The first network configuration information sending module is used to send the network configuration information to the first terminal device, so that the first terminal device can access the current network based on the network configuration information.

[0036] A device network distribution device, applied to a central controller, comprising:

[0037] A second judgment module is used to judge whether there is a network-configured device gateway in the current network when receiving target fault notification information indicating a network configuration fault sent by the first terminal device after the network configuration fails, the device gateway is connected to one or more third terminal devices that communicate using a non-preset protocol, and the device gateway is used for communication between the second terminal device that communicates using the preset protocol corresponding to the current network and the third terminal device;

[0038] A second network configuration information acquisition module, configured to acquire the network configuration information of the device gateway when it is determined that there is a device gateway that has been configured in the current network;

[0039] The second network configuration information sending module is used to send the network configuration information to the first terminal device, so that the first terminal device can access the current network based on the network configuration information.

[0040] A device network configuration device, applied to a first terminal device to be network configured, the device comprising:

[0041] A target fault notification information generating module, used to generate target fault notification information indicating a network configuration failure after detecting that the first terminal device fails to configure the network;

[0042] A target fault notification information sending module, used to send the target fault notification information to the central controller, so that the central controller obtains the network configuration information from the second terminal device and / or device gateway that has been configured in the current network based on the target fault notification information, the second terminal device is a terminal device that uses a preset protocol to communicate in the current network, the device gateway is connected to one or more third terminal devices that use a non-preset protocol to communicate, and the device gateway is used for communication between the second terminal device that uses the preset protocol corresponding to the current network and the third terminal device;

[0043] A network configuration information receiving module, used to receive the network configuration information sent by the central controller;

[0044] A network configuration module is used to access the current network based on the network configuration information.

[0045] A device network configuration device is applied to a second terminal device and / or a device gateway that has been configured in a current network, wherein the second terminal device is a terminal device that uses a preset protocol to communicate in the current network, and the device gateway is connected to one or more third terminal devices that use a non-preset protocol to communicate, and the device gateway is used for communication between the second terminal device that uses the preset protocol corresponding to the current network and the third terminal device, and the device includes:

[0046] A network configuration information acquisition module is used to obtain network configuration information for terminal devices to configure in the current network;

[0047] The network configuration information sending module is used to send the network configuration information to the central controller so that the central controller forwards the network configuration information to the first terminal device to be configured.

[0048] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the above-mentioned device network configuration method when executed by the processor.

[0049] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the device network configuration method as described above is implemented.

[0050] The embodiments of the present invention have the following advantages:

[0051] In an embodiment of the present invention, when a target fault notification message indicating a network configuration fault is received and sent by a first terminal device after a network configuration failure, it is determined whether there is a second terminal device that has been configured in the current network, the second terminal device being a terminal device that uses a preset protocol to communicate in the current network; when it is determined that there is a second terminal device that has been configured in the current network, the network configuration information of the second terminal device is obtained; the network configuration information is sent to the first terminal device so that the first terminal device can access the current network based on the network configuration information, so that during the network configuration process, after configuring one terminal device, other terminal devices can automatically configure the network, thereby simplifying the device network configuration process and improving the device network configuration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0053] Figure 1 This is a flowchart of a method for configuring a network for a device provided by an embodiment of the present invention;

[0054] Figure 2 is a flowchart of another device network configuration method provided by an embodiment of the present invention;

[0055] Figure 3 is a flowchart of another device network configuration method provided by an embodiment of the present invention;

[0056] Figure 4 is a flowchart of another device network configuration method provided by an embodiment of the present invention;

[0057] Figure 5 It is a structural schematic diagram of a distribution network system provided by an embodiment of the present invention;

[0058] Figure 6 It is a structural schematic diagram of a device network distribution device provided by an embodiment of the present invention;

[0059] Figure 7 It is a structural schematic diagram of another equipment network distribution device provided by an embodiment of the present invention;

[0060] Figure 8 It is a structural schematic diagram of another equipment network distribution device provided by an embodiment of the present invention;

[0061] Fig. 9 It is a structural schematic diagram of another equipment network distribution device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0062] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0063] Reference Figure 1 , shows a flow chart of the steps of a device network configuration method provided by an embodiment of the present invention, which is applied to a central controller and may specifically include the following steps:

[0064] Step S101, upon receiving target fault notification information indicating a network configuration failure sent by a first terminal device after a network configuration failure, determining whether there is a second terminal device that has been configured in the current network;

[0065] The first terminal device is a device to be networked, the second terminal device is a networked device, and the network currently accessed by the first terminal device is a network that supports a preset protocol, and the second terminal device is a terminal device that uses a preset protocol to communicate in the current network. In an embodiment of the present invention, the first terminal device and the second terminal device may be home appliances in a home scene, and the current network is a home network.

[0066] In one example, the preset protocol may be the Matter protocol, which has the function of supporting the integration and control of multiple devices in an ecosystem and providing reliable and secure connections between devices. Through the Matter protocol, rapid networking of multiple terminal devices in the home can be achieved, and automatic error correction can be completed during verification and matching during networking, thereby improving user experience.

[0067] In the embodiment of the present invention, the central controller is the master control device of all terminal devices and gateway devices, and can be used for communication and device control between multiple devices. The network currently used by the central controller in the embodiment of the present invention supports the preset protocol, so that the central controller can send messages to each device through the preset protocol and receive messages sent by each device through the preset protocol.

[0068] In actual applications, when the first terminal device needs to be networked, the network configuration information is required to execute the network configuration process. If the network configuration information matches the preset network configuration information, the network configuration can be successful and the corresponding network can be accessed. If the network configuration information does not match the preset network configuration information, the network configuration fails.

[0069] When the network configuration information fails to be configured, the network configuration process in the embodiment of the present invention may be triggered. Specifically, the first terminal device may generate target fault notification information for indicating the network configuration failure. After the first terminal device generates the target fault notification information, the target fault notification information may be sent to the central controller. Specifically, when the first terminal device is not configured, the target fault notification information may be sent to the central controller in a broadcast manner.

[0070] After receiving the target fault notification information sent by the first terminal device, the central controller can determine whether there is a second terminal device that meets the preset conditions in the current network, where the conditions that the second terminal device needs to meet are: (1) network configuration; (2) support for the preset protocol of the current network.

[0071] In one embodiment of the present invention, it is possible to determine whether there is a configured second terminal device in the current network by the following method: determining the configured terminal devices in the current network; receiving the target protocol field sent by the configured terminal devices during the configuration process; and determining whether there is a configured second terminal device in the current network based on the target protocol field.

[0072] Specifically, in the central controller, when the terminal device completes the network configuration, the preset identifier can be stored in the network configuration table of the central controller. When a new terminal device is connected and completes the network configuration process, the network configuration table is updated accordingly. In addition, at every preset time period, the central device can send a network detection package to the configured devices in the network configuration table through a preset protocol, and determine whether the terminal device is off the network by receiving the feedback signal of the network detection package.

[0073] The central controller can obtain the network configuration table. When the device terminal identifier is not stored in the network configuration table, it is determined that there is currently no device to be configured. At this time, a network configuration prompt message can be generated and sent to the user who manages the device configuration to remind the user to configure the device.

[0074] When the device terminal identification is stored in the network configuration table, the network configuration has been completed by the terminal device. The terminal device that has been configured can be determined based on the terminal identification, and then the target protocol field sent by the configured terminal device during the network configuration process can be obtained. The central controller can determine the target protocol field sent by the configured terminal device during the network configuration process based on the target protocol field.

[0075] The target protocol field is a field indicating the protocol supported by the terminal device. The target protocol field can be set according to the protocols supported by different terminals, and there is no excessive restriction on this in the embodiment of the present invention.

[0076] Specifically, the central controller can determine the protocol type used by the configured terminal device for communication according to the target protocol field, and the protocol type may include but is not limited to any of the following protocol types: WiFi protocol, BLE protocol, Matter protocol, etc. After determining the protocol type of the configured device. When the protocol type is a preset protocol, the configured terminal device is determined to be the second terminal device; when the protocol type is not a preset type, the configured terminal device is determined not to be the second terminal device.

[0077] Step S102, when it is determined that there is a second terminal device that has been networked in the current network, obtaining network configuration information of the second terminal device;

[0078] In one example, the network configuration information includes wireless access point information and verification information of the device. Specifically, the wireless access point information may be an identifier of the wireless access point (SS1D), and the verification information may be password information for network configuration.

[0079] Step S103: Send the network configuration information to the first terminal device, so that the first terminal device accesses the current network based on the network configuration information.

[0080] After obtaining the network configuration information, the central controller can send the network configuration information to the first terminal device. After receiving the network configuration information, the first terminal device executes the network configuration process according to the network configuration information. Specifically, the first terminal device parses the received network configuration information and extracts key parameters such as SSID and password.

[0081] Based on the parsed information, the first terminal device starts the network configuration process, turns on the wireless function of the device, and searches for available wireless networks. The first terminal device finds a network that matches the received SSID in the searched wireless network list, and the first terminal device can connect to the wireless network using the received password. The first terminal device sends a connection request and waits for a response from the network. If the password is correct, the network accepts the connection request, and the first terminal device successfully connects to the wireless network. If the password is incorrect or the network rejects the connection request, the first terminal device displays a connection failure message, and may need to re-enter the correct password or re-execute the network configuration process. After the first terminal device successfully connects to the wireless network, the first terminal device can begin using the network for data transmission and communication.

[0082] In an embodiment of the present invention, after accessing the current network, the first terminal device can communicate with the terminal devices in the current network, wherein the first terminal device is a terminal device that supports a preset protocol.

[0083] In an embodiment of the present invention, when a target fault notification message indicating a network configuration fault is received and sent by a first terminal device after a network configuration failure, it is determined whether there is a second terminal device that has been configured in the current network, the second terminal device being a terminal device that uses a preset protocol to communicate in the current network; when it is determined that there is a second terminal device that has been configured in the current network, the network configuration information of the second terminal device is obtained; the network configuration information is sent to the first terminal device so that the first terminal device can access the current network based on the network configuration information, so that during the network configuration process, after configuring one terminal device, other terminal devices can automatically configure the network, thereby simplifying the device network configuration process and improving the device network configuration efficiency.

[0084] Reference Figure 2 , shows a flowchart of another device network configuration method provided by an embodiment of the present invention, which is applied to a central controller and may specifically include the following steps:

[0085] Step S201, upon receiving target fault notification information indicating a network configuration failure sent by a first terminal device after a network configuration failure, it is determined whether there is a network-configured device gateway in the current network.

[0086] The device gateway is connected to one or more third terminal devices that communicate using a non-preset protocol, and the device gateway is used for communication between a second terminal device and a third terminal device that communicate using a preset protocol corresponding to the current network;

[0087] In one example, the preset protocol may be the Matter protocol, which has the function of supporting the integration and control of multiple devices in an ecosystem and providing reliable and secure connections between devices. Through the Matter protocol, rapid networking of multiple terminal devices in the home can be achieved, and automatic error correction can be completed during verification and matching during networking, thereby improving user experience.

[0088] In practical applications, the central controller can be used to control one or more terminal devices supporting a preset protocol, or can be used to control one or more terminal devices supporting a non-preset protocol through a gateway device of a preset protocol.

[0089] In the embodiment of the present invention, the first terminal device may be a terminal device supporting a preset protocol or a terminal device supporting a non-preset protocol.

[0090] Step S202, when it is determined that there is a network-configured device gateway in the current network, obtaining network configuration information of the device gateway;

[0091] Step S203: Send the network configuration information to the first terminal device, so that the first terminal device accesses the current network based on the network configuration information.

[0092] In the embodiment of the present invention, through multi-device collaboration, it is possible to combine multiple devices with the same or different protocols to collaboratively send password information to achieve rapid network configuration, thereby improving the network configuration efficiency of terminal devices.

[0093] Reference Figure 3 , shows a flowchart of another device network configuration method provided by an embodiment of the present invention, which is applied to a first terminal device to be configured, and may specifically include the following steps:

[0094] Step S301, after detecting that the first terminal device fails to configure the network, generating target fault notification information for indicating the network configuration failure;

[0095] In actual applications, after detecting that the first terminal device fails to configure the network, the automatic network configuration process can be started, and the first terminal device can generate target fault notification information, which can be used to inform the central controller that the current first terminal device fails to configure the network.

[0096] After receiving the target fault notification information, the central controller can detect the current environment and determine whether automatic network configuration can be performed. If there is a second terminal device or device gateway with a preset network configuration protocol in the current network, automatic network configuration can continue to be performed. If not, it is necessary to manually configure the second terminal device or device gateway with a preset network configuration protocol before performing automatic network configuration.

[0097] In one embodiment of the present invention, during the network configuration process of the first terminal device, when the network configuration verification of the first terminal device fails and / or the number of reconnections is greater than or equal to a preset number, it is determined that the network configuration failure of the first terminal device is detected.

[0098] In one example, when the password of the router is reset, one or more terminal devices that originally accessed the network corresponding to the router need to be reconfigured, and the device configuration method in the embodiment of the present invention can be applied at this time. The second terminal device or gateway device that supports the preset protocol is configured, and then the other terminal devices to be configured are automatically configured based on the configuration information of the second terminal device or gateway device. Therefore, after the password is reset, only one terminal device can be configured to achieve the configuration of all terminal devices under the router. Compared with configuring each terminal device one by one, the configuration efficiency can be improved and the configuration process can be simplified.

[0099] Step S302, sending the target fault notification information to the central controller, so that the central controller obtains the network configuration information from the second terminal device and / or the device gateway that has been configured in the current network based on the target fault notification information;

[0100] The second terminal device is a terminal device that uses a preset protocol for communication in the current network, the device gateway is connected to one or more third terminal devices that use a non-preset protocol for communication, and the device gateway is used for communication between the second terminal device and the third terminal device that uses the preset protocol corresponding to the current network;

[0101] The first terminal device may send the generated target fault notification information to the central controller to implement automatic network configuration of the first terminal device through the central controller.

[0102] After receiving the target fault notification message, the central controller can determine whether there is a second terminal device that has been networked in the current network; when it is determined that there is a second terminal device that has been networked in the current network, obtain the network configuration information of the second terminal device; and send the network configuration information to the first terminal device.

[0103] Step S303, receiving network configuration information sent by the central controller;

[0104] In one example, the network configuration information includes wireless access point information and verification information of the device. Specifically, the wireless access point information may be an identifier of the wireless access point (SS1D), and the verification information may be password information for network configuration.

[0105] Step S304: access the current network based on the network configuration information.

[0106] In the embodiment of the present invention, during the network configuration process, after one terminal device is configured, other terminal devices can automatically configure the network, thereby simplifying the device network configuration process and improving the device network configuration efficiency.

[0107] Reference Figure 4 , shows a flowchart of another device network configuration method provided by an embodiment of the present invention, which is applied to a second terminal device and / or a device gateway that has been configured in the current network, the second terminal device is a terminal device that uses a preset protocol to communicate in the current network, the device gateway is connected to one or more third terminal devices that use a non-preset protocol to communicate, and the device gateway is used for communication between the second terminal device and the third terminal device that uses the preset protocol corresponding to the current network to communicate, and specifically may include the following steps:

[0108] Step S401, obtaining network configuration information for the terminal device to configure the network in the current network;

[0109] In actual applications, the second terminal device and / or device gateway that has been configured in the current network can determine the network configuration information, wherein the network configuration information includes the wireless access point information and verification information of the device. Specifically, the wireless access point information can be the identifier of the wireless access point (SS1D), and the verification information is the password information for network configuration.

[0110] Step S402: Send the network configuration information to the central controller, so that the central controller forwards the network configuration information to the first terminal device to be configured.

[0111] After the second terminal device and / or the device gateway determines the network configuration information, it can send the network configuration information to the central controller so that the central controller forwards the network configuration information to the first terminal device to be configured, and then, automatic network configuration can be achieved in the first terminal device according to the high-configuration network information.

[0112] In the embodiment of the present invention, during the network configuration process, after one terminal device is configured, other terminal devices can automatically configure the network, thereby simplifying the device network configuration process and improving the device network configuration efficiency.

[0113] Reference Figure 5, showing a schematic diagram of the structure of a network distribution system for smart home devices according to an embodiment of the present invention, the network distribution system may include a router, an application (APP) corresponding to a central controller, one or more matter devices, one or more non-matter devices, and a matter gateway, wherein the central controller may be connected to one or more matter devices and a matter gateway, the matter devices and the matter gateway may be controlled through the APP, the matter devices and the matter gateway communicate with the central controller and the router based on the matter protocol, the matter gateway may realize the conversion between matter protocol data and non-matter protocol data, one or more non-matter devices are connected to the matter gateway, and then the matter gateway may convert the non-matter protocol data generated by one or more non-matter devices into matter protocol data, and then communicate with devices supporting the matter protocol through the matter protocol, or the matter gateway may convert the matter protocol data into non-matter protocol data after receiving the matter protocol data sent by the matter device, and then send the non-matter protocol data to each of the one or more non-matter devices.

[0114] The above architecture can realize communication between one or more matter devices and one or more non-matter devices. That is, devices supporting matter and non-matter protocols can communicate with each other, such as Bluetooth devices and WiFi devices can communicate with each other through the matter protocol.

[0115] The network configuration process based on the above architecture is as follows:

[0116] (I) In the new device scenario:

[0117] When the user's home already has a Matter protocol device or Matter gateway that has been configured with the network, when a new device is connected, when the user connects the device to the network, if the password entered by the APP is detected to be incorrect and the number of times the router is reconnected exceeds three times, a password error field notification is sent to the APP of the central controller. At this time, the APP detects that there is a Matter device that has been configured with the network in the home, and then sends the SSID and password (i.e., network configuration information) of this device to the device to be connected.

[0118] When the configured device is a device that supports the matter protocol, the device to be configured can be a device connected with a different protocol. At this time, you can send a new SSID through the app to detect the connected WiFi, and then use the transmitted password to connect to the router.

[0119] (II) Router password modification scenario:

[0120] When there are multiple devices in the user's home connected to the app home, and the connected router changes its password, the user only needs to reconfigure one device. At this time, multiple devices in the home that are configured under the matter gateway are in a reconnecting state. After reconnecting multiple times, they request the app, and the app converts the ssid and password through the matter protocol and sends them to other devices. Other devices can then directly reconnect to the network. Devices that are not under the matter gateway can also reconnect by clicking on the app, and reconnect to the network through data transmission through the connected matter device. Users do not need to operate in this process, which is convenient for users and improves user experience.

[0121] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0122] Reference Figure 6 , shows a schematic diagram of the structure of a device network configuration device provided by an embodiment of the present invention, which is applied to a central controller and may specifically include the following modules:

[0123] A first judgment module 601 is used to judge whether there is a second terminal device that has been networked in the current network when receiving target fault notification information sent by the first terminal device after the network configuration fails and used to indicate the network configuration fault, wherein the second terminal device is a terminal device that uses a preset protocol to communicate in the current network;

[0124] A first network configuration information acquisition module 602 is used to acquire network configuration information of the second terminal device when it is determined that there is a second terminal device that has been configured in the current network;

[0125] The first network configuration information sending module 603 is used to send the network configuration information to the first terminal device, so that the first terminal device can access the current network based on the network configuration information.

[0126] In an embodiment of the present invention, the first determining module 601 may include:

[0127] A submodule for determining a configured terminal device, used to determine a configured terminal device in the current network;

[0128] A target protocol field receiving submodule is used to receive a target protocol field sent by the configured terminal device during the network configuration process;

[0129] The judgment submodule is used to judge whether there is a second terminal device that has been configured in the current network based on the target protocol field.

[0130] In one embodiment of the present invention, the judgment submodule may include:

[0131] A protocol type determination unit, configured to determine the protocol type used by the configured network terminal device for communication according to the target protocol field;

[0132] A first terminal determination unit, configured to determine that the network-configured terminal device is the second terminal device when the protocol type is a preset protocol;

[0133] The second terminal determination unit is used to determine that the network-configured terminal device is not the second terminal device when the protocol type is not a preset type.

[0134] In an embodiment of the present invention, the network configuration information includes wireless access point information and verification information of the device.

[0135] In an embodiment of the present invention, the preset protocol is the matter protocol.

[0136] Reference Figure 7 , shows a schematic diagram of the structure of a device network distribution device provided by an embodiment of the present invention, which is applied to a central controller and may specifically include the following modules:

[0137] The second judgment module 701 is used to judge whether there is a network-configured device gateway in the current network when receiving target fault notification information indicating a network configuration fault sent by the first terminal device after the network configuration fails, the device gateway is connected to one or more third terminal devices that communicate using a non-preset protocol, and the device gateway is used for communication between the second terminal device that communicates using the preset protocol corresponding to the current network and the third terminal device;

[0138] The second network configuration information acquisition module 702 is used to acquire the network configuration information of the device gateway when it is determined that there is a network-configured device gateway in the current network;

[0139] The second network configuration information sending module 703 is used to send the network configuration information to the first terminal device, so that the first terminal device can access the current network based on the network configuration information.

[0140] Reference Figure 8, shows a schematic diagram of the structure of a device network configuration apparatus provided by an embodiment of the present invention, which is applied to a first terminal device to be configured, and may specifically include the following modules:

[0141] A target fault notification information generating module 801 is used to generate target fault notification information indicating a network configuration failure after detecting that the first terminal device fails to configure the network;

[0142] A target fault notification information sending module 802 is used to send the target fault notification information to the central controller, so that the central controller obtains the network configuration information from the second terminal device and / or device gateway that has been configured in the current network based on the target fault notification information, the second terminal device is a terminal device that uses a preset protocol to communicate in the current network, the device gateway is connected to one or more third terminal devices that use a non-preset protocol to communicate, and the device gateway is used for communication between the second terminal device that uses the preset protocol corresponding to the current network and the third terminal device;

[0143] The network configuration information receiving module 803 is used to receive the network configuration information sent by the central controller;

[0144] The network configuration module 804 is configured to access the current network based on the network configuration information.

[0145] In an embodiment of the present invention, the target fault notification information generating module 801 may be used to:

[0146] During the network configuration process of the first terminal device, when the network configuration verification of the first terminal device fails and / or the number of reconnections is greater than or equal to a preset number of times, it is determined that the network configuration failure of the first terminal device is detected.

[0147] Reference Fig. 9 , shows a schematic diagram of the structure of a device network configuration device provided by an embodiment of the present invention, which is applied to a second terminal device and / or a device gateway that has been configured in the current network, wherein the second terminal device is a terminal device that uses a preset protocol to communicate in the current network, and the device gateway is connected to one or more third terminal devices that use a non-preset protocol to communicate, and the device gateway is used for communication between the second terminal device that uses the preset protocol corresponding to the current network and the third terminal device, and specifically may include the following modules:

[0148] The network configuration information acquisition module 901 is used to acquire the network configuration information used by the terminal device to configure the network in the current network;

[0149] The network configuration information sending module 902 is used to send the network configuration information to the central controller, so that the central controller forwards the network configuration information to the first terminal device to be configured.

[0150] An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the above device network configuration method is implemented.

[0151] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above device network configuration method is implemented.

[0152] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0153] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0154] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0155] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0156] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0157] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0158] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0159] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0160] The above is a detailed introduction to a device network configuration method and apparatus, an electronic device, and a storage medium. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A device network configuration method, characterized in that: Applied to a central controller, the method comprises: Upon receiving target fault notification information indicating a network configuration failure sent by a first terminal device after a network configuration failure, determining whether there is a second terminal device that has been configured in the current network, the second terminal device being a terminal device that uses a preset protocol to communicate in the current network; When it is determined that there is a second terminal device that has been networked in the current network, obtaining network configuration information of the second terminal device; The network configuration information is sent to the first terminal device, so that the first terminal device accesses the current network based on the network configuration information.

2. The method according to claim 1, characterized in that The determining whether there is a second terminal device that has been networked in the current network includes: Determine the configured terminal devices in the current network; Receiving a target protocol field sent by the network-provisioned terminal device during the network configuration process; Based on the target protocol field, it is determined whether there is a second terminal device that has been configured in the current network.

3. The method according to claim 2, characterized in that The determining, based on the target protocol field, whether there is a second terminal device that has been configured in the current network includes: Determine the protocol type used by the configured terminal device for communication according to the target protocol field; When the protocol type is a preset protocol, determining that the network-configured terminal device is the second terminal device; When the protocol type is not a preset type, it is determined that the network-configured terminal device is not the second terminal device.

4. The method according to any one of claims 1 to 3, characterized in that The network configuration information includes wireless access point information and verification information of the device.

5. The method according to any one of claims 1 to 3, characterized in that The preset protocol is the matter protocol.

6. A device network configuration method, characterized in that: Applied to a central controller, the method comprises: Upon receiving target fault notification information indicating a network configuration failure sent by a first terminal device after a network configuration failure, determining whether there is a network-configured device gateway in the current network, the device gateway being connected to one or more third terminal devices that communicate using a non-preset protocol, the device gateway being used for communication between a second terminal device that communicates using a preset protocol corresponding to the current network and the third terminal device; When it is determined that there is a network-configured device gateway in the current network, obtaining network configuration information of the device gateway; The network configuration information is sent to the first terminal device, so that the first terminal device accesses the current network based on the network configuration information.

7. A device network configuration method, characterized in that: Applied to a first terminal device, the method includes: After detecting that the first terminal device fails to configure the network, generating target fault notification information for indicating the network configuration failure; Sending the target fault notification information to the central controller, so that the central controller obtains the network configuration information from the second terminal device and / or the device gateway that has been configured in the current network based on the target fault notification information, the second terminal device is a terminal device that uses a preset protocol to communicate in the current network, the device gateway is connected to one or more third terminal devices that use a non-preset protocol to communicate, and the device gateway is used for communication between the second terminal device that uses the preset protocol corresponding to the current network and the third terminal device; Receiving network configuration information sent by the central controller; Access the current network based on the network configuration information.

8. The method according to claim 7, characterized in that The detecting that the first terminal device fails to configure the network includes: During the network configuration process of the first terminal device, when the network configuration verification of the first terminal device fails and / or the number of reconnections is greater than or equal to a preset number of times, it is determined that the network configuration failure of the first terminal device is detected.

9. A device network configuration method, characterized in that: Applied to a second terminal device and / or a device gateway that has been configured in the current network, the second terminal device is a terminal device that uses a preset protocol to communicate in the current network, the device gateway is connected to one or more third terminal devices that use a non-preset protocol to communicate, and the device gateway is used for communication between the second terminal device that uses the preset protocol corresponding to the current network and the third terminal device, the method includes: Obtain network configuration information for terminal devices to configure in the current network; The network configuration information is sent to a central controller so that the central controller forwards the network configuration information to a first terminal device to be configured.

10. A device network distribution device, characterized in that: Applied to a central controller, the device comprises: A first judgment module is used to judge whether there is a second terminal device that has been networked in the current network when receiving target fault notification information sent by the first terminal device after the network configuration fails and used to indicate the network configuration fault, wherein the second terminal device is a terminal device that uses a preset protocol to communicate in the current network; A first network configuration information acquisition module, configured to acquire network configuration information of the second terminal device when it is determined that there is a second terminal device that has been configured in the current network; The first network configuration information sending module is used to send the network configuration information to the first terminal device, so that the first terminal device can access the current network based on the network configuration information.

11. A device for network distribution, characterized in that: Applied to a central controller, the device comprises: A second judgment module is used to judge whether there is a network-configured device gateway in the current network when receiving target fault notification information indicating a network configuration fault sent by the first terminal device after the network configuration fails, the device gateway is connected to one or more third terminal devices that communicate using a non-preset protocol, and the device gateway is used for communication between the second terminal device that communicates using the preset protocol corresponding to the current network and the third terminal device; A second network configuration information acquisition module, configured to acquire the network configuration information of the device gateway when it is determined that there is a network-configured device gateway in the current network; The second network configuration information sending module is used to send the network configuration information to the first terminal device, so that the first terminal device can access the current network based on the network configuration information.

12. A device for network distribution, characterized in that: The first terminal device to be used in a network to be configured includes: A target fault notification information generating module, used to generate target fault notification information indicating a network configuration failure after detecting that the first terminal device fails to configure the network; A target fault notification information sending module, used to send the target fault notification information to the central controller, so that the central controller obtains the network configuration information from the second terminal device and / or device gateway that has been configured in the current network based on the target fault notification information, the second terminal device is a terminal device that uses a preset protocol to communicate in the current network, the device gateway is connected to one or more third terminal devices that use a non-preset protocol to communicate, and the device gateway is used for communication between the second terminal device that uses the preset protocol corresponding to the current network and the third terminal device; A network configuration information receiving module, used to receive the network configuration information sent by the central controller; A network configuration module is used to access the current network based on the network configuration information.

13. A device for network distribution, characterized in that: Applied to a second terminal device and / or a device gateway that has been configured in the current network, the second terminal device is a terminal device that uses a preset protocol to communicate in the current network, the device gateway is connected to one or more third terminal devices that use a non-preset protocol to communicate, and the device gateway is used for communication between the second terminal device and the third terminal device that uses the preset protocol corresponding to the current network, and the device includes: A network configuration information acquisition module is used to obtain network configuration information for terminal devices to configure in the current network; The network configuration information sending module is used to send the network configuration information to the central controller so that the central controller forwards the network configuration information to the first terminal device to be configured.

14. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the device network configuration method according to any one of claims 1 to 9 is implemented.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the device network configuration method according to any one of claims 1 to 9 is implemented.