WO2022227819A1 - Method and apparatus for network provisioning, and smart home device - Google Patents

Method and apparatus for network provisioning, and smart home device Download PDF

Info

Publication number
WO2022227819A1
WO2022227819A1 PCT/CN2022/077172 CN2022077172W WO2022227819A1 WO 2022227819 A1 WO2022227819 A1 WO 2022227819A1 CN 2022077172 W CN2022077172 W CN 2022077172W WO 2022227819 A1 WO2022227819 A1 WO 2022227819A1
Authority
WO
WIPO (PCT)
Prior art keywords
hotspot
name
networked
preset
network
Prior art date
Application number
PCT/CN2022/077172
Other languages
French (fr)
Chinese (zh)
Inventor
李恒元
封荣杰
郭继宾
李艳春
路炎
耿宝寒
Original Assignee
海尔(深圳)研发有限责任公司
青岛海尔空调器有限总公司
青岛海尔空调电子有限公司
海尔智家股份有限公司
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 海尔(深圳)研发有限责任公司, 青岛海尔空调器有限总公司, 青岛海尔空调电子有限公司, 海尔智家股份有限公司 filed Critical 海尔(深圳)研发有限责任公司
Publication of WO2022227819A1 publication Critical patent/WO2022227819A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point

Definitions

  • the present application relates to the field of smart home technology, for example, to a method, device and smart home device for network distribution.
  • the first terminal that has successfully deployed the network enables the network hotspot function, and then the second terminal to be networked is connected to the first terminal through the network hotspot, and finally the first terminal sends a message to the second terminal. Distribution network information.
  • the networked device After the hotspot function is turned on, the networked device will be disconnected from the existing hotspot, so that the networked device cannot be connected to the Internet within the network configuration time.
  • the network-distributed device actively starts the hotspot, wherein the hotspot startup process and the process of searching for the hotspot by the network-to-be-distributed device will prolong the disconnection time of the network-distributed device, causing the network-distribution process to affect the network-distributed device. Normal work has a greater adverse effect.
  • the embodiments of the present disclosure provide a method, device and smart home equipment for network distribution, so as to solve the technical problem that the existing network distribution process has a large adverse effect on the normal use of the network-distributed equipment.
  • a method for network distribution is applied to a device to be distributed, and the method for network distribution includes:
  • enabling the first hotspot with the first preset name including:
  • the name of the third hotspot is among the preset names, determining a first preset name that is different from the name of the third hotspot in the preset names;
  • determining a first preset name that is different from the name of the third hotspot among the preset names including:
  • the network-configured device can determine the name of the first hotspot as the first hotspot according to the priority of the name The first hotspot of the preset name.
  • receiving second WiFi information of a second hotspot that can be networked and sent by a networked device connected to the first hotspot includes:
  • the device type of the networked device corresponding to each hotspot is obtained;
  • the WiFi information of the hotspot corresponding to the second device type is the second WiFi information of the second hotspot.
  • determining the second device type associated with the first device type from the device types of the networked devices corresponding to the multiple hotspots including:
  • the device type of the networked device corresponding to the one or more application scenarios is all Describe the second device type.
  • a method for network distribution is applied to a networked device, and the method for network distribution includes:
  • the second WiFi information of the second hotspot that can be connected to the Internet is sent to the device to be networked through the first hotspot.
  • the first hotspot with the name of the first preset name is scanned, including:
  • the first hotspot whose name is the first preset name is determined among the multiple hotspots according to the priority of the names of the multiple hotspots.
  • sending the second WiFi information of the second hotspot that can be connected to the Internet to the device to be configured via the first hotspot including:
  • each networked device sends the device type of each networked device and its corresponding device type to the to-be-configured device through the first hotspot.
  • WiFi information of hotspots so that the device to be configured determines, according to the first device type of the device to be configured, that the device corresponds to the first device type among the device types of the networked devices corresponding to multiple hotspots the second device type, and then determine that the WiFi information of the hotspot corresponding to the second device type is the second WiFi information of the second hotspot.
  • the apparatus for network distribution includes a processor and a memory storing program instructions, the processor is configured to execute the method for network distribution provided by the foregoing embodiments when the program instructions are executed. .
  • the smart home device includes the apparatus for network distribution provided in the foregoing embodiments.
  • the method, device and smart home device for network distribution provided by the embodiments of the present disclosure can achieve the following technical effects:
  • the hotspot is turned on by the device to be configured.
  • the device that has been configured can still connect to the Internet and work normally; the device that has been configured scans the hotspot that can be connected. During the scanning process, the device that has been configured It can also be connected to the Internet normally and work normally.
  • the networked devices are connected to the devices to be distributed, and WiFi information is sent to the devices to be distributed, so that the devices to be distributed are connected to the hotspot according to the WiFi information.
  • shorten the time The network disconnection time of the networked devices reduces the adverse impact of the network configuration process on the normal operation of the networked devices.
  • FIG. 1 is a schematic diagram of a method for network distribution provided in an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of a method for network distribution provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a method for network distribution provided by an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of an apparatus for network distribution provided by an embodiment of the present disclosure.
  • A/B means: A or B.
  • a and/or B means: A or B, or, A and B three relationships.
  • the network-distributed device and the network-to-be-distributed device may be various smart home devices in the smart home system, such as smart refrigerators, smart air conditioners, smart sweepers, smart speakers, and smart air purifiers. .
  • networking refers to the fact that a networked device is connected to a hotspot through a WiFi module, so that the networked device can access the Internet or a local area network of a smart home.
  • the hotspot here can be a router.
  • the term "network distribution” refers to configuring a device with WiFi information such as WiFi name and WiFi password, so that the device can connect to a hotspot through the WiFi information, so that the device can access the Internet or smart home local area network.
  • the device to be networked in the embodiment of the present disclosure may work in both a wireless access point (Access Point, AP) mode and a station (Station, STA) mode.
  • AP Access Point
  • STA station
  • FIG. 1 is a schematic diagram of a method for network distribution provided in an embodiment of the present disclosure.
  • the method for network distribution is applied to a device to be distributed, and the method for network distribution can be performed by the device to be distributed, or by a server in a smart home system.
  • the method for network distribution includes:
  • the new smart home device needs to be networked, or, after a smart home device in the smart home system is restored to factory settings, the smart home The device needs to be networked. After the smart home device that needs to be networked is powered on, the smart home device opens the first hotspot whose name is the first preset name.
  • the first preset name is jointly agreed upon by the device to be configured and the device already configured.
  • the device to be configured opens the first hotspot whose name is the first preset name, and the configured device scans the name of the hotspot. If the name of the hotspot is not the first preset name, the configured device continues the previous networking without switching connections. to the scanned hotspot; if the name of the hotspot scanned by the network-provisioned device is the first preset name, the network-provisioned device disconnects the current connection and connects to the first hotspot whose name is the first preset name.
  • multiple preset names are stored in the databases of the device to be configured and the device that has been configured.
  • the device to be configured needs to open a hotspot, select a name from the preset names as the first preset name, and then Turn on the first hotspot whose name is the first preset name.
  • the first hotspot can be connected.
  • the first preset password corresponding to the first preset name is stored;
  • the device opens the first hotspot whose name is the first preset name and the password is the first preset password.
  • After scanning the first hotspot whose name is the first preset The first preset password corresponding to the preset name, and then the device to be connected to the network through the first preset password; or, the first hotspot whose name is the first preset name has no access restriction.
  • the number of devices to be distributed is multiple, and before the current device to be distributed opens the first hotspot, other devices to be distributed have already opened multiple hotspots.
  • the current device to be configured to open the first hotspot whose name is the first preset name includes: scanning to obtain the name of the third hotspot; if the name of the third hotspot is in the preset names, then in the preset A first preset name different from the name of the third hotspot is determined in the name; the first hotspot is opened according to the first preset name.
  • the number of third hotspots here can be one or more. If the name of the third hotspot is in the preset name, it can be determined that the device that enables the third hotspot is compatible with the device currently to be configured, and the third hotspot is enabled.
  • the device of the hotspot is also the device to be configured; if the name of the third hotspot is not in the preset name, the third hotspot and its name are ignored.
  • the method for network distribution can simultaneously distribute the network to a plurality of devices to be distributed.
  • determining a first preset name that is different from the name of the third hot spot in the preset names includes: determining that the priority of the first preset name is lower than or higher than the priority of the name of the third hot spot, so that the The network distribution device may determine the first hotspot whose name is the first preset name among the plurality of hotspots according to the priority of the name.
  • the priority of the first preset name and the name of the third hotspot is different.
  • the priority of the first preset name is higher than that of the third hotspot.
  • the higher the priority the shorter the time for the device to be configured to open the hotspot;
  • the priority of the first preset name is lower than the priority of the name of the third hotspot, the lower the priority, the shorter the time to be configured. The shorter the time for the Internet device to turn on the hotspot.
  • each device to be distributed has a different time to turn on the hotspot.
  • the hotspot that is turned on at the current moment is the first hotspot.
  • the hotspots opened by other network devices to be deployed are all third hotspots.
  • the names of the hotspots (including the third hotspot and the first hotspot) to be opened by a plurality of network devices to be distributed can be differentiated in priority.
  • 3 devices to be configured are configured at the same time, the first device to be configured first creates a hotspot name and opens the hotspot, and when the second device to be configured creates a hotspot name, it is matched with the name of the first device to be configured.
  • the name created by the network device has a priority difference.
  • the hotspot name created by the third network device to be configured has a priority difference from the name created by the second network device to be configured. In this way, the three network devices to be configured are created All hotspot names have priority distinction: the priority increases in sequence, or the priority decreases in sequence.
  • the hotspot name there is a specific order between the multiple preset names stored by the device to be configured and the device that has been configured.
  • the hotspot When creating a hotspot name, if the most advanced name among the preset names is not used, that is, If the hotspot whose name is the foremost name among the preset names is not scanned, the hotspot will be opened with the first name among the preset names; in this way, it is judged in a specific order whether multiple preset names are used, and the multiple preset names are used in turn. Set the first unused name in the name to turn on the hotspot.
  • S102 Receive second WiFi information of a second hotspot that can be networked and sent by a networked device connected to the first hotspot.
  • the second WiFi information includes the WiFi name and WiFi password of the second hotspot.
  • the device to be distributed can access the Internet or the local area network in the smart home through the second hotspot that can be connected to the Internet.
  • the number of network-configured devices is multiple, and multiple network-configured devices can scan the first hotspot whose name is the first preset name opened by the device to be configured, and can pass the first hotspot.
  • the WiFi information of the hotspots that can be connected to the network is sent to the device to be configured, that is, the device to be configured can receive the WiFi information of multiple hotspots.
  • receiving the second WiFi information of the networkable second hotspot sent by the networked device connected to the first hotspot includes: obtaining the device type of the networked device corresponding to each hotspot; obtaining the device to be configured. determine the second device type associated with the first device type in the device types of the networked devices corresponding to the multiple hotspots; determine that the WiFi information of the hotspot corresponding to the second device type is that of the second hotspot Second WiFi information.
  • the second device type associated with the first device type means that the first device type and the second device type have the same function or have a cooperative relationship in function, for example, the first device type is an air purifier, and the second device type If the type is an air purifier, the first device type is associated with the second device type; if the first device type is an air purifier and the second device type is an oxygen generator, the first device type and the second device type are in the function or, if the first device type is a humidifier and the second device type is an air conditioner, the second device type and the second device type have a functional cooperation relationship and are associated.
  • one or more device types associated with the first device type may be stored in a database, and when the second device type needs to be determined, one or more device types associated with the first device type are obtained in the database determine whether the device types of the networked devices corresponding to multiple hotspots are the same as one or more device types associated with the first device type. If they are the same, the same one or more device types are the second device type. .
  • determining the second device type associated with the first device type among the device types of the networked devices corresponding to the multiple hotspots includes: obtaining a first application scenario corresponding to the first device type, and, each time a second application scenario corresponding to the device type of the networked device corresponding to the hotspot; if one or more of the multiple second application scenarios are the same as or related to the first application scenario, then determine one or more application scenarios The device type of the networked device corresponding to the scenario is the second device type.
  • multiple smart home devices work at the same time to jointly achieve a living state.
  • the lights in the living room are turned on, and the air conditioner starts to work; in the falling asleep scene, the curtains are closed, and the air conditioner is set to a set temperature suitable for falling asleep.
  • Scenarios are associated, which means that two scenarios have a time sequence in the application sequence.
  • it can be a homecoming scene, a meal (which may include cooking) scene, a leisure scene, and a sleeping scene, wherein the homecoming scene includes turning on the living room lights and the air conditioner starts to work; the dining scene includes adjusting the oil absorption The hood and the smart stove are adjusted; the leisure scene includes adjusting the air conditioner in the living room, controlling the smart TV, etc.; the sleeping scene includes turning off the air conditioner in the living room and setting the temperature suitable for sleeping for the bedroom air conditioner.
  • the first device type is a living room air conditioner
  • the living room air conditioner can correspond to a homecoming scene and a leisure scene
  • the device type corresponding to a hotspot is a living room lamp
  • the living room lamp can correspond to the second application scene, which can be a homecoming scene.
  • the second application scenario is the same as the first application scenario, and it can be determined that the living room lamp is the second device type.
  • the first device type is a living room air conditioner
  • the living room air conditioner can correspond to homecoming scenarios and leisure scenarios; if the device type corresponding to a hotspot is a range hood, the second application scenario corresponding to the range hood is a dining scenario, and In the user's living habits, the homecoming scene is followed by a dining scene, the first application scene and the second application scene are associated, and the range hood is determined as the second device type.
  • the method for network configuration further includes: turning off the first hotspot.
  • the hotspot is turned on by the device to be configured.
  • the device that has been configured can still connect to the Internet and work normally; the device that has been configured scans the hotspot that can be connected. During the scanning process, the device that has been configured It can also be connected to the Internet normally and work normally.
  • the networked devices are connected to the devices to be distributed, and WiFi information is sent to the devices to be distributed, so that the devices to be distributed are connected to the hotspot according to the WiFi information.
  • shorten the time The network disconnection time of the networked devices reduces the adverse impact of the network configuration process on the normal operation of the networked devices.
  • the device to be configured receives the identification information of the device that has been configured, and after connecting to the second hotspot according to the second WiFi information, is bound to the user identification information (Identity Information) associated with the identification information of the device that has been configured. Document, ID).
  • the device to be distributed sends the identification information of the device to be distributed to the device that has been configured, so that the device that has been configured will send the identification information of the device to be distributed to the server after it is reconnected to the network, so that the server can bind the device to be distributed with the device.
  • User ID bound to the configured network device. In this way, the operation of binding the device to be networked by the user can be reduced, and the user experience can be improved.
  • FIG. 2 is a schematic diagram of a method for network distribution provided by an embodiment of the present disclosure.
  • the method for network distribution is applied to a network-distributed device, and the method for network distribution can be executed by the network-distributed device, and can be executed by a server in a smart home system.
  • the method for network distribution includes:
  • S201 Scan hotspot information, and if a first hotspot whose name is a first preset name is scanned, connect to the first hotspot.
  • the hotspot information here includes the hotspot name.
  • the first preset name is jointly agreed upon by the network-configured device and the network-to-be-configured device.
  • the networked device scans the hotspot information
  • the networked device can be connected to a hotspot, and can access the Internet or the local area network of the smart home through the hotspot; when the networked device can be connected to a hotspot, The networked device scans the hotspot information. If the scanned hotspot name is the first preset name, it will disconnect the currently connected hotspot and connect to the first hotspot with the first preset name; if the scanned hotspot name is the first preset name If the name is not the first preset name, keep the current connection.
  • multiple preset names are stored in the databases of the networked device and the device to be configured.
  • the networked device scans the hotspot information. If the hotspot name is scanned, it will compare whether the hotspot name is in the database. Among the stored preset names, if yes, then determine that the name of the hotspot is the first preset name, and the hotspot is the first hotspot; if the name of the hotspot is not among the preset names stored in the database, ignore the hotspot and its name.
  • the first hotspot can be connected.
  • the first preset password corresponding to the first preset name is stored in the databases of devices that have been configured and devices to be configured;
  • the name of the device is the first preset name
  • the password is the first hotspot of the first preset password.
  • the network-configured device After scanning the first hotspot with the name of the first preset name, the network-configured device can obtain the first hotspot with the first preset name in the database.
  • the first preset password corresponding to the preset name and then the device to be connected to the network through the first preset password; or, the first hotspot whose name is the first preset name has no access restrictions.
  • the number of devices to be configured is multiple, and one device that has been configured can scan the hotspots opened by multiple devices to be configured.
  • determining that the first hotspot with the name of the first preset name is scanned including: if multiple hotspots whose names are among the preset names are scanned, according to the priority of the names of the multiple hotspots, among the multiple hotspots Among the hotspots, the determined name is the first hotspot with the first preset name.
  • the name with the highest priority is determined as the first preset name, and the hotspot corresponding to the name with the highest priority is determined as the first hotspot; or, the name with the lowest priority is determined as the first preset name, and the name with the lowest priority is determined
  • the corresponding hot spot is the first hot spot.
  • the priority of the first preset name determined by the device to be configured is higher than the priority of the name of the third hotspot
  • the name with the highest priority determined by the networked device is the first preset name
  • the name with the highest priority is the first preset name.
  • the hotspot corresponding to the name is the first hotspot.
  • the device that enters the state to be deployed last is prioritized for network allocation.
  • the priority of the first preset name determined by the network device to be configured is lower than the priority of the name of the third hotspot, the name with the lowest priority determined by the networked device is the first preset name, and the name with the lowest priority The hotspot corresponding to the name is the first hotspot. In this case, priority is given to the device that enters the network configuration state last.
  • the device there is a specific order between the multiple preset names stored by the device to be configured and the device that has been configured.
  • the last name among the plurality of names in the order of the preset names is the first preset name, and the hotspot corresponding to the first preset name is determined to be the first hotspot.
  • S202 Send the second WiFi information of the second hotspot that can be connected to the Internet to the device to be distributed through the first hotspot.
  • the device to be distributed can access the Internet or the local area network in the smart home through the second hotspot that can be connected to the Internet.
  • the networked device If the networked device is connected to the second hotspot before connecting to the first hotspot, after the networked device sends the second WiFi information of the second hotspot that can be connected to the network to the device to be networked, the networked device disconnects from the network. The connection to the first hotspot, reconnect to the second hotspot.
  • the second WiFi information of the second hotspot that can be connected to the Internet is sent to the device to be networked through the first hotspot, including:
  • each networked device sends the device type of each networked device and the WiFi information of the corresponding hotspot to the to-be-configured device through the first hotspot.
  • Make the device to be configured network determine the second device type corresponding to the first device type from the device types of the networked devices corresponding to the multiple hotspots according to the first device type of the device to be configured to the network, and then determine the second device type
  • the WiFi information of the corresponding hotspot is the second WiFi information of the second hotspot.
  • determining the second device type associated with the first device type among the device types of the networked devices corresponding to the multiple hotspots includes: obtaining a first application scenario corresponding to the first device type, and, each time a second application scenario corresponding to the device type of the networked device corresponding to the hotspot; if one or more of the multiple second application scenarios are the same as or related to the first application scenario, then determine one or more application scenarios The device type of the networked device corresponding to the scenario is the second device type.
  • the hotspot is turned on by the device to be configured.
  • the device that has been configured can still connect to the Internet and work normally; the device that has been configured scans the hotspot that can be connected. During the scanning process, the device that has been configured It can also be connected to the Internet normally and work normally.
  • the networked devices are connected to the devices to be distributed, and WiFi information is sent to the devices to be distributed, so that the devices to be distributed are connected to the hotspot according to the WiFi information.
  • shorten the time The network disconnection time of the networked devices reduces the adverse impact of the network configuration process on the normal operation of the networked devices.
  • the network-distributed device sends the identification information of the network-distributed device to the network-distributed device, so that the network-distributed device is bound to the network-distributed device after connecting to the second hotspot according to the second WiFi information.
  • the user ID corresponding to the identification information of the device.
  • the network-distributed device receives the identification information of the network-to-be-distributed device sent by the network-distributed device, and after the network-distributed device is reconnected to the network, sends the identification information of the to-be-distributed device to the server, so that the server binds the to-be-distributed device to the network.
  • FIG. 3 is a schematic diagram of a method for network distribution provided by an embodiment of the present disclosure.
  • the embodiments of the present disclosure exemplarily describe the method for network distribution from the perspective of interaction between a device to be configured and a device that has been configured.
  • the method for network distribution includes:
  • the device to be distributed opens a first hotspot whose name is a first preset name
  • the networked device scans the hotspot information, and if it scans a first hotspot whose name is a first preset name, it connects to the first hotspot;
  • the networked device sends the second WiFi information of the second hotspot that can be connected to the Internet to the device to be configured through the first hotspot;
  • the device to be distributed is connected to the second hotspot according to the second WiFi information.
  • the hotspot is turned on by the device to be configured.
  • the device that has been configured can still connect to the Internet and work normally; the device that has been configured scans the hotspot that can be connected. During the scanning process, the device that has been configured It can also be connected to the Internet normally and work normally.
  • the networked devices are connected to the devices to be distributed, and WiFi information is sent to the devices to be distributed, so that the devices to be distributed are connected to the hotspot according to the WiFi information.
  • shorten the time The network disconnection time of the networked devices reduces the adverse impact of the network configuration process on the normal operation of the networked devices.
  • the apparatus for network distribution includes a processor and a memory storing program instructions, and the processor is configured to execute the method for network distribution provided by the foregoing embodiments when executing the program instructions.
  • FIG. 4 is a schematic diagram of a device for network distribution provided by an embodiment of the present disclosure.
  • the device for network distribution includes:
  • a processor (processor) 41 and a memory (memory) 42 may also include a communication interface (Communication Interface) 43 and a bus 44 .
  • the processor 41 , the communication interface 43 , and the memory 42 can communicate with each other through the bus 44 .
  • the communication interface 43 may be used for information transmission.
  • the processor 41 may invoke the logic instructions in the memory 42 to execute the method for network configuration provided in the foregoing embodiments.
  • logic instructions in the memory 42 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
  • the memory 42 can be used to store software programs and computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure.
  • the processor 41 executes functional applications and data processing by running the software programs, instructions and modules stored in the memory 42, that is, to implement the methods in the above method embodiments.
  • the memory 42 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Additionally, memory 42 may include high-speed random access memory, and may also include non-volatile memory.
  • Embodiments of the present disclosure provide a smart home device, including the device for network distribution provided in the foregoing embodiments.
  • Embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions, where the computer-executable instructions are configured to execute the method for network distribution provided by the foregoing embodiments.
  • Embodiments of the present disclosure provide a computer program product.
  • the computer program product includes a computer program stored on a computer-readable storage medium.
  • the computer program includes program instructions. The method used to distribute the network.
  • the above-mentioned computer-readable storage medium may be a transient computer-readable storage medium, and may also be a non-transitory computer-readable storage medium.
  • the technical solutions of the embodiments of the present disclosure may be embodied in the form of software products, and the computer software products are stored in a storage medium and include one or more instructions to enable a computer device (which may be a personal computer, a server, or a network equipment, etc.) to execute all or part of the steps of the methods in the embodiments of the present disclosure.
  • the aforementioned storage medium can be a non-transitory storage medium, including: U disk, removable hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the disclosed methods and products may be implemented in other ways.
  • the apparatus embodiments described above are only illustrative.
  • the division of units may only be a logical function division.
  • multiple units or components may be combined or may be Integration into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. This embodiment may be implemented by selecting some or all of the units according to actual needs.
  • each functional unit in the embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executables for implementing the specified logical function(s) instruction.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in special purpose hardware-based systems that perform the specified functions or actions, or special purpose hardware implemented in combination with computer instructions.

