Household appliance network distribution method and device
By having already connected home appliances send out a specified formatted Wi-Fi name, the device to be configured can directly connect to the target Wi-Fi, solving the problems of low network configuration efficiency and high cost, and realizing an efficient and low-cost network configuration process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHENGDU BOSS INNOVATION TECH CO LTD
- Filing Date
- 2024-10-29
- Publication Date
- 2026-05-01
AI Technical Summary
In existing technologies, the distribution efficiency of devices to be distributed is low and the cost is high. Traditional methods require multiple communication connections or the addition of device hardware modules, resulting in cumbersome processes and increased costs.
The device sends a specified formatted Wi-Fi name through a network-connected home appliance. Once received, the network-connected device processes the information according to agreed-upon rules to obtain the target Wi-Fi name and password, and then directly establishes a connection with the target Wi-Fi, avoiding multiple communications and the use of hardware modules.
It improves power distribution efficiency, reduces equipment costs, simplifies user operations, and enhances the user experience.
Smart Images

Figure CN121968252A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and more specifically, to a method and apparatus for home appliance network distribution. Background Technology
[0002] With the rapid development of the Internet of Things (IoT), more and more devices rely on networks to operate. However, many devices lack the ability to actively connect to the network, requiring users to perform auxiliary network configuration via their mobile phones. The core issue is how to communicate the name and password of the target Wi-Fi network to the device. Currently, there are two main types of configuration methods. One involves the device first creating a hotspot. The mobile phone connects to this hotspot and transmits the target Wi-Fi name and password to the device via the local area network. Upon receiving this information, the device then disables its own hotspot and connects to the target Wi-Fi to complete the configuration. The other method involves the device establishing communication with the mobile phone via Bluetooth, NFC, camera scanning, or microphone modules to obtain the target Wi-Fi's information before connecting. Clearly, the former process is cumbersome, requiring the device to establish two communication connections, resulting in low configuration efficiency. The latter requires the device to configure relevant hardware modules, increasing equipment costs. Summary of the Invention
[0003] In view of this, in order to at least solve the technical problem of low distribution efficiency of related network equipment, the purpose of this invention is to provide a method and apparatus for home appliance network distribution.
[0004] To achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows:
[0005] A first aspect of the present invention provides a home appliance network distribution method, applied to a device to be networked, comprising:
[0006] When a Wi-Fi name in a specified format is detected, the specified format Wi-Fi name is processed to obtain the target Wi-Fi name and the target password of the target Wi-Fi name;
[0007] Establish a connection with the target Wi-Fi network corresponding to the target Wi-Fi network name based on the target Wi-Fi name and the target password;
[0008] The specified format WIFI name includes target WIFI name information and target password information; the specified format WIFI name is issued by a home appliance that has been connected to the network.
[0009] In an optional embodiment, the specified format WIFI name is issued by the network-connected home appliance at regular intervals or in real time, or by the network configuration auxiliary button configured on the network-connected home appliance after being triggered.
[0010] And / or,
[0011] The specified format WIFI name includes, in sequence, a start character, target WIFI name information, a separator, target password information, and an end character;
[0012] Before scanning for a Wi-Fi name in the specified format, the method further includes:
[0013] When multiple WIFI names are detected, candidate WIFI names that begin with the start character, end with the end character, and contain the separator are determined from the multiple WIFI names;
[0014] The specified format WIFI name is determined based on the candidate WIFI names.
[0015] In an optional embodiment, when multiple candidate WIFI names exist, the step of determining the specified format WIFI name based on the candidate WIFI names includes:
[0016] Obtain the signal strength corresponding to each of the candidate WIFI names;
[0017] The candidate WIFI name with the strongest signal strength will be used as the WIFI name in the specified format.
[0018] or,
[0019] When multiple candidate WIFI names exist, the step of determining the specified format WIFI name based on the candidate WIFI names includes:
[0020] A prompt message is sent to each of the candidate WIFI names and the corresponding network-connected home appliances; the prompt message is used to trigger the corresponding network-connected home appliances to enter the network configuration indication state, so as to prompt the user the candidate WIFI name that the device to be configured is about to connect to;
[0021] When a network configuration instruction is received from a user through the network-connected home appliance, the candidate WIFI name corresponding to the network configuration instruction is used as the WIFI name in the specified format.
[0022] In an optional embodiment, the target WIFI name information is unencrypted information and the target password information is encrypted information, or both the target WIFI name information and the target password information are encrypted information;
[0023] The step of processing the specified format WIFI name to obtain the target WIFI name and the target password of the target WIFI name includes:
[0024] The specified format WIFI name is split to obtain the target WIFI name information and the target password information;
[0025] The binary number corresponding to the length value of the target WIFI name information and the binary number corresponding to the length value of the target password information are bitwise ANDed to obtain the result.
[0026] Sort all ASCII characters in order according to their decimal numbers to form the first decryption end list.
[0027] Using the decimal number corresponding to the calculation result as a random seed, all ASCII characters in another list that is the same as the first decryption end list are randomized to obtain the second decryption end list.
[0028] When the target WIFI name information is unencrypted and the target password information is encrypted, the target password information is decrypted according to the first decryption terminal list and the second decryption terminal list to obtain the target password, and the target WIFI name information is used as the target WIFI name; or, when both the target WIFI name information and the target password information are encrypted, the target WIFI name information and the target password information are decrypted according to the first decryption terminal list and the second decryption terminal list respectively to obtain the target WIFI name and the target password.
[0029] In an optional embodiment, when the scanned specified format WIFI name contains a first specified format WIFI name and a second specified format WIFI name emitted by the same network-connected home appliance, the step of processing the specified format WIFI name to obtain the target WIFI name and the target password of the target WIFI name includes:
[0030] Extract the first target WIFI name information and the first target password information from the sequentially arranged start character, first target WIFI name information, separator, first target password information and end character contained in the first specified format WIFI name;
[0031] Extract the second target WIFI name information and the second target password information from the sequentially arranged start character, second target WIFI name information, separator, second target password information and end character contained in the second specified format WIFI name;
[0032] When the first target WIFI name information and the second target password information are the same, the target WIFI name and the target password are obtained by processing based on the second target WIFI name information and the first target password information;
[0033] When the second target WIFI name information and the first target password information are the same, the target WIFI name and the target password are obtained by processing based on the first target WIFI name information and the second target password information;
[0034] Wherein, the sum of the lengths of the target WIFI name and the target password exceeds the set length, the sum of the lengths of the first target WIFI name information and the first target password information does not exceed the set length, and the sum of the lengths of the second target WIFI name information and the second target password information does not exceed the set length.
[0035] A second aspect of this invention provides another method for home appliance network distribution, applied to home appliances already connected to the network, comprising:
[0036] A specified format WIFI name is sent; the specified format WIFI name is used to be received by the device to be networked and to trigger the device to be networked to establish a connection with the target WIFI based on the specified format WIFI name through the home appliance network configuration method provided in any of the embodiments of the first aspect above.
[0037] In an optional embodiment, the specified format WIFI name includes a start character, target WIFI name information, separator, target password information, and end character connected in sequence; and the sum of the lengths of the target WIFI name information and the target password information does not exceed a set length;
[0038] When the sum of the lengths of the target Wi-Fi name and the target password exceeds a set length, the method further includes:
[0039] The start character, the information corresponding to the target WIFI name, the separator, the set interconnection guide character and the end character are connected in sequence to form a first specified format WIFI name;
[0040] The start character, the interconnection guide character, the separator, the information corresponding to the target password, and the end character are sequentially concatenated to form a second specified format WIFI name;
[0041] The step of sending a WIFI name in a specified format includes:
[0042] Send the first specified format WIFI name and the second specified format WIFI name.
[0043] In an optional embodiment, the specified format WIFI name includes a start character, target WIFI name information, separator, target password information, and end character connected in sequence;
[0044] Before the step of issuing a Wi-Fi name in a specified format, the method further includes:
[0045] Perform a bitwise AND operation between the binary number corresponding to the length value of the target WIFI name and the binary number corresponding to the length value of the target password to obtain the result.
[0046] Sort all ASCII characters in order according to their corresponding decimal numbers to form the first encryption end list.
[0047] Using the decimal number corresponding to the calculation result as a random seed, all ASCII characters in another list that is the same as the first encryption end list are randomized to obtain the second encryption end list;
[0048] The target WIFI name and the target password are encrypted according to the first encryption terminal list and the second encryption terminal list respectively to obtain the target WIFI name information and the target password information; or, the target password is encrypted according to the first encryption terminal list and the second encryption terminal list to obtain the target password information, and the target WIFI name is used as the target WIFI name information.
[0049] The start character, the target WIFI name information, the separator, the target password information, and the end character are sequentially concatenated to form the WIFI name in the specified format.
[0050] A third aspect of the present invention provides a home appliance network distribution device, applied to equipment to be networked, comprising:
[0051] The processing module is configured to: when a WIFI name of a specified format is detected, process the WIFI name of the specified format to obtain the target WIFI name and the target password of the target WIFI name;
[0052] The communication module is configured to: establish a connection with the target WIFI corresponding to the target WIFI name based on the target WIFI name and the target password;
[0053] The specified format WIFI name includes target WIFI name information and target password information; the specified format WIFI name is issued by a home appliance that has been connected to the network.
[0054] A fourth aspect of the present invention provides another home appliance network distribution device, applied to home appliances already connected to the network, comprising:
[0055] The sending module is configured to: send a WIFI name in a specified format; the specified WIFI name is used to be received by the device to be networked and to trigger the home appliance network configuration device configured in the device to be networked to establish a connection with the target WIFI based on the specified WIFI name; wherein, the home appliance network configuration device in the device to be networked is the home appliance network configuration device provided in the third aspect above.
[0056] The home appliance network configuration method and apparatus provided in this invention utilizes a pre-defined Wi-Fi name in a specified format, agreed upon by the network-connected home appliance and the device to be configured. Upon receiving this Wi-Fi name, the device can process it according to pre-agreed rules to obtain a target Wi-Fi name and password, and then establish a connection with the target Wi-Fi using the target name and password, thus achieving network configuration. It is evident that the network configuration scheme provided in this invention eliminates the need for using mobile phones, Bluetooth modules, NFC modules, cameras, and microphone modules to configure the device to be configured, reducing equipment costs. Furthermore, since the network-connected home appliance only needs to send the specified Wi-Fi name, the device to be configured can connect to the target Wi-Fi directly without establishing a connection with the network-connected home appliance, thus improving network configuration efficiency. Moreover, the network configuration process requires no user intervention, is simple and convenient, and enhances the user experience.
[0057] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0058] To more clearly illustrate the technical solutions of the embodiments of the present invention, 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 the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0059] Figure 1 This diagram illustrates a structural block diagram of an electronic device provided by an embodiment of the present invention.
[0060] Figure 2 This invention provides a flowchart of a home appliance network distribution method applied to devices to be distributed to the network, according to an embodiment of the present invention.
[0061] Figure 3This diagram illustrates a functional block diagram of a home appliance network distribution device applied to a device to be networked, according to an embodiment of the present invention. Detailed Implementation
[0062] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0063] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0064] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0065] To address the technical problems of low network configuration efficiency or high network configuration costs in traditional technologies, this invention provides a home appliance network configuration method. This method utilizes an already networked home appliance to emit a pre-agreed Wi-Fi name in a specified format. Upon receiving this Wi-Fi name, the device to be configured processes it according to pre-agreed rules to obtain the corresponding target Wi-Fi name and password. It then establishes a connection with the target Wi-Fi using the target name and password, thus achieving network configuration. As can be seen, the network configuration scheme provided by this invention eliminates the need for network configuration using mobile phones, Bluetooth modules, NFC modules, cameras, and microphone modules, reducing network configuration costs. Furthermore, since the already networked home appliance only needs to emit the specified Wi-Fi name, the device to be configured can connect to the target Wi-Fi directly based on that name, without needing to establish a connection with the already networked home appliance. This improves network configuration efficiency, and the process is simple and convenient without user intervention, enhancing the user experience.
[0066] The home appliance network distribution method provided by this invention can be applied to electronic devices. Please refer to [link / reference]. Figure 1 This is a structural block diagram of an electronic device. The electronic device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, processor 120, and communication module 130 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.
[0067] The memory is used to store programs or data. The memory may be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc.
[0068] The processor is used to read / write data or programs stored in memory and to perform the corresponding functions.
[0069] The communication module is used to establish communication connections between electronic devices and other communication terminals via a network, and to send and receive data via the network.
[0070] It should be understood that, Figure 1 The structure shown is only a schematic diagram of an electronic device; the electronic device may also include components that are larger than... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown. Figure 1 The components shown can be implemented using hardware, software, or a combination thereof.
[0071] For different implementing entities, embodiments of the present invention provide different home appliance network configuration methods, such as a home appliance network configuration method applied to a device to be configured with the network, and a home appliance network configuration method applied to a home appliance already connected to the network. It is understood that these two home appliance network configuration methods can be applied to different roles in a network configuration system, which includes home appliances already connected to the network and devices to be configured with the network. Home appliances already connected to the network execute the home appliance network configuration method configured therein to issue a specified format WIFI name, while devices to be configured with the network execute the home appliance network configuration method configured therein to receive the specified format WIFI name and establish a connection with the target WIFI based on it, thereby achieving network access.
[0072] Among them, the network-connected home appliances can be any type of home appliance that is already connected to the target WIFI in an indoor environment, such as range hoods, refrigerators, televisions, game consoles, speakers, and air conditioners, but are not limited to these. It should be understood that the network-connected home appliances have the ability to generate hotspots, which can carry WIFI names in a specified format and be scanned by the devices to be connected to the network.
[0073] In addition, the device to be configured on the network can be any of the above-mentioned home appliances, or other devices that can access WIFI besides home appliances, such as mobile phones, computers, tablets, but not limited to these.
[0074] The following combination Figure 2 The present invention provides a method for home appliance network distribution applied to devices to be distributed to the network. Figure 2 This is a flowchart of a home appliance network distribution method provided in an embodiment of the present invention, the home appliance network distribution method including:
[0075] In step S110, when a WIFI name in a specified format is detected, the WIFI name in the specified format is processed to obtain the target WIFI name and the target password of the target WIFI name.
[0076] In step S120, a connection is established with the target WIFI corresponding to the target WIFI name based on the target WIFI name and the target password;
[0077] The specified format WIFI name includes target WIFI name information and target password information; the specified format WIFI name is issued by a home appliance that has been connected to the network.
[0078] In practical applications, network-connected home appliances can periodically or in real-time emit a specified format of Wi-Fi name. Understandably, regardless of whether there are devices awaiting network configuration, network-connected home appliances will emit the specified format of Wi-Fi name according to a pre-defined program. Thus, when a device awaiting network configuration exists, it can scan for the specified format of Wi-Fi name and execute step S110 to process the specified format of Wi-Fi name to obtain the target Wi-Fi name and target password. Subsequently, step S120 is executed to establish a connection with the corresponding target Wi-Fi using the target Wi-Fi name and target password, thereby achieving network access.
[0079] In the above-mentioned scenario, since the network-connected home appliances may not have any devices waiting to be connected to the network for most of the time they periodically or in real-time emit a specified format WIFI name, this will undoubtedly cause power consumption and is not conducive to energy conservation. To solve this technical problem, in some embodiments, a network connection auxiliary button can be configured on the network-connected home appliances. This network connection auxiliary button is used to trigger the network-connected home appliances to emit a specified format WIFI name. That is, when there is a device waiting to be connected to the network, the user can press the network connection auxiliary button on the network-connected home appliances, and then the network-connected home appliances will emit a specified format WIFI name. At this time, the device waiting to be connected to the network can scan for the specified format WIFI name and achieve network access through steps S110 and S120.
[0080] In some embodiments, the specified format Wi-Fi name may include a start character, target Wi-Fi name information, separator, target password information, and end character, connected in sequence. The start character, separator, and end character can be predefined; for example, the start character can be set to rb@, the separator to $|%, and the end character to #rb. Therefore, if the Wi-Fi name currently searched by the device to be configured begins with rb@, ends with #rb, and also contains $|%, it is considered that the device to be configured has scanned a Wi-Fi name in the specified format. Conversely, if the Wi-Fi name currently searched by the device to be configured does not begin with rb@, does not end with #rb, or does not contain $|%, it will be considered that a Wi-Fi name in the specified format has not been scanned, and the scan will continue.
[0081] Based on this, it can be understood that, before scanning for a Wi-Fi name in the specified format, the home appliance network configuration method for devices to be configured with the network provided in this embodiment of the invention may further include:
[0082] In step S010, when multiple WIFI names are detected, candidate WIFI names that begin with the start character, end with the end character, and contain the separator are determined from the multiple WIFI names.
[0083] In step S020, the specified format WIFI name is determined based on the candidate WIFI names.
[0084] For step S010, it is understood that when multiple WIFI names are scanned, the name that starts with the above-mentioned start character, ends with the above-mentioned end character, and also contains the above-mentioned separator should be selected from the multiple WIFI names to obtain candidate WIFI names.
[0085] When there is only one candidate WIFI name, during the execution of step S020, the candidate WIFI name can be directly used as the WIFI name in the specified format. At this time, it can be considered that the WIFI name in the specified format has been scanned.
[0086] When there are multiple candidate Wi-Fi names (i.e., more than one), all candidate Wi-Fi names can be treated as Wi-Fi names in the specified format. In this case, the device to be configured can process each Wi-Fi name in the specified format one by one to obtain the corresponding target Wi-Fi name and target password, and connect to each one until it has successfully connected to the target Wi-Fi.
[0087] As can be seen, when there are multiple candidate Wi-Fi names, although the above scheme can enable the device to join the network, the device needs to try connecting to each Wi-Fi one by one before it can successfully connect to the target Wi-Fi. This also involves processing multiple Wi-Fi names with specified formats. Therefore, this scheme affects the network configuration efficiency of the device. To solve this technical problem, in some embodiments, this invention provides a corresponding solution: when there are multiple candidate Wi-Fi names, the step S020 above, which involves determining the specified format Wi-Fi name based on the candidate Wi-Fi names, can include:
[0088] In step S02a, the signal strength corresponding to each of the candidate WIFI names is obtained respectively;
[0089] In step S02b, the candidate WIFI name with the strongest signal strength is selected as the WIFI name in the specified format.
[0090] The Wi-Fi signal strength that the device to be configured can sense in the same indoor environment is generally stronger than the Wi-Fi signal strength in different indoor environments. Furthermore, the device to be configured to access a Wi-Fi network with a stronger signal strength is also conducive to reliable data transmission. Therefore, through steps S021 and S022, when the device to be configured scans multiple candidate Wi-Fi names, the signal strength determination technology in related technologies can be used to determine the signal strength corresponding to each candidate Wi-Fi name, and then the candidate Wi-Fi name with the strongest signal strength can be selected as the Wi-Fi name in the specified format, thereby realizing network configuration.
[0091] While the previous embodiment can solve the problem of quickly determining the required Wi-Fi name in the case of multiple candidate Wi-Fi names, thereby improving network configuration efficiency, the increasing intelligence of indoor environments means that multiple Wi-Fi devices may be deployed in the same indoor environment. This may result in the user expecting the Wi-Fi to be connected to by the device not to be the Wi-Fi with the strongest signal, thus affecting the device configuration layout and user experience. To solve this technical problem, in some embodiments, this invention also provides another solution for quickly determining the specified format Wi-Fi name from multiple candidate Wi-Fi names. That is, when multiple candidate Wi-Fi names exist, the step of determining the specified format Wi-Fi name based on the candidate Wi-Fi names in step S020 above may include:
[0092] In step S02A, a prompt message is sent to each of the network-connected home appliances corresponding to each candidate WIFI name; the prompt message is used to trigger the corresponding network-connected home appliance to enter the network configuration indication state, so as to prompt the user the candidate WIFI name that the device to be configured is about to connect to;
[0093] In step S02B, when a network configuration command is received from the user through the network-connected home appliance, the candidate WIFI name corresponding to the network configuration command is used as the specified format WIFI name.
[0094] Understandably, when multiple candidate Wi-Fi names exist, the device to be configured can learn the target Wi-Fi that the user expects the device to connect to through steps S02A and S02B. That is, first execute step S02A, and at certain time intervals, send prompt information to the corresponding network-connected home appliances for each candidate Wi-Fi name. For example, assuming there are two candidate Wi-Fi names, and their corresponding network-connected home appliances are device A and device B, the device to be configured can first send a prompt information to device A. After receiving the prompt information, device A will enter the network configuration indication state. At this time, device A will start. Alternatively, if device A is equipped with a speaker or indicator light, device A can be left unactivated, but instead, sound can be played through device A's speaker or the indicator light of device A can be turned on. In this way, the user can know which network-connected home appliance has accessed the Wi-Fi that the device to be configured has currently selected. If a user wants the device to be configured to connect to the Wi-Fi network connected to device A, they can input a configuration command through device A. For example, by changing the operating state of device A, or, if device A has a configuration auxiliary button, by pressing the button, device A can issue a configuration command. The device to be configured will then receive the command and execute step S02B to use the candidate Wi-Fi name corresponding to the command as the specified format Wi-Fi name. This allows for accurate and rapid determination of the specified format Wi-Fi name.
[0095] In the above scenario, if device A enters the network distribution indication state but the user does not trigger device A to issue a network distribution command, then after the aforementioned time interval following the device issuing the prompt message, the device to be distributed will issue a prompt message to the next device, such as device B, and so on, until a network distribution command is received. The time interval can be set according to actual needs or experience, for example, 30 seconds, but is not limited to this.
[0096] After obtaining the specified format WIFI name through any of the above embodiments, the device to be configured can establish a connection with the target WIFI through steps S110 and S120. The device to be configured can extract the target WIFI name and target password from the specified format WIFI name. For example, based on the above example, assuming the WIFI name currently scanned by the device to be configured is: rb@A2540$|%12345678#rb, then it can be known that the content between rb@ and $|%, A2540, is the target WIFI name information, and the content between $|% and #rb is the target password information. This achieves the extraction of the target WIFI name and target password information.
[0097] In some embodiments, the target Wi-Fi name information can be the same as the target Wi-Fi name, and the target password information can be the same as the target password. In this way, the device to be configured only needs to extract the target Wi-Fi name and password information according to the relevant description above, and can directly use this information to connect to the target Wi-Fi, which can improve the network access efficiency of the device to be configured. However, this also raises other problems—the target password of the target Wi-Fi is easily leaked, resulting in significant security risks for the target Wi-Fi device.
[0098] To address the aforementioned issues, in other embodiments, the already connected home appliances and the devices awaiting network configuration can employ a pre-agreed encryption protocol. The already connected home appliances first encrypt the target Wi-Fi name and target password to form target Wi-Fi name information and target password information respectively, or encrypt only the target password to form target password information, and then generate a Wi-Fi name in a specified format and send it. Correspondingly, after receiving the specified format Wi-Fi name and extracting the target Wi-Fi name and target password information, the device awaiting network configuration can decrypt the encrypted information according to the encryption protocol. To this end, the embodiments of the present invention provide the following encryption and decryption schemes:
[0099] First, let's introduce the encryption scheme. This encryption scheme is applied to network-connected home appliances. Before the network-connected home appliances send out the specified formatted Wi-Fi name, the network-connected home appliances will also perform the following operations:
[0100] In step S210, the binary number corresponding to the length value of the target WIFI name and the binary number corresponding to the length value of the target password are bitwise ANDed to obtain the result.
[0101] In step S220, all ASCII characters are sorted in order according to the size of their corresponding decimal numbers to form the corresponding first encryption end list;
[0102] In step S230, the decimal number corresponding to the calculation result is used as a random seed to randomize all ASCII characters in another list that is the same as the first encryption end list, so as to obtain the second encryption end list;
[0103] In step S240, the target WIFI name and the target password are encrypted according to the first encryption terminal list and the second encryption terminal list respectively to obtain the target WIFI name information and the target password information; or, the target password is encrypted according to the first encryption terminal list and the second encryption terminal list to obtain the target password information, and the target WIFI name is used as the target WIFI name information.
[0104] In step S250, the start character, the target WIFI name information, the separator, the target password information, and the end character are sequentially concatenated to form the specified format WIFI name.
[0105] The following example illustrates the technical principle of steps S210 to S250 above:
[0106] Assuming the target WIFI name of the connected home appliance is A2540 and the target password is 12345678, in order to encrypt the target name, or the target name and the target password, first execute step S210. We can find that the length of the target WIFI name A2540 is 5 and the length of the target password 123456 is 6. These are converted into binary numbers 101 and 110 respectively. The result of performing a bitwise AND operation on these two binary numbers is 100.
[0107] Next, step S220 is executed, where all ASCII characters are sorted sequentially according to their corresponding decimal numbers to form the first encryption end list. In the first encryption end list, all ASCII characters can be arranged in descending order of their decimal numbers, or in ascending order of their decimal numbers.
[0108] Next, step S230 is executed. Using the decimal number 4 corresponding to the calculation result 100 as a random seed, all ASCII characters in another list that is the same as the first encryption end list are randomized to obtain the second encryption end list. It can be seen that the characters contained in the second encryption end list are the same as those contained in the first encryption end list, but the order of the characters is different. The randomization process can be found in related technologies and will not be explained in detail here.
[0109] After obtaining the first and second encryption endpoint lists, step S240 is executed to encrypt the target password, or the target Wi-Fi name and target password. Taking the target password as an example, the encryption process is as follows: Since the order of characters in the second encryption endpoint list has changed compared to the first encryption endpoint list, a dictionary can be formed by mapping the first and second encryption endpoint lists to their corresponding indices. Elements in the first encryption endpoint list serve as the dictionary keys, and elements in the second encryption endpoint list serve as the dictionary values. Based on this, each character in the target password can be used as a key in the dictionary. The value corresponding to that key is then retrieved according to the index, and the corresponding character in the target password is replaced. After replacing all characters in the target password, the resulting data is the target password information, thus achieving encryption. The encryption principle for the target Wi-Fi name is the same and will not be elaborated here.
[0110] Furthermore, if a character in the target password cannot be found in the dictionary, no replacement is needed; the character can be left unchanged.
[0111] After encrypting the required information, step S250 is executed to sequentially concatenate the start character, target WIFI name information, separator, encrypted target password information, and end character according to the specified WIFI name format, forming a WIFI name in the specified format. The target WIFI name information can be encrypted or unencrypted; that is, if encryption of the target WIFI name is required, the target WIFI name information will be encrypted; otherwise, if encryption is not required, the target WIFI name information can be identical to the target WIFI name.
[0112] The corresponding decryption scheme is applied to the device to be networked. That is, the home appliance network configuration method for the device to be networked provided in this embodiment of the invention further includes a decryption scheme. Specifically, the step S110 above, which processes the specified format WIFI name to obtain the target WIFI name and the target password of the target WIFI name, includes:
[0113] In step S111, the specified format WIFI name is split to obtain the target WIFI name information and the target password information;
[0114] In step S112, the binary number corresponding to the length value of the target WIFI name information and the binary number corresponding to the length value of the target password information are bitwise ANDed to obtain the result.
[0115] In step S113, all ASCII characters are sorted in order according to the size of the decimal numbers corresponding to all ASCII characters to form the corresponding first decryption end list;
[0116] In step S114, the decimal number corresponding to the calculation result is used as a random seed to randomize all ASCII characters in another list that is the same as the first decryption end list, so as to obtain the second decryption end list.
[0117] In step S115, when the target WIFI name information is unencrypted and the target password information is encrypted, the target password information is decrypted according to the first decryption terminal list and the second decryption terminal list to obtain the target password, and the target WIFI name information is used as the target WIFI name; or, when both the target WIFI name information and the target password information are encrypted, the target WIFI name information and the target password information are decrypted according to the first decryption terminal list and the second decryption terminal list respectively to obtain the target WIFI name and the target password.
[0118] When the device to be configured receives a Wi-Fi name in a specified format containing encrypted information, the encrypted information can be decrypted through steps S111 to S115. Specifically, step S111 involves splitting the specified format Wi-Fi name to extract the target Wi-Fi name information and the target password information. The relevant technical principles can be found in the above descriptions and will not be elaborated upon here.
[0119] Next, a random seed is obtained through step S112. The technical principle of step S112 is the same as that of step S210 above, and will not be repeated here.
[0120] After obtaining the calculation result that can represent the random seed, steps S113 and S114 can be executed to construct the first decryption end list and the second decryption end list. The construction principle can also be found in the relevant descriptions of steps S220 and S230 above, and will not be repeated here. It should be understood that for a certain formatted WIFI name, the length of the target WIFI name information and the target password information it contains remains unchanged on both the decryption end and the encryption end. Therefore, the random seed used by the decryption end and the encryption end is the same, so the contents of the first decryption end list are the same as those of the first encryption end list. Similarly, the contents of the second decryption end list are the same as those of the second encryption end list.
[0121] The difference lies in the fact that, since the characters in the encrypted target Wi-Fi name or password information belong to the second encryption end list (i.e., the characters in the second decryption end list), during step S115, the elements of the second decryption end list are used as the keys of the dictionary, and the first decryption end list is used as the values. Each character in the target password information is then used as a key to find its corresponding value, and the corresponding character in the target password information is replaced, thus decrypting the target password. Similarly, if the target Wi-Fi name information is encrypted, it can also be decrypted using the same principle.
[0122] Furthermore, it is worth noting that in the field of Wi-Fi hotspot technology, the length of the string contained in the name of a Wi-Fi hotspot cannot exceed 32 characters. Therefore, the length of the string contained in a specified format Wi-Fi name cannot exceed 32 characters. Since the start character, separator, and end character in the specified format Wi-Fi name can be pre-configured, the length L occupied by these known strings can be known in advance. Based on this, the total length of the strings contained in the target Wi-Fi name information and the target password information cannot exceed the set length of 32-L. However, since Wi-Fi names and passwords are generally user-defined, the sum of the lengths of the target Wi-Fi name and password may exceed the set length. This makes it impossible to record the complete target Wi-Fi name and password information in the same specified format Wi-Fi name, thus preventing the network configuration of the device to be configured. To solve this technical problem, in some embodiments, this invention also provides a corresponding specified format Wi-Fi name generation scheme. This scheme is applied to already connected home appliances. When the sum of the lengths of the target Wi-Fi name and the target password exceeds the set length, the already connected home appliances will perform the following operations:
[0123] In step S310, the start character, the information corresponding to the target WIFI name, the separator, the set interconnection guide character, and the end character are sequentially connected to form a first specified format WIFI name; wherein, the sum of the lengths of the information corresponding to the target WIFI name and the interconnection guide character does not exceed the set length;
[0124] In step S320, the start character, the interconnection guide character, the separator character, the information corresponding to the target password, and the end character are sequentially connected to form a second specified format WIFI name; wherein, the sum of the lengths of the information corresponding to the target password and the interconnection guide character does not exceed the set length.
[0125] Understandably, when the sum of the lengths of the target WIFI name and the target password exceeds the set length, the connected home appliances will separate the target WIFI name and the target password, forming a first specified format WIFI name and a second specified format WIFI name respectively according to the aforementioned specified format. In order to ensure the correlation between the first specified format WIFI name and the second specified format WIFI name, and to facilitate the distinction between which of the two specified format WIFI names carries the target password information and which carries the target WIFI name information, the same interconnection guide will be added to both specified format WIFI names. This interconnection guide can be set according to actual needs, as long as its length does not exceed the set length when combined with the sum of the lengths of the target password and the target WIFI name.
[0126] The information corresponding to the target WIFI name in step S310 above can be understood as follows: if the target WIFI name has been encrypted, the information corresponding to the target WIFI name is the encrypted information, and the length of the encrypted information is the same as the length of the target WIFI name; if it has not been encrypted, the information corresponding to the target WIFI name is simply the target WIFI name itself. Similarly, the meaning of the information corresponding to the target password in step S320 is similar and will not be elaborated here.
[0127] Therefore, steps S310 and S320 can be used to carry and transmit information about the target WIFI name and target password whose sum of length exceeds the set length. Correspondingly, the specified format WIFI name emitted by the network-connected home appliances includes a first specified format WIFI name and a second specified format WIFI name.
[0128] When an already connected home appliance emits a first specified format WIFI name and a second specified format WIFI name, in order to enable the device to be configured to extract the target WIFI name and target password based on the first specified format WIFI name and the second specified format WIFI name, in some embodiments, the home appliance configuration method for the device to be configured provided by the present invention further adjusts the above step S110 accordingly. That is, when the scanned specified format WIFI name includes the first specified format WIFI name and the second specified format WIFI name emitted by the same already connected home appliance, the step of processing the specified format WIFI name to obtain the target WIFI name and the target password of the target WIFI name in step S110 may include:
[0129] In step S11a, the first target WIFI name information and the first target password information are extracted from the first specified format WIFI name, which contains the sequentially arranged start character, first target WIFI name information, separator, first target password information and end character.
[0130] In step S11b, the second target WIFI name information and the second target password information are extracted from the sequentially arranged start character, second target WIFI name information, separator, second target password information and end character contained in the second specified format WIFI name.
[0131] In step S11c, when the first target WIFI name information and the second target password information are the same, the target WIFI name and the target password are obtained by processing according to the second target WIFI name information and the first target password information;
[0132] In step S11d, when the second target WIFI name information and the first target password information are the same, the target WIFI name and the target password are obtained by processing according to the first target WIFI name information and the second target password information.
[0133] It should be understood that the above steps S11a to S11d are executed when the sum of the lengths of the target WIFI name and the target password exceeds the set length, upon receiving a first specified format WIFI name and a second specified format WIFI name from the same network-connected home appliance. In the first specified format WIFI name, although one of the first target WIFI name information and the first target password information is assigned an interconnection guide, the format of the first specified format WIFI name still satisfies the specified format mentioned above. Therefore, under the condition of a unified format, the information it contains still possesses the format of the target WIFI name information and the target password information. Thus, the information at the corresponding positions is still referred to as the first target WIFI name information and the first target password information, and the sum of their lengths does not exceed the set length. Similarly, the sum of the lengths of the second target WIFI name information and the second target password information does not exceed the set length.
[0134] Based on this, the technical principles for extracting the first target WIFI name information, the first target password information, the second target WIFI name information, and the second target password information in steps S11a and S11b can be found in the relevant records above, and will not be repeated here.
[0135] After extracting the above four pieces of information, since one of the first target WIFI name information and the first target password information contains an interconnection guide character, and one of the second target WIFI name information and the second target password information also contains the same interconnection guide character, when the first target WIFI name information and the second target password information are the same, it means that both the first target WIFI name information and the second target password information are interconnection guide characters. The second target WIFI name information must carry information related to the target WIFI name, and the first target password information must carry information related to the target password. Therefore, according to the relevant records above, the target WIFI name and the target password can be obtained respectively by executing step S11c based on the second target WIFI name information and the first target password information.
[0136] When the second target WIFI name information and the first target password information are the same, it means that both the second target WIFI name information and the first target password information are interconnection guides. The first target WIFI name information must carry information related to the target WIFI name, and the second target password information must carry information related to the target password. Therefore, according to the relevant records above, the target WIFI name and target password can be obtained by executing step S11d based on the second target WIFI name information and the first target password information, respectively.
[0137] Therefore, it is possible to enable the device to connect to a target WIFI where the sum of the target WIFI name and the target password length exceeds the set length.
[0138] It is worth noting that the technical features or technical solutions in any of the above embodiments of the present invention can be combined with each other, as long as there is no contradiction in the combination.
[0139] As can be seen from the above embodiments of the home appliance network distribution method applied to devices to be networked, it also involves home appliance network distribution methods for devices already connected to the network. Integrating these, it can be understood that the embodiments of the present invention also provide a home appliance network distribution method applied to devices already connected to the network, including:
[0140] In step S200, a specified format WIFI name is sent; the specified format WIFI name is used to be received by the device to be networked and to trigger the device to be networked to establish a connection with the target WIFI based on the specified format WIFI name through the home appliance network configuration method applied to the device to be networked in any of the above embodiments.
[0141] Because the technical specifications for Wi-Fi hotspots stipulate that the string length of a Wi-Fi hotspot name cannot exceed 32 characters, the string length of a specified format Wi-Fi name cannot exceed 32 characters. Since the start character, separator, and end character in a specified format Wi-Fi name can be pre-configured, the length L occupied by these known strings can be known in advance. Based on this, the total length of the strings contained in the target Wi-Fi name information and the target password information cannot exceed the set length of 32-L. However, since Wi-Fi names and passwords are generally user-defined, the sum of the lengths of the target Wi-Fi name and password may exceed the set length. This makes it impossible to record the complete target Wi-Fi name and password information in the same specified format Wi-Fi name, thus preventing the network configuration of the device to be configured. To solve this technical problem, in some embodiments, this invention also provides a corresponding specified format Wi-Fi name generation scheme. That is, when the sum of the lengths of the target Wi-Fi name and the target password exceeds the set length, the method for configuring home appliances already connected to the network may further include:
[0142] In step S310, the start character, the information corresponding to the target WIFI name, the separator, the set interconnection guide character, and the end character are sequentially connected to form a first specified format WIFI name; wherein, the sum of the lengths of the information corresponding to the target WIFI name and the interconnection guide character does not exceed the set length;
[0143] In step S320, the start character, the interconnection guide character, the separator character, the information corresponding to the target password, and the end character are sequentially connected to form a second specified format WIFI name; wherein, the sum of the lengths of the information corresponding to the target password and the interconnection guide character does not exceed the set length.
[0144] Accordingly, the step of sending a WIFI name in a specified format in step S200 above includes:
[0145] Send the first specified format WIFI name and the second specified format WIFI name.
[0146] Before issuing a Wi-Fi name in a specified format, to improve Wi-Fi security, in some embodiments of the present invention, the method for configuring home appliances for use with already connected home appliances may further include:
[0147] In step S210, the binary number corresponding to the length value of the target WIFI name and the binary number corresponding to the length value of the target password are bitwise ANDed to obtain the result.
[0148] In step S220, all ASCII characters are sorted in order according to the size of their corresponding decimal numbers to form the corresponding first encryption end list;
[0149] In step S230, the decimal number corresponding to the calculation result is used as a random seed to randomize all ASCII characters in another list that is the same as the first encryption end list, so as to obtain the second encryption end list;
[0150] In step S240, the target WIFI name and the target password are encrypted according to the first encryption terminal list and the second encryption terminal list respectively to obtain the target WIFI name information and the target password information; or, the target password is encrypted according to the first encryption terminal list and the second encryption terminal list to obtain the target password information, and the target WIFI name is used as the target WIFI name information.
[0151] In step S250, the start character, the target WIFI name information, the separator, the target password information, and the end character are sequentially concatenated to form the specified format WIFI name.
[0152] It is worth noting that the technical features or solutions in any embodiment of the appliance network distribution method applied to already connected home appliances of the present invention can be combined with each other, as long as there is no contradiction in the combination. Furthermore, the relevant technical principles of the appliance network distribution method applied to already connected home appliances provided in any embodiment of the present invention can be found in the relevant descriptions of the embodiments of the appliance network distribution method applied to devices to be networked, and will not be repeated here.
[0153] To perform the corresponding steps in the embodiments and various possible methods of the above-described home appliance network distribution method applied to the device to be distributed, an implementation of a home appliance network distribution device applied to the device to be distributed is given below. Optionally, this home appliance network distribution device can adopt the above-described... Figure 1 The device structure of the electronic device is shown. Further, please refer to... Figure 3 , Figure 3 This is a functional block diagram of a home appliance network distribution device provided in an embodiment of the present invention. It should be noted that the basic principle and technical effects of the home appliance network distribution device provided in this embodiment are the same as those of the home appliance network distribution method embodiments applied to devices to be networked. For the sake of brevity, any parts not mentioned in this embodiment can be referred to the corresponding content in the above embodiments. The home appliance network distribution device 300 includes:
[0154] The processing module 310 is configured to: when a WIFI name of a specified format is detected, process the WIFI name of the specified format to obtain a target WIFI name and a target password for the target WIFI name;
[0155] Communication module 320 is configured to: establish a connection with the target WIFI corresponding to the target WIFI name based on the target WIFI name and the target password;
[0156] The specified format WIFI name includes target WIFI name information and target password information; the specified format WIFI name is issued by a home appliance that has been connected to the network.
[0157] In some embodiments, the specified format WIFI name is issued periodically or in real time by the network-connected home appliance, or it is issued after the network configuration auxiliary button configured on the network-connected home appliance is triggered.
[0158] In some embodiments, the specified format WIFI name includes a start character, target WIFI name information, a separator, target password information, and an end character, connected in sequence. Before the processing module 310 scans for the specified format WIFI name, the processing module 310 is further configured to:
[0159] When multiple WIFI names are detected, candidate WIFI names that begin with the start character, end with the end character, and contain the separator are determined from the multiple WIFI names;
[0160] The specified format WIFI name is determined based on the candidate WIFI names.
[0161] In some embodiments, when multiple candidate WIFI names exist, the process by which the processing module 310 determines the specified format WIFI name based on the candidate WIFI names is configured as follows:
[0162] Obtain the signal strength corresponding to each of the candidate WIFI names;
[0163] The candidate WIFI name with the strongest signal strength will be used as the WIFI name in the specified format.
[0164] In other embodiments, when multiple candidate WIFI names exist, the process by which the processing module 310 determines the specified format WIFI name based on the candidate WIFI names is configured as follows:
[0165] A prompt message is sent to each of the candidate WIFI names and the corresponding network-connected home appliances; the prompt message is used to trigger the corresponding network-connected home appliances to enter the network configuration indication state, so as to prompt the user the candidate WIFI name that the device to be configured is about to connect to;
[0166] When a network configuration instruction is received from a user through the network-connected home appliance, the candidate WIFI name corresponding to the network configuration instruction is used as the WIFI name in the specified format.
[0167] In some embodiments, the target WIFI name information is unencrypted and the target password information is encrypted, or both the target WIFI name information and the target password information are encrypted. Accordingly, the process by which the processing module 310 processes the specified format WIFI name to obtain the target WIFI name and the target password for the target WIFI name is configured as follows:
[0168] The specified format WIFI name is split to obtain the target WIFI name information and the target password information;
[0169] The binary number corresponding to the length value of the target WIFI name information and the binary number corresponding to the length value of the target password information are bitwise ANDed to obtain the result.
[0170] Sort all ASCII characters in order according to their decimal numbers to form the first decryption end list.
[0171] Using the decimal number corresponding to the calculation result as a random seed, all ASCII characters in another list that is the same as the first decryption end list are randomized to obtain the second decryption end list.
[0172] When the target WIFI name information is unencrypted and the target password information is encrypted, the target password information is decrypted according to the first decryption terminal list and the second decryption terminal list to obtain the target password, and the target WIFI name information is used as the target WIFI name; or, when both the target WIFI name information and the target password information are encrypted, the target WIFI name information and the target password information are decrypted according to the first decryption terminal list and the second decryption terminal list respectively to obtain the target WIFI name and the target password.
[0173] In some embodiments, when the scanned specified format WIFI name contains a first specified format WIFI name and a second specified format WIFI name emitted by the same network-connected home appliance, the processing module 310 processes the specified format WIFI name to obtain a target WIFI name and a target password for the target WIFI name, which is configured as follows:
[0174] Extract the first target WIFI name information and the first target password information from the sequentially arranged start character, first target WIFI name information, separator, first target password information and end character contained in the first specified format WIFI name;
[0175] Extract the second target WIFI name information and the second target password information from the sequentially arranged start character, second target WIFI name information, separator, second target password information and end character contained in the second specified format WIFI name;
[0176] When the first target WIFI name information and the second target password information are the same, the target WIFI name and the target password are obtained by processing based on the second target WIFI name information and the first target password information;
[0177] When the second target WIFI name information and the first target password information are the same, the target WIFI name and the target password are obtained by processing based on the first target WIFI name information and the second target password information;
[0178] Wherein, the sum of the lengths of the target WIFI name and the target password exceeds the set length, the sum of the lengths of the first target WIFI name information and the first target password information does not exceed the set length, and the sum of the lengths of the second target WIFI name information and the second target password information does not exceed the set length.
[0179] Optionally, the above modules can be stored in the form of software or firmware. Figure 1 The memory shown is either stored in or embedded in the operating system (OS) of the electronic device, and can be... Figure 1 The processor executes the commands. Meanwhile, the data and program code required to execute these modules can be stored in memory.
[0180] To perform the corresponding steps in the embodiments and various possible methods of the above-described home appliance network distribution method applied to network-connected home appliances, an implementation of a home appliance network distribution device applied to network-connected home appliances is given below. Optionally, this home appliance network distribution device can adopt the above-described... Figure 1The device structure of the electronic device shown is illustrated. It should be noted that the basic principle and technical effects of the home appliance network distribution device for network-connected home appliances provided in this embodiment are the same as those in the above-described embodiments of the home appliance network distribution method for network-connected home appliances. For the sake of brevity, any parts not mentioned in this embodiment can be referred to the corresponding content in the above embodiments. The home appliance network distribution device for network-connected home appliances includes:
[0181] The sending module is configured to: send a WIFI name in a specified format; the specified WIFI name is used to be received by the device to be networked and to trigger the home appliance network configuration device configured in the device to be networked to establish a connection with the target WIFI based on the specified WIFI name; wherein, the home appliance network configuration device in the device to be networked is the aforementioned home appliance network configuration device 300.
[0182] In some embodiments, the specified format WIFI name includes a start character, target WIFI name information, a separator, target password information, and an end character connected in sequence; and the sum of the lengths of the target WIFI name information and the target password information does not exceed a set length. When the sum of the lengths of the target WIFI name and the target password exceeds the set length, the home appliance network configuration device applied to already connected home appliances may further include a WIFI name generation module; the WIFI name generation module is configured to:
[0183] The start character, the information corresponding to the target WIFI name, the separator, the set interconnection guide character, and the end character are sequentially connected to form a first specified format WIFI name; wherein, the sum of the lengths of the information corresponding to the target WIFI name and the interconnection guide character does not exceed the set length;
[0184] The start character, the interconnection guide character, the separator, the information corresponding to the target password, and the end character are sequentially connected to form a second specified format WIFI name; wherein the sum of the lengths of the information corresponding to the target password and the interconnection guide character does not exceed the set length.
[0185] Correspondingly, the process of the sending module sending a WIFI name in a specified format is configured to send the first WIFI name in a specified format and the second WIFI name in a specified format.
[0186] In some embodiments, the specified formatted Wi-Fi name includes a start character, target Wi-Fi name information, a separator, target password information, and an end character, connected in sequence. Correspondingly, the home appliance network configuration device applied to already connected home appliances may further include an encryption module, which is configured to:
[0187] Before the sending module sends out the WIFI name in the specified format, the binary number corresponding to the length value of the target WIFI name and the binary number corresponding to the length value of the target password are bitwise ANDed to obtain the result.
[0188] Sort all ASCII characters in order according to their corresponding decimal numbers to form the first encryption end list.
[0189] Using the decimal number corresponding to the calculation result as a random seed, all ASCII characters in another list that is the same as the first encryption end list are randomized to obtain the second encryption end list;
[0190] The target WIFI name and the target password are encrypted according to the first encryption terminal list and the second encryption terminal list respectively to obtain the target WIFI name information and the target password information; or, the target password is encrypted according to the first encryption terminal list and the second encryption terminal list to obtain the target password information, and the target WIFI name is used as the target WIFI name information.
[0191] The start character, the target WIFI name information, the separator, the target password information, and the end character are sequentially concatenated to form the WIFI name in the specified format.
[0192] Optionally, the modules included in the aforementioned appliance distribution network device applied to already connected home appliances can be stored in the form of software or firmware. Figure 1 The memory shown is either stored in or embedded in the operating system (OS) of the electronic device, and can be... Figure 1 The processor executes the commands. Meanwhile, the data and program code required to execute these modules can be stored in memory.
[0193] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0194] In addition, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0195] If the aforementioned functions are implemented as software functional modules 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 invention, essentially, 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 invention. 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.
[0196] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for home appliance network distribution, characterized in that, Applied to devices to be configured on a network, the method includes: When a Wi-Fi name in a specified format is detected, the specified format Wi-Fi name is processed to obtain the target Wi-Fi name and the target password of the target Wi-Fi name; Establish a connection with the target Wi-Fi network corresponding to the target Wi-Fi network name based on the target Wi-Fi name and the target password; The specified format WIFI name includes target WIFI name information and target password information; the specified format WIFI name is issued by a home appliance that has been connected to the network.
2. The method according to claim 1, characterized in that, The specified format WIFI name is sent periodically or in real time by the network-connected home appliances, or it is sent after the network configuration auxiliary button configured on the network-connected home appliances is triggered. And / or, The specified format WIFI name includes, in sequence, a start character, target WIFI name information, a separator, target password information, and an end character; Before scanning for a Wi-Fi name in the specified format, the method further includes: When multiple WIFI names are detected, candidate WIFI names that begin with the start character, end with the end character, and contain the separator are determined from the multiple WIFI names; The specified format WIFI name is determined based on the candidate WIFI names.
3. The method according to claim 2, characterized in that, When multiple candidate WIFI names exist, the step of determining the specified format WIFI name based on the candidate WIFI names includes: Obtain the signal strength corresponding to each of the candidate WIFI names; The candidate WIFI name with the strongest signal strength will be used as the WIFI name in the specified format. or, When multiple candidate WIFI names exist, the step of determining the specified format WIFI name based on the candidate WIFI names includes: A prompt message is sent to each of the candidate WIFI names and the corresponding network-connected home appliances; the prompt message is used to trigger the corresponding network-connected home appliances to enter the network configuration indication state, so as to prompt the user the candidate WIFI name that the device to be configured is about to connect to; When a network configuration instruction is received from a user through the network-connected home appliance, the candidate WIFI name corresponding to the network configuration instruction is used as the WIFI name in the specified format.
4. The method according to claim 1, characterized in that, The target WIFI name information is unencrypted and the target password information is encrypted, or both the target WIFI name information and the target password information are encrypted. The step of processing the specified format WIFI name to obtain the target WIFI name and the target password of the target WIFI name includes: The specified format WIFI name is split to obtain the target WIFI name information and the target password information; The binary number corresponding to the length value of the target WIFI name information and the binary number corresponding to the length value of the target password information are bitwise ANDed to obtain the result. Sort all ASCII characters in order according to their decimal numbers to form the first decryption end list. Using the decimal number corresponding to the calculation result as a random seed, all ASCII characters in another list that is the same as the first decryption end list are randomized to obtain the second decryption end list. When the target WIFI name information is unencrypted and the target password information is encrypted, the target password information is decrypted according to the first decryption terminal list and the second decryption terminal list to obtain the target password, and the target WIFI name information is used as the target WIFI name; or, when both the target WIFI name information and the target password information are encrypted, the target WIFI name information and the target password information are decrypted according to the first decryption terminal list and the second decryption terminal list respectively to obtain the target WIFI name and the target password.
5. The home appliance network distribution method according to claim 1, characterized in that, When the scanned specified format WIFI name contains a first specified format WIFI name and a second specified format WIFI name emitted by the same network-connected home appliance, the step of processing the specified format WIFI name to obtain the target WIFI name and the target password of the target WIFI name includes: Extract the first target WIFI name information and the first target password information from the sequentially arranged start character, first target WIFI name information, separator, first target password information and end character contained in the first specified format WIFI name; Extract the second target WIFI name information and the second target password information from the sequentially arranged start character, second target WIFI name information, separator, second target password information and end character contained in the second specified format WIFI name; When the first target WIFI name information and the second target password information are the same, the target WIFI name and the target password are obtained by processing based on the second target WIFI name information and the first target password information; When the second target WIFI name information and the first target password information are the same, the target WIFI name and the target password are obtained by processing based on the first target WIFI name information and the second target password information; Wherein, the sum of the lengths of the target WIFI name and the target password exceeds the set length, the sum of the lengths of the first target WIFI name information and the first target password information does not exceed the set length, and the sum of the lengths of the second target WIFI name information and the second target password information does not exceed the set length.
6. A method for home appliance network distribution, characterized in that, Applied to network-connected home appliances, the method includes: Send a specified format WIFI name; the specified format WIFI name is used to be received by the device to be networked and to trigger the device to be networked to establish a connection with the target WIFI based on the specified format WIFI name through the home appliance network configuration method of any one of claims 1 to 5.
7. The method according to claim 6, characterized in that, The specified format WIFI name includes a start character, target WIFI name information, separator, target password information, and end character connected in sequence; and the sum of the lengths of the target WIFI name information and the target password information does not exceed the set length; When the sum of the lengths of the target Wi-Fi name and the target password exceeds a set length, the method further includes: The start character, the information corresponding to the target WIFI name, the separator, the set interconnection guide character, and the end character are sequentially connected to form a first specified format WIFI name; wherein, the sum of the lengths of the information corresponding to the target WIFI name and the interconnection guide character does not exceed the set length; The start character, the interconnection guide character, the separator, the information corresponding to the target password, and the end character are sequentially concatenated to form a second specified format WIFI name; wherein the sum of the lengths of the information corresponding to the target password and the interconnection guide character does not exceed the set length; The step of sending a WIFI name in a specified format includes: Send the first specified format WIFI name and the second specified format WIFI name.
8. The method according to claim 6, characterized in that, The specified format WIFI name includes, in sequence, a start character, target WIFI name information, a separator, target password information, and an end character; Prior to the step of issuing a Wi-Fi name in a specified format, the method further includes: Perform a bitwise AND operation between the binary number corresponding to the length value of the target WIFI name and the binary number corresponding to the length value of the target password to obtain the result. Sort all ASCII characters in order according to their decimal values to form the first encryption end list. Using the decimal number corresponding to the calculation result as a random seed, all ASCII characters in another list that is the same as the first encryption end list are randomized to obtain the second encryption end list; The target WIFI name and the target password are encrypted according to the first encryption terminal list and the second encryption terminal list respectively to obtain the target WIFI name information and the target password information; or, the target password is encrypted according to the first encryption terminal list and the second encryption terminal list to obtain the target password information, and the target WIFI name is used as the target WIFI name information. The start character, the target WIFI name information, the separator, the target password information, and the end character are sequentially concatenated to form the WIFI name in the specified format.
9. A home appliance network distribution device, characterized in that, The device is applied to equipment to be distributed in a network and includes: The processing module is configured to: when a WIFI name of a specified format is detected, process the WIFI name of the specified format to obtain the target WIFI name and the target password of the target WIFI name; The communication module is configured to: establish a connection with the target WIFI corresponding to the target WIFI name based on the target WIFI name and the target password; The specified format WIFI name includes target WIFI name information and target password information; the specified format WIFI name is issued by a home appliance that has been connected to the network.
10. A home appliance network distribution device, characterized in that, The device is applied to already networked home appliances and includes: The sending module is configured to: send a WIFI name in a specified format; the specified WIFI name is used to be received by the device to be networked and to trigger the home appliance network configuration device configured in the device to be networked to establish a connection with the target WIFI based on the specified WIFI name; wherein, the home appliance network configuration device in the device to be networked is the home appliance network configuration device as described in claim 9.