CN117811864A - Network distribution method and device of intelligent household equipment and electronic equipment - Google Patents

Network distribution method and device of intelligent household equipment and electronic equipment Download PDF

Info

Publication number
CN117811864A
CN117811864A CN202311874235.9A CN202311874235A CN117811864A CN 117811864 A CN117811864 A CN 117811864A CN 202311874235 A CN202311874235 A CN 202311874235A CN 117811864 A CN117811864 A CN 117811864A
Authority
CN
China
Prior art keywords
intelligent home
intelligent
devices
router
equipment
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.)
Pending
Application number
CN202311874235.9A
Other languages
Chinese (zh)
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202311874235.9A priority Critical patent/CN117811864A/en
Publication of CN117811864A publication Critical patent/CN117811864A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a network distribution method and device of intelligent household equipment and electronic equipment, and relates to the technical field of computers. The method comprises the following steps: determining N intelligent household devices to be subjected to network allocation, and determining a first intelligent household device in the N intelligent household devices, wherein N is a positive integer greater than 1; the method comprises the steps that network distribution is conducted on a first intelligent home device, and a network distribution result of the first intelligent home device is obtained, wherein the network distribution result is used for representing whether the intelligent home device is successfully connected to a router or not; and determining a strategy for distributing the M intelligent household devices based on a distribution network result of the first intelligent household device, wherein the M intelligent household devices are intelligent household devices except the first intelligent household device in the N intelligent household devices, and M is a positive integer smaller than N. Through the method and the device, the problem that network distribution time is long for a plurality of intelligent home devices in the related technology is solved.

Description