Abstract

The present application relates to the technical field of smart homes, and discloses a method for network provisioning. The method for network provisioning comprises: when network provisioning is required, a device to be networked turns on a first hotspot named a first preset name; a networked device scans hotspot information and, if the first hotspot named a first preset name is scanned, then connects to the first hotspot; by means of the first hotspot, the networked device sends to the device to be networked second Wi-Fi information of a second hotspot capable of networking; and, on the basis of the second Wi-Fi information, the device to be networked connects to the second hotspot. Using the present network provisioning method can shorten the network disconnection duration of networked devices and reduce the adverse impact of the network provisioning process on the normal operation of networked devices. Also disclosed in the present application are an apparatus for network provisioning and a smart home device.

Description

用于配网的方法、装置和智能家居设备Method, apparatus and smart home device for distribution network
本申请基于申请号为202110474414.8、申请日为2021年4月29日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on the Chinese patent application with the application number of 202110474414.8 and the filing date of April 29, 2021, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is incorporated herein by reference.
技术领域technical field
本申请涉及智能家居技术领域,例如涉及一种用于配网的方法、装置和智能家居设备。The present application relates to the field of smart home technology, for example, to a method, device and smart home device for network distribution.
背景技术Background technique
目前,大多智能家居设备具备WiFi联网的功能,在一台新的家居设备需要接入网络时,通常需要使用手机为新家居设备配置WiFi名称和WiFi密码,使新家居设备成功接入网络。为了简化用户操作,一些现有技术中由成功配网的第一终端开启网络热点功能,之后待配网的第二终端通过网络热点连接至第一终端,最后由第一终端向第二终端发送配网信息。At present, most smart home devices have the function of WiFi networking. When a new home device needs to access the network, it is usually necessary to use a mobile phone to configure the WiFi name and WiFi password for the new home device, so that the new home device can successfully access the network. In order to simplify user operations, in some prior art, the first terminal that has successfully deployed the network enables the network hotspot function, and then the second terminal to be networked is connected to the first terminal through the network hotspot, and finally the first terminal sends a message to the second terminal. Distribution network information.
在实现本公开实施例的过程中,发现相关技术中至少存在如下问题:In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:
已配网设备在开启热点功能后,将会断开与现有热点的连接,导致在配网的时间内已配网设备无法联网。现有技术中由已配网设备主动开启热点,其中,热点启动过程,以及,待配网设备搜索热点的过程均会延长已配网设备的断网时长,导致配网过程对已配网设备正常工作产生较大的不利影响。After the hotspot function is turned on, the networked device will be disconnected from the existing hotspot, so that the networked device cannot be connected to the Internet within the network configuration time. In the prior art, the network-distributed device actively starts the hotspot, wherein the hotspot startup process and the process of searching for the hotspot by the network-to-be-distributed device will prolong the disconnection time of the network-distributed device, causing the network-distribution process to affect the network-distributed device. Normal work has a greater adverse effect.
发明内容SUMMARY OF THE INVENTION
为了对披露的实施例的一些方面有基本的理解,下面给出了简单的概括。所述概括不是泛泛评述,也不是要确定关键/重要组成元素或描绘这些实施例的保护范围,而是作为后面的详细说明的序言。In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended to be an extensive review, nor to identify key/critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
本公开实施例提供了一种用于配网的方法、装置和智能家居设备,以解决现有配网过程对已配网设备的正常使用产生较大的不利影响的技术问题。The embodiments of the present disclosure provide a method, device and smart home equipment for network distribution, so as to solve the technical problem that the existing network distribution process has a large adverse effect on the normal use of the network-distributed equipment.
在一些实施例中,用于配网的方法应用于待配网设备,所述用于配网的方法包括:In some embodiments, a method for network distribution is applied to a device to be distributed, and the method for network distribution includes:
在需要配网时,开启名称为第一预设名称的第一热点;When network configuration is required, turn on the first hotspot whose name is the first preset name;
接收连接所述第一热点的已配网设备发送的可联网的第二热点的第二WiFi信息;Receive the second WiFi information of the second hotspot that can be connected to the Internet sent by the networked device connected to the first hotspot;
根据所述第二WiFi信息连接至第二热点。Connect to a second hotspot according to the second WiFi information.
可选地,开启名称为第一预设名称的第一热点,包括:Optionally, enabling the first hotspot with the first preset name, including:
扫描获得第三热点的名称;Scan to get the name of the third hotspot;
如果所述第三热点的名称在预设名称之中,则在所述预设名称中确定不同于所述第三热点的名称的第一预设名称;If the name of the third hotspot is among the preset names, determining a first preset name that is different from the name of the third hotspot in the preset names;
根据所述第一预设名称开启所述第一热点。Turn on the first hotspot according to the first preset name.
可选地,在所述预设名称中确定不同于所述第三热点的名称的第一预设名称,包括:Optionally, determining a first preset name that is different from the name of the third hotspot among the preset names, including:
确定所述第一预设名称的优先级低于或高于所述第三热点的名称的优先级,使已配网设备可根据名称的优先级在多个热点中确定名称为所述第一预设名称的所述第一热点。It is determined that the priority of the first preset name is lower or higher than the priority of the name of the third hotspot, so that the network-configured device can determine the name of the first hotspot as the first hotspot according to the priority of the name The first hotspot of the preset name.
可选地,接收连接所述第一热点的已配网设备发送的可联网的第二热点的第二WiFi信息,包括:Optionally, receiving second WiFi information of a second hotspot that can be networked and sent by a networked device connected to the first hotspot includes:
如果接收到多个热点的WiFi信息,则获得每个热点对应的已配网设备的设备类型;If the WiFi information of multiple hotspots is received, the device type of the networked device corresponding to each hotspot is obtained;
获得所述待配网设备的第一设备类型;obtaining the first device type of the device to be configured;
在多个热点对应的已配网设备的设备类型中确定与所述第一设备类型相关联的第二设备类型;determining a second device type associated with the first device type from the device types of the networked devices corresponding to the multiple hotspots;
确定所述第二设备类型对应的热点的WiFi信息为所述第二热点的所述第二WiFi信息。It is determined that the WiFi information of the hotspot corresponding to the second device type is the second WiFi information of the second hotspot.
可选地,在多个热点对应的已配网设备的设备类型中确定与所述第一设备类型相关联的第二设备类型,包括:Optionally, determining the second device type associated with the first device type from the device types of the networked devices corresponding to the multiple hotspots, including:
获得所述第一设备类型相对应的第一应用场景,以及,每个热点对应的已配网设备的设备类型对应的第二应用场景;Obtain a first application scenario corresponding to the first device type, and a second application scenario corresponding to the device type of the networked device corresponding to each hotspot;
如果多个所述第二应用场景中的一个或多个应用场景与所述第一应用场景相同或相关联,则确定所述一个或多个应用场景对应的已配网设备的设备类型为所述第二设备类型。If one or more application scenarios in the plurality of second application scenarios are the same as or related to the first application scenario, it is determined that the device type of the networked device corresponding to the one or more application scenarios is all Describe the second device type.
在一些实施例中,用于配网的方法应用于已配网设备,所述用于配网的方法包括:In some embodiments, a method for network distribution is applied to a networked device, and the method for network distribution includes:
扫描热点信息,如果扫描到名称为第一预设名称的第一热点,则连接至所述第一 热点;Scan the hotspot information, and connect to the first hotspot if the first hotspot whose name is the first preset name is scanned;
将可联网的第二热点的第二WiFi信息,通过所述第一热点发送至待配网设备。The second WiFi information of the second hotspot that can be connected to the Internet is sent to the device to be networked through the first hotspot.
可选地,确定扫描到名称为第一预设名称的第一热点,包括:Optionally, it is determined that the first hotspot with the name of the first preset name is scanned, including:
如果扫描到名称在预设名称之中的多个热点,则根据多个热点的名称的优先级,在多个热点中确定名称为所述第一预设名称的所述第一热点。If multiple hotspots whose names are among the preset names are scanned, the first hotspot whose name is the first preset name is determined among the multiple hotspots according to the priority of the names of the multiple hotspots.
可选地,将可联网的第二热点的第二WiFi信息,通过所述第一热点发送至待配网设备,包括:Optionally, sending the second WiFi information of the second hotspot that can be connected to the Internet to the device to be configured via the first hotspot, including:
如果多个已配网设备同时连接至所述第一热点,则每个已配网设备通过所述第一热点向所述待配网设备发送每个已配网设备的设备类型及其对应的热点的WiFi信息,以使所述待配网设备根据所述待配网设备的第一设备类型,在多个热点对应的已配网设备的设备类型中确定与所述第一设备类型相对应的第二设备类型,进而确定所述第二设备类型对应的热点的WiFi信息为所述第二热点的所述第二WiFi信息。If multiple networked devices are connected to the first hotspot at the same time, each networked device sends the device type of each networked device and its corresponding device type to the to-be-configured device through the first hotspot. WiFi information of hotspots, so that the device to be configured determines, according to the first device type of the device to be configured, that the device corresponds to the first device type among the device types of the networked devices corresponding to multiple hotspots the second device type, and then determine that the WiFi information of the hotspot corresponding to the second device type is the second WiFi information of the second hotspot.
在一些实施例中,用于配网的装置包括处理器和存储有程序指令的存储器,所述处理器被配置为在执行所述程序指令时,执行前述实施例提供的用于配网的方法。In some embodiments, the apparatus for network distribution includes a processor and a memory storing program instructions, the processor is configured to execute the method for network distribution provided by the foregoing embodiments when the program instructions are executed. .
在一些实施例中,智能家居设备包括前述实施例提供的用于配网的装置。In some embodiments, the smart home device includes the apparatus for network distribution provided in the foregoing embodiments.
本公开实施例提供的用于配网的方法、装置和智能家居设备,可以实现以下技术效果:The method, device and smart home device for network distribution provided by the embodiments of the present disclosure can achieve the following technical effects:
由待配网设备开启热点,在待配网设备开启热点的过程中,已配网设备仍可正常联网,正常工作;已配网设备扫描可连接的热点,在扫描过程中,已配网设备也可正常联网,正常工作,之后已配网设备再连接至待配网设备,并向待配网设备发送WiFi信息,使待配网设备根据WiFi信息连接至热点,在上述过程中,缩短了已配网设备的断网时长,降低了配网过程对已配网设备正常工作的不利影响。The hotspot is turned on by the device to be configured. During the process of turning on the hotspot by the device to be configured, the device that has been configured can still connect to the Internet and work normally; the device that has been configured scans the hotspot that can be connected. During the scanning process, the device that has been configured It can also be connected to the Internet normally and work normally. After that, the networked devices are connected to the devices to be distributed, and WiFi information is sent to the devices to be distributed, so that the devices to be distributed are connected to the hotspot according to the WiFi information. In the above process, shorten the time The network disconnection time of the networked devices reduces the adverse impact of the network configuration process on the normal operation of the networked devices.
以上的总体描述和下文中的描述仅是示例性和解释性的,不用于限制本申请。The foregoing general description and the following description are exemplary and explanatory only and are not intended to limit the application.
附图说明Description of drawings
一个或一个以上实施例通过与之对应的附图进行示例性说明,这些示例性说明和附图并不构成对实施例的限定,附图中具有相同参考数字标号的元件视为类似的元件,并且其中:One or more embodiments are exemplified by the accompanying drawings, which do not constitute a limitation on the embodiments, and elements with the same reference numerals in the drawings are regarded as similar elements, and where:
图1是本公开实施例中提供的一种用于配网的方法的示意图;1 is a schematic diagram of a method for network distribution provided in an embodiment of the present disclosure;
图2是本公开实施例提供的一种用于配网的方法的示意图;2 is a schematic diagram of a method for network distribution provided by an embodiment of the present disclosure;
图3是本公开实施例提供的一种用于配网的方法的示意图;3 is a schematic diagram of a method for network distribution provided by an embodiment of the present disclosure;
图4是本公开实施例提供的一种用于配网的装置的示意图。FIG. 4 is a schematic diagram of an apparatus for network distribution provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为了能够更加详尽地了解本公开实施例的特点与技术内容,下面结合附图对本公开实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本公开实施例。在以下的技术描述中,为方便解释起见,通过多个细节以提供对所披露实施例的充分理解。然而,在没有这些细节的情况下,一个或一个以上实施例仍然可以实施。在其它情况下,为简化附图,熟知的结构和装置可以简化展示。In order to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings, which are for reference only and are not intended to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, numerous details are provided to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawings.
本公开实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开实施例的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。The terms "first", "second" and the like in the description and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data so used may be interchanged under appropriate circumstances for the purposes of implementing the embodiments of the disclosure described herein. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion.
除非另有说明,术语“多个”表示两个或两个以上。Unless stated otherwise, the term "plurality" means two or more.
本公开实施例中,字符“/”表示前后对象是一种“或”的关系。例如,A/B表示:A或B。In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an "or" relationship. For example, A/B means: A or B.
术语“和/或”是一种描述对象的关联关系,表示可以存在三种关系。例如,A和/或B,表示:A或B,或,A和B这三种关系。The term "and/or" is an associative relationship describing objects, indicating that three relationships can exist. For example, A and/or B, means: A or B, or, A and B three relationships.
在本公开实施例中,已配网设备和待配网设备可均为智能家居系统中的各种智能家居设备,例如智能冰箱、智能空调、智能扫地机、智能音箱、智能空气净化器等设备。In the embodiment of the present disclosure, the network-distributed device and the network-to-be-distributed device may be various smart home devices in the smart home system, such as smart refrigerators, smart air conditioners, smart sweepers, smart speakers, and smart air purifiers. .
在本公开实施例中,术语“联网”指的是已配网设备通过WiFi模块连接至热点,使已配网设备可访问互联网或智慧家庭的局域网。并且,这里的热点可以是路由器。In the embodiment of the present disclosure, the term "networking" refers to the fact that a networked device is connected to a hotspot through a WiFi module, so that the networked device can access the Internet or a local area network of a smart home. And, the hotspot here can be a router.
在本公开实施例中,术语“配网”指的是为一设备配置WiFi名称、WiFi密码等WiFi信息,使该设备可通过该WiFi信息连接至热点,进而使该设备可访问互联网或智慧家庭的局域网。In the embodiments of the present disclosure, the term "network distribution" refers to configuring a device with WiFi information such as WiFi name and WiFi password, so that the device can connect to a hotspot through the WiFi information, so that the device can access the Internet or smart home local area network.
本公开实施例中的待联网设备,既可以工作在无线接入点(Access Point,AP)模式,又可以工作在站(Station,STA)模式。The device to be networked in the embodiment of the present disclosure may work in both a wireless access point (Access Point, AP) mode and a station (Station, STA) mode.
图1是本公开实施例中提供的一种用于配网的方法的示意图。该用于配网的方法应用于待配网设备,该用于配网的方法可由待配网设备执行,也可由智能家居系统中的服务器执行。结合图1所示,用于配网的方法包括:FIG. 1 is a schematic diagram of a method for network distribution provided in an embodiment of the present disclosure. The method for network distribution is applied to a device to be distributed, and the method for network distribution can be performed by the device to be distributed, or by a server in a smart home system. With reference to Figure 1, the method for network distribution includes:
S101、在需要配网时,开启名称为第一预设名称的第一热点。S101. When network configuration is required, enable a first hotspot whose name is a first preset name.
例如,在将一新智能家居设备加入智能家居系统中时,需要该新智能家居设备需要配网,或者,在智能家居系统中的一智能家居设备恢复出厂设置后,该恢复出厂设置的智能家居设备需要配网。可在需要配网的智能家居设备上电后,智能家居设备开启名称为第一预设名称的第一热点。For example, when a new smart home device is added to the smart home system, the new smart home device needs to be networked, or, after a smart home device in the smart home system is restored to factory settings, the smart home The device needs to be networked. After the smart home device that needs to be networked is powered on, the smart home device opens the first hotspot whose name is the first preset name.
第一预设名称是待配网设备和已配网设备共同约定的。待配网设备开启名称为第一预设名称的第一热点,已配网设备扫描热点的名称,如果热点的名称不是第一预设名称,则已配网设备继续之前的联网,不切换连接至扫描到的热点;如果已配网设备扫描到的热点的名称是第一预设名称,则已配网设备断开当前连接,转而连接至名称为第一预设名称的第一热点。The first preset name is jointly agreed upon by the device to be configured and the device already configured. The device to be configured opens the first hotspot whose name is the first preset name, and the configured device scans the name of the hotspot. If the name of the hotspot is not the first preset name, the configured device continues the previous networking without switching connections. to the scanned hotspot; if the name of the hotspot scanned by the network-provisioned device is the first preset name, the network-provisioned device disconnects the current connection and connects to the first hotspot whose name is the first preset name.
例如,在待配网设备和已配网设备中的数据库均存储有多个预设名称,在待配网设备需要开启热点时,在预设名称中选择一个名称作为第一预设名称,再开启名称为第一预设名称的第一热点。For example, multiple preset names are stored in the databases of the device to be configured and the device that has been configured. When the device to be configured needs to open a hotspot, select a name from the preset names as the first preset name, and then Turn on the first hotspot whose name is the first preset name.
对于已配网设备而言,第一热点是可以连接的,例如,在已配网设备和待配网设备的数据库中,存储有第一预设名称对应的第一预设密码;待配网设备开启名称为第一预设名称、密码为第一预设密码的第一热点,已配网设备在扫描到名称为第一预设名称的第一热点后,可在数据库中获得与第一预设名称对应的第一预设密码,之后通过该第一预设密码连接至的待配网设备;或者,名称为第一预设名称的第一热点没有访问限制。For devices that have been configured, the first hotspot can be connected. For example, in the databases of devices that have been configured and devices to be configured, the first preset password corresponding to the first preset name is stored; The device opens the first hotspot whose name is the first preset name and the password is the first preset password. After scanning the first hotspot whose name is the first preset The first preset password corresponding to the preset name, and then the device to be connected to the network through the first preset password; or, the first hotspot whose name is the first preset name has no access restriction.
在一些具体应用中,待配网设备的数量为多个,在当前待配网设备开启第一热点之前,其他待配网设备已经开启了多个热点。In some specific applications, the number of devices to be distributed is multiple, and before the current device to be distributed opens the first hotspot, other devices to be distributed have already opened multiple hotspots.
这种情况下,当前待配网设备开启名称为第一预设名称的第一热点,包括:扫描获得第三热点的名称;如果第三热点的名称在预设名称之中,则在预设名称中确定不同于第三热点的名称的第一预设名称;根据第一预设名称开启第一热点。这里的第三热点的数量可以是一个或多个,如果第三热点的名称在预设名称中,则可确定开启第三热点的设备是与当前待配网设备兼容的,并且,开启第三热点的设备也是待配网设备;如果第三热点的名称不在预设名称中,则忽略该第三热点及其名称。采用该技术方案,可使本用于配网的方法同时为多台待配网设备配网。In this case, the current device to be configured to open the first hotspot whose name is the first preset name includes: scanning to obtain the name of the third hotspot; if the name of the third hotspot is in the preset names, then in the preset A first preset name different from the name of the third hotspot is determined in the name; the first hotspot is opened according to the first preset name. The number of third hotspots here can be one or more. If the name of the third hotspot is in the preset name, it can be determined that the device that enables the third hotspot is compatible with the device currently to be configured, and the third hotspot is enabled. The device of the hotspot is also the device to be configured; if the name of the third hotspot is not in the preset name, the third hotspot and its name are ignored. By adopting the technical solution, the method for network distribution can simultaneously distribute the network to a plurality of devices to be distributed.
进一步地,在预设名称中确定不同于第三热点的名称的第一预设名称,包括:确定第一预设名称的优先级低于或高于第三热点的名称的优先级,使已配网设备可根据名称的优先级在多个热点中确定名称为第一预设名称的第一热点。Further, determining a first preset name that is different from the name of the third hot spot in the preset names includes: determining that the priority of the first preset name is lower than or higher than the priority of the name of the third hot spot, so that the The network distribution device may determine the first hotspot whose name is the first preset name among the plurality of hotspots according to the priority of the name.
这里第一预设名称与第三热点的名称的优先级不同,是为了区分出待配网设备的开启热点的顺序,可以确定第一预设名称的优先级高于第三热点的名称优先级,则优先级越高,表示待配网设备开启热点的时间越短;还可以确定第一预设名称的优先级低于第三热点的名称的优先级,则优先级越低,表示待配网设备开启热点的时间越短。Here, the priority of the first preset name and the name of the third hotspot is different. In order to distinguish the order of opening the hotspots of the devices to be configured, it can be determined that the priority of the first preset name is higher than that of the third hotspot. , the higher the priority, the shorter the time for the device to be configured to open the hotspot; it can also be determined that the priority of the first preset name is lower than the priority of the name of the third hotspot, the lower the priority, the shorter the time to be configured. The shorter the time for the Internet device to turn on the hotspot.
在多个待配网设备同时配网时,每个待配网设备开启热点的时间不同,对于当前时刻开启热点的待配网设备而言,当前时刻开启的热点为第一热点,当前时刻之前其他待配网设备开启的热点均为第三热点。When multiple devices to be distributed are simultaneously distributed, each device to be distributed has a different time to turn on the hotspot. For the device to be distributed that has the hotspot turned on at the current moment, the hotspot that is turned on at the current moment is the first hotspot. Before the current moment The hotspots opened by other network devices to be deployed are all third hotspots.
采用该技术方案,可使多个待配网设备开启的热点(包括第三热点和第一热点)的名称存在优先级的区别。By adopting the technical solution, the names of the hotspots (including the third hotspot and the first hotspot) to be opened by a plurality of network devices to be distributed can be differentiated in priority.
在一些具体应用中,3个待配网设备同时配网,第一个待配网设备首先创建热点名称并开启热点,在第二个待配网设备创建热点名称时,与第一个待配网设备创建的名称具有优先级的区别,在第三个待配网设备创建热点名称,与第二待配网设备创建的名称具有优先级的区别,这样一来,三个待配网设备创建的热点名称均具有优先级的区别:优先级依次递增,或者,优先级依次递降。In some specific applications, 3 devices to be configured are configured at the same time, the first device to be configured first creates a hotspot name and opens the hotspot, and when the second device to be configured creates a hotspot name, it is matched with the name of the first device to be configured. The name created by the network device has a priority difference. The hotspot name created by the third network device to be configured has a priority difference from the name created by the second network device to be configured. In this way, the three network devices to be configured are created All hotspot names have priority distinction: the priority increases in sequence, or the priority decreases in sequence.
在一些具体应用中,待配网设备和已配网设备存储的多个预设名称之间存在特定顺序,在创建热点名称时,如果预设名称中最靠前的名称没有被使用,即,未扫描到名称为预设名称中最靠前的名称的热点,则以预设名称中最靠前的名称开启热点;这样按照特定顺序依次判断多个预设名称是否被使用,以多个预设名称中第一个未被使用的名称开启热点。In some specific applications, there is a specific order between the multiple preset names stored by the device to be configured and the device that has been configured. When creating a hotspot name, if the most advanced name among the preset names is not used, that is, If the hotspot whose name is the foremost name among the preset names is not scanned, the hotspot will be opened with the first name among the preset names; in this way, it is judged in a specific order whether multiple preset names are used, and the multiple preset names are used in turn. Set the first unused name in the name to turn on the hotspot.
S102、接收连接第一热点的已配网设备发送的可联网的第二热点的第二WiFi信息。S102. Receive second WiFi information of a second hotspot that can be networked and sent by a networked device connected to the first hotspot.
第二WiFi信息包括第二热点的WiFi名称以及WiFi密码。待配网设备通过可联网的第二热点,可访问互联网或智慧家庭中的局域网。The second WiFi information includes the WiFi name and WiFi password of the second hotspot. The device to be distributed can access the Internet or the local area network in the smart home through the second hotspot that can be connected to the Internet.
在一些具体应用中,已配网设备的数量为多个,多个已配网设备均可扫描到待配网设备开启的名称为第一预设名称的第一热点,均可通过第一热点向待配网设备发送可联网的热点的WiFi信息,即,待配网设备可接收到多个热点的WiFi信息。In some specific applications, the number of network-configured devices is multiple, and multiple network-configured devices can scan the first hotspot whose name is the first preset name opened by the device to be configured, and can pass the first hotspot. The WiFi information of the hotspots that can be connected to the network is sent to the device to be configured, that is, the device to be configured can receive the WiFi information of multiple hotspots.
这种情况下,接收连接第一热点的已配网设备发送的可联网的第二热点的第二WiFi信息,包括:获得每个热点对应的已配网设备的设备类型;获得待配网设备的第一设备类型;在多个热点对应的已配网设备的设备类型中确定与第一设备类型相关联的第二设备类型;确定第二设备类型对应的热点的WiFi信息为第二热点的第二WiFi信息。In this case, receiving the second WiFi information of the networkable second hotspot sent by the networked device connected to the first hotspot includes: obtaining the device type of the networked device corresponding to each hotspot; obtaining the device to be configured. determine the second device type associated with the first device type in the device types of the networked devices corresponding to the multiple hotspots; determine that the WiFi information of the hotspot corresponding to the second device type is that of the second hotspot Second WiFi information.
与第一设备类型相关联的第二设备类型,指的是第一设备类型和第二设备类型的功能相同或在功能上具有配合关系,例如,第一设备类型为空气净化器,第二设备类型为空气净化器,则第一设备类型和第二设备类型相关联;如果第一设备类型为空气净化器,第二设备类型为制氧机,则第一设备类型和第二设备类型在功能上具有配合关系,二者相关联;或者,第一设备类型为加湿器,第二设备类型为空调,则第二设备类型和第二设备类型在功能上具有配合关系,二者相关联。The second device type associated with the first device type means that the first device type and the second device type have the same function or have a cooperative relationship in function, for example, the first device type is an air purifier, and the second device type If the type is an air purifier, the first device type is associated with the second device type; if the first device type is an air purifier and the second device type is an oxygen generator, the first device type and the second device type are in the function or, if the first device type is a humidifier and the second device type is an air conditioner, the second device type and the second device type have a functional cooperation relationship and are associated.
在实际应用中,可将与第一设备类型相关联的一个或多个设备类型存储在数据库中,在需要确定第二设备类型时,在数据库中获得与第一设备类型相关联的一个或多个设备类型,判断多个热点对应的已配网设备的设备类型与第一设备类型关联的一个或多个设备类型是否相同,如果相同,则相同的一个或多个设备类型为第二设备类型。In practical applications, one or more device types associated with the first device type may be stored in a database, and when the second device type needs to be determined, one or more device types associated with the first device type are obtained in the database determine whether the device types of the networked devices corresponding to multiple hotspots are the same as one or more device types associated with the first device type. If they are the same, the same one or more device types are the second device type. .
可选地,在多个热点对应的已配网设备的设备类型中确定与第一设备类型相关联的第二设备类型,包括:获得第一设备类型相对应的第一应用场景,以及,每个热点对应的已配网设备的设备类型对应的第二应用场景;如果多个第二应用场景中的一个或多个应用场景与第一应用场景相同或相关联,则确定一个或多个应用场景对应的已配网设备的设备类型为第二设备类型。Optionally, determining the second device type associated with the first device type among the device types of the networked devices corresponding to the multiple hotspots includes: obtaining a first application scenario corresponding to the first device type, and, each time a second application scenario corresponding to the device type of the networked device corresponding to the hotspot; if one or more of the multiple second application scenarios are the same as or related to the first application scenario, then determine one or more application scenarios The device type of the networked device corresponding to the scenario is the second device type.
在一个应用场景中,多个智能家居设备同时工作,共同实现一种生活状态。例如,在归家场景中,客厅灯打开,空调开始工作;在入睡场景中,窗帘关闭,空调设置为适宜入睡的设定温度。In an application scenario, multiple smart home devices work at the same time to jointly achieve a living state. For example, in the homecoming scene, the lights in the living room are turned on, and the air conditioner starts to work; in the falling asleep scene, the curtains are closed, and the air conditioner is set to a set temperature suitable for falling asleep.
场景相关联,指的是两个场景在应用顺序上具有时间的先后顺序。例如,按时间的先后顺序可依次为归家场景、用餐(可包括做饭)场景、休闲场景、入睡场景,其中,归家场景中包括打开客厅灯,空调开始工作;用餐场景中包括调节吸油烟机、调节智能炉灶;休闲场景包括调节客厅空调、控制智能电视等;入睡场景包括关闭客厅空调,为卧室空调的设置适宜入睡的设定温度。Scenarios are associated, which means that two scenarios have a time sequence in the application sequence. For example, in the order of time, it can be a homecoming scene, a meal (which may include cooking) scene, a leisure scene, and a sleeping scene, wherein the homecoming scene includes turning on the living room lights and the air conditioner starts to work; the dining scene includes adjusting the oil absorption The hood and the smart stove are adjusted; the leisure scene includes adjusting the air conditioner in the living room, controlling the smart TV, etc.; the sleeping scene includes turning off the air conditioner in the living room and setting the temperature suitable for sleeping for the bedroom air conditioner.
例如,第一设备类型为客厅空调,客厅空调可对应归家场景和休闲场景等;如果一个热点对应的设备类型为客厅灯,则客厅灯可对应第二应用场景可为归家场景,此时第二应用场景与第一应用场景相同,可确定客厅灯为第二设备类型。For example, the first device type is a living room air conditioner, and the living room air conditioner can correspond to a homecoming scene and a leisure scene; if the device type corresponding to a hotspot is a living room lamp, the living room lamp can correspond to the second application scene, which can be a homecoming scene. The second application scenario is the same as the first application scenario, and it can be determined that the living room lamp is the second device type.
再例如,第一设备类型为客厅空调,客厅空调可对应归家场景和休闲场景等;如果一个热点对应的设备类型为吸油烟机,则吸油烟机对应的第二应用场景为用餐场景,且在该用户的生活习惯中,归家场景之后为用餐场景,则第一应用场景和第二应用场景相关联,确定吸油烟机为第二设备类型。For another example, the first device type is a living room air conditioner, and the living room air conditioner can correspond to homecoming scenarios and leisure scenarios; if the device type corresponding to a hotspot is a range hood, the second application scenario corresponding to the range hood is a dining scenario, and In the user's living habits, the homecoming scene is followed by a dining scene, the first application scene and the second application scene are associated, and the range hood is determined as the second device type.
在多个已配网设备中选择与待配网设备匹配的已配网设备,将待配网设备连接至该匹配的已配网设备所连接的热点上,在正常使用过程中,可更好地使待配网设备(正常使用过程中,待配网设备已联网,此处沿用旧名称,以区分已配网设备)与已配网设备配合工作。Select the networked device that matches the device to be configured among multiple networked devices, and connect the device to be configured to the hotspot connected to the matching networked device. During normal use, it can be better To make the network equipment to be distributed (during normal use, the equipment to be distributed has been connected to the Internet, the old name is used here to distinguish the equipment that has been distributed) and the equipment that has been distributed.
在一些具体应用中,在接收到所述第二WiFi热点信息后,用于配网的方法还包括:关闭所述第一热点。In some specific applications, after receiving the second WiFi hotspot information, the method for network configuration further includes: turning off the first hotspot.
S103、根据第二WiFi信息连接至第二热点。S103. Connect to the second hotspot according to the second WiFi information.
由待配网设备开启热点,在待配网设备开启热点的过程中,已配网设备仍可正常联网,正常工作;已配网设备扫描可连接的热点,在扫描过程中,已配网设备也可正常联网,正常工作,之后已配网设备再连接至待配网设备,并向待配网设备发送WiFi信息,使待配网设备根据WiFi信息连接至热点,在上述过程中,缩短了已配网设备的断网时长,降低了配网过程对已配网设备正常工作的不利影响。The hotspot is turned on by the device to be configured. During the process of turning on the hotspot by the device to be configured, the device that has been configured can still connect to the Internet and work normally; the device that has been configured scans the hotspot that can be connected. During the scanning process, the device that has been configured It can also be connected to the Internet normally and work normally. After that, the networked devices are connected to the devices to be distributed, and WiFi information is sent to the devices to be distributed, so that the devices to be distributed are connected to the hotspot according to the WiFi information. In the above process, shorten the time The network disconnection time of the networked devices reduces the adverse impact of the network configuration process on the normal operation of the networked devices.
在一些实际应用中,待配网设备接收已配网设备的标识信息,在根据第二WiFi信息连接至第二热点后,绑定至已配网设备的标识信息所关联的用户标识信息(Identity Document,ID)。或者,待配网设备将待配网设备标识信息发送至已配网设备,使已配网设备在重新联网后,将待配网设备标识信息发送至服务器,使服务器绑定待配网设备与已配网设备绑定的用户ID。这样可缩减用户绑定待联网设备的操作,提高了用户使用体验。In some practical applications, the device to be configured receives the identification information of the device that has been configured, and after connecting to the second hotspot according to the second WiFi information, is bound to the user identification information (Identity Information) associated with the identification information of the device that has been configured. Document, ID). Alternatively, the device to be distributed sends the identification information of the device to be distributed to the device that has been configured, so that the device that has been configured will send the identification information of the device to be distributed to the server after it is reconnected to the network, so that the server can bind the device to be distributed with the device. User ID bound to the configured network device. In this way, the operation of binding the device to be networked by the user can be reduced, and the user experience can be improved.
图2是本公开实施例提供的一种用于配网的方法的示意图。该用于配网的方法应用于已配网设备,该用于配网的方法可由已配网设备执行,可由智能家居系统中的服务器执行。结合图2所示,用于配网的方法包括:FIG. 2 is a schematic diagram of a method for network distribution provided by an embodiment of the present disclosure. The method for network distribution is applied to a network-distributed device, and the method for network distribution can be executed by the network-distributed device, and can be executed by a server in a smart home system. With reference to Figure 2, the method for network distribution includes:
S201、扫描热点信息,如果扫描到名称为第一预设名称的第一热点,则连接至第一热点。S201. Scan hotspot information, and if a first hotspot whose name is a first preset name is scanned, connect to the first hotspot.
这里的热点信息包括热点名称。The hotspot information here includes the hotspot name.
第一预设名称是已配网设备与待配网设备共同约定的。在已配网设备扫描热点信息时,已配网设备可以已连接至一热点,并且可通过该一热点访问互联网或智慧家庭的局域网;在已配网设备可以已连接至一热点的情况下,已配网设备扫描热点信息,如果扫描到的热点名称是第一预设名称,则断开当前连接的热点,转而连接至名称为第一预设名称的第一热点;如果扫描到的热点名称不是第一预设名称,则保持当前的连接。The first preset name is jointly agreed upon by the network-configured device and the network-to-be-configured device. When the networked device scans the hotspot information, the networked device can be connected to a hotspot, and can access the Internet or the local area network of the smart home through the hotspot; when the networked device can be connected to a hotspot, The networked device scans the hotspot information. If the scanned hotspot name is the first preset name, it will disconnect the currently connected hotspot and connect to the first hotspot with the first preset name; if the scanned hotspot name is the first preset name If the name is not the first preset name, keep the current connection.
例如,在已配网设备和待配网设备中的数据库均存储有多个预设名称,已配网设 备扫描热点信息,如果扫描到热点的名称,则比对该热点的名称是否在数据库中存储的预设名称之中,如果是,则确定该热点的名称为第一预设名称,该热点为第一热点;如果热点的名称不在数据库中存储的预设名称之中,则忽略该热点及其名称。For example, multiple preset names are stored in the databases of the networked device and the device to be configured. The networked device scans the hotspot information. If the hotspot name is scanned, it will compare whether the hotspot name is in the database. Among the stored preset names, if yes, then determine that the name of the hotspot is the first preset name, and the hotspot is the first hotspot; if the name of the hotspot is not among the preset names stored in the database, ignore the hotspot and its name.
对于已配网设备而言,第一热点是可以连接的,例如,在已配网设备和待配网设备的数据库中,存储有第一预设名称对应的第一预设密码;待配网设备开启名称为第一预设名称,密码为第一预设密码的第一热点,已配网设备在扫描到名称为第一预设名称的第一热点后,可在数据库中获得与第一预设名称对应的第一预设密码,之后通过该第一预设密码连接至的待配网设备;或者,名称为第一预设名称的第一热点没有访问限制。For devices that have been configured, the first hotspot can be connected. For example, in the databases of devices that have been configured and devices to be configured, the first preset password corresponding to the first preset name is stored; The name of the device is the first preset name, and the password is the first hotspot of the first preset password. After scanning the first hotspot with the name of the first preset name, the network-configured device can obtain the first hotspot with the first preset name in the database. The first preset password corresponding to the preset name, and then the device to be connected to the network through the first preset password; or, the first hotspot whose name is the first preset name has no access restrictions.
在一些具体应用中,待配网设备的数量为多个,一个已配网设备可扫描到多个待配网设备开启的热点。In some specific applications, the number of devices to be configured is multiple, and one device that has been configured can scan the hotspots opened by multiple devices to be configured.
可选地,确定扫描到名称为第一预设名称的第一热点,包括:如果扫描到名称在预设名称之中的多个热点,则根据多个热点的名称的优先级,在多个热点中确定名称为第一预设名称的第一热点。Optionally, determining that the first hotspot with the name of the first preset name is scanned, including: if multiple hotspots whose names are among the preset names are scanned, according to the priority of the names of the multiple hotspots, among the multiple hotspots Among the hotspots, the determined name is the first hotspot with the first preset name.
例如,确定优先级最高的名称为第一预设名称,确定优先级最高的名称对应的热点为第一热点;或者,确定优先级最低的名称为第一预设名称,确定优先级最低的名称对应的热点为第一热点。For example, the name with the highest priority is determined as the first preset name, and the hotspot corresponding to the name with the highest priority is determined as the first hotspot; or, the name with the lowest priority is determined as the first preset name, and the name with the lowest priority is determined The corresponding hot spot is the first hot spot.
在一些具体应用中,待配网设备确定第一预设名称的优先级高于第三热点的名称优先级,已配网设备确定优先级最高的名称为第一预设名称,优先级最高的名称对应的热点为第一热点,这种情况下优先以最后进入待配网状态的设备进行配网。In some specific applications, the priority of the first preset name determined by the device to be configured is higher than the priority of the name of the third hotspot, the name with the highest priority determined by the networked device is the first preset name, and the name with the highest priority is the first preset name. The hotspot corresponding to the name is the first hotspot. In this case, the device that enters the state to be deployed last is prioritized for network allocation.
在一些具体应用中,待配网设备确定第一预设名称的优先级低于第三热点的名称优先级,已配网设备确定优先级最低的名称为第一预设名称,优先级最低的名称对应的热点为第一热点,这种情况下优先为最后进入待配网状态的设备进行配网。In some specific applications, the priority of the first preset name determined by the network device to be configured is lower than the priority of the name of the third hotspot, the name with the lowest priority determined by the networked device is the first preset name, and the name with the lowest priority The hotspot corresponding to the name is the first hotspot. In this case, priority is given to the device that enters the network configuration state last.
在一些具体应用中,待配网设备和已配网设备存储的多个预设名称之间存在特定顺序,如果已配网设备扫描到多个名称均在预设名称之中的热点,则确定多个名称中按预设名称中的顺序最靠后的一个名称为第一预设名称,确定第一预设名称对应的热点为第一热点。In some specific applications, there is a specific order between the multiple preset names stored by the device to be configured and the device that has been configured. The last name among the plurality of names in the order of the preset names is the first preset name, and the hotspot corresponding to the first preset name is determined to be the first hotspot.
S202、将可联网的第二热点的第二WiFi信息,通过第一热点发送至待配网设备。S202. Send the second WiFi information of the second hotspot that can be connected to the Internet to the device to be distributed through the first hotspot.
待配网设备通过可联网的第二热点,可访问互联网或智慧家庭中的局域网。The device to be distributed can access the Internet or the local area network in the smart home through the second hotspot that can be connected to the Internet.
如果已配网设备在连接至第一热点之前,与第二热点连接,在已配网设备将可联网的第二热点第二WiFi信息发送至待配网设备之后,已配网设备断开与第一热点的连 接,重新连接至第二热点。If the networked device is connected to the second hotspot before connecting to the first hotspot, after the networked device sends the second WiFi information of the second hotspot that can be connected to the network to the device to be networked, the networked device disconnects from the network. The connection to the first hotspot, reconnect to the second hotspot.
可选地,将可联网的第二热点的第二WiFi信息,通过第一热点发送至待配网设备,包括:Optionally, the second WiFi information of the second hotspot that can be connected to the Internet is sent to the device to be networked through the first hotspot, including:
如果多个已配网设备同时连接至第一热点,则每个已配网设备通过第一热点向待配网设备发送每个已配网设备的设备类型及其对应的热点的WiFi信息,以使待配网设备根据待配网设备的第一设备类型,在多个热点对应的已配网设备的设备类型中确定与第一设备类型相对应的第二设备类型,进而确定第二设备类型对应的热点的WiFi信息为第二热点的第二WiFi信息。If multiple networked devices are connected to the first hotspot at the same time, each networked device sends the device type of each networked device and the WiFi information of the corresponding hotspot to the to-be-configured device through the first hotspot. Make the device to be configured network determine the second device type corresponding to the first device type from the device types of the networked devices corresponding to the multiple hotspots according to the first device type of the device to be configured to the network, and then determine the second device type The WiFi information of the corresponding hotspot is the second WiFi information of the second hotspot.
可选地,在多个热点对应的已配网设备的设备类型中确定与第一设备类型相关联的第二设备类型,包括:获得第一设备类型相对应的第一应用场景,以及,每个热点对应的已配网设备的设备类型对应的第二应用场景;如果多个第二应用场景中的一个或多个应用场景与第一应用场景相同或相关联,则确定一个或多个应用场景对应的已配网设备的设备类型为第二设备类型。Optionally, determining the second device type associated with the first device type among the device types of the networked devices corresponding to the multiple hotspots includes: obtaining a first application scenario corresponding to the first device type, and, each time a second application scenario corresponding to the device type of the networked device corresponding to the hotspot; if one or more of the multiple second application scenarios are the same as or related to the first application scenario, then determine one or more application scenarios The device type of the networked device corresponding to the scenario is the second device type.
在多个已配网设备中选择与待配网设备匹配的已配网设备,将待配网设备连接至该匹配的已配网设备所连接的热点上,在正常使用过程中,可更好地使待配网设备(正常使用过程中,待配网设备已联网,此处沿用旧名称,以区分已配网设备)与已配网设备配合工作。Select the networked device that matches the device to be configured among multiple networked devices, and connect the device to be configured to the hotspot connected to the matching networked device. During normal use, it can be better To make the network equipment to be distributed (during normal use, the equipment to be distributed has been connected to the Internet, the old name is used here to distinguish the equipment that has been distributed) and the equipment that has been distributed.
由待配网设备开启热点,在待配网设备开启热点的过程中,已配网设备仍可正常联网,正常工作;已配网设备扫描可连接的热点,在扫描过程中,已配网设备也可正常联网,正常工作,之后已配网设备再连接至待配网设备,并向待配网设备发送WiFi信息,使待配网设备根据WiFi信息连接至热点,在上述过程中,缩短了已配网设备的断网时长,降低了配网过程对已配网设备正常工作的不利影响。The hotspot is turned on by the device to be configured. During the process of turning on the hotspot by the device to be configured, the device that has been configured can still connect to the Internet and work normally; the device that has been configured scans the hotspot that can be connected. During the scanning process, the device that has been configured It can also be connected to the Internet normally and work normally. After that, the networked devices are connected to the devices to be distributed, and WiFi information is sent to the devices to be distributed, so that the devices to be distributed are connected to the hotspot according to the WiFi information. In the above process, shorten the time The network disconnection time of the networked devices reduces the adverse impact of the network configuration process on the normal operation of the networked devices.
在一些实际应用中,已配网设备将已配网设备的标识信息发送至待配网设备,以使待配网设备再根据第二WiFi信息连接至第二热点后,绑定至已配网设备的标识信息对应的用户ID。或者,已配网设备接收待配网设备发送的待配网设备的标识信息,在已配网设备重新联网后,将待配网设备的标识信息发送至服务器,使服务器将待配网设备绑定至已配网设备所绑定的用户ID。In some practical applications, the network-distributed device sends the identification information of the network-distributed device to the network-distributed device, so that the network-distributed device is bound to the network-distributed device after connecting to the second hotspot according to the second WiFi information. The user ID corresponding to the identification information of the device. Alternatively, the network-distributed device receives the identification information of the network-to-be-distributed device sent by the network-distributed device, and after the network-distributed device is reconnected to the network, sends the identification information of the to-be-distributed device to the server, so that the server binds the to-be-distributed device to the network. Set to the user ID bound to the configured network device.
图3是本公开实施例提供的一种用于配网的方法的示意图。本公开实施例在待配网设备与已配网设备向交互的角度,对用于配网的方法的进行示例性说明。FIG. 3 is a schematic diagram of a method for network distribution provided by an embodiment of the present disclosure. The embodiments of the present disclosure exemplarily describe the method for network distribution from the perspective of interaction between a device to be configured and a device that has been configured.
结合图3所示,用于配网的方法包括:With reference to Figure 3, the method for network distribution includes:
S301、在需要配网时,待配网设备开启名称为第一预设名称的第一热点;S301. When network distribution is required, the device to be distributed opens a first hotspot whose name is a first preset name;
S302、已配网设备扫描热点信息,如果扫描到名称为第一预设名称的第一热点,则连接至第一热点;S302. The networked device scans the hotspot information, and if it scans a first hotspot whose name is a first preset name, it connects to the first hotspot;
S303、已配网设备将可联网的第二热点的第二WiFi信息,通过第一热点发送至待配网设备;S303. The networked device sends the second WiFi information of the second hotspot that can be connected to the Internet to the device to be configured through the first hotspot;
S304、待配网设备根据第二WiFi信息连接至第二热点。S304, the device to be distributed is connected to the second hotspot according to the second WiFi information.
由待配网设备开启热点,在待配网设备开启热点的过程中,已配网设备仍可正常联网,正常工作;已配网设备扫描可连接的热点,在扫描过程中,已配网设备也可正常联网,正常工作,之后已配网设备再连接至待配网设备,并向待配网设备发送WiFi信息,使待配网设备根据WiFi信息连接至热点,在上述过程中,缩短了已配网设备的断网时长,降低了配网过程对已配网设备正常工作的不利影响。The hotspot is turned on by the device to be configured. During the process of turning on the hotspot by the device to be configured, the device that has been configured can still connect to the Internet and work normally; the device that has been configured scans the hotspot that can be connected. During the scanning process, the device that has been configured It can also be connected to the Internet normally and work normally. After that, the networked devices are connected to the devices to be distributed, and WiFi information is sent to the devices to be distributed, so that the devices to be distributed are connected to the hotspot according to the WiFi information. In the above process, shorten the time The network disconnection time of the networked devices reduces the adverse impact of the network configuration process on the normal operation of the networked devices.
在一些实施例中,用于配网的装置包括处理器和存储有程序指令的存储器,处理器被配置为在执行程序指令时,执行前述实施例提供的用于配网的方法。In some embodiments, the apparatus for network distribution includes a processor and a memory storing program instructions, and the processor is configured to execute the method for network distribution provided by the foregoing embodiments when executing the program instructions.
图4是本公开实施例提供的一种用于配网的装置的示意图,结合图4所示,用于配网的装置包括:FIG. 4 is a schematic diagram of a device for network distribution provided by an embodiment of the present disclosure. With reference to FIG. 4 , the device for network distribution includes:
处理器(processor)41和存储器(memory)42,还可以包括通信接口(Communication Interface)43和总线44。其中,处理器41、通信接口43、存储器42可以通过总线44完成相互间的通信。通信接口43可以用于信息传输。处理器41可以调用存储器42中的逻辑指令,以执行前述实施例提供的用于配网的方法。A processor (processor) 41 and a memory (memory) 42 may also include a communication interface (Communication Interface) 43 and a bus 44 . The processor 41 , the communication interface 43 , and the memory 42 can communicate with each other through the bus 44 . The communication interface 43 may be used for information transmission. The processor 41 may invoke the logic instructions in the memory 42 to execute the method for network configuration provided in the foregoing embodiments.
此外,上述的存储器42中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。In addition, the above-mentioned logic instructions in the memory 42 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
存储器42作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令/模块。处理器41通过运行存储在存储器42中的软件程序、指令以及模块,从而执行功能应用以及数据处理,即实现上述方法实施例中的方法。As a computer-readable storage medium, the memory 42 can be used to store software programs and computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 41 executes functional applications and data processing by running the software programs, instructions and modules stored in the memory 42, that is, to implement the methods in the above method embodiments.
存储器42可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器42可以包括高速随机存取存储器,还可以包括非易失性存储器。The memory 42 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Additionally, memory 42 may include high-speed random access memory, and may also include non-volatile memory.
本公开实施例提供了一种智能家居设备,包含前述实施例提供的用于配网的装置。Embodiments of the present disclosure provide a smart home device, including the device for network distribution provided in the foregoing embodiments.
本公开实施例提供了一种计算机可读存储介质,存储有计算机可执行指令,计算 机可执行指令设置为执行前述实施例提供的用于配网的方法。Embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions, where the computer-executable instructions are configured to execute the method for network distribution provided by the foregoing embodiments.
本公开实施例提供了一种计算机程序产品,计算机程序产品包括存储在计算机可读存储介质上的计算机程序,计算机程序包括程序指令,当程序指令被计算机执行时,使计算机执行前述实施例提供的用于配网的方法。Embodiments of the present disclosure provide a computer program product. The computer program product includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. The method used to distribute the network.
上述的计算机可读存储介质可以是暂态计算机可读存储介质,也可以是非暂态计算机可读存储介质。The above-mentioned computer-readable storage medium may be a transient computer-readable storage medium, and may also be a non-transitory computer-readable storage medium.
本公开实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或一个以上指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开实施例中方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机读取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。The technical solutions of the embodiments of the present disclosure may be embodied in the form of software products, and the computer software products are stored in a storage medium and include one or more instructions to enable a computer device (which may be a personal computer, a server, or a network equipment, etc.) to execute all or part of the steps of the methods in the embodiments of the present disclosure. The aforementioned storage medium can be a non-transitory storage medium, including: U disk, removable hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc. A medium that can store program codes, and can also be a transient storage medium.
以上描述和附图充分地示出了本公开的实施例,以使本领域的技术人员能够实践它们。其他实施例可以包括结构的、逻辑的、电气的、过程的以及其他的改变。实施例仅代表可能的变化。除非明确要求,否则单独的部件和功能是可选的,并且操作的顺序可以变化。一些实施例的部分和特征可以被包括在或替换其他实施例的部分和特征。而且,本申请中使用的用词仅用于描述实施例并且不用于限制权利要求。如在实施例以及权利要求的描述中使用的,除非上下文清楚地表明,否则单数形式的“一个”(a)、“一个”(an)和“所述”(the)旨在同样包括复数形式。另外,当用于本申请中时,术语“包括”(comprise)及其变型“包括”(comprises)和/或包括(comprising)等指陈述的特征、整体、步骤、操作、元素,和/或组件的存在,但不排除一个或一个以上其它特征、整体、步骤、操作、元素、组件和/或这些的分组的存在或添加。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法或者设备中还存在另外的相同要素。本文中,每个实施例重点说明的可以是与其他实施例的不同之处,各个实施例之间相同相似部分可以互相参见。对于实施例公开的方法、产品等而言,如果其与实施例公开的方法部分相对应,那么相关之处可以参见方法部分的描述。The foregoing description and drawings sufficiently illustrate the embodiments of the present disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, process, and other changes. The examples represent only possible variations. Unless expressly required, individual components and functions are optional and the order of operations may vary. Portions and features of some embodiments may be included in or substituted for those of other embodiments. Also, the terms used in this application are used to describe the embodiments only and not to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a" (a), "an" (an) and "the" (the) are intended to include the plural forms as well, unless the context clearly dictates otherwise. . Additionally, when used in this application, the term "comprise" and its variations "comprises" and/or including and/or the like refer to stated features, integers, steps, operations, elements, and/or The presence of a component does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or groupings of these. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, or device that includes the element. Herein, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method sections disclosed in the embodiments, reference may be made to the descriptions of the method sections for relevant parts.
本领域技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,可以取决于技术方案的特定应用和设计约束条件。技术人 员可以对每个特定的应用来使用不同方法以实现所描述的功能,但是这种实现不应认为超出本公开实施例的范围。技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Skilled artisans may use different methods for implementing the described functionality for each particular application, but such implementations should not be considered beyond the scope of the disclosed embodiments. Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
本文所披露的实施例中,所揭露的方法、产品(包括但不限于装置、设备等),可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,可以仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例。另外,在本公开实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In the embodiments disclosed herein, the disclosed methods and products (including but not limited to apparatuses, devices, etc.) may be implemented in other ways. For example, the apparatus embodiments described above are only illustrative. For example, the division of units may only be a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or may be Integration into another system, or some features can be ignored, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms. Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. This embodiment may be implemented by selecting some or all of the units according to actual needs. In addition, each functional unit in the embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
附图中的流程图和框图显示了根据本公开实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,模块、程序段或代码的一部分包含一个或一个以上用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这可以依所涉及的功能而定。框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executables for implementing the specified logical function(s) instruction. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or actions, or special purpose hardware implemented in combination with computer instructions.

Claims (10)

  1. 一种用于配网的方法,其特征在于,应用于待配网设备,所述方法包括:A method for network distribution, characterized in that it is applied to equipment to be distributed network, the method comprising:
    在需要配网时,开启名称为第一预设名称的第一热点;When network configuration is required, turn on the first hotspot whose name is the first preset name;
    接收连接所述第一热点的已配网设备发送的可联网的第二热点的第二WiFi信息;Receive the second WiFi information of the second hotspot that can be connected to the Internet sent by the networked device connected to the first hotspot;
    根据所述第二WiFi信息连接至第二热点。Connect to a second hotspot according to the second WiFi information.
  2. 根据权利要求1所述的方法,其特征在于,开启名称为第一预设名称的第一热点,包括:The method according to claim 1, wherein enabling the first hotspot whose name is the first preset name comprises:
    扫描获得第三热点的名称;Scan to get the name of the third hotspot;
    如果所述第三热点的名称在预设名称之中,则在所述预设名称中确定不同于所述第三热点的名称的第一预设名称;If the name of the third hotspot is among the preset names, determining a first preset name that is different from the name of the third hotspot in the preset names;
    根据所述第一预设名称开启所述第一热点。Turn on the first hotspot according to the first preset name.
  3. 根据权利要求2所述的方法,其特征在于,在所述预设名称中确定不同于所述第三热点的名称的第一预设名称,包括:The method according to claim 2, wherein determining, among the preset names, a first preset name that is different from the name of the third hotspot, comprising:
    确定所述第一预设名称的优先级低于或高于所述第三热点的名称的优先级,使已配网设备可根据名称的优先级在多个热点中确定名称为所述第一预设名称的所述第一热点。It is determined that the priority of the first preset name is lower or higher than the priority of the name of the third hotspot, so that the network-configured device can determine the name of the first hotspot as the first hotspot according to the priority of the name The first hotspot of the preset name.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,接收连接所述第一热点的已配网设备发送的可联网的第二热点的第二WiFi信息,包括:The method according to any one of claims 1 to 3, wherein receiving the second WiFi information of a networkable second hotspot sent by a networked device connected to the first hotspot, comprising:
    如果接收到多个热点的WiFi信息,则获得每个热点对应的已配网设备的设备类型;If the WiFi information of multiple hotspots is received, the device type of the networked device corresponding to each hotspot is obtained;
    获得所述待配网设备的第一设备类型;obtaining the first device type of the device to be configured;
    在多个热点对应的已配网设备的设备类型中确定与所述第一设备类型相关联的第二设备类型;determining a second device type associated with the first device type from the device types of the networked devices corresponding to the multiple hotspots;
    确定所述第二设备类型对应的热点的WiFi信息为所述第二热点的所述第二WiFi信息。It is determined that the WiFi information of the hotspot corresponding to the second device type is the second WiFi information of the second hotspot.
  5. 根据权利要求4所述的方法,其特征在于,在多个热点对应的已配网设备的设备类型中确定与所述第一设备类型相关联的第二设备类型,包括:The method according to claim 4, wherein determining a second device type associated with the first device type among the device types of the networked devices corresponding to multiple hotspots comprises:
    获得所述第一设备类型相对应的第一应用场景,以及,每个热点对应的已配网设备的设备类型对应的第二应用场景;Obtain a first application scenario corresponding to the first device type, and a second application scenario corresponding to the device type of the networked device corresponding to each hotspot;
    如果多个所述第二应用场景中的一个或多个应用场景与所述第一应用场景相同或相关联,则确定所述一个或多个应用场景对应的已配网设备的设备类型为所述第二设备类型。If one or more application scenarios in the plurality of second application scenarios are the same as or related to the first application scenario, it is determined that the device type of the networked device corresponding to the one or more application scenarios is all Describe the second device type.
  6. 一种用于配网的方法,其特征在于,应用于已配网设备,所述方法包括:A method for network distribution, characterized in that it is applied to network-distributed equipment, the method comprising:
    扫描热点信息,如果扫描到名称为第一预设名称的第一热点,则连接至所述第一热点;Scan hotspot information, and if a first hotspot with a name of a first preset name is scanned, connect to the first hotspot;
    将可联网的第二热点的第二WiFi信息,通过所述第一热点发送至待配网设备。The second WiFi information of the second hotspot that can be connected to the Internet is sent to the device to be networked through the first hotspot.
  7. 根据权利要求6所述的方法,其特征在于,确定扫描到名称为第一预设名称的第一热点,包括:The method according to claim 6, wherein determining to scan the first hotspot whose name is the first preset name comprises:
    如果扫描到名称在预设名称之中的多个热点,则根据多个热点的名称的优先级,在多个热点中确定名称为所述第一预设名称的所述第一热点。If multiple hotspots whose names are among the preset names are scanned, the first hotspot whose name is the first preset name is determined among the multiple hotspots according to the priority of the names of the multiple hotspots.
  8. 根据权利要求6或7所述的方法,其特征在于,将可联网的第二热点的第二WiFi信息,通过所述第一热点发送至待配网设备,包括:The method according to claim 6 or 7, wherein sending the second WiFi information of the second hotspot that can be connected to the Internet to the device to be distributed through the first hotspot comprises:
    如果多个已配网设备同时连接至所述第一热点,则每个已配网设备通过所述第一热点向所述待配网设备发送每个已配网设备的设备类型及其对应的热点的WiFi信息,以使所述待配网设备根据所述待配网设备的第一设备类型,在多个热点对应的已配网设备的设备类型中确定与所述第一设备类型相对应的第二设备类型,进而确定所述第二设备类型对应的热点的WiFi信息为所述第二热点的所述第二WiFi信息。If multiple networked devices are connected to the first hotspot at the same time, each networked device sends the device type of each networked device and its corresponding device type to the to-be-configured device through the first hotspot. WiFi information of hotspots, so that the device to be configured determines, according to the first device type of the device to be configured, that the device corresponds to the first device type among the device types of the networked devices corresponding to multiple hotspots the second device type, and then determine that the WiFi information of the hotspot corresponding to the second device type is the second WiFi information of the second hotspot.
  9. 一种用于配网的装置,包括处理器和存储有程序指令的存储器,其特征在于,所述处理器被配置为在执行所述程序指令时,执行如权利要求1至8任一项所述的用于配网的方法。A device for network distribution, comprising a processor and a memory storing program instructions, wherein the processor is configured to execute the program according to any one of claims 1 to 8 when executing the program instructions. The described method for distribution network.
  10. 一种智能家居设备,其特征在于,包括如权利要求9所述的用于配网的装置。A smart home equipment, characterized by comprising the device for network distribution according to claim 9.
