A network configuration method, device and equipment of a smart home device and a storage medium

By integrating image and voice acquisition devices into smart home devices, users can directly complete network configuration through visual or voice interaction, solving the problems of cumbersome network configuration and reliance on service programs in existing technologies, and improving network configuration efficiency and flexibility.

CN122179781APending Publication Date: 2026-06-09HANGZHOU YIQI FUTURE INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HANGZHOU YIQI FUTURE INTELLIGENT TECHNOLOGY CO LTD
Filing Date
2025-02-18
Publication Date
2026-06-09

Smart Images

  • Figure CN122179781A_ABST
    Figure CN122179781A_ABST
Patent Text Reader

Abstract

The application provides a network configuration method and device of a smart home device, equipment and a storage medium. The network configuration method comprises: in response to entering a network configuration mode, collecting a target image displayed by a user or voice data of the user; identifying network configuration information from the collected target image or voice data; and connecting a target network indicated by a network name in the network configuration information according to password information in the network configuration information. In this way, the application enables the user to complete the network configuration setting of the smart home device directly in the process of visual interaction or voice interaction with the smart home device, effectively eliminates the dependence of the network configuration function of the smart home device on the related supporting service program, and is beneficial to improving the network configuration efficiency and flexibility of the smart home device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technology, and more specifically, to a network configuration method, apparatus, device, and storage medium for smart home devices. Background Technology

[0002] Many existing smart home devices (such as common robot vacuums, smart curtains, early education robots, and physiotherapy robots) are not equipped with touch screens that support user interaction. As a result, users cannot directly select the wireless network to connect to on the smart home device, nor can they directly enter the wireless network connection password on the smart home device.

[0003] Currently, when configuring smart home devices for network pairing, users need to first press and hold a specific button on the smart home device to enter pairing mode. After confirming that the device is in pairing mode, the user needs to access the corresponding app, mini-program, or official account on their mobile phone. Within this app, they need to click the network configuration option, select the target Wi-Fi network, and enter its password. After confirming the connection, the app will send the target Wi-Fi network's SSID (Service Set Identifier) ​​and the entered password to the smart home device, allowing it to connect. However, this pairing process is cumbersome and heavily reliant on the corresponding app. If the app malfunctions or becomes inaccessible, the smart home device will be unable to pair, resulting in low pairing efficiency and flexibility. Summary of the Invention

[0004] In view of this, this application provides a method, apparatus, device and storage medium for configuring smart home devices, enabling users to complete the configuration settings of smart home devices directly during visual or voice interaction with the devices. This effectively eliminates the dependence of smart home devices' configuration functions on related supporting service programs, and helps to improve the configuration efficiency and flexibility of smart home devices.

[0005] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings.

[0006] In a first aspect, embodiments of this application provide a network configuration method for smart home devices, the network configuration method comprising:

[0007] In response to entering the network configuration mode, collect the target image displayed by the user or the user's voice data;

[0008] Distribution network information is identified from the collected target image or voice data;

[0009] Connect to the target network indicated by the network name in the distribution network information based on the password information in the distribution network information.

[0010] Secondly, embodiments of this application provide a network distribution device for smart home devices, the network distribution device comprising:

[0011] The startup module is used to collect the target image displayed by the user or the user's voice data in response to entering the network configuration mode;

[0012] The identification module is used to identify distribution network information from the collected target image or voice data;

[0013] The network distribution module is used to connect to the target network indicated by the network name in the network distribution information based on the password information in the network distribution information.

[0014] Thirdly, embodiments of this application provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described smart home device network configuration method.

[0015] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the above-described smart home device network configuration method.

[0016] The technical solutions provided by the embodiments of this application may include the following beneficial effects:

[0017] This application provides a method, apparatus, device, and storage medium for configuring a smart home device. In response to entering a configuration mode, it collects a target image displayed by the user or the user's voice data; identifies configuration information from the collected target image or voice data; and connects to the target network indicated by the network name in the configuration information based on the password information. This allows users to directly complete the configuration settings for smart home devices during visual or voice interaction, effectively eliminating the dependence of smart home device configuration functions on related supporting service programs, and improving the configuration efficiency and flexibility of smart home devices. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A schematic diagram illustrating a process for configuring smart home devices using existing technologies is shown.

[0020] Figure 2 A schematic flowchart of a network configuration method for smart home devices provided in an embodiment of this application is shown;

[0021] Figure 3 A flowchart illustrating a distribution network information anomaly detection method provided in an embodiment of this application is shown.

[0022] Figure 4 This illustration shows a schematic diagram of the network distribution device for a smart home device provided in an embodiment of this application;

[0023] Figure 5 This is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of this application. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.

[0025] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0026] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.