Network distribution method and device of intelligent household equipment and electronic equipment
Technical Field
The application relates to the technical field of computers, in particular to a network distribution method and device of intelligent household equipment and electronic equipment.
Background
At present, with the development of smart home, a family may not only possess a smart home device with wifi function (wireless local area network function), and at this time, the user has set forth higher requirements on the speed of batch network distribution. In addition, in the related art, when a network is configured for a plurality of intelligent home devices, generally, routing information such as a name and a password of a router to be connected is sent to each intelligent home device through a central device (such as an application program or an applet) first, then each intelligent home device is connected with the router according to the routing information sent by the central device, and after connection, each intelligent home device sends information of a successfully connected router to the central device. However, when the intelligent home device uses the router information connected with the router sent by the central device and the router replies the information successfully connected to the intelligent home device, a long time is generally required, and if a client needs to realize that n devices are matched into the same router, all processes in the related technology need to be repeated, at this time, the time that the device uses the router information connected with the router and the router replies the information successfully connected to the device can be prolonged by n times, which can cause overlong waiting time of the user and further result in longer network distribution time for a plurality of intelligent home devices.
Aiming at the problem that the network distribution time of a plurality of intelligent home devices is long in the related art, no effective solution is proposed at present.
Disclosure of Invention
The main purpose of the application is to provide a network distribution method and device of intelligent household equipment and electronic equipment, so as to solve the problem of long network distribution time of a plurality of intelligent household equipment in related technologies.
In order to achieve the above objective, according to one aspect of the present application, a network allocation method for smart home devices is provided. The method comprises the following steps: determining N intelligent household devices to be subjected to network allocation, and determining a first intelligent household device in the N intelligent household devices, wherein N is a positive integer greater than 1; the first intelligent home equipment is distributed to obtain a distribution network result of the first intelligent home equipment, wherein the distribution network result is used for representing whether the intelligent home equipment is successfully connected to a router or not; and determining a strategy for distributing the M intelligent household devices based on the distribution network result of the first intelligent household device, wherein the M intelligent household devices are intelligent household devices except the first intelligent household device in the N intelligent household devices, and M is a positive integer smaller than N.
Further, based on the network distribution result of the first intelligent home device, determining a policy for distributing the network to the M intelligent home devices includes: if the network distribution result of the first intelligent home equipment indicates that the first intelligent home equipment is successfully connected to the router, acquiring the routing information of the router through each intelligent home equipment in the M intelligent home equipment; according to the routing information of the router, the M intelligent home devices are respectively connected to the router to complete the step of network distribution of the M intelligent home devices; and if the network distribution result of the first intelligent household equipment represents that the first intelligent household equipment is not successfully connected to the router, the network distribution of the M intelligent household equipment is forbidden.
Further, before the route information of the router is obtained by each smart home device in the M smart home devices, the method further includes: an identity authentication request is sent to each intelligent home device in the M intelligent home devices through an application program, wherein the application program is an application program corresponding to the N intelligent home devices; based on the identity authentication request, carrying out identity authentication on each intelligent home equipment in the M intelligent home equipment to obtain M identity authentication results, wherein the identity authentication results are used for indicating whether the intelligent home equipment passes the identity authentication; and sending the routing information of the router to each intelligent home device in the M intelligent home devices according to the M identity authentication results.
Further, according to the M identity authentication results, sending the routing information of the router to each of the M smart home devices includes: judging whether each intelligent home device in the M intelligent home devices passes the identity authentication according to the M identity authentication results; if each of the M intelligent home devices passes the identity authentication, sending the routing information of the router to each of the M intelligent home devices; and if at least one intelligent home device in the M intelligent home devices fails to pass the identity authentication, prohibiting sending the routing information of the router to each intelligent home device in the M intelligent home devices.
Further, based on the identity authentication request, performing identity authentication on each intelligent home device in the M intelligent home devices, where obtaining M identity authentication results includes: based on the identity authentication request, acquiring protocol information of each intelligent home device in the M intelligent home devices; and carrying out identity authentication on each intelligent home equipment in the M intelligent home equipment according to the protocol information of each intelligent home equipment in the M intelligent home equipment to obtain M identity authentication results.
Further, sending, by the application program, an identity authentication request to each of the M smart home devices includes: sending a connection request to each intelligent home device in the M intelligent home devices through the application program; based on the connection request, connecting the application program with each intelligent home device in the M intelligent home devices to obtain M connection results, wherein the connection results are used for indicating whether the application program is successfully connected with the intelligent home devices or not; if the M connection results indicate that the application program is successfully connected with each of the M intelligent home devices, sending the identity authentication request to each of the M intelligent home devices through the application program; and if the M connection results indicate that the connection between the application program and at least one intelligent household device in the M intelligent household devices fails, prohibiting the application program from sending the identity authentication request to each intelligent household device in the M intelligent household devices.
Further, the network distribution of the first intelligent home equipment is performed, and the network distribution result of the first intelligent home equipment is obtained, including: acquiring the route information of the router through the first intelligent home equipment; according to the routing information of the router, the first intelligent home equipment is connected with the router to carry out network distribution on the first intelligent home equipment; if the first intelligent home equipment is successfully connected with the router, determining that the network distribution result of the first intelligent home equipment is successful; if the first intelligent home equipment fails to be connected with the router, determining that the network distribution result of the first intelligent home equipment is network distribution failure.
Further, obtaining, by each of the M smart home devices, routing information of the router includes: acquiring name information of the router through each intelligent home device in the M intelligent home devices, and acquiring password information needed to be used for connecting the router; and acquiring the routing information of the router based on the name information of the router and the password information needed to be used for connecting the router.
In order to achieve the above objective, according to another aspect of the present application, a network distribution device of an intelligent home device is provided. The device comprises: the first determining unit is used for determining N pieces of intelligent home equipment to be subjected to network allocation and determining a first piece of intelligent home equipment in the N pieces of intelligent home equipment, wherein N is a positive integer greater than 1; the first processing unit is used for carrying out network distribution on the first intelligent household equipment to obtain a network distribution result of the first intelligent household equipment, wherein the network distribution result is used for representing whether the intelligent household equipment is successfully connected to a router or not; the second determining unit is configured to determine a policy of performing network allocation on M pieces of smart home devices based on a network allocation result of the first piece of smart home devices, where the M pieces of smart home devices are smart home devices, except for the first piece of smart home devices, among the N pieces of smart home devices, and M is a positive integer smaller than N.
Further, the second determining unit includes: the first obtaining module is used for obtaining the route information of the router through each intelligent home device in the M intelligent home devices if the network distribution result of the first intelligent home device indicates that the first intelligent home device is successfully connected to the router; the first connection module is used for respectively connecting the M intelligent household devices to the router according to the routing information of the router so as to complete the step of network distribution of the M intelligent household devices; the first processing module is used for prohibiting the distribution of the M intelligent household devices if the distribution result of the first intelligent household device represents that the first intelligent household device is not successfully connected to the router.
Further, the apparatus further comprises: the first sending unit is used for sending an identity authentication request to each intelligent home device in the M intelligent home devices through an application program before the routing information of the router is obtained through each intelligent home device in the M intelligent home devices, wherein the application program is an application program corresponding to the N intelligent home devices; the first authentication unit is used for carrying out identity authentication on each intelligent home equipment in the M intelligent home equipment based on the identity authentication request to obtain M identity authentication results, wherein the identity authentication results are used for indicating whether the intelligent home equipment passes the identity authentication; and the second sending unit is used for sending the routing information of the router to each intelligent home device in the M intelligent home devices according to the M identity authentication results.
Further, the second transmitting unit includes: the first judging module is used for judging whether each intelligent home device in the M intelligent home devices passes the identity authentication according to the M identity authentication results; the first sending module is used for sending the routing information of the router to each intelligent home device in the M intelligent home devices if each intelligent home device in the M intelligent home devices passes the identity authentication; the second processing module is used for prohibiting the routing information of the router from being sent to each intelligent home device in the M intelligent home devices if at least one intelligent home device in the M intelligent home devices fails to pass the identity authentication.
Further, the first authentication unit includes: the second acquisition module is used for acquiring protocol information of each intelligent home device in the M intelligent home devices based on the identity authentication request; the first authentication module is used for carrying out identity authentication on each intelligent home device in the M intelligent home devices according to the protocol information of each intelligent home device in the M intelligent home devices to obtain M identity authentication results.
Further, the first transmitting unit includes: the second sending module is used for sending a connection request to each intelligent home device in the M intelligent home devices through the application program; the second connection module is used for connecting the application program with each intelligent home device in the M intelligent home devices based on the connection request to obtain M connection results, wherein the connection results are used for indicating whether the application program is successfully connected with the intelligent home devices or not; the third sending module is used for sending the identity authentication request to each intelligent home device in the M intelligent home devices through the application program if the M connection results indicate that the application program is successfully connected with each intelligent home device in the M intelligent home devices; and the third processing module is used for prohibiting the application program from sending the identity authentication request to each intelligent home device in the M intelligent home devices if the M connection results indicate that the application program fails to be connected with at least one intelligent home device in the M intelligent home devices.
Further, the first processing unit includes: the third acquisition module is used for acquiring the route information of the router through the first intelligent home equipment; the third connection module is used for connecting the first intelligent household equipment with the router according to the routing information of the router so as to carry out network distribution on the first intelligent household equipment; the first determining module is used for determining that the network distribution result of the first intelligent home equipment is successful if the first intelligent home equipment is successfully connected with the router; and the second determining module is used for determining that the network distribution result of the first intelligent home equipment is network distribution failure if the connection between the first intelligent home equipment and the router fails.
Further, the first acquisition module includes: the first acquisition sub-module is used for acquiring the name information of the router through each intelligent home device in the M intelligent home devices and acquiring the password information needed to be used for connecting the router; and the second acquisition sub-module is used for acquiring the routing information of the router based on the name information of the router and the password information needed to be used for connecting the router.
To achieve the above object, according to another aspect of the present application, there is provided an electronic device including one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the network allocation method of the smart home device according to any one of the above.
Through the application, the following steps are adopted: determining N intelligent household devices to be subjected to network allocation, and determining a first intelligent household device in the N intelligent household devices, wherein N is a positive integer greater than 1; the method comprises the steps that network distribution is conducted on a first intelligent home device, and a network distribution result of the first intelligent home device is obtained, wherein the network distribution result is used for representing whether the intelligent home device is successfully connected to a router or not; based on the distribution network result of the first intelligent home equipment, determining a strategy for distributing the network to M intelligent home equipment, wherein M intelligent home equipment is intelligent home equipment except the first intelligent home equipment in N intelligent home equipment, M is a positive integer smaller than N, and the problem that the distribution network time of a plurality of intelligent home equipment in the related technology is long is solved. The network distribution method comprises the steps of determining a first intelligent household device of a plurality of intelligent household devices to be distributed, distributing the first intelligent household device to obtain a network distribution result of the first intelligent household device, determining a strategy of distributing the network of the rest plurality of intelligent household devices to be distributed based on the network distribution result of the first intelligent household device, and accordingly reducing the time for connecting the rest plurality of intelligent household devices with a router respectively, and further achieving the effect of shortening the network distribution time of the plurality of intelligent household devices.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, illustrate and explain the application and are not to be construed as limiting the application. In the drawings:
fig. 1 is a flowchart of a network allocation method of an intelligent home device according to an embodiment of the present application;
fig. 2 is a schematic diagram of a network configuration process for a single device in this embodiment;
fig. 3 is a schematic diagram of a network configuration process performed on the remaining devices except the first device in the present embodiment;
fig. 4 is a schematic diagram of a network distribution device of an intelligent home device according to an embodiment of the present application;
fig. 5 is a schematic diagram of an electronic device provided according to an embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, related information (including, but not limited to, user equipment information, user personal information, etc.) and data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present disclosure are information and data authorized by a user or sufficiently authorized by each party. For example, an interface is provided between the system and the relevant user or institution, before acquiring the relevant information, the system needs to send an acquisition request to the user or institution through the interface, and acquire the relevant information after receiving the consent information fed back by the user or institution.
For convenience of description, the following will describe some terms or terms related to the embodiments of the present application:
intelligent household equipment: refers to household appliances and equipment connected through various intelligent technologies and the Internet, and can realize automatic, remote control and intelligent management.
The present invention is described below with reference to preferred implementation steps, and fig. 1 is a flowchart of a network allocation method of an intelligent home device according to an embodiment of the present application, as shown in fig. 1, where the method includes the following steps:
step S101, determining N pieces of intelligent home equipment to be distributed with a network, and determining a first piece of intelligent home equipment in the N pieces of intelligent home equipment, wherein N is a positive integer greater than 1.
For example, the smart home devices may be devices such as a smart light, a smart door lock, and a smart air conditioner. In addition, when a plurality of intelligent household devices are needed to carry out network distribution operation, any one of the intelligent household devices can be selected as the first intelligent household device.
Step S102, a first intelligent home device is distributed to obtain a distribution network result of the first intelligent home device, wherein the distribution network result is used for representing whether the intelligent home device is successfully connected to a router.
For example, a network configuration operation may be performed on any device (corresponding to the first smart home device) selected from the plurality of smart home devices, that is, the selected device (corresponding to the first smart home device) may be connected to the router first, and a network configuration result may be obtained if the device (corresponding to the first smart home device) can be successfully connected to the router.
Step S103, determining a strategy for distributing the M intelligent home devices based on a distribution network result of the first intelligent home device, wherein the M intelligent home devices are intelligent home devices except the first intelligent home device in the N intelligent home devices, and M is a positive integer smaller than N.
For example, if it is determined that the first smart home device of the plurality of smart home devices is successfully connected to the router, then it may be considered that the remaining devices of the plurality of smart home devices may also be successfully connected to the router, and at this time, it may be considered that the network allocation of the plurality of smart home devices to be allocated (corresponding to the N smart home devices described above) is successful, and the user may be notified. If it is determined that the first intelligent home device of the plurality of intelligent home devices cannot be successfully connected to the router, then other devices of the plurality of intelligent home devices cannot be successfully connected to the router, and at the moment, the network distribution of the plurality of intelligent home devices (corresponding to the N intelligent home devices) to be subjected to the network distribution can be considered to be failed.
Through the steps S101 to S103, the first intelligent home device of the plurality of intelligent home devices to be distributed is determined, the first intelligent home device is distributed to obtain the distribution result of the first intelligent home device, and then the strategy of distributing the network to the remaining plurality of intelligent home devices of the plurality of intelligent home devices to be distributed is determined based on the distribution result of the first intelligent home device, so that the time for the remaining plurality of intelligent home devices to be connected with the router respectively can be reduced, and the effect of shortening the time for distributing the network to the plurality of intelligent home devices is achieved.
Optionally, in the network distribution method of the smart home device provided in the embodiment of the present application, network distribution is performed on a first smart home device, and obtaining a network distribution result of the first smart home device includes: acquiring route information of a router through a first intelligent home device; according to the routing information of the router, connecting the first intelligent household equipment with the router to carry out network distribution on the first intelligent household equipment; if the first intelligent home equipment is successfully connected with the router, determining that the network distribution result of the first intelligent home equipment is successful; if the first intelligent home equipment fails to be connected with the router, determining that the network distribution result of the first intelligent home equipment is network distribution failure.
For example, when the first smart home device is configured with the network, the first smart home device may first obtain, from Application software such as APP (Application) and applet corresponding to the smart home device, routing information such as a name and a password of a router to be connected, and then the first smart home device may connect to the router using the obtained routing information such as the name and the password of the router; if the first intelligent home equipment is successfully connected to the router, the first intelligent home equipment is successfully allocated to the network; and if the first intelligent home equipment cannot be successfully connected to the router, the network distribution failure of the first intelligent home equipment is indicated.
For example, fig. 2 is a schematic diagram of a flow of network configuration for a single device in this embodiment, and as shown in fig. 2, a specific flow of network configuration for a first smart home device may include the following steps:
(1) BLE (Bluetooth Low Energy ) Central (Central device) establishes a connection with BLE (Bluetooth Low Energy ) Peripheral (Peripheral) via GATT (a protocol for connecting devices). And the BLE Central in fig. 2 may be Application software such as APP (Application) and applet corresponding to the smart home device, and the BLE Peripheral in fig. 2 may be the smart home device.
(2) BLE Peripheral (corresponding to the first smart home device described above) replies with a connection ACK (Acknowledge character, acknowledgement character) to successfully establish the connection.
(3) BLE Central (corresponding to the application described above) transmits an identity request.
(4) BLE Peripheral (corresponding to the first smart home device described above) verifies the identity and replies Identification response (information that the authentication request needs to use, such as the version number of the device's protocol).
(5) BLE Central (corresponding to the application described above) sends routing information to BLE Peripheral.
(6) BLE Peripheral (corresponding to the first smart home device described above) connects the router using routing information (which may be name information and password information of the router, etc.).
(7) The router replies to BLE Peripheral that the connection was successful.
(8) BLE Peripheral (corresponding to the first smart home device) replies a connection ACK (Acknowledge character ) to BLE Central (corresponding to the application).
(9) The BLE Central (corresponding to the application program) queries that the device is online in the server, and the network allocation is successful.
Through the scheme, the first intelligent home equipment can be conveniently subjected to network distribution processing according to the routing information.
Optionally, in the network allocation method of the smart home device provided in the embodiment of the present application, determining, based on a network allocation result of the first smart home device, a policy for allocating a network to M smart home devices includes: if the network distribution result of the first intelligent home equipment indicates that the first intelligent home equipment is successfully connected to the router, acquiring the routing information of the router through each intelligent home equipment in the M intelligent home equipment; according to the routing information of the router, the M intelligent home devices are respectively connected to the router to complete the step of network distribution of the M intelligent home devices; and if the network distribution result of the first intelligent household device indicates that the first intelligent household device is not successfully connected to the router, prohibiting network distribution of M intelligent household devices.
For example, in the scenario of multi-device connection, the first BLE Peripheral (corresponding to the first smart home device) may be verified once, so as to verify whether the router may be connected, if the first BLE Peripheral (corresponding to the first smart home device) successfully sends a connection ACK to the BLE Central, the other devices (corresponding to the M smart home devices) only need to directly reply the ACK after receiving the routing information, so that the BLE Central considers that the device may be considered successful, the subsequent device connects to the router according to the routing information obtained from the BLE Central, and the user may complete the multi-device network distribution without sense. In contrast, if the first BLE Peripheral (corresponding to the first smart home device described above) fails to send a connection to the router, then it may be considered that the remaining devices (corresponding to the M smart home devices described above) cannot connect to the router.
Through the scheme, the total use of the distribution network for a plurality of intelligent home devices can be controlled in a short time, so that the distribution network time of a large number of devices can be greatly shortened.
Optionally, in the network allocation method for intelligent home devices provided in the embodiment of the present application, obtaining, by each intelligent home device in M intelligent home devices, routing information of a router includes: acquiring name information of a router through each intelligent home device in the M intelligent home devices, and acquiring password information needed to be used for connecting the router; and acquiring the routing information of the router based on the name information of the router and the password information needed to be used by the connecting router.
For example, the routing information may be information such as an SSID (Service Set Identifier ) of the router, a name for identifying the wireless lan, a name through which the user can connect to a specific wireless network, a password required to connect to the router, and the like. When each smart home device obtains the routing information, the SSID (Service Set Identifier ) of the router may be obtained first, the name of the wireless local area network may be used to identify the name of the wireless local area network, the user may connect to the specific wireless network through the SSID), the name, the password required to be used to connect to the router, and other information may be collected together to obtain the routing information.
By the scheme, the router information of the router can be quickly and accurately acquired.
Optionally, in the network allocation method of the smart home device provided in the embodiment of the present application, before route information of the router is acquired by each smart home device in the M smart home devices, the method further includes: an identity authentication request is sent to each intelligent home device in M intelligent home devices through application programs, wherein the application programs are application programs corresponding to N intelligent home devices; based on the identity authentication request, carrying out identity authentication on each intelligent home equipment in the M intelligent home equipment to obtain M identity authentication results, wherein the identity authentication results are used for indicating whether the intelligent home equipment passes the identity authentication; and sending the route information of the router to each intelligent home device in the M intelligent home devices according to the M identity authentication results.
For example, the application program (corresponding to the BLE Central) may send the routing information of the router to each smart home device (corresponding to the BLE Peripheral), and the specific step of sending the routing information to each smart home device through the application program may be that an identity authentication request is sent to each smart home device through the application program, and according to the identity authentication request, identity authentication is performed to each smart home device (corresponding to the BLE Peripheral), and then according to the authentication result of identity authentication to each smart home device (corresponding to the BLE Peripheral), the routing information of the router is sent to each smart home device.
In summary, the application program can rapidly and accurately send the route information of the router to the intelligent home equipment.
Optionally, in the network allocation method of the smart home device provided in the embodiment of the present application, sending, by an application program, an identity authentication request to each smart home device in the M smart home devices includes: sending a connection request to each intelligent home device in the M intelligent home devices through an application program; based on the connection request, connecting the application program with each intelligent home device in the M intelligent home devices to obtain M connection results, wherein the connection results are used for indicating whether the application program is successfully connected with the intelligent home devices; if the M connection results indicate that the application program is successfully connected with each of the M intelligent household devices, sending an identity authentication request to each of the M intelligent household devices through the application program; if the M connection results indicate that the connection between the application program and at least one of the M intelligent household devices fails, the application program is forbidden to send an identity authentication request to each of the M intelligent household devices.
For example, when the application program (corresponding to the above BLE Central) sends an identity authentication request to each smart home device (corresponding to the above BLE Peripheral), the application program (corresponding to the above BLE Central) may send a connection request to each smart home device (corresponding to the above BLE Peripheral), and according to the connection request, the application program (corresponding to the above BLE Central) and each smart home device (corresponding to the above BLE Peripheral) are connected, and if the application program (corresponding to the above BLE Central) and each smart home device (corresponding to the above BLE Peripheral) are successfully connected, the identity authentication request may be sent to each smart home device (corresponding to the above BLE Peripheral) through the application program (corresponding to the above BLE Central); if the application program (corresponding to the above BLE Central) fails to connect with at least one smart home device (corresponding to the above BLE Peripheral), the identity authentication request cannot be sent to each smart home device (corresponding to the above BLE Peripheral) through the application program (corresponding to the above BLE Central).
By the scheme, the application program can be conveniently connected with the intelligent household equipment, so that an identity authentication request can be sent to the intelligent household equipment through the application program.
Optionally, in the network allocation method of the smart home device provided in the embodiment of the present application, based on the identity authentication request, performing identity authentication on each smart home device in the M smart home devices, where obtaining M identity authentication results includes: based on the identity authentication request, acquiring protocol information of each intelligent home device in the M intelligent home devices; and carrying out identity authentication on each intelligent home equipment in the M intelligent home equipment according to the protocol information of each intelligent home equipment in the M intelligent home equipment to obtain M identity authentication results.
For example, when performing identity authentication on each smart home device (corresponding to the above BLE Peripheral), the version number of the protocol in each smart home device (corresponding to the above BLE Peripheral) may be obtained first, and whether the version number of the protocol in each smart home device (corresponding to the above BLE Peripheral) meets the preset protocol may be determined, and if the version number of the protocol in each smart home device (corresponding to the above BLE Peripheral) meets the preset protocol, it may be determined that each smart home device passes the identity authentication; if the version number of the protocol in at least one intelligent home device (corresponding to the BLE Peripheral) does not meet the preset protocol, it can be determined that the intelligent home device fails identity authentication.
Through the scheme, the identity authentication of the intelligent household equipment can be rapidly and accurately performed according to the protocol version number in the intelligent household equipment.
Optionally, in the network allocation method of the smart home device provided in the embodiment of the present application, sending, according to M identity authentication results, routing information of the router to each smart home device in the M smart home devices includes: judging whether each intelligent home device in the M intelligent home devices passes the identity authentication according to the M identity authentication results; if each of the M intelligent home devices passes the identity authentication, sending routing information of the router to each of the M intelligent home devices; and if at least one intelligent home device in the M intelligent home devices fails to pass the identity authentication, prohibiting sending of the routing information of the router to each intelligent home device in the M intelligent home devices.
For example, if all the other devices (corresponding to the M smart home devices) except the first smart home device in the plurality of devices (corresponding to the N smart home devices) to be configured with the network pass the identity authentication, the routing information of the router may be sent to each smart home device in the other devices (corresponding to the M smart home devices); if at least one of the other devices (corresponding to the M intelligent home devices) fails the identity authentication, the routing information of the router cannot be sent to each of the other devices (corresponding to the M intelligent home devices).
According to the scheme, whether the router information is sent to the intelligent home equipment or not can be conveniently determined according to the identity authentication result of each intelligent home equipment.
For example, based on the rate of BLE (Bluetooth Low Energy ), the present embodiment provides a method that can significantly reduce the duration of a multi-device network allocation. And when a plurality of intelligent household devices need to be distributed, the total distribution time length can be obviously reduced. In addition, the method provided by the embodiment of the application can simplify the operation flow of the user, and greatly shorten the total network distribution time, so that the network distribution time of the user for a plurality of devices can be saved, and the network distribution operation of the user is simplified.
For example, fig. 2 is a schematic diagram of a flow of network configuration for a single device in this embodiment, and as shown in fig. 2, the flow of network configuration for a single device may include the following steps:
(1) BLE (Bluetooth Low Energy ) Central (Central device) establishes a connection with BLE (Bluetooth Low Energy ) Peripheral (Peripheral) via GATT (a protocol for connecting devices). And the BLE Central in fig. 2 may be Application software such as APP (Application) and applet corresponding to the smart home device, and the BLE Peripheral in fig. 2 may be the smart home device.
(2) BLE Peripheral (corresponding to the smart home device described above) replies with a connection ACK (Acknowledge character, acknowledgement character) to successfully establish the connection.
(3) BLE Central (corresponding to the application described above) transmits an identity request.
(4) BLE Peripheral (corresponding to the smart home device described above) verifies the identity and replies Identification response (information that the authentication request needs to use, such as the version number of the device's protocol).
(5) BLE Central (corresponding to the application described above) sends routing information to BLE Peripheral.
(6) BLE Peripheral (corresponding to the smart home device described above) connects the router using routing information (which may be name information, password information, etc. of the router).
(7) The router replies that the connection was successful to BLE Peripheral (corresponding to the smart home device described above).
(8) BLE Peripheral (corresponding to the smart home device) replies a connection ACK (Acknowledge character ) to BLE Central (corresponding to the application).
(9) The BLE Central (corresponding to the application program) queries that the device is online in the server, and the network allocation is successful.
In addition, the communication time of the steps (1), (2), (3), (4), (5), (8) and (9) is in millisecond level, and the operation of the steps (6) and (7) is determined by the router performance, and is generally in the range of 5s to 30s.
In this case, if the client needs to implement that n devices are configured into the same router, all the processes shown in fig. 2 need to be repeated, and the time of steps (6) and (7) is prolonged by n times, which may cause excessively long waiting time of the user.
For example, fig. 3 is a schematic diagram of a network configuration flow for the rest of devices except the first device, as shown in fig. 3, in the scenario of multi-device connection, steps (6) and (7) with the longest occupation time only need to be verified once in the first BLE Peripheral (corresponding to the first smart home device) for verifying whether the router can be connected, if the first BLE Peripheral (corresponding to the first smart home device) successfully sends a connection ACK to the BLE Central (corresponding to the application program), the rest of devices (corresponding to the M smart home devices) only need to directly reply an ACK after receiving the routing information, so that the BLE Central (corresponding to the application program) considers that the device (corresponding to the M smart home devices) can be successfully connected, and the subsequent device (corresponding to the M smart home devices) can connect the router by itself.
In addition, fig. 3 is a schematic diagram of a network configuration process for a remaining device except for the first device in this embodiment, and as shown in fig. 3, the network configuration process for the remaining device except for the first device may include the following steps:
(1) BLE Central (corresponding to the application program described above) establishes a connection with BLE Peripheral (corresponding to the M smart home devices described above) through GATT (a protocol for connecting devices).
(2) BLE Peripheral (corresponding to the M smart home devices described above) replies a connection ACK (Acknowledge character, acknowledgement character) to successfully establish the connection.
(3) BLE Central (corresponding to the application described above) transmits an identity request.
(4) BLE Peripheral (corresponding to the M smart home devices described above) verifies the identity and replies Identification response (information that the authentication request needs to use, such as the version number of the device's protocol).
(5) BLE Central (corresponding to the application program) sends routing information to BLE Peripheral (corresponding to the M smart home devices).
(6) BLE Peripheral (corresponding to the above-mentioned M smart home devices) replies to the routing information that the received ACK is given to BLE Central (corresponding to the above-mentioned application).
(7) BLE Central (corresponding to the application program described above) considers the successful distribution of the network and informs the user.
(8) BLE Peripheral (corresponding to the above M intelligent home devices) connects to the router by itself using the routing information (which may be name information and password information of the router, etc.).
(9) The router replies that the connection is successful to the BLE Peripheral (corresponding to the M intelligent home devices).
In summary, according to the network allocation method of the intelligent home equipment, N intelligent home equipment to be allocated is determined, and a first intelligent home equipment in the N intelligent home equipment is determined, wherein N is a positive integer greater than 1; the method comprises the steps that network distribution is conducted on a first intelligent home device, and a network distribution result of the first intelligent home device is obtained, wherein the network distribution result is used for representing whether the intelligent home device is successfully connected to a router or not; based on the distribution network result of the first intelligent home equipment, determining a strategy for distributing the network to M intelligent home equipment, wherein M intelligent home equipment is intelligent home equipment except the first intelligent home equipment in N intelligent home equipment, M is a positive integer smaller than N, and the problem that the distribution network time of a plurality of intelligent home equipment in the related technology is long is solved. The network distribution method comprises the steps of determining a first intelligent household device of a plurality of intelligent household devices to be distributed, distributing the first intelligent household device to obtain a network distribution result of the first intelligent household device, determining a strategy of distributing the network of the rest plurality of intelligent household devices to be distributed based on the network distribution result of the first intelligent household device, and accordingly reducing the time for connecting the rest plurality of intelligent household devices with a router respectively, and further achieving the effect of shortening the network distribution time of the plurality of intelligent household devices.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a network distribution device of the intelligent home equipment, and it is to be noted that the network distribution device of the intelligent home equipment of the application embodiment can be used for executing the network distribution method for the intelligent home equipment provided by the application embodiment. The following describes a network distribution device of an intelligent home device provided by the embodiment of the application.
Fig. 4 is a schematic diagram of a network distribution device of an intelligent home device according to an embodiment of the present application. As shown in fig. 4, the apparatus includes: a first determination unit 401, a first processing unit 402, and a second determination unit 403.
Specifically, the first determining unit 401 is configured to determine N pieces of smart home devices to be configured with a network, and determine a first piece of smart home device among the N pieces of smart home devices, where N is a positive integer greater than 1;
the first processing unit 402 is configured to perform network distribution on a first smart home device to obtain a network distribution result of the first smart home device, where the network distribution result is used to characterize whether the smart home device is successfully connected to the router;
The second determining unit 403 is configured to determine, based on a network configuration result of the first smart home device, a policy for configuring M smart home devices, where M smart home devices are smart home devices other than the first smart home device among the N smart home devices, and M is a positive integer less than N.
In summary, according to the network allocation device of the intelligent home equipment provided by the embodiment of the application, N intelligent home equipment to be allocated with a network is determined through the first determining unit 401, and a first intelligent home equipment in the N intelligent home equipment is determined, wherein N is a positive integer greater than 1; the first processing unit 402 performs network distribution on the first intelligent home equipment to obtain a network distribution result of the first intelligent home equipment, wherein the network distribution result is used for representing whether the intelligent home equipment is successfully connected to the router; the second determining unit 403 determines a policy of performing network distribution on M pieces of smart home devices based on the network distribution result of the first piece of smart home devices, where M pieces of smart home devices are smart home devices except the first piece of smart home devices among N pieces of smart home devices, where M is a positive integer smaller than N, and solves the problem of long time of network distribution on multiple pieces of smart home devices in the related art. The network distribution method comprises the steps of determining a first intelligent household device of a plurality of intelligent household devices to be distributed, distributing the first intelligent household device to obtain a network distribution result of the first intelligent household device, determining a strategy of distributing the network of the rest plurality of intelligent household devices to be distributed based on the network distribution result of the first intelligent household device, and accordingly reducing the time for connecting the rest plurality of intelligent household devices with a router respectively, and further achieving the effect of shortening the network distribution time of the plurality of intelligent household devices.
Optionally, in the network allocation device of the smart home device provided in the embodiment of the present application, the second determining unit includes: the first acquisition module is used for acquiring the route information of the router through each intelligent home equipment in the M intelligent home equipment if the network distribution result of the first intelligent home equipment represents that the first intelligent home equipment is successfully connected to the router; the first connection module is used for respectively connecting the M intelligent household devices to the router according to the routing information of the router so as to complete the step of network distribution of the M intelligent household devices; the first processing module is used for prohibiting the distribution of the M intelligent home devices if the distribution result of the first intelligent home device represents that the first intelligent home device is not successfully connected to the router.
Optionally, in the network allocation device of the smart home device provided in the embodiment of the present application, the device further includes: the first sending unit is used for sending an identity authentication request to each of the M intelligent home devices through an application program before the router information is acquired through each of the M intelligent home devices, wherein the application program is an application program corresponding to the N intelligent home devices; the first authentication unit is used for carrying out identity authentication on each intelligent home equipment in the M intelligent home equipment based on the identity authentication request to obtain M identity authentication results, wherein the identity authentication results are used for indicating whether the intelligent home equipment passes the identity authentication; the second sending unit is used for sending the route information of the router to each intelligent home device in the M intelligent home devices according to the M identity authentication results.
Optionally, in the network allocation device of the smart home device provided in the embodiment of the present application, the second sending unit includes: the first judging module is used for judging whether each intelligent home device in the M intelligent home devices passes the identity authentication according to the M identity authentication results; the first sending module is used for sending the routing information of the router to each intelligent home device in the M intelligent home devices if each intelligent home device in the M intelligent home devices passes the identity authentication; the second processing module is used for prohibiting the routing information of the router from being sent to each intelligent home device in the M intelligent home devices if at least one intelligent home device in the M intelligent home devices fails to pass the identity authentication.
Optionally, in the network allocation device of the smart home device provided in the embodiment of the present application, the first authentication unit includes: the second acquisition module is used for acquiring protocol information of each intelligent home device in the M intelligent home devices based on the identity authentication request; the first authentication module is used for carrying out identity authentication on each intelligent home device in the M intelligent home devices according to the protocol information of each intelligent home device in the M intelligent home devices to obtain M identity authentication results.
Optionally, in the network allocation device of the smart home device provided in the embodiment of the present application, the first sending unit includes: the second sending module is used for sending a connection request to each intelligent household device in the M intelligent household devices through the application program; the second connection module is used for connecting the application program with each intelligent home device in the M intelligent home devices based on the connection request to obtain M connection results, wherein the connection results are used for indicating whether the application program and the intelligent home devices are successfully connected; the third sending module is used for sending an identity authentication request to each intelligent home device in the M intelligent home devices through the application program if the M connection results indicate that the application program is successfully connected with each intelligent home device in the M intelligent home devices; and the third processing module is used for prohibiting the application program from sending an identity authentication request to each intelligent home device in the M intelligent home devices if the M connection results indicate that the application program fails to connect with at least one intelligent home device in the M intelligent home devices.
Optionally, in the network allocation device of the smart home device provided in the embodiment of the present application, the first processing unit includes: the third acquisition module is used for acquiring the route information of the router through the first intelligent home equipment; the third connection module is used for connecting the first intelligent household equipment with the router according to the routing information of the router so as to carry out network distribution on the first intelligent household equipment; the first determining module is used for determining that the network distribution result of the first intelligent home equipment is successful if the first intelligent home equipment is successfully connected with the router; and the second determining module is used for determining that the network distribution result of the first intelligent home equipment is network distribution failure if the first intelligent home equipment fails to be connected with the router.
Optionally, in the network allocation device of the smart home device provided in the embodiment of the present application, the first obtaining module includes: the first acquisition sub-module is used for acquiring the name information of the router through each intelligent home device in the M intelligent home devices and acquiring the password information needed by the router connection; and the second acquisition sub-module is used for acquiring the routing information of the router based on the name information of the router and the password information needed to be used by the connection router.
The network allocation device of the smart home device includes a processor and a memory, where the first determining unit 401, the first processing unit 402, the second determining unit 403, and the like are all stored as program units in the memory, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the time for distributing the network to a plurality of intelligent home devices is shortened by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, wherein a program is stored on the computer readable storage medium, and the program realizes the network allocation method of the intelligent home equipment when being executed by a processor.
The embodiment of the invention provides a processor which is used for running a program, wherein the program runs to execute a network distribution method of intelligent household equipment.
As shown in fig. 5, an embodiment of the present invention provides an electronic device, where the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, the following steps are implemented: determining N intelligent household devices to be subjected to network allocation, and determining a first intelligent household device in the N intelligent household devices, wherein N is a positive integer greater than 1; the first intelligent home equipment is distributed to obtain a distribution network result of the first intelligent home equipment, wherein the distribution network result is used for representing whether the intelligent home equipment is successfully connected to a router or not; and determining a strategy for distributing the M intelligent household devices based on the distribution network result of the first intelligent household device, wherein the M intelligent household devices are intelligent household devices except the first intelligent household device in the N intelligent household devices, and M is a positive integer smaller than N.
The processor also realizes the following steps when executing the program: based on the network distribution result of the first intelligent home equipment, determining a strategy for distributing the network to the M intelligent home equipment comprises the following steps: if the network distribution result of the first intelligent home equipment indicates that the first intelligent home equipment is successfully connected to the router, acquiring the routing information of the router through each intelligent home equipment in the M intelligent home equipment; according to the routing information of the router, the M intelligent home devices are respectively connected to the router to complete the step of network distribution of the M intelligent home devices; and if the network distribution result of the first intelligent household equipment represents that the first intelligent household equipment is not successfully connected to the router, the network distribution of the M intelligent household equipment is forbidden.
The processor also realizes the following steps when executing the program: before the route information of the router is acquired by each intelligent home device in the M intelligent home devices, the method further comprises: an identity authentication request is sent to each intelligent home device in the M intelligent home devices through an application program, wherein the application program is an application program corresponding to the N intelligent home devices; based on the identity authentication request, carrying out identity authentication on each intelligent home equipment in the M intelligent home equipment to obtain M identity authentication results, wherein the identity authentication results are used for indicating whether the intelligent home equipment passes the identity authentication; and sending the routing information of the router to each intelligent home device in the M intelligent home devices according to the M identity authentication results.
The processor also realizes the following steps when executing the program: according to the M identity authentication results, sending the routing information of the router to each intelligent home device in the M intelligent home devices includes: judging whether each intelligent home device in the M intelligent home devices passes the identity authentication according to the M identity authentication results; if each of the M intelligent home devices passes the identity authentication, sending the routing information of the router to each of the M intelligent home devices; and if at least one intelligent home device in the M intelligent home devices fails to pass the identity authentication, prohibiting sending the routing information of the router to each intelligent home device in the M intelligent home devices.
The processor also realizes the following steps when executing the program: based on the identity authentication request, performing identity authentication on each intelligent home device in the M intelligent home devices, and obtaining M identity authentication results comprises: based on the identity authentication request, acquiring protocol information of each intelligent home device in the M intelligent home devices; and carrying out identity authentication on each intelligent home equipment in the M intelligent home equipment according to the protocol information of each intelligent home equipment in the M intelligent home equipment to obtain M identity authentication results.
The processor also realizes the following steps when executing the program: the step of sending an identity authentication request to each intelligent home device in the M intelligent home devices through the application program comprises the following steps: sending a connection request to each intelligent home device in the M intelligent home devices through the application program; based on the connection request, connecting the application program with each intelligent home device in the M intelligent home devices to obtain M connection results, wherein the connection results are used for indicating whether the application program is successfully connected with the intelligent home devices or not; if the M connection results indicate that the application program is successfully connected with each of the M intelligent home devices, sending the identity authentication request to each of the M intelligent home devices through the application program; and if the M connection results indicate that the connection between the application program and at least one intelligent household device in the M intelligent household devices fails, prohibiting the application program from sending the identity authentication request to each intelligent household device in the M intelligent household devices.
The processor also realizes the following steps when executing the program: the first intelligent household equipment is distributed with a network, and the network distribution result of the first intelligent household equipment comprises: acquiring the route information of the router through the first intelligent home equipment; according to the routing information of the router, the first intelligent home equipment is connected with the router to carry out network distribution on the first intelligent home equipment; if the first intelligent home equipment is successfully connected with the router, determining that the network distribution result of the first intelligent home equipment is successful; if the first intelligent home equipment fails to be connected with the router, determining that the network distribution result of the first intelligent home equipment is network distribution failure.
The processor also realizes the following steps when executing the program: the obtaining, by each of the M smart home devices, routing information of the router includes: acquiring name information of the router through each intelligent home device in the M intelligent home devices, and acquiring password information needed to be used for connecting the router; and acquiring the routing information of the router based on the name information of the router and the password information needed to be used for connecting the router.
The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: determining N intelligent household devices to be subjected to network allocation, and determining a first intelligent household device in the N intelligent household devices, wherein N is a positive integer greater than 1; the first intelligent home equipment is distributed to obtain a distribution network result of the first intelligent home equipment, wherein the distribution network result is used for representing whether the intelligent home equipment is successfully connected to a router or not; and determining a strategy for distributing the M intelligent household devices based on the distribution network result of the first intelligent household device, wherein the M intelligent household devices are intelligent household devices except the first intelligent household device in the N intelligent household devices, and M is a positive integer smaller than N.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: based on the network distribution result of the first intelligent home equipment, determining a strategy for distributing the network to the M intelligent home equipment comprises the following steps: if the network distribution result of the first intelligent home equipment indicates that the first intelligent home equipment is successfully connected to the router, acquiring the routing information of the router through each intelligent home equipment in the M intelligent home equipment; according to the routing information of the router, the M intelligent home devices are respectively connected to the router to complete the step of network distribution of the M intelligent home devices; and if the network distribution result of the first intelligent household equipment represents that the first intelligent household equipment is not successfully connected to the router, the network distribution of the M intelligent household equipment is forbidden.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: before the route information of the router is acquired by each intelligent home device in the M intelligent home devices, the method further comprises: an identity authentication request is sent to each intelligent home device in the M intelligent home devices through an application program, wherein the application program is an application program corresponding to the N intelligent home devices; based on the identity authentication request, carrying out identity authentication on each intelligent home equipment in the M intelligent home equipment to obtain M identity authentication results, wherein the identity authentication results are used for indicating whether the intelligent home equipment passes the identity authentication; and sending the routing information of the router to each intelligent home device in the M intelligent home devices according to the M identity authentication results.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: according to the M identity authentication results, sending the routing information of the router to each intelligent home device in the M intelligent home devices includes: judging whether each intelligent home device in the M intelligent home devices passes the identity authentication according to the M identity authentication results; if each of the M intelligent home devices passes the identity authentication, sending the routing information of the router to each of the M intelligent home devices; and if at least one intelligent home device in the M intelligent home devices fails to pass the identity authentication, prohibiting sending the routing information of the router to each intelligent home device in the M intelligent home devices.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: based on the identity authentication request, performing identity authentication on each intelligent home device in the M intelligent home devices, and obtaining M identity authentication results comprises: based on the identity authentication request, acquiring protocol information of each intelligent home device in the M intelligent home devices; and carrying out identity authentication on each intelligent home equipment in the M intelligent home equipment according to the protocol information of each intelligent home equipment in the M intelligent home equipment to obtain M identity authentication results.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: the step of sending an identity authentication request to each intelligent home device in the M intelligent home devices through the application program comprises the following steps: sending a connection request to each intelligent home device in the M intelligent home devices through the application program; based on the connection request, connecting the application program with each intelligent home device in the M intelligent home devices to obtain M connection results, wherein the connection results are used for indicating whether the application program is successfully connected with the intelligent home devices or not; if the M connection results indicate that the application program is successfully connected with each of the M intelligent home devices, sending the identity authentication request to each of the M intelligent home devices through the application program; and if the M connection results indicate that the connection between the application program and at least one intelligent household device in the M intelligent household devices fails, prohibiting the application program from sending the identity authentication request to each intelligent household device in the M intelligent household devices.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: the first intelligent household equipment is distributed with a network, and the network distribution result of the first intelligent household equipment comprises: acquiring the route information of the router through the first intelligent home equipment; according to the routing information of the router, the first intelligent home equipment is connected with the router to carry out network distribution on the first intelligent home equipment; if the first intelligent home equipment is successfully connected with the router, determining that the network distribution result of the first intelligent home equipment is successful; if the first intelligent home equipment fails to be connected with the router, determining that the network distribution result of the first intelligent home equipment is network distribution failure.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: the obtaining, by each of the M smart home devices, routing information of the router includes: acquiring name information of the router through each intelligent home device in the M intelligent home devices, and acquiring password information needed to be used for connecting the router; and acquiring the routing information of the router based on the name information of the router and the password information needed to be used for connecting the router.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. The network distribution method of the intelligent home equipment is characterized by comprising the following steps of:
determining N intelligent household devices to be subjected to network allocation, and determining a first intelligent household device in the N intelligent household devices, wherein N is a positive integer greater than 1;
the first intelligent home equipment is distributed to obtain a distribution network result of the first intelligent home equipment, wherein the distribution network result is used for representing whether the intelligent home equipment is successfully connected to a router or not;
And determining a strategy for distributing the M intelligent household devices based on the distribution network result of the first intelligent household device, wherein the M intelligent household devices are intelligent household devices except the first intelligent household device in the N intelligent household devices, and M is a positive integer smaller than N.
2. The method of claim 1, wherein determining a policy for networking M smart home devices based on the networking result of the first smart home device comprises:
if the network distribution result of the first intelligent home equipment indicates that the first intelligent home equipment is successfully connected to the router, acquiring the routing information of the router through each intelligent home equipment in the M intelligent home equipment;
according to the routing information of the router, the M intelligent home devices are respectively connected to the router to complete the step of network distribution of the M intelligent home devices;
and if the network distribution result of the first intelligent household equipment represents that the first intelligent household equipment is not successfully connected to the router, the network distribution of the M intelligent household equipment is forbidden.
3. The method of claim 2, wherein prior to obtaining the routing information for the router by each of the M smart home devices, the method further comprises:
an identity authentication request is sent to each intelligent home device in the M intelligent home devices through an application program, wherein the application program is an application program corresponding to the N intelligent home devices;
based on the identity authentication request, carrying out identity authentication on each intelligent home equipment in the M intelligent home equipment to obtain M identity authentication results, wherein the identity authentication results are used for indicating whether the intelligent home equipment passes the identity authentication;
and sending the routing information of the router to each intelligent home device in the M intelligent home devices according to the M identity authentication results.
4. The method of claim 3, wherein sending routing information of the router to each of the M smart home devices based on the M identity authentication results comprises:
judging whether each intelligent home device in the M intelligent home devices passes the identity authentication according to the M identity authentication results;
If each of the M intelligent home devices passes the identity authentication, sending the routing information of the router to each of the M intelligent home devices;
and if at least one intelligent home device in the M intelligent home devices fails to pass the identity authentication, prohibiting sending the routing information of the router to each intelligent home device in the M intelligent home devices.
5. The method of claim 3, wherein authenticating each of the M smart home devices based on the authentication request to obtain M authentication results comprises:
based on the identity authentication request, acquiring protocol information of each intelligent home device in the M intelligent home devices;
and carrying out identity authentication on each intelligent home equipment in the M intelligent home equipment according to the protocol information of each intelligent home equipment in the M intelligent home equipment to obtain M identity authentication results.
6. The method of claim 3, wherein sending, by an application, an authentication request to each of the M smart home devices comprises:
Sending a connection request to each intelligent home device in the M intelligent home devices through the application program;
based on the connection request, connecting the application program with each intelligent home device in the M intelligent home devices to obtain M connection results, wherein the connection results are used for indicating whether the application program is successfully connected with the intelligent home devices or not;
if the M connection results indicate that the application program is successfully connected with each of the M intelligent home devices, sending the identity authentication request to each of the M intelligent home devices through the application program;
and if the M connection results indicate that the connection between the application program and at least one intelligent household device in the M intelligent household devices fails, prohibiting the application program from sending the identity authentication request to each intelligent household device in the M intelligent household devices.
7. The method of claim 1, wherein the network configuration of the first smart home device, the network configuration result of the first smart home device comprising:
Acquiring the route information of the router through the first intelligent home equipment;
according to the routing information of the router, the first intelligent home equipment is connected with the router to carry out network distribution on the first intelligent home equipment;
if the first intelligent home equipment is successfully connected with the router, determining that the network distribution result of the first intelligent home equipment is successful;
if the first intelligent home equipment fails to be connected with the router, determining that the network distribution result of the first intelligent home equipment is network distribution failure.
8. The method of claim 2, wherein obtaining, by each of the M smart home devices, routing information for the router comprises:
acquiring name information of the router through each intelligent home device in the M intelligent home devices, and acquiring password information needed to be used for connecting the router;
and acquiring the routing information of the router based on the name information of the router and the password information needed to be used for connecting the router.
9. The utility model provides a join in marriage net device of intelligent house equipment which characterized in that includes:
The first determining unit is used for determining N pieces of intelligent home equipment to be subjected to network allocation and determining a first piece of intelligent home equipment in the N pieces of intelligent home equipment, wherein N is a positive integer greater than 1;
the first processing unit is used for carrying out network distribution on the first intelligent household equipment to obtain a network distribution result of the first intelligent household equipment, wherein the network distribution result is used for representing whether the intelligent household equipment is successfully connected to a router or not;
the second determining unit is configured to determine a policy of performing network allocation on M pieces of smart home devices based on a network allocation result of the first piece of smart home devices, where the M pieces of smart home devices are smart home devices, except for the first piece of smart home devices, among the N pieces of smart home devices, and M is a positive integer smaller than N.
10. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the network deployment method of the smart home device of any of claims 1-8.
CN202311874235.9A 2023-12-29 2023-12-29 Network distribution method and device of intelligent household equipment and electronic equipment Pending CN117811864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311874235.9A CN117811864A (en) 2023-12-29 2023-12-29 Network distribution method and device of intelligent household equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311874235.9A CN117811864A (en) 2023-12-29 2023-12-29 Network distribution method and device of intelligent household equipment and electronic equipment

Publications (1)

Publication Number Publication Date
CN117811864A true CN117811864A (en) 2024-04-02

Family

ID=90429708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311874235.9A Pending CN117811864A (en) 2023-12-29 2023-12-29 Network distribution method and device of intelligent household equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN117811864A (en)

Similar Documents

Publication Publication Date Title
CN107995215B (en) Control method and device of intelligent household equipment and cloud platform server
US10764374B1 (en) Internet-of-things (IoT) device reference network
CN113676512B (en) Network system, resource processing method and equipment
CN110909373B (en) Access control method, equipment, system and storage medium
CN106375442B (en) Method and device for cross-platform management of equipment information
EP3337219A1 (en) Carrier configuration processing method, device and system, and computer storage medium
US10117103B2 (en) Method for sharing network and network element
CN103384237A (en) Method for sharing IaaS cloud account, shared platform and network device
CN108933838B (en) Application data processing method and device
CN113127168A (en) Service distribution method, system, device, server and medium
US11102145B2 (en) Resource sharing method, computer device, and storage medium
EP3211578A1 (en) Verification method and apparatus
CN110278192A (en) Method, apparatus, computer equipment and the readable storage medium storing program for executing of extranet access Intranet
CN112770308A (en) Network distribution method and device of intelligent device, electronic device and computer readable medium
CN111314241B (en) Task scheduling method and scheduling system
CN109547958B (en) State synchronization method, device and system
US20180176781A1 (en) Method and device for managing wireless access point
CN112954716A (en) Network access method and device of mesh network, computer equipment and storage medium
CN105871851B (en) Based on SaaS identity identifying method
CN117811864A (en) Network distribution method and device of intelligent household equipment and electronic equipment
CN116703601A (en) Data processing method, device, equipment and storage medium based on block chain network
CN111294374B (en) Heterogeneous equipment starting system, method and device and electronic equipment
CN108156188B (en) Data validity checking system
CN111064675A (en) Access flow control method, device, network equipment and storage medium
CN110536325B (en) Method for improving communication connection success rate of vehicle-mounted intelligent equipment

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