PCT/CN2022/077172 2021-04-29 2022-02-22 Method and apparatus for network provisioning, and smart home device WO2022227819A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110474414.8 2021-04-29
CN202110474414.8A CN113301567B (en) 2021-04-29 2021-04-29 Network distribution method and device and intelligent household equipment

Publications (1)

Publication Number Publication Date
WO2022227819A1 true WO2022227819A1 (en) 2022-11-03

Family

ID=77320549

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/077172 WO2022227819A1 (en) 2021-04-29 2022-02-22 Method and apparatus for network provisioning, and smart home device

Country Status (2)

Country Link
CN (1) CN113301567B (en)
WO (1) WO2022227819A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301567B (en) * 2021-04-29 2022-11-18 海尔(深圳)研发有限责任公司 Network distribution method and device and intelligent household equipment
CN113872835B (en) * 2021-08-27 2023-03-21 青岛海尔空调器有限总公司 Method and device for equipment network distribution, server, intelligent household appliance and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106211264A (en) * 2016-07-11 2016-12-07 九阳股份有限公司 A kind of household electrical appliances distribution method and device
CN110708709A (en) * 2019-09-18 2020-01-17 深圳拓邦股份有限公司 Terminal networking and binding method and system
CN111447624A (en) * 2020-03-04 2020-07-24 浙江大华技术股份有限公司 WiFi equipment, network distribution method thereof and device with storage function
CN111479272A (en) * 2020-04-16 2020-07-31 广东好太太科技集团股份有限公司 Method, equipment and storage medium for automatically connecting AP (Access Point) hotspots according to priorities
CN113301567A (en) * 2021-04-29 2021-08-24 海尔(深圳)研发有限责任公司 Network distribution method and device and intelligent household equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019228257A1 (en) * 2018-06-01 2019-12-05 上海连尚网络科技有限公司 Method for identifying type of wireless hotspot, and network device thereof
CN108924135B (en) * 2018-06-29 2019-12-27 百度在线网络技术(北京)有限公司 Network access method and device
CN110418336B (en) * 2019-07-11 2022-10-21 厦门亿联网络技术股份有限公司 WiFi device batch automatic network distribution method, terminal device and storage medium
CN112448832B (en) * 2019-08-30 2023-12-26 广东美的制冷设备有限公司 Household appliance network distribution method, device and equipment
CN111757421A (en) * 2020-06-09 2020-10-09 四川虹美智能科技有限公司 Method and device for intelligent equipment network distribution

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106211264A (en) * 2016-07-11 2016-12-07 九阳股份有限公司 A kind of household electrical appliances distribution method and device
CN110708709A (en) * 2019-09-18 2020-01-17 深圳拓邦股份有限公司 Terminal networking and binding method and system
CN111447624A (en) * 2020-03-04 2020-07-24 浙江大华技术股份有限公司 WiFi equipment, network distribution method thereof and device with storage function
CN111479272A (en) * 2020-04-16 2020-07-31 广东好太太科技集团股份有限公司 Method, equipment and storage medium for automatically connecting AP (Access Point) hotspots according to priorities
CN113301567A (en) * 2021-04-29 2021-08-24 海尔(深圳)研发有限责任公司 Network distribution method and device and intelligent household equipment

Also Published As

Publication number Publication date
CN113301567A (en) 2021-08-24
CN113301567B (en) 2022-11-18

Similar Documents

Publication Publication Date Title
WO2022227819A1 (en) Method and apparatus for network provisioning, and smart home device
US11647548B2 (en) Network access method, device, and system
CN100418066C (en) System and method for realizing zero-allocation wireless computing, and computering apparatus for leading in zero-allocation wireless computing
WO2021057160A1 (en) Method for establishing communication connection after device is offline and smart home system
US8437275B2 (en) Remote wireless service invocation with efficient power use on target wireless device
CN103634170B (en) A kind of home network interconnection method and device
WO2020107698A1 (en) Air-conditioning device control method and air-conditioning device
CN105338595A (en) Intelligent terminal joining method, apparatus and system based on intelligent terminal system
CN105744597A (en) Terminal and wireless connection method
CN106487583B (en) Method for establishing network connection and local area network system
JP2016519449A (en) Automatic selection of adjustment functions in hybrid communication networks
JP2009135783A (en) Communication adapter and connection information setting method thereof
CN111163469A (en) Network distribution method of intelligent household appliance, wireless module and intelligent household appliance
US20200187001A1 (en) Simplified wi-fi and/or cloud enrollment for wi-fi devices
KR20140010206A (en) Apparatus and method for connecting wireless network in consideration of radio frequency band
CN101860551B (en) Multi-user authentication method and system under single access port
CN106792694A (en) A kind of access authentication method, and access device
WO2022247373A1 (en) Method and apparatus for controlling home appliance, and appliance
JP2003078535A (en) Mac address managing method in wireless lan, mac address managing program for wireless lan, recording medium with the same program recorded, fixed station for wireless lan and wireless lan system
CN104954449A (en) IoT (internet of things) control method and apparatus
CN104980994A (en) Equipment control method, device and mobile terminal
CN112492618A (en) Network sharing method and device, electronic equipment and storage medium
CN106937405A (en) The control method and device and method for connecting network and system of smart machine
CN105246129B (en) The network-building method and device of a kind of intelligent terminal
CN104994158B (en) Method for safely controlling household appliances through centralized gateway

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22794299

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22794299

Country of ref document: EP

Kind code of ref document: A1