[0027] here, Figure 1 A schematic diagram illustrating a process for configuring smart home devices to a network using existing technologies is shown, such as... Figure 1 As shown, users need to press and hold a specific button on the smart home device to control it to enter the network configuration mode. When entering the network configuration mode, the smart home device will switch the network card (i.e., WiFi module) to AP mode (i.e., wireless access point mode) and automatically set the SSID of the network card in AP mode to Robot (smart home device name) + serial number (i.e., smart home device's factory serial number). The connection password corresponding to the SSID of the network card in AP mode is the default fixed password.

[0028] After confirming that the smart home device has entered network configuration mode, the user needs to access the corresponding service program (APP, mini-program, or official account, etc.) for the smart home device via their mobile phone. In the aforementioned service program, click the network configuration option (at this time, the aforementioned service program will use the SSID and connection password of the network card in the AP mode to connect to the network card of the smart home device and establish a communication connection with the smart home device). In the pop-up network configuration interface, select the target wireless network to be connected and enter the connection password of the target wireless network. After the user clicks to confirm the connection, the aforementioned service program will send the SSID of the target wireless network and the connection password entered by the user to the smart home device.

[0029] After receiving the SSID and connection password of the target wireless network, the smart home device will switch its network card from AP mode to Station mode (i.e., site mode) and use the SSID and connection password of the target wireless network to connect to the target wireless network. After connecting to the target wireless network, the smart home device will automatically exit the network configuration mode (equivalent to successful network configuration).

[0030] As can be seen from the above-mentioned existing technical solutions, on the one hand, the network configuration process of the existing technical solutions is relatively cumbersome and highly dependent on the corresponding supporting service programs of smart home devices. Once the above-mentioned supporting service programs malfunction and become inaccessible, it will indirectly cause the smart home devices to be unable to perform network configuration, thus resulting in low network configuration efficiency and flexibility of smart home devices. On the other hand, during the network configuration process, the existing technical solutions require the network card of the smart home device to switch working modes at least twice, which leads to a reduction in the network configuration efficiency of the smart home devices.

[0031] Based on this, in order to overcome the above two defects of the existing technical solutions, the embodiments of this application provide a method, device, equipment and storage medium for configuring smart home devices, which enables users to complete the configuration settings of smart home devices directly during visual or voice interaction with the smart home devices, effectively eliminating the dependence of the smart home devices' configuration function on related supporting service programs, and helping to improve the configuration efficiency and flexibility of smart home devices.

[0032] In one embodiment of this application, a network configuration method for a smart home device can be implemented in the smart home device. The smart home device may or may not be configured with a touch screen that supports user interaction. That is, the configuration of the touch screen does not affect the implementation of the network configuration method provided in this application embodiment. The network configuration method provided in this application embodiment is applicable to all types of smart home devices. This application embodiment does not limit the specific device type of the smart home device.

[0033] To facilitate understanding of the embodiments of this application, the following provides a detailed description of a network configuration method, apparatus, device, and storage medium for smart home devices provided in the embodiments of this application.

[0034] Reference Figure 2 As shown, Figure 2 This document illustrates a flowchart of a network configuration method for a smart home device according to an embodiment of this application. The network configuration method can be applied to smart home devices and includes steps S201-S203; specifically:

[0035] S201, in response to entering the distribution network mode, collects the target image displayed by the user or the user's voice data.

[0036] S202, Identify the distribution network information from the collected target image or voice data.

[0037] S203, Connect to the target network indicated by the network name in the distribution network information according to the password information in the distribution network information.

[0038] The network configuration method for smart home devices provided in this application embodiment, in response to entering network configuration mode, collects the target image displayed by the user or the user's voice data; identifies network configuration information from the collected target image or voice data; and connects to the target network indicated by the network name in the network configuration information according to the password information in the network configuration information. Thus, this application enables users to complete the network configuration settings for smart home devices directly during visual or voice interaction with the devices, effectively eliminating the dependence of the network configuration function of smart home devices on related supporting service programs, and improving the network configuration efficiency and flexibility of smart home devices.

[0039] The following is an exemplary description of each step in the network configuration method for the smart home device provided in the embodiments of this application:

[0040] S201, in response to entering the distribution network mode, collects the target image displayed by the user or the user's voice data.

[0041] Here, there is no single way to control smart home devices to enter network configuration mode. As one possible implementation, users can... Figure 1 Similar to the existing technical solutions shown, by triggering a target control on the smart home device, the smart home device is controlled to enter the network configuration mode. In this optional embodiment, the smart home device determines to enter the network configuration mode in response to the triggering operation of the target control.

[0042] It should be noted that the aforementioned target control can be a control used alone to perform the network configuration function. In this case, the aforementioned triggering operation can be a click operation on the target control. In addition, the aforementioned target control can also be a control on a smart home device used to perform other existing functions (such as a power button used to control the smart home device to turn on and off). In this case, the aforementioned triggering operation represents an operation of a different type from the operation of controlling the smart home device to perform the aforementioned other existing functions (such as clicking the aforementioned power button to control the smart home device to turn on, double-clicking the aforementioned power button to control the smart home device to turn off, long-pressing the aforementioned power button to control the smart home device to enter the network configuration mode, etc.). This application embodiment does not limit the specific control type of the aforementioned target control or the specific operation type of the aforementioned triggering operation.

[0043] Here, as another optional embodiment, based on the voice acquisition device (e.g., microphone array) included in the standard hardware configuration of smart home devices, the user's voice data can be collected through the aforementioned voice acquisition device during the user's voice interaction with the smart home device. The system can detect whether the collected voice data contains target keywords used to trigger entering the network configuration mode. When the target keywords are detected, the system controls the smart home device to respond to the recognition of the target keywords during the voice interaction with the user and determine to enter the network configuration mode.

[0044] It should be noted that the above target keywords can be set according to the actual network distribution needs. For example, the above target keywords can be "start network distribution" or "network distribution mode start". This application embodiment does not limit the specific content represented by the above target keywords.

[0045] In this embodiment, after entering the network configuration mode, the smart home device allows users to choose to configure the network via visual input. When a user wants to configure the network via visual input, based on the image acquisition device (e.g., camera module, image sensor, etc.) included in the standard hardware configuration of the smart home device, the user only needs to show the target image containing the network configuration information to the image acquisition device of the smart home device. In response to entering the network configuration mode, the smart home device can acquire the target image shown by the user to the image acquisition device through the aforementioned image acquisition device, so that the aforementioned network configuration information can be subsequently identified from the acquired target image.

[0046] Specifically, the target image includes at least one of the following: a QR code image containing the network configuration information, and a regular image containing the network configuration information; that is, a user can select to share the password of the currently connected Wi-Fi network in the Wi-Fi network settings interface of their mobile phone, and a QR code image containing the network name (e.g., the SSID of the Wi-Fi network) and connection password of the Wi-Fi network can be generated. This QR code image can then be displayed as the target image to the image acquisition device of the smart home device. Alternatively, the user can also choose to take a picture of the network configuration information (i.e., the Wi-Fi network name and connection password corresponding to the router) marked on the router, and display the resulting regular image as the target image to the image acquisition device of the smart home device.

[0047] It should be noted that, based on the above analysis, in this embodiment, the user only needs to display the target image to the image acquisition device of the smart home device, without needing to... Figure 1 Similar to the existing technical solutions shown, a communication connection is first established with the smart home device through the corresponding supporting service program (i.e., no network card connection is required for the smart home device). In other words, the target image is not sent to the smart home device by the user via mobile phone, and the acquisition process of the target image does not require the smart home device to switch the working mode of the network card.

[0048] In this embodiment, after entering the network configuration mode, the smart home device also supports users to choose to configure the network via voice input. When a user wants to configure the network via voice input, based on the voice acquisition device included in the standard hardware configuration of the smart home device, the user only needs to verbally state the network name and connection password of the Wi-Fi network to be connected to the voice acquisition device of the smart home device. At this time, the smart home device responds to entering the network configuration mode and can collect the user's voice data through the voice acquisition device so that the network configuration information can be identified from the collected voice data later.

[0049] S202, Identify the distribution network information from the collected target image or voice data.

[0050] Here, referring to the above description of step S201, it can be seen that the network configuration information must include at least the network name of a Wi-Fi network (e.g., the SSID of a Wi-Fi network) and the connection password (i.e., password information) used to connect to the Wi-Fi network.

[0051] Specifically, when a user chooses to set up the network configuration through the aforementioned visual input method, if the target image collected by the smart home device is a QR code image, then based on the fact that the generation of the QR code image conforms to the standard protocol format, the collected QR code image can be parsed according to the standard protocol format to obtain the parsed network configuration information.

[0052] For example, after parsing the acquired QR code image according to the standard protocol format, the parsing result is: "wifi: T: WPA; S: Netease 5G; P: 12345678; H: true; A: anon"; where parameter T represents the network security authentication mode (WPA is the specific value of parameter T, used to indicate Wi-Fi Protected). Access (i.e., Wi-Fi Protected Access); parameter S represents the network name of the Wi-Fi network (Netease5G is the specific value of parameter S, that is, the SSID of the Wi-Fi network is Netease5G); parameter P represents the connection password of the Wi-Fi network (12345678 is the specific value of parameter P, that is, the connection password of the Wi-Fi network is 12345678); parameter H represents whether the Wi-Fi network is a hidden network (true is the specific value of parameter H, that is, the Wi-Fi network Netease5G is a hidden network); parameter A represents whether the Wi-Fi network has passed anonymous authentication (anon is the specific value of parameter A, that is, the Wi-Fi network Netease5G has passed anonymous authentication, where anonymous authentication is only valid for WPA2-EAP).

[0053] Specifically, when a user chooses to configure the network through the aforementioned visual input method, if the target image collected by the smart home device is a regular image taken by a mobile phone, then text information containing the network name and password can be identified from the regular image through image recognition as the aforementioned network configuration information.

[0054] Specifically, when a user chooses to configure the network via the aforementioned voice input method, the smart home device can use the ASR module (i.e., offline voice recognition module) to perform voice recognition on the collected user's voice data, convert the recognized voice data into specific text information, and extract the text information belonging to the network name and password from the converted text information as the aforementioned network configuration information.

[0055] S203, Connect to the target network indicated by the network name in the distribution network information according to the password information in the distribution network information.

[0056] Here, after identifying the network configuration information, smart home devices can connect to the target network indicated by the network name (i.e., SSID) in the network configuration information based on the password information in the network configuration information. After successfully connecting to the target network, the smart home devices can automatically exit the network configuration mode (equivalent to successfully completing the network configuration).

[0057] It should be noted that when configuring smart home devices according to the configuration method shown in steps S201-S203 of the embodiments of this application, on the one hand, since there is no need to rely on the corresponding supporting service programs of smart home devices, the network configuration function of smart home devices is effectively freed from dependence on related supporting service programs, which is conducive to improving the network configuration efficiency and flexibility of smart home devices; on the other hand, users can directly transmit the network configuration information required for network configuration to smart home devices through the target image or the voice data during visual or voice interaction with smart home devices, without establishing a communication connection between the mobile phone and the network card of smart home devices. Therefore, the network card of smart home devices does not need to switch working modes during the network configuration process. Furthermore, since the image acquisition device, voice acquisition device, image recognition and voice recognition functions are all basic hardware and software functions of the conventional configuration of smart home devices, there will be no compatibility issues caused by the router abandoning a certain function.

[0058] Based on the above steps S201-S203, considering that abnormal situations may occur during image recognition or voice recognition, such as the inability to recognize distribution network information or errors in the recognized distribution network information, in an optional implementation, Figure 3 This document illustrates a flowchart of a distribution network information anomaly detection method provided in an embodiment of this application. Figure 3 As shown, the distribution network method further includes steps S301-S302, specifically:

[0059] S301, in response to an anomaly in the identification of the distribution network information, a target anomaly cause matching the current anomaly situation is determined from a variety of preset anomaly causes.

[0060] Here, the abnormal situations in which the identification of distribution network information is abnormal can be divided into the following categories:

[0061] Abnormal situation 1: When identifying distribution network information through the collected target image, the smart home device fails to identify the distribution network information from the collected target image because the user mistakenly displays an image that does not contain distribution network information.

[0062] Specifically, in the above-mentioned abnormal situation 1, in response to the failure to identify the power distribution information from the target image, the smart home device determines the image abnormality cause as the target abnormality cause from a variety of preset abnormality causes; wherein, the image abnormality cause is used to characterize that the target image is an abnormal image that does not contain the power distribution information.

[0063] For example, if a user mistakenly displays a QR code image (such as a food pickup QR code or a payment QR code) that does not contain network configuration information to the image acquisition device of a smart home device, the smart home device, in response to not recognizing network configuration information from the aforementioned QR code image (i.e., failing to recognize SSID information or password information), can determine the image anomaly cause from a variety of preset anomaly causes as the target anomaly cause matching the current anomaly situation.

[0064] Abnormal situation 2: Regardless of whether the network configuration information is identified through target image or voice data, after the network configuration information is identified, it is impossible to find a connectable Wi-Fi network that matches the SSID (i.e., network name) in the network configuration information, causing smart home devices to fail to complete the network configuration.

[0065] Specifically, in the above-mentioned abnormal situation 2, in response to the failure to find the target network indicated by the network name in the distribution network information, the smart home device determines the network name abnormality reason as the target abnormality reason from a variety of preset abnormality reasons; wherein, the network name abnormality reason is used to indicate that there is an error in the network name in the distribution network information.

[0066] For example, after identifying the network configuration information, if the SSID in the network configuration information is "netease", and there is no Wi-Fi network with SSID "netease" in the list of connectable Wi-Fi networks currently searched by the smart home device, then in response to the failure to find the target network indicated by the network name "netease" in the network configuration information, the smart home device can determine the network name abnormality reason from a variety of preset abnormality reasons as the target abnormality reason that matches the current abnormality situation.

[0067] Abnormal situation 3: Regardless of whether the network configuration information is identified through target image or voice data, after the network configuration information is identified, although a connectable Wi-Fi network matching the SSID (i.e., network name) in the network configuration information can be found, the network connection fails when using the password information in the network configuration information to connect to the connectable Wi-Fi network, causing the smart home device to be unable to complete the network configuration.

[0068] Specifically, in the above-mentioned abnormal situation 3, the smart home device responds to the mismatch between the connection password of the target network and the password information in the configuration network information, and determines the password abnormality reason as the target abnormality reason from a variety of preset abnormality reasons; wherein, the password abnormality reason is used to indicate that there is an error in the password information in the configuration network information.

[0069] For example, after identifying the network configuration information, the SSID in the configuration information is "Netease5G" and the password is "Abcdefgh". Although the smart home device can search for the connectable Wi-Fi network "Netease5G" that matches the SSID (i.e., network name) in the configuration information, the actual connection password of the Wi-Fi network "Netease5G" is "abcdeefgh". Therefore, when the smart home device uses the password "Abcdefgh" in the configuration information to connect to the Wi-Fi network "Netease5G", it displays a network connection failure. At this time, the smart home device responds to the fact that the connection password of the Wi-Fi network "Netease5G" does not match the password information in the configuration information. It can determine the password error from a variety of preset error reasons as the target error reason to match the current error situation.

[0070] Abnormal situation 4: Due to issues such as the case sensitivity of letters in network names and connection passwords, the identified network configuration information may not be unique. As a result, smart home devices cannot complete the network configuration because they cannot determine a unique set of network configuration information.

[0071] Specifically, in the above-mentioned abnormal situation 4, the smart home device responds to the identification of multiple network distribution information and the confidence difference between the multiple network distribution information is less than or equal to a preset confidence threshold, and determines the information integrity abnormal reason as the target abnormal reason from multiple preset abnormal reasons; wherein, the information integrity abnormal reason is used to characterize that the information integrity of the target image or the voice data cannot meet the network distribution requirements.

[0072] For example, taking the identification of network configuration information from a user's voice data as an example, if the user does not provide additional descriptive information such as the capitalization of each letter, the smart home device may identify multiple network names (such as "netease5g", "NETEASE5G", etc.) and multiple passwords (such as "abcdefgh", "ABCDEFGH", etc.) based solely on a single user's voice data. Furthermore, the credibility of these multiple network names or passwords is relatively similar (e.g., "netease5g" has a credibility of 50%, "NETEASE5G" has a credibility of 50%). In this case, because the credibility difference between the multiple network names or passwords is small (i.e., less than or equal to a preset credibility threshold), the smart home device cannot determine a unique set of network names and passwords as the sole identifiable network configuration information. Therefore, in response to identifying multiple network configuration information (i.e., the aforementioned multiple network names and / or the aforementioned multiple passwords) and the credibility difference between these multiple network configuration information being less than or equal to the preset credibility threshold, the smart home device can determine the information integrity anomaly from among multiple preset anomaly causes as the target anomaly cause matching the current anomaly situation.

[0073] S302, provide the user with the abnormal prompt information corresponding to the cause of the target abnormality.

[0074] Here, after identifying the target anomaly cause that matches the current anomaly, the smart home device can provide the user with an anomaly prompt message corresponding to the target anomaly cause. This allows the user to promptly correct the specific anomaly that led to the target anomaly cause based on the anomaly prompt message, which helps improve the user's interactive experience with smart home devices.

[0075] Specifically, as an optional embodiment, the smart home device can broadcast the above-mentioned abnormal prompt information to the user via voice playback feedback; as another optional embodiment, if the smart home device is equipped with a display screen, it can also display the illuminated text corresponding to the above-mentioned abnormal prompt information to the user on the display screen via visual prompt feedback.

[0076] It should be noted that the abnormal prompts for different types of target anomalies are different. This application embodiment does not limit the specific information content of the above-mentioned abnormal prompts.

[0077] For example, taking the anomaly cause matching the above-mentioned anomaly condition 4 as an example, the user's spoken voice data is "The WiFi name is Netease5G". At this time, since the smart home device recognizes multiple SSID network names such as "Netease5G" and "netease5g", and the credibility difference between the multiple SSID network names is small, the smart home device cannot determine the unique and reliable SSID network name. Therefore, the smart home device can broadcast an anomaly prompt to the user with the voice message "The WiFi name is not unique. Do all letters need to be capitalized?" If the user supplements the voice data with "Capitalized first and last letters", the smart home device can determine the unique and reliable SSID network name as "Netease5G" by combining the two voice data collected before and after.

[0078] Based on the network configuration method for smart home devices provided in this application embodiment, in response to entering network configuration mode, the method collects the target image displayed by the user or the user's voice data; identifies network configuration information from the collected target image or voice data; and connects to the target network indicated by the network name in the network configuration information according to the password information in the network configuration information. Thus, this application enables users to complete the network configuration settings for smart home devices directly during visual or voice interaction with the devices, effectively eliminating the dependence of the network configuration function of smart home devices on related supporting service programs, and improving the network configuration efficiency and flexibility of smart home devices.

[0079] Based on the same inventive concept, this application also provides a network configuration device for smart home devices corresponding to the network configuration method of the above-mentioned smart home devices. Since the principle of solving the problem by the network configuration device of smart home devices in the embodiments of this application is similar to that of the network configuration method of smart home devices in the embodiments of this application, the implementation of the network configuration device of smart home devices can refer to the implementation of the network configuration method of smart home devices, and the repeated parts will not be described again.

[0080] Reference Figure 4 As shown, Figure 4 A schematic diagram of the network distribution device for a smart home device according to an embodiment of this application is shown, wherein the network distribution device includes:

[0081] The startup module 401 is used to collect the target image displayed by the user or the user's voice data in response to entering the network configuration mode.

[0082] The identification module 402 is used to identify distribution network information from the collected target image or voice data;

[0083] The network distribution module 403 is used to connect to the target network indicated by the network name in the network distribution information according to the password information in the network distribution information.

[0084] In an optional implementation, upon entering the distribution network mode, the startup module 401 is configured to:

[0085] In response to a trigger operation targeting the target control, it is determined to enter the distribution network mode;

[0086] or,

[0087] In response to the recognition of target keywords during voice interaction with the user, it is determined to enter the network distribution mode.

[0088] In an optional implementation, when acquiring the target image displayed by the user, the activation module 401 is used to:

[0089] The image acquisition device acquires a target image that the user displays in front of the image acquisition device; wherein the target image includes at least one of the following: a QR code image containing the power distribution network information, and a regular image containing the power distribution network information.

[0090] In an optional embodiment, the distribution network device further includes: an anomaly handling module, wherein the anomaly handling module is used for:

[0091] In response to an anomaly in the identification of the distribution network information, a target anomaly cause matching the current anomaly situation is determined from a variety of preset anomaly causes;

[0092] Provide the user with the error message corresponding to the cause of the target error.

[0093] In an optional implementation, when an anomaly is detected in response to the distribution network information, and a target anomaly cause matching the current anomaly is determined from a plurality of preset anomaly causes, the anomaly handling module is configured to:

[0094] In response to the failure to identify the distribution network information from the target image, an image anomaly cause is determined as the target anomaly cause from a variety of preset anomaly causes; wherein, the image anomaly cause is used to characterize that the target image is an abnormal image that does not contain the distribution network information.

[0095] In an optional implementation, when an anomaly is detected in response to the distribution network information, and a target anomaly cause matching the current anomaly is determined from a plurality of preset anomaly causes, the anomaly handling module is configured to:

[0096] In response to the failure to find the target network indicated by the network name in the distribution network information, a network name anomaly reason is determined from a variety of preset anomaly reasons as the target anomaly reason; wherein, the network name anomaly reason is used to indicate that there is an error in the network name in the distribution network information.

[0097] In an optional implementation, when an anomaly is detected in response to the distribution network information, and a target anomaly cause matching the current anomaly is determined from a plurality of preset anomaly causes, the anomaly handling module is configured to:

[0098] In response to a mismatch between the connection password of the target network and the password information in the distribution network information, a password anomaly reason is determined from a variety of preset anomaly reasons as the target anomaly reason; wherein, the password anomaly reason is used to indicate that there is an error in the password information in the distribution network information.

[0099] In an optional implementation, when an anomaly is detected in response to the distribution network information, and a target anomaly cause matching the current anomaly is determined from a plurality of preset anomaly causes, the anomaly handling module is configured to:

[0100] In response to identifying multiple distribution network information and the confidence difference between the multiple distribution network information is less than or equal to a preset confidence threshold, an information integrity anomaly cause is determined as the target anomaly cause from multiple preset anomaly causes; wherein, the information integrity anomaly cause is used to characterize that the information integrity of the target image or the voice data cannot meet the distribution network requirements.

[0101] Based on the network configuration device for smart home devices provided in the embodiments of this application, in response to entering network configuration mode, it collects the target image displayed by the user or the user's voice data; identifies network configuration information from the collected target image or voice data; and connects to the target network indicated by the network name in the network configuration information according to the password information in the network configuration information. Thus, this application enables users to directly complete the network configuration settings for smart home devices during visual or voice interaction, effectively eliminating the dependence of the network configuration function of smart home devices on related supporting service programs, and improving the network configuration efficiency and flexibility of smart home devices.

[0102] Based on the same inventive concept, this application also provides an electronic device corresponding to the above-mentioned network configuration method for smart home devices. Since the principle of solving the problem by the electronic device in the embodiments of this application is similar to the network configuration method for smart home devices in the embodiments of this application, the implementation of the electronic device can refer to the implementation of the above-mentioned network configuration method, and the repeated parts will not be described again.

[0103] Figure 5A schematic diagram of the structure of an electronic device 500 provided in this application embodiment includes: a processor 501, a memory 502, and a bus 503. The memory 502 stores machine-readable instructions executable by the processor 501. When the electronic device runs a network configuration method for a smart home device as described in the embodiment, the processor 501 communicates with the memory 502 via the bus 503. The processor 501 executes the machine-readable instructions, wherein the processor 501 executes the machine-readable instructions to perform the following steps, specifically:

[0104] In response to entering the network configuration mode, collect the target image displayed by the user or the user's voice data;

[0105] Distribution network information is identified from the collected target image or voice data;

[0106] Connect to the target network indicated by the network name in the distribution network information based on the password information in the distribution network information.

[0107] In one alternative implementation, when responding to entering the distribution network mode, the processor 501 is configured to:

[0108] In response to a trigger operation targeting the target control, it is determined to enter the distribution network mode;

[0109] or,

[0110] In response to the recognition of target keywords during voice interaction with the user, it is determined to enter the network distribution mode.

[0111] In an optional implementation, when acquiring the target image displayed by the user, the processor 501 is configured to:

[0112] The image acquisition device acquires a target image that the user displays in front of the image acquisition device; wherein the target image includes at least one of the following: a QR code image containing the power distribution network information, and a regular image containing the power distribution network information.

[0113] In an alternative implementation, the processor 501 is further configured to:

[0114] In response to an anomaly in the identification of the distribution network information, a target anomaly cause matching the current anomaly situation is determined from a variety of preset anomaly causes;

[0115] Provide the user with the error message corresponding to the cause of the target error.

[0116] In an optional implementation, when the processor 501 determines a target anomaly cause matching the current anomaly from a plurality of preset anomaly causes in response to an anomaly identified in the distribution network information, the processor 501 is configured to:

[0117] In response to the failure to identify the distribution network information from the target image, an image anomaly cause is determined as the target anomaly cause from a variety of preset anomaly causes; wherein, the image anomaly cause is used to characterize that the target image is an abnormal image that does not contain the distribution network information.

[0118] In an optional implementation, when the processor 501 determines a target anomaly cause matching the current anomaly from a plurality of preset anomaly causes in response to an anomaly identified in the distribution network information, the processor 501 is configured to:

[0119] In response to the failure to find the target network indicated by the network name in the distribution network information, a network name anomaly reason is determined from a variety of preset anomaly reasons as the target anomaly reason; wherein, the network name anomaly reason is used to indicate that there is an error in the network name in the distribution network information.

[0120] In an optional implementation, when the processor 501 determines a target anomaly cause matching the current anomaly from a plurality of preset anomaly causes in response to an anomaly identified in the distribution network information, the processor 501 is configured to:

[0121] In response to a mismatch between the connection password of the target network and the password information in the distribution network information, a password anomaly reason is determined from a variety of preset anomaly reasons as the target anomaly reason; wherein, the password anomaly reason is used to indicate that there is an error in the password information in the distribution network information.

[0122] In an optional implementation, when the processor 501 determines a target anomaly cause matching the current anomaly from a plurality of preset anomaly causes in response to an anomaly identified in the distribution network information, the processor 501 is configured to:

[0123] In response to identifying multiple distribution network information and the confidence difference between the multiple distribution network information is less than or equal to a preset confidence threshold, an information integrity anomaly cause is determined as the target anomaly cause from multiple preset anomaly causes; wherein, the information integrity anomaly cause is used to characterize that the information integrity of the target image or the voice data cannot meet the distribution network requirements.

[0124] The electronic device provided in this application embodiment, in response to entering the network configuration mode, collects the target image displayed by the user or the user's voice data; identifies the network configuration information from the collected target image or voice data; and connects to the target network indicated by the network name in the network configuration information according to the password information in the network configuration information. Thus, this application enables users to directly complete the network configuration settings for smart home devices during visual or voice interaction, effectively eliminating the dependence of the network configuration function of smart home devices on related supporting service programs, and improving the network configuration efficiency and flexibility of smart home devices.

[0125] Based on the same inventive concept, embodiments of this application also provide a computer-readable storage medium storing a computer program, which is executed by a processor, wherein the processor performs the following steps:

[0126] In response to entering the network configuration mode, collect the target image displayed by the user or the user's voice data;

[0127] Distribution network information is identified from the collected target image or voice data;

[0128] Connect to the target network indicated by the network name in the distribution network information based on the password information in the distribution network information.

[0129] In one alternative implementation, when responding to entering the distribution network mode, the processor is configured to:

[0130] In response to a trigger operation targeting the target control, it is determined to enter the distribution network mode;

[0131] or,

[0132] In response to the recognition of target keywords during voice interaction with the user, it is determined to enter the network distribution mode.

[0133] In one alternative implementation, when acquiring the target image displayed by the user, the processor is configured to:

[0134] The image acquisition device acquires a target image that the user displays in front of the image acquisition device; wherein the target image includes at least one of the following: a QR code image containing the power distribution network information, and a regular image containing the power distribution network information.

[0135] In one alternative implementation, the processor is further configured to:

[0136] In response to an anomaly in the identification of the distribution network information, a target anomaly cause matching the current anomaly situation is determined from a variety of preset anomaly causes;

[0137] Provide the user with the error message corresponding to the cause of the target error.

[0138] In an optional implementation, when the processor determines a target anomaly matching the current anomaly from a plurality of preset anomaly causes in response to an anomaly identified in the distribution network information, the processor is configured to:

[0139] In response to the failure to identify the distribution network information from the target image, an image anomaly cause is determined as the target anomaly cause from a variety of preset anomaly causes; wherein, the image anomaly cause is used to characterize that the target image is an abnormal image that does not contain the distribution network information.

[0140] In an optional implementation, when the processor determines a target anomaly matching the current anomaly from a plurality of preset anomaly causes in response to an anomaly identified in the distribution network information, the processor is configured to:

[0141] In response to the failure to find the target network indicated by the network name in the distribution network information, a network name anomaly reason is determined from a variety of preset anomaly reasons as the target anomaly reason; wherein, the network name anomaly reason is used to indicate that there is an error in the network name in the distribution network information.

[0142] In an optional implementation, when the processor determines a target anomaly matching the current anomaly from a plurality of preset anomaly causes in response to an anomaly identified in the distribution network information, the processor is configured to:

[0143] In response to a mismatch between the connection password of the target network and the password information in the distribution network information, a password anomaly reason is determined from a variety of preset anomaly reasons as the target anomaly reason; wherein, the password anomaly reason is used to indicate that there is an error in the password information in the distribution network information.

[0144] In an optional implementation, when the processor determines a target anomaly matching the current anomaly from a plurality of preset anomaly causes in response to an anomaly identified in the distribution network information, the processor is configured to:

[0145] In response to identifying multiple distribution network information and the confidence difference between the multiple distribution network information is less than or equal to a preset confidence threshold, an information integrity anomaly cause is determined as the target anomaly cause from multiple preset anomaly causes; wherein, the information integrity anomaly cause is used to characterize that the information integrity of the target image or the voice data cannot meet the distribution network requirements.

[0146] The computer-readable storage medium provided in this application embodiment, in response to entering the network configuration mode, collects the target image displayed by the user or the user's voice data; identifies the network configuration information from the collected target image or voice data; and connects to the target network indicated by the network name in the network configuration information according to the password information in the network configuration information. Thus, this application enables users to directly complete the network configuration settings for smart home devices during visual or voice interaction, effectively eliminating the dependence of the network configuration function of smart home devices on related supporting service programs, and improving the network configuration efficiency and flexibility of smart home devices.

[0147] In this embodiment, the computer-readable storage medium can also execute other machine-readable instructions when the processor runs, to perform the network configuration method for smart home devices as described in other embodiments. For details on the specific network configuration method steps and principles, please refer to the description of the method-side embodiment, which will not be repeated here.

[0148] In the embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. The system embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and there may be other division methods in actual implementation. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the coupling or direct coupling or communication connection shown or discussed may be through some communication interface; the indirect coupling or communication connection between systems or units may be electrical, mechanical, or other forms.

[0149] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0150] In addition, the functional units in the embodiments provided in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0151] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0152] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0153] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims.

Claims

1. A method for configuring a smart home device on a network, characterized in that, The power distribution method includes: In response to entering the network configuration mode, collect the target image displayed by the user or the user's voice data; Distribution network information is identified from the collected target image or voice data; Connect to the target network indicated by the network name in the distribution network information based on the password information in the distribution network information.

2. The distribution network method according to claim 1, characterized in that, The response to entering the distribution network mode includes: In response to a trigger operation targeting the target control, it is determined to enter the distribution network mode; or, In response to the recognition of target keywords during voice interaction with the user, it is determined to enter the network distribution mode.

3. The distribution network method according to claim 1, characterized in that, The collection of the target image displayed by the user includes: The image acquisition device acquires a target image that the user displays in front of the image acquisition device; wherein the target image includes at least one of the following: a QR code image containing the power distribution network information, and a regular image containing the power distribution network information.

4. The distribution network method according to claim 1, characterized in that, The power distribution method also includes: In response to an anomaly in the identification of the distribution network information, a target anomaly cause matching the current anomaly situation is determined from a variety of preset anomaly causes; Provide the user with the error message corresponding to the cause of the target error.

5. The distribution network method according to claim 4, characterized in that, In response to an anomaly in the identification of the distribution network information, a target anomaly cause matching the current anomaly situation is determined from a variety of preset anomaly causes, including: In response to the failure to identify the distribution network information from the target image, an image anomaly cause is determined as the target anomaly cause from a variety of preset anomaly causes; wherein, the image anomaly cause is used to characterize that the target image is an abnormal image that does not contain the distribution network information.

6. The distribution network method according to claim 4, characterized in that, In response to an anomaly in the identification of the distribution network information, a target anomaly cause matching the current anomaly situation is determined from a variety of preset anomaly causes, including: In response to the failure to find the target network indicated by the network name in the distribution network information, a network name anomaly reason is determined from a variety of preset anomaly reasons as the target anomaly reason; wherein, the network name anomaly reason is used to indicate that there is an error in the network name in the distribution network information.

7. The distribution network method according to claim 4, characterized in that, In response to an anomaly in the identification of the distribution network information, a target anomaly cause matching the current anomaly situation is determined from a variety of preset anomaly causes, including: In response to a mismatch between the connection password of the target network and the password information in the distribution network information, a password anomaly reason is determined from a variety of preset anomaly reasons as the target anomaly reason; wherein, the password anomaly reason is used to indicate that there is an error in the password information in the distribution network information.

8. The distribution network method according to claim 4, characterized in that, In response to an anomaly in the identification of the distribution network information, a target anomaly cause matching the current anomaly situation is determined from a variety of preset anomaly causes, including: In response to identifying multiple distribution network information and the confidence difference between the multiple distribution network information is less than or equal to a preset confidence threshold, an information integrity anomaly cause is determined as the target anomaly cause from multiple preset anomaly causes; wherein, the information integrity anomaly cause is used to characterize that the information integrity of the target image or the voice data cannot meet the distribution network requirements.

9. A network distribution device for smart home devices, characterized in that, The power distribution network device includes: The startup module is used to collect the target image displayed by the user or the user's voice data in response to entering the network configuration mode; The identification module is used to identify distribution network information from the collected target image or voice data; The network distribution module is used to connect to the target network indicated by the network name in the network distribution information based on the password information in the network distribution information.

10. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the steps of the network configuration method for a smart home device as described in any one of claims 1 to 8 are performed.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the network configuration method for a smart home device as described in any one of claims 1 to 8.