Network distribution method and device of equipment, equipment and storage medium
By receiving the activation of the wireless access point of the target voice control device and generating the target key, the problem of high complexity in device network configuration is solved, and an efficient network configuration experience without the need for buttons or remote controls is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GREE ELECTRIC APPLIANCE INC OF ZHUHAI
- Filing Date
- 2023-08-08
- Publication Date
- 2026-05-12
AI Technical Summary
The existing equipment configuration process requires operation via buttons or remote control, which increases the complexity of configuration as the equipment becomes more intelligent, resulting in a poor user experience.
By receiving the wireless access point of the target voice control device, the target key is generated and played, enabling the terminal to obtain the key to connect to the device and receive the network configuration information sent by the terminal to perform network configuration operations, thus avoiding the use of buttons or remote controls.
实现了无需按键或遥控器即可进行设备配网,提高了配网效率和用户体验。
Smart Images

Figure CN116962110B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of equipment distribution network technology, and in particular to a method, apparatus, device and storage medium for equipment distribution network. Background Technology
[0002] With the continuous development of the Internet of Things (IoT), the penetration rate of smart homes is steadily increasing. As an indispensable part of smart homes, network configuration, including its complexity, success rate, smoothness, and efficiency, significantly impacts the overall user experience. Currently, the mainstream network configuration method typically involves controlling devices via remote control or specific buttons on the device.
[0003] Existing devices are becoming increasingly intelligent, with fewer or no buttons, and some devices are positioned as purely intelligent, even eliminating the need for remote controls. Therefore, how to control devices and configure networks without using buttons or remote controls has become an urgent problem to be solved. Summary of the Invention
[0004] In view of this, in order to solve the above-mentioned technical problem of network distribution without hardware control equipment, the present invention provides a network distribution method, apparatus, device and storage medium for a device.
[0005] In a first aspect, embodiments of the present invention provide a network distribution method for a device, comprising:
[0006] When the target voice is received, the wireless access point of the device is turned on.
[0007] Control the device to generate the target key for the wireless access point;
[0008] The device is controlled to play the target key, so that the terminal corresponding to the device obtains the target key, and the terminal connects to the device through the target key and the wireless access point;
[0009] Receive network distribution information sent by the terminal, and perform network distribution operations according to the network distribution information.
[0010] In one possible implementation, controlling the device to generate the target key for the wireless access point includes:
[0011] Obtain the target address and unique identifier of the device;
[0012] Control the device to generate a random code corresponding to the target key;
[0013] Generate an initial key from the target address, the unique identifier, and the random code;
[0014] The target amount of data is extracted from the preset position of the initial key as the target key.
[0015] In one possible implementation, controlling the device to generate the random code corresponding to the target key includes:
[0016] Control the device to generate a first random code corresponding to the target key, and control the device to play the first random code;
[0017] When the device successfully connects to the terminal within a preset time period, the playback of the first random code stops.
[0018] Alternatively, if the device fails to connect to the terminal within a preset time period, the device is controlled to generate a second random code corresponding to the target key, and the device is controlled to play the second random code.
[0019] In one possible implementation, controlling the device's wireless access point to activate upon receiving target voice includes:
[0020] When the target voice is received, identify whether the target voice contains the target wake-up word of the device;
[0021] When the target wake word is included, identify whether the target speech contains the target instruction of the device;
[0022] When the target instruction is included, the wireless access point is controlled to be turned on according to the target instruction.
[0023] Secondly, embodiments of the present invention provide a network distribution method for a device, comprising:
[0024] Scan the barcode of the device to obtain the target address;
[0025] Obtain the random code played by the device corresponding to the terminal;
[0026] Obtain the unique identifier corresponding to the target address from the server;
[0027] Generate an initial key from the target address, the unique identifier, and the random code;
[0028] Obtain the preset location and target quantity corresponding to the initial key.
[0029] Extract the target amount of data from the preset position of the initial key as the target key;
[0030] Connect to the device using the target key.
[0031] In one possible implementation, when the device includes a first device and a second device, the method further includes:
[0032] Obtain the first address of the first device, and obtain the second address of the second device;
[0033] When a key is received and the key contains data from the first address, the key is determined to be the target key corresponding to the first device.
[0034] When a key is received and the key contains data from the second address, the key is determined to be the target key corresponding to the second device.
[0035] In one possible implementation, when the device includes a first device and a second device, the method further includes:
[0036] Obtain the first unique identifier corresponding to the target address of the first device from the server, and obtain the second unique identifier corresponding to the target address of the second device from the server;
[0037] When a key is received and the key contains data from the first unique identifier, the key is determined to be the target key corresponding to the first device.
[0038] When a key is received, and the key contains data from the second unique identifier, the key is determined to be the target key corresponding to the second device.
[0039] Thirdly, embodiments of the present invention provide a network distribution device for a device, comprising:
[0040] The control module is used to control the wireless access point of the device to be turned on when the target voice is received;
[0041] The control module is also used to control the device to generate the target key for the wireless access point;
[0042] The control module is further configured to control the device to play the target key, so that the terminal corresponding to the device can obtain the target key, so that the terminal can connect to the device through the target key and the wireless access point;
[0043] The distribution network module is used to receive distribution network information sent by the terminal, so as to perform distribution network operations according to the distribution network information.
[0044] Fourthly, embodiments of the present invention provide a device, including: a processor and a memory, wherein the processor is configured to execute a device network configuration program stored in the memory to implement the device network configuration method described in any one of the first or second aspects above.
[0045] Fifthly, embodiments of the present invention provide a storage medium storing one or more programs, which can be executed by one or more processors to implement the network distribution method of the device described in any one of the first or second aspects.
[0046] The network configuration scheme provided in this embodiment of the invention controls the device's wireless access point to activate upon receiving a target voice message; controls the device to generate a target key for the wireless access point; controls the device to play the target key so that the corresponding terminal obtains the target key, enabling the terminal to connect to the device via the target key and the wireless access point; and receives network configuration information sent by the terminal to perform network configuration operations based on the network configuration information. Therefore, the device can perform network configuration via a terminal while in a network configuration standby state, eliminating the need for buttons or remote controls, thus reducing the need for buttons and remote controls, improving network configuration efficiency and user experience. Attached Figure Description
[0047] Figure 1 A schematic flowchart illustrating a network distribution method for a device provided in an embodiment of the present invention;
[0048] Figure 2 A schematic flowchart illustrating another network distribution method for a device provided in an embodiment of the present invention;
[0049] Figure 3 A schematic flowchart illustrating another method for network distribution using a device provided in an embodiment of the present invention;
[0050] Figure 4 This is a schematic diagram of the structure of a distribution network device for an embodiment of the present invention;
[0051] Figure 5 This is a schematic diagram of the structure of a device provided in an embodiment of the present invention. Detailed Implementation
[0052] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, 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, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0053] To facilitate understanding of the embodiments of the present invention, further explanations and descriptions will be provided below with reference to the accompanying drawings and specific embodiments. These embodiments do not constitute a limitation on the embodiments of the present invention.
[0054] Figure 1 This is a flowchart illustrating a network distribution method for a device provided in an embodiment of the present invention, as shown below. Figure 1 As shown, the method specifically includes:
[0055] S11. When the target voice is received, control the wireless access point of the device to turn on.
[0056] The device configuration method provided in this embodiment of the invention is applied to smart home devices that require network configuration. These smart home devices may include, but are not limited to, smart air conditioners, smart speakers, smart refrigerators, etc. Specifically, the device plays a target key to establish a connection between the terminal and the device, and the device receives the terminal's configuration information and performs the configuration operation.
[0057] In this embodiment, when the device is in the powered-on state, it will acquire voice in real time. When the target voice is acquired, the device’s wireless access point will be turned on according to the control command contained in the target voice. The target voice contains a pre-set special wake-up word (for example, the special wake-up word is “special command”, and the control command “start network configuration” can be added after the “special command”). The wireless access point may include, but is not limited to, a Wi-Fi or Bluetooth hotspot emitted by the device.
[0058] S12. Control the device to generate the target key for the wireless access point.
[0059] In this embodiment, the target key is used to connect to the device's wireless access point. The generation method can be that the device randomly generates a key of a preset number of bits. This key can contain letters, numbers, etc., and is not specifically limited in this embodiment. Alternatively, according to a preset generation method, multiple strings related to the device can be obtained, and the strings can be combined to obtain the target key. The strings can include, but are not limited to, the device's MAC address, the device-generated random code nonce, the device's unique identifier code UUID, etc. One or more characters can be extracted from the strings to generate the target key.
[0060] S13. Control the device to play the target key so that the terminal corresponding to the device can obtain the target key, so that the terminal can connect to the device through the target key and the wireless access point.
[0061] In this embodiment, the control device generates an audio file from the target key, and the voice playback device (e.g., speaker, audio device, etc.) plays the audio file corresponding to the target key. During the playback, the device receives the operation of an external terminal (e.g., mobile phone, tablet computer, etc.) connecting to the wireless access point and determines whether the key sent by the terminal requesting the connection is consistent with the target key.
[0062] During the playback of an audio file by the device, terminals within a preset range around the device can acquire the audio file through a voice acquisition device (e.g., a microphone) and convert the audio file into text, thereby obtaining the target key.
[0063] When the terminal is not within the preset range and cannot obtain the audio file, or when the obtained audio file is incorrect and causes the connection to the wireless access point to fail, the target key can be directly entered on the terminal. After obtaining the target key, the terminal searches for a wireless access point that can be connected and connects to the device according to the target key.
[0064] S14. Receive the network distribution information sent by the terminal, and perform network distribution operation according to the network distribution information.
[0065] In this embodiment, after the device connects to the terminal, it receives the network configuration information of the terminal connection. The network configuration information includes, but is not limited to, the Wi-Fi account, password, server information, user information on the server, etc. The device establishes a connection with Wi-Fi through the network configuration information, and then registers itself with the server, thus completing the network configuration.
[0066] The device configuration method provided in this embodiment of the invention involves: upon receiving a target voice message, controlling the device to activate its wireless access point; controlling the device to generate a target key for the wireless access point; controlling the device to play the target key so that the terminal corresponding to the device can acquire the target key, enabling the terminal to connect to the device via the target key and the wireless access point; and receiving configuration information sent by the terminal to perform configuration operations based on the configuration information. This allows the device to perform configuration via a terminal while in a configuration-ready state, eliminating the need for buttons or remote controls, thus reducing the need for buttons and remote controls, improving configuration efficiency and user experience.
[0067] Figure 2 A schematic flowchart of another network distribution method for a device provided in an embodiment of the present invention is shown below. Figure 2 As shown, the method specifically includes:
[0068] S21. When the target voice is received, identify whether the target voice contains the target wake-up word of the device; if the target wake-up word is contained, identify whether the target voice contains the target instruction of the device; if the target instruction is contained, control the wireless access point to turn on according to the target instruction.
[0069] In this embodiment, the device's voice recognition function is pre-trained to add offline wake-up words and offline voice commands, enabling the addition of corresponding offline voice commands to complete some voice operations without a network connection. Special wake-up words and network configuration offline voice commands can be trained. For example, the general wake-up word might be the device name, while a special wake-up word might be "special command." Only special commands can be used after a special wake-up word, which might include phrases like "device reset," "user information reset," and "start network configuration."
[0070] The target wake-up word is a special wake-up word pre-trained by the device, and the target instruction is a network configuration instruction pre-trained by the device. The target instruction can only be executed when the target wake-up word is recognized and is followed by the target instruction. When the device receives the target voice sent by the user, it recognizes that the target voice contains the target wake-up word, and further recognizes whether the target wake-up word is followed by the target instruction. When the target instruction is included, the device is controlled to enter the network configuration mode according to the target instruction, and the wireless access point is turned on in the network configuration mode.
[0071] S22. Obtain the target address and unique identification code of the device; control the device to generate a random code corresponding to the target key; generate an initial key from the target address, the unique identification code and the random code; extract a target number of data from a preset position of the initial key as the target key.
[0072] In this embodiment, the device's own MAC address is obtained as the target address, and the unique identifier corresponding to the MAC address, such as a Universally Unique Identifier (UUID), and a random code generated by the control device (e.g., a nonce random code) are obtained. The target address, unique identifier, and random code are used to generate an initial key according to a pre-set format or arrangement order. Since the generated initial key is too long, a preset target amount of data is extracted from a preset position of the initial key to obtain the target key (e.g., the initial key is obtained by combining MAC, nonce, and UUID, and the third to ninth characters are extracted as the target key).
[0073] As an example, each device has its own MAC address, which can be obtained by scanning the QR code on the device or by entering it manually. The device generates a UUID corresponding to the MAC address. During network configuration, the device knows its own MAC address and UUID, adds a randomly generated nonce, and performs digital digest processing to generate a hash code. For example, using MD5 as the hash code, the hash code is MD5(mac+nonce+uuid). The last 16 bits of the generated hash code are used as the target key for the connection between the terminal app and the device.
[0074] S23. Control the device to play a random code so that the terminal corresponding to the device can scan the device's barcode to obtain the target address; obtain the random code played by the device; obtain the unique identification code corresponding to the target address from the server, as well as the preset position and target quantity; generate an initial key from the target address, unique identification code and random code; extract the target quantity data from the preset position of the initial key as the target key.
[0075] In this embodiment, the voice playback device of the control device broadcasts the random code in plaintext, so that the terminal can receive and recognize the random code through the voice recognition device, or after the user hears the random code, the terminal receives the user's input of the random code to obtain the random code. The terminal scans the QR code or barcode on the device to obtain the target address. After the device generates a unique identification code, it sends it to the server and stores the unique identification code and the target address in correspondence, and sets the corresponding preset position and target quantity. After obtaining the target address, the terminal can obtain the unique identification code, preset position and target quantity corresponding to the target address from the server, and generate an initial key by combining the target address, unique identification code and random code in a preset combination method. The target number of characters are extracted from the preset position of the initial key as the target key.
[0076] As an example, the terminal's App obtains the MAC address by scanning a QR code and the nonce by listening to a broadcast. The App then requests the IoT server backend, sends the MAC address to obtain the corresponding UUID, performs a digital digest in the same way as the device generates the target key (i.e., generates a hash code), obtains the last 16 characters to obtain the target key, and establishes a connection with the device.
[0077] In one possible implementation, the control device generates a first random code corresponding to the target key, and the control device plays the first random code; when the device successfully connects to the terminal within a preset time period, the playback of the first random code stops.
[0078] When the device randomly generates the first random code, the voice playback device of the control device plays the first random code in a loop. During the playback, it receives connection requests from the terminal. When the key entered by the terminal matches the target key, it means that the terminal has received the correct first random code, and the device and the terminal are successfully connected. At this time, the device stops playing the first random code.
[0079] In one possible implementation, when the device fails to connect to the terminal within a preset time period, the control device generates a second random code corresponding to the target key, and the control device plays the second random code.
[0080] When the device plays the first random code for a preset duration and the device and terminal have not yet successfully connected, the device is controlled to regenerate the second random code corresponding to the target key, play the second random code, and repeat the steps to determine if the device and terminal have successfully connected within the preset duration.
[0081] In one possible implementation, when the device includes a first device and a second device, the terminal obtains a first address of the first device and a second address of the second device; when the terminal receives a key and the key contains data in the first address, the key is determined to be a target key corresponding to the first device; when the terminal receives a key and the key contains data in the second address, the key is determined to be a target key corresponding to the second device.
[0082] Specifically, when multiple devices are present, the terminal, after obtaining the target key, cannot determine which device's key it belongs to. The terminal sequentially obtains the target address of the first device as the first address and the target address of the second device as the second address via scanning. It then determines whether the received key contains data from the first address or the second address. If the key contains data from the first address, it is determined to be the target key for the first device; if the key contains data from the second address, it is determined to be the target key for the second device. This allows for the rapid identification of the device requiring network configuration when multiple devices are present.
[0083] In one possible scenario, when the device includes a first device and a second device, the terminal obtains a first unique identifier corresponding to the target address of the first device from the server, and obtains a second unique identifier corresponding to the target address of the second device from the server. When the terminal receives a key and the key contains data from the first unique identifier, the terminal determines that the key is the target key corresponding to the first device; when the terminal receives a key and the key contains data from the second unique identifier, the terminal determines that the key is the target key corresponding to the second device.
[0084] S24. Receive the network distribution information sent by the terminal, and perform network distribution operation according to the network distribution information.
[0085] In this embodiment, the process is similar to step S1; please refer to the following for details. Figure 1 The relevant descriptions are presented concisely and will not be elaborated upon here.
[0086] As an example, such as Figure 3 The diagram shown is a schematic flowchart of another network distribution method provided by an embodiment of the present invention. Figure 3 As shown, the method specifically includes:
[0087] Pre-train the device to add special wake-up words and offline voice network configuration commands. For example, the general wake-up word is the device name, while the special wake-up word may be "special command". A network configuration command, such as "start network configuration", can be followed by the special wake-up word.
[0088] Users wake up offline devices using a special wake-up word and initiate network configuration using preset commands such as "Start Network Configuration". If the device has already been configured and needs reconfiguration, the online or offline voice command "Reconfigure Network" can be used to put the device back into network configuration mode.
[0089] If the Wi-Fi or Bluetooth hotspot emitted by the device is not encrypted, it may be vulnerable to being accessed by others. Therefore, the device first randomly generates an 8-16 character password for its own hotspot, consisting of numbers and lowercase letters. The voice prompts for each character of the password have been pre-recorded in the offline voice function, so the voice device will then repeatedly announce the random password. The password can be entered by the user into the terminal app, or confirmed through voice recognition within the app.
[0090] When the app enters network configuration mode, it first searches for a list of nearby devices and selects the target device to release the hotspot. The app then turns on its microphone and obtains a random network configuration password through voice recognition. If this step fails to recognize or receive the voice, the app can prompt the user to enter the password manually. The app then verifies and pairs with the device's hotspot using the password to establish communication.
[0091] After establishing communication, the app sends the Wi-Fi account, password, server information, and family information on the server to the device. The device first establishes a connection with the Wi-Fi and registers itself with the server. At this point, the new device is successfully configured to the network.
[0092] The device configuration method provided in this embodiment of the invention involves: when a target voice message containing a target wake-up word is received, identifying whether the target voice message contains a target command; if a target command is included, controlling the wireless access point to open according to the target command; obtaining the target address and unique identification code of the device; controlling the device to generate a random code corresponding to the target key; generating an initial key from the target address, unique identification code, and random code; extracting a target quantity of data from a preset position of the initial key as the target key; controlling the device to play the random code so that the terminal corresponding to the device can scan the device's barcode to obtain the target address; obtaining the random code played by the device; obtaining the unique identification code corresponding to the target address from the server, as well as obtaining the preset position and target quantity; generating an initial key from the target address, unique identification code, and random code; extracting a target quantity of data from the preset position of the initial key as the target key; and receiving configuration information sent by the terminal to perform configuration operations according to the configuration information. Therefore, the device, in a state awaiting configuration, can initiate the configuration process and begin configuration through a target wake-up word and target command, helping to eliminate the need for buttons on voice devices. Configuration can be performed without hardware operations such as remote control buttons, simplifying the configuration process and improving configuration efficiency and user experience.
[0093] Figure 3This is a schematic diagram of the structure of a distribution network device provided in an embodiment of the present invention, as shown below. Figure 3 As shown, the structure specifically includes:
[0094] Control module 31 is used to control the wireless access point of the device to turn on when the target voice is received;
[0095] The control module is also used to control the device to generate the target key for the wireless access point;
[0096] The control module is further configured to control the device to play the target key, so that the terminal corresponding to the device can obtain the target key, so that the terminal can connect to the device through the target key and the wireless access point;
[0097] The distribution network module 32 is used to receive the distribution network information sent by the terminal, so as to perform distribution network operation according to the distribution network information.
[0098] In one possible implementation, the scanning module 33 is used by the terminal corresponding to the device to scan the barcode of the device to obtain the target address;
[0099] The acquisition module 34 is used to acquire the random code played by the device;
[0100] Obtain the unique identifier corresponding to the target address from the server, as well as the preset location and the target quantity;
[0101] Generation module 35 is used to generate an initial key from the target address, the unique identification code and the random code;
[0102] The target amount of data is extracted from the preset position of the initial key as the target key.
[0103] In one possible implementation, the control module is specifically used to control the device to generate a first random code corresponding to the target key, and to control the device to play the first random code;
[0104] When the device successfully connects to the terminal within a preset time period, the playback of the first random code stops.
[0105] Alternatively, if the device fails to connect to the terminal within a preset time period, the device is controlled to generate a second random code corresponding to the target key, and the device is controlled to play the second random code.
[0106] In one possible implementation, the recognition module 36 is configured to, when the target voice is received, recognize whether the target voice contains the target wake-up word of the device;
[0107] When the target wake word is included, identify whether the target speech contains the target instruction of the device;
[0108] The control module is specifically used to control the wireless access point to turn on according to the target instruction when the target instruction is included.
[0109] In one possible implementation, the acquisition module is specifically used to acquire a first address of the first device and a second address of the second device;
[0110] The determining module 37 is used to determine that the key is the target key corresponding to the first device when the terminal receives the key and the key contains the data in the first address;
[0111] When the terminal receives a key, and the key contains data from the second address, the key is determined to be the target key corresponding to the second device.
[0112] In one possible implementation, the acquisition module is specifically configured to acquire a first unique identifier corresponding to the target address of the first device from the server, and acquire a second unique identifier corresponding to the target address of the second device from the server.
[0113] The determining module is specifically used to determine that the key is the target key corresponding to the first device when the terminal receives the key and the key contains data from the first unique identification code;
[0114] When the terminal receives a key, and the key contains data from the second unique identifier, the key is determined to be the target key corresponding to the second device.
[0115] The network distribution device of the equipment provided in the embodiments of the present invention can be as follows: Figure 3 The network distribution device shown can perform the following functions: Figure 1-3 All steps of the network distribution method for the equipment in the middle, thereby realizing Figure 1-3 For details on the technical effects of the network distribution method shown, please refer to [link / reference needed]. Figure 1-3 The relevant descriptions are presented concisely and will not be elaborated upon here.
[0116] Figure 5 This is a schematic diagram of the structure of a device provided in an embodiment of the present invention. Figure 5The illustrated device 500 includes at least one processor 501, a memory 502, at least one network interface 504, and other user interfaces 503. The various components in device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to implement communication between these components. In addition to a data bus, the bus system 505 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 5 The general designated all buses as Bus System 505.
[0117] The user interface 503 may include a display, keyboard, or clicking device (e.g., mouse, trackball, touchpad, or touchscreen).
[0118] It is understood that the memory 502 in the embodiments of the present invention can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0119] In some implementations, memory 502 stores elements, executable units or data structures, or subsets thereof, or extended sets thereof: operating system 5021 and application program 5022.
[0120] The operating system 5021 includes various system programs, such as the framework layer, core library layer, and driver layer, used to implement various basic business functions and handle hardware-based tasks. The application program 5022 includes various applications, such as a media player and a browser, used to implement various application functions. The program implementing the method of this embodiment can be included in the application program 5022.
[0121] In this embodiment of the invention, by calling the program or instructions stored in memory 502, specifically the program or instructions stored in application program 5022, processor 501 executes the method steps provided in each method embodiment, including, for example:
[0122] When the target voice is received, the wireless access point of the device is turned on.
[0123] Control the device to generate the target key for the wireless access point;
[0124] The device is controlled to play the target key, so that the terminal corresponding to the device obtains the target key, and the terminal connects to the device through the target key and the wireless access point;
[0125] Receive network distribution information sent by the terminal, and perform network distribution operations according to the network distribution information.
[0126] In one possible implementation, the target address and unique identifier of the device are obtained;
[0127] Control the device to generate a random code corresponding to the target key;
[0128] Generate an initial key from the target address, the unique identifier, and the random code;
[0129] The target amount of data is extracted from the preset position of the initial key as the target key.
[0130] In one possible implementation, the device is controlled to generate a first random code corresponding to the target key, and the device is controlled to play the first random code.
[0131] When the device successfully connects to the terminal within a preset time period, the playback of the first random code stops.
[0132] Alternatively, if the device fails to connect to the terminal within a preset time period, the device is controlled to generate a second random code corresponding to the target key, and the device is controlled to play the second random code.
[0133] In one possible implementation, when the target voice is received, it is identified whether the target voice contains the target wake-up word of the device;
[0134] When the target wake word is included, identify whether the target speech contains the target instruction of the device;
[0135] When the target instruction is included, the wireless access point is controlled to be turned on according to the target instruction.
[0136] In one possible implementation, the target address is obtained by scanning the device's barcode;
[0137] Obtain the random code played by the device corresponding to the terminal;
[0138] Obtain the unique identifier corresponding to the target address from the server;
[0139] Generate an initial key from the target address, the unique identifier, and the random code;
[0140] Obtain the preset location and target quantity corresponding to the initial key.
[0141] Extract the target amount of data from the preset position of the initial key as the target key;
[0142] Connect to the device using the target key.
[0143] In one possible implementation, a first address of the first device is obtained, and a second address of the second device is obtained;
[0144] When a key is received and the key contains data from the first address, the key is determined to be the target key corresponding to the first device.
[0145] When a key is received and the key contains data from the second address, the key is determined to be the target key corresponding to the second device.
[0146] In one possible implementation, a first unique identifier corresponding to the target address of the first device is obtained from the server, and a second unique identifier corresponding to the target address of the second device is obtained from the server.
[0147] When a key is received and the key contains data from the first unique identifier, the key is determined to be the target key corresponding to the first device.
[0148] When a key is received, and the key contains data from the second unique identifier, the key is determined to be the target key corresponding to the second device.
[0149] The methods disclosed in the above embodiments of the present invention can be applied to or implemented by processor 501. Processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 501 or by instructions in the form of software. The processor 501 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software units in the decoding processor. The software units may be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 502. Processor 501 reads the information in memory 502 and, in conjunction with its hardware, completes the steps of the above method.
[0150] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or combinations thereof.
[0151] For software implementation, the techniques described herein can be implemented by units that perform the functions described herein. The software code can be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
[0152] The device provided in this embodiment can be as follows: Figure 5 The device shown can perform, for example Figure 1-3 All steps of the network distribution method for the equipment in the middle, thereby realizing Figure 1-3 For details on the technical effects of the network distribution method shown, please refer to [link / reference needed]. Figure 1-3 The relevant descriptions are presented concisely and will not be elaborated upon here.
[0153] This invention also provides a storage medium (computer-readable storage medium). This storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; the memory may also include combinations of the above types of memory.
[0154] When one or more programs in the storage medium can be executed by one or more processors to implement the above-mentioned network configuration method of the device executed on the device side.
[0155] The processor is used to execute the device's network configuration program stored in the memory to implement the following steps of the device's network configuration method executed on the device side:
[0156] When the target voice is received, the wireless access point of the device is turned on.
[0157] Control the device to generate the target key for the wireless access point;
[0158] The device is controlled to play the target key, so that the terminal corresponding to the device obtains the target key, and the terminal connects to the device through the target key and the wireless access point;
[0159] Receive network distribution information sent by the terminal, and perform network distribution operations according to the network distribution information.
[0160] In one possible implementation, the target address and unique identifier of the device are obtained;
[0161] Control the device to generate a random code corresponding to the target key;
[0162] Generate an initial key from the target address, the unique identifier, and the random code;
[0163] The target amount of data is extracted from the preset position of the initial key as the target key.
[0164] In one possible implementation, the device is controlled to generate a first random code corresponding to the target key, and the device is controlled to play the first random code.
[0165] When the device successfully connects to the terminal within a preset time period, the playback of the first random code stops.
[0166] Alternatively, if the device fails to connect to the terminal within a preset time period, the device is controlled to generate a second random code corresponding to the target key, and the device is controlled to play the second random code.
[0167] In one possible implementation, when the target voice is received, it is identified whether the target voice contains the target wake-up word of the device;
[0168] When the target wake word is included, identify whether the target speech contains the target instruction of the device;
[0169] When the target instruction is included, the wireless access point is controlled to be turned on according to the target instruction.
[0170] In one possible implementation, the target address is obtained by scanning the device's barcode;
[0171] Obtain the random code played by the device corresponding to the terminal;
[0172] Obtain the unique identifier corresponding to the target address from the server;
[0173] Generate an initial key from the target address, the unique identifier, and the random code;
[0174] Obtain the preset location and target quantity corresponding to the initial key.
[0175] Extract the target amount of data from the preset position of the initial key as the target key;
[0176] Connect to the device using the target key.
[0177] In one possible implementation, a first address of the first device is obtained, and a second address of the second device is obtained;
[0178] When a key is received and the key contains data from the first address, the key is determined to be the target key corresponding to the first device.
[0179] When a key is received and the key contains data from the second address, the key is determined to be the target key corresponding to the second device.
[0180] In one possible implementation, a first unique identifier corresponding to the target address of the first device is obtained from the server, and a second unique identifier corresponding to the target address of the second device is obtained from the server.
[0181] When a key is received and the key contains data from the first unique identifier, the key is determined to be the target key corresponding to the first device.
[0182] When a key is received, and the key contains data from the second unique identifier, the key is determined to be the target key corresponding to the second device.
[0183] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0184] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0185] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. 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 distributing equipment across a network, characterized in that, include: When the target voice is received, the wireless access point of the device is turned on. Control the device to generate the target key for the wireless access point; The device is controlled to play the target key, so that the terminal corresponding to the device obtains the target key, and the terminal connects to the device through the target key and the wireless access point; Receive network distribution information sent by the terminal, and perform network distribution operations according to the network distribution information; The step of controlling the device to generate the target key for the wireless access point includes: The target address and unique identification code of the device are obtained. After the device generates a unique identification code, it sends it to the server and stores the unique identification code and the target address in correspondence. The corresponding preset location and target quantity are also set. Control the device to generate a random code corresponding to the target key; Generate an initial key from the target address, the unique identifier, and the random code; Extract a target amount of data from a preset location of the initial key as the target key; The control device plays the random code so that the terminal scans the device's barcode to obtain the target address, then obtains the unique identification code, preset position, and target quantity corresponding to the target address from the server, and generates an initial key by combining the target address, the unique identification code, and the random code in a preset combination. The target number of characters are extracted from the preset position of the initial key as the target key.
2. The method according to claim 1, characterized in that, The step of controlling the device to generate the random code corresponding to the target key includes: Control the device to generate a first random code corresponding to the target key, and control the device to play the first random code; When the device successfully connects to the terminal within a preset time period, the playback of the first random code stops. Alternatively, if the device fails to connect to the terminal within a preset time period, the device is controlled to generate a second random code corresponding to the target key, and the device is controlled to play the second random code.
3. The method according to claim 1, characterized in that, The step of controlling the device's wireless access point to turn on when the target voice is received includes: When the target voice is received, identify whether the target voice contains the target wake-up word of the device; When the target wake word is included, identify whether the target speech contains the target instruction of the device; When the target instruction is included, the wireless access point is controlled to be turned on according to the target instruction.
4. A network configuration method for a device, applied to the terminal described in claim 1, characterized in that, include: Scan the barcode of the device to obtain the target address; Obtain the random code played by the device corresponding to the terminal; Obtain the unique identifier corresponding to the target address from the server; Generate an initial key from the target address, the unique identifier, and the random code; Obtain the preset location and target quantity corresponding to the initial key. Extract the target amount of data from the preset position of the initial key as the target key; Connect to the device according to the target key. The device generates the target key in advance by: obtaining the target address and unique identification code of the device; after generating the unique identification code, the device sends it to the server and stores the unique identification code corresponding to the target address, and sets the corresponding preset location and target quantity. Control the device to generate a random code corresponding to the target key; Generate an initial key from the target address, the unique identifier, and the random code; The target amount of data is extracted from the preset position of the initial key as the target key.
5. The method according to claim 4, characterized in that, When the device includes a first device and a second device, the method further includes: Obtain the first address of the first device, and obtain the second address of the second device; When a key is received and the key contains data from the first address, the key is determined to be the target key corresponding to the first device. When a key is received and the key contains data from the second address, the key is determined to be the target key corresponding to the second device.
6. The method according to claim 5, characterized in that, When the device includes a first device and a second device, the method further includes: Obtain the first unique identifier corresponding to the target address of the first device from the server, and obtain the second unique identifier corresponding to the target address of the second device from the server; When a key is received and the key contains data from the first unique identifier, the key is determined to be the target key corresponding to the first device. When a key is received, and the key contains data from the second unique identifier, the key is determined to be the target key corresponding to the second device.
7. A distribution network device for an equipment, characterized in that, include: The control module is used to control the wireless access point of the device to be turned on when the target voice is received; The control module is also used to control the device to generate the target key for the wireless access point; The control module is further configured to control the device to play the target key, so that the terminal corresponding to the device can obtain the target key, so that the terminal can connect to the device through the target key and the wireless access point; The distribution network module is used to receive distribution network information sent by the terminal, and to perform distribution network operations according to the distribution network information; The control module is also used to obtain the target address and unique identification code of the device. After the device generates a unique identification code, it sends it to the server and stores the unique identification code in correspondence with the target address, and sets the corresponding preset position and target quantity. Control the device to generate a random code corresponding to the target key; Generate an initial key from the target address, the unique identifier, and the random code; Extract a target amount of data from a preset location of the initial key as the target key; The control device plays the random code so that the terminal scans the device's barcode to obtain the target address, then obtains the unique identification code, preset position, and target quantity corresponding to the target address from the server, and generates an initial key by combining the target address, the unique identification code, and the random code in a preset combination. The target number of characters are extracted from the preset position of the initial key as the target key.
8. A device, characterized in that, include: A processor and a memory, the processor being configured to execute a network distribution program for a device stored in the memory, to implement a network distribution method for the device according to any one of claims 1 to 3 or 4 to 6.
9. A storage medium, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the network distribution method of the device according to any one of claims 1 to 3 or 4 to 6.