Device network configuration method, mobile terminal, voice device and storage medium
By broadcasting preset wake-up audio and random audio data, the distribution process of voice equipment is simplified, the problem of cumbersome distribution steps and easy misallocation of networks in the existing technology is solved, and efficient and accurate whole-house distribution network is achieved.
Patent Information
- Application Number
- CN202211583432.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-09
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2042-12-09
AI Technical Summary
The existing whole-house distribution network distribution method has cumbersome steps and is prone to misallocation.
Wake up the voice device by broadcasting presets, and let the voice device release Bluetooth hotspots with the name containing the random number by broadcasting the random number audio data, establish a connection for distribution network.
A simplified batch distribution process is realized to prevent misallocation of networks and improve the efficiency and accuracy of distribution networks.
Smart Images

Figure CN115884318B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and in particular to a device network configuration method, a mobile terminal, a voice device and a storage medium. Background Art
[0002] Providing network configuration to devices is an essential and key link in the interconnection of IoT smart homes. The experience of network configuration process also greatly affects the overall experience of smart interconnection.
[0003] The current mainstream single-device network configuration method is: manually reset the device network configuration through a button or remote control, the device releases Bluetooth or WiFi, the smart home app searches and connects to the corresponding WiFi or Bluetooth hotspot, and sends family information and home WiFi information to the device. The mainstream batch network configuration method is: the machine automatically releases Bluetooth or WiFi hotspots after powering on, and the app uses specific Bluetooth or WiFi naming rules to establish connections with all devices that meet the naming rules and send the information required for network configuration.
[0004] However, at present, the above-mentioned network configuration method has the following problems: the whole-house network configuration generally requires the device to actively release Bluetooth or WiFi hotspots for users' mobile phones to connect and configure the network. However, because the effective distance of Bluetooth and WiFi is relatively long, after the hotspot is actively released, it may be attacked or mis-matched by the neighboring device. However, actively controlling the activation of network configuration requires processing by each device one by one, and it is impossible to complete the whole-house processing at once. Summary of the invention
[0005] The present application provides a device network configuration method, a mobile terminal, a voice device and a storage medium to solve the technical problems of the existing whole-house network configuration method, which has complicated network configuration steps and is prone to misconfiguration.
[0006] In a first aspect, the present application provides a first device network configuration method, which is applied to a mobile terminal, and the method includes:
[0007] Broadcasting a preset wake-up audio so that the voice device receives the preset wake-up audio to wake up the network configuration state;
[0008] Broadcasting random number audio data so that the voice device receives the random number audio data and releases a Bluetooth hotspot whose name contains the random number;
[0009] Establish a connection with the Bluetooth hotspot whose name contains the random number to perform network configuration.
[0010] In one embodiment, before broadcasting the random number audio data, the method further includes:
[0011] Generate random numbers;
[0012] Perform binary conversion on the random number to obtain the corresponding ASCII code;
[0013] Perform analog-to-digital conversion on the ASCII code to obtain random number audio data.
[0014] In one embodiment, establishing a connection with the Bluetooth hotspot whose name includes a random number to perform device network configuration includes:
[0015] Establishing a connection with a Bluetooth hotspot whose name contains a random number;
[0016] Based on the connected Bluetooth hotspot, network configuration information is sent to the voice device.
[0017] In a second aspect, the present application also provides a second device network configuration method, which is applied to a voice device, and the method includes:
[0018] Receive the preset wake-up audio sent by the mobile terminal and enter the wake-up network configuration state;
[0019] Receiving random number audio data sent by a mobile terminal, and obtaining a random number in the random number audio data;
[0020] Release the Bluetooth hotspot whose name contains the random number, and perform network configuration with the mobile terminal.
[0021] In one embodiment, the obtaining of the random number in the random number audio data includes:
[0022] Performing digital-to-analog conversion on the random number audio data to obtain ASCII code;
[0023] The ASCII code is converted to obtain a corresponding random number.
[0024] In one embodiment, the releasing the Bluetooth hotspot whose name includes the random number includes:
[0025] Get the Bluetooth name of this voice device;
[0026] The random number is concatenated to the end of the Bluetooth name to obtain a new Bluetooth name;
[0027] The Bluetooth hotspot with the new Bluetooth name is released.
[0028] In one embodiment, the network configuration with the mobile terminal includes:
[0029] After establishing a connection with the mobile terminal through the Bluetooth hotspot whose name includes the random number, receiving network configuration information sent by the mobile terminal;
[0030] Based on the network configuration information, network configuration is performed.
[0031] In a third aspect, the present application further provides a mobile terminal, the mobile terminal comprising:
[0032] A broadcast module is used to broadcast a preset wake-up audio so that the voice device receives the preset wake-up audio to wake up the network configuration state; broadcast random number audio data so that the voice device receives the random number audio data to release a Bluetooth hotspot whose name contains a random number;
[0033] The network configuration module is used to establish a connection with the Bluetooth hotspot whose name contains a random number to perform network configuration.
[0034] In one embodiment, the broadcast module is further used to generate a random number; perform binary conversion on the random number to obtain a corresponding ASCII code; and perform analog-to-digital conversion on the ASCII code to obtain random number audio data.
[0035] In one embodiment, the network configuration module is further used to establish a connection with the Bluetooth hotspot whose name includes a random number; and send network configuration information to the voice device based on the connected Bluetooth hotspot.
[0036] In a fourth aspect, the present application further provides a voice device, the voice device comprising:
[0037] A receiving module is used to receive a preset wake-up audio sent by a mobile terminal and enter a wake-up network configuration state; receive random number audio data sent by the mobile terminal and obtain a random number in the random number audio data;
[0038] The network configuration module is used to release a Bluetooth hotspot whose name includes the random number and perform network configuration with the mobile terminal.
[0039] In one embodiment, the receiving module is further used to perform digital-to-analog conversion on the random number audio data to obtain ASCII code; and convert the ASCII code to obtain a corresponding random number.
[0040] In one embodiment, the network configuration module is further used to obtain the Bluetooth name of the voice device; concatenate the random number to the end of the Bluetooth name to obtain a new Bluetooth name; and release a Bluetooth hotspot with the new Bluetooth name.
[0041] In one embodiment, the network configuration module is further used to receive network configuration information sent by the mobile terminal after establishing a connection with the mobile terminal through the Bluetooth hotspot whose name includes the random number; and perform network configuration based on the network configuration information.
[0042] In a fifth aspect, the present application provides a storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in any one of the above embodiments are implemented.
[0043] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:
[0044] The method provided in the embodiment of the present application wakes up the voice device by broadcasting a preset wake-up audio, opens the network configuration channel of the voice device, and broadcasts random number audio data to enable the voice device to release a distinguishable Bluetooth hotspot to complete the network configuration, which can facilitate batch network configuration and prevent misconfiguration. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0047] Figure 1 A schematic diagram of a process flow of a first device network configuration method provided in an embodiment of the present application;
[0048] Figure 2 A schematic diagram of a flow chart of a second device network configuration method provided in an embodiment of the present application;
[0049] Figure 3 A schematic diagram of the whole-house distribution network system flow provided in the embodiment of the present application;
[0050] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0052] Figure 1 The flowchart of the first device network configuration method provided in the embodiment of the present application is applied to a mobile terminal. Figure 1 As shown, the method includes:
[0053] Step 101: broadcasting a preset wake-up audio, so that the voice device receives the preset wake-up audio to wake up the network configuration state;
[0054] Step 102: broadcasting random number audio data, so that the voice device receives the random number audio data and releases a Bluetooth hotspot whose name contains the random number;
[0055] Step 103: Establish a connection with the Bluetooth hotspot whose name contains a random number to perform network configuration.
[0056] Specifically, to achieve the best network configuration effect, the preset wake-up audio and random number audio data may be broadcast at the maximum volume.
[0057] In this embodiment, the mobile terminal can pre-acquire a preset wake-up audio of the voice device, which can wake up the voice device and open a voice receiving channel so that the voice device can receive voice commands and perform corresponding processing.
[0058] Specifically, the preset wake-up audio in this embodiment may be a sound wave that cannot be produced by human voice, and may be obtained through the Internet of Things server.
[0059] In one embodiment, before broadcasting the random number audio data, the method further includes:
[0060] Generate random numbers;
[0061] Perform binary conversion on the random number to obtain the corresponding ASCII code;
[0062] Perform analog-to-digital conversion on the ASCII code to obtain random number audio data.
[0063] Here, a 3-digit random number can be generated.
[0064] Since each code of the ASCII code can be converted into a decimal number between 0 and 255, that is, an 8-bit binary number, the App converts the 3-bit random number into 3 groups of 8-bit binary numbers. Binary numbers are 0 and 1, which can be represented by high and low electrical frequencies. Through digital signal analog signal conversion, the binary representation of the 3-bit random code is converted into a sound wave signal, which is played in a loop through the mobile terminal.
[0065] In one embodiment, establishing a connection with the Bluetooth hotspot whose name includes a random number to perform device network configuration includes:
[0066] Establishing a connection with a Bluetooth hotspot whose name contains a random number;
[0067] Based on the connected Bluetooth hotspot, network configuration information is sent to the voice device.
[0068] In this embodiment, the Bluetooth list can be scanned to obtain the Bluetooth in the list with the random number concatenated at the end, and the connection can be obtained in sequence and the information required for network configuration can be sent to each device.
[0069] The embodiment of the present invention provides a device network configuration method, which broadcasts a preset wake-up audio so that a voice device receives the preset wake-up audio to wake up the network configuration state; broadcasts random number audio data so that the voice device receives the random number audio data to release a Bluetooth hotspot whose name includes a random number; and establishes a connection with the Bluetooth hotspot whose name includes a random number to perform network configuration. The solution provided by the present invention is adopted to wake up the voice device by broadcasting a preset wake-up audio, open the network configuration channel of the voice device, and complete the network configuration by broadcasting random number audio data so that the voice device releases a distinguishable Bluetooth hotspot, which can facilitate batch network configuration and prevent misconfiguration.
[0070] Figure 2 The flowchart of the second device network configuration method provided in the embodiment of the present application is applied to voice devices. Figure 2 As shown, the method includes:
[0071] Step 201: receiving a preset wake-up audio sent by a mobile terminal and entering a wake-up network configuration state;
[0072] Step 202: receiving random number audio data sent by a mobile terminal, and obtaining a random number in the random number audio data;
[0073] Step 203: Release the Bluetooth hotspot whose name includes the random number, and perform network pairing with the mobile terminal.
[0074] In this embodiment, the voice device can set its own preset wake-up audio according to the situation, and the preset wake-up audio can open the voice receiving channel of the voice device, so that the voice device receives the voice command and performs corresponding processing. The preset wake-up audio may not be limited to one audio data. In addition, the function of the preset wake-up audio may not be limited to opening the voice receiving channel.
[0075] Specifically, the preset wake-up audio in this embodiment may be a sound wave that cannot be produced by human voice, and may be stored in the IoT server after setting.
[0076] In this embodiment, after receiving the preset wake-up audio, the voice device enters the wake-up network configuration state and waits to continue receiving the random number audio data. After receiving the random number audio data, the random number is obtained from the random number audio data, and the Bluetooth hotspot whose name includes the random number is released to configure the network with the mobile terminal.
[0077] In one embodiment, the obtaining of the random number in the random number audio data includes:
[0078] Performing digital-to-analog conversion on the random number audio data to obtain ASCII code;
[0079] The ASCII code is converted to obtain a corresponding random number.
[0080] In this embodiment, the awakened voice device receives random number audio data, converts the random number audio data into binary through analog-to-digital conversion, and then converts it into 3 ASCII codes.
[0081] In one embodiment, the releasing the Bluetooth hotspot whose name includes the random number includes:
[0082] Get the Bluetooth name of this voice device;
[0083] The random number is concatenated to the end of the Bluetooth name to obtain a new Bluetooth name;
[0084] The Bluetooth hotspot with the new Bluetooth name is released.
[0085] For example, the original Bluetooth name is "greeFanner_828105" and the random number is 123. After splicing, the new Bluetooth name becomes "greeFanner_828105_123".
[0086] In one embodiment, the network configuration with the mobile terminal includes:
[0087] After establishing a connection with the mobile terminal through the Bluetooth hotspot whose name includes the random number, receiving network configuration information sent by the mobile terminal;
[0088] Based on the network configuration information, network configuration is performed.
[0089] In this embodiment, after the device is successfully networked, information indicating the successful network configuration may be sent to the mobile terminal via a message queue.
[0090] The embodiment of the present invention provides a device network configuration method, which includes receiving a preset wake-up audio sent by a mobile terminal and entering a wake-up network configuration state; receiving random number audio data sent by the mobile terminal and obtaining a random number in the random number audio data; releasing a Bluetooth hotspot whose name includes the random number and configuring the network with the mobile terminal. The solution provided by the present invention is used to wake up a voice device by broadcasting a preset wake-up audio, open a network configuration channel for the voice device, and broadcast random number audio data so that the voice device releases a distinguishable Bluetooth hotspot to complete the network configuration, which can facilitate batch network configuration and prevent misconfiguration.
[0091] A specific embodiment will be used for illustration below.
[0092] This embodiment provides a whole-house network configuration method based on specific voiceprint wake-up and voiceprint information transmission. Figure 3 , which is the flow chart of the whole house distribution network system.
[0093] The specific process of this embodiment includes:
[0094] (1) Voice intelligent devices all have their own specific wake-up words. Generally, the wake-up words can open the voice receiving channel, receive voice commands and perform corresponding processing.
[0095] Here, the wake-up word may not be limited to one, and the wake-up word function may not be limited to opening the voice receiving channel. In this embodiment, the voice device is preset with a "network configuration wake-up sound wave", which is a sound wave that cannot be emitted by human voice, and is obtained by the app through the IoT server. The app plays the wake-up sound wave at the maximum volume, so that all voice IoT devices connected to the power supply in the house turn on the microphone and wait to receive the network configuration random code.
[0096] (2) A 3-digit ASCII-encoded random code is generated by the app.
[0097] Because every code of ASCII code can be converted into a decimal number between 0 and 255, that is, an 8-bit binary number. The app converts the 3-bit random code into 3 groups of 8-bit binary numbers. Binary numbers are 0 and 1, which can be represented by high and low electrical frequencies. Through digital signal analog signal conversion, the binary representation of the 3-bit random code is converted into a sound wave signal, which is played in a loop through the mobile phone.
[0098] (3) The awakened voice device receives the sound wave signal, converts the sound wave signal into binary through analog-to-digital conversion, and then converts it into 3 ASCII codes, and splices the random ASCII code to its own Bluetooth / WiFi hotspot as a suffix.
[0099] (4) The Bluetooth or WiFi hotspots released by general connected devices have certain naming rules to facilitate the discovery of automatic network configuration. For example, the hotspot name of a certain manufacturer's 92905 series fan will be similar to "Factory_Fan_92905". After the voice device receives the random code for network configuration, it will concatenate the random code with its own hotspot name and then release the hotspot.
[0100] For example, if the random code is "abc", the network distribution hotspot released by the fan will become "Factory_Fan_92905_abc".
[0101] (5) The App scans the Wi-Fi or Bluetooth list and can find and filter out the list of devices of its own manufacturer around it. It then uses the random code suffixed to the device hotspot name to confirm the device to be awakened for network configuration and establishes connections with each device in turn, providing the information required for network configuration, including the home Wi-Fi name, password, homeId, etc. After receiving the information, the device connects to the home Wi-Fi and registers itself to the IoT server.
[0102] (6) The IoT server pushes the network configuration success information to the corresponding user through the message queue.
[0103] In this embodiment, sound waves can propagate smoothly in the room and are easily blocked by walls. The network distribution channels of all voice devices can be opened at one time, while preventing the network distribution channels of the devices next door from being opened by mistake, facilitating batch network distribution, and actively opening the network distribution channels of devices.
[0104] In order to implement the method of the embodiment of the present invention, the embodiment of the present application further provides a mobile terminal, the mobile terminal comprising:
[0105] A broadcast module is used to broadcast a preset wake-up audio so that the voice device receives the preset wake-up audio to wake up the network configuration state; broadcast random number audio data so that the voice device receives the random number audio data to release a Bluetooth hotspot whose name contains a random number;
[0106] The network configuration module is used to establish a connection with the Bluetooth hotspot whose name contains a random number to perform network configuration.
[0107] In one embodiment, the broadcast module is further used to generate a random number; perform binary conversion on the random number to obtain a corresponding ASCII code; and perform analog-to-digital conversion on the ASCII code to obtain random number audio data.
[0108] In one embodiment, the network configuration module is further used to establish a connection with the Bluetooth hotspot whose name includes a random number; and send network configuration information to the voice device based on the connected Bluetooth hotspot.
[0109] In order to implement the method of the embodiment of the present invention, the embodiment of the present application further provides a voice device, the voice device comprising:
[0110] A receiving module is used to receive a preset wake-up audio sent by a mobile terminal and enter a wake-up network configuration state; receive random number audio data sent by the mobile terminal and obtain a random number in the random number audio data;
[0111] The network configuration module is used to release a Bluetooth hotspot whose name includes the random number and perform network configuration with the mobile terminal.
[0112] In one embodiment, the receiving module is further used to perform digital-to-analog conversion on the random number audio data to obtain ASCII code; and convert the ASCII code to obtain a corresponding random number.
[0113] In one embodiment, the network configuration module is further used to obtain the Bluetooth name of the voice device; concatenate the random number to the end of the Bluetooth name to obtain a new Bluetooth name; and release a Bluetooth hotspot with the new Bluetooth name.
[0114] In one embodiment, the network configuration module is further used to receive network configuration information sent by the mobile terminal after establishing a connection with the mobile terminal through the Bluetooth hotspot whose name includes the random number; and perform network configuration based on the network configuration information.
[0115] It should be noted that the mobile terminal provided in the above embodiment belongs to the same concept as the first method embodiment, and the voice device provided in the above embodiment belongs to the same concept as the second method embodiment. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0116] Based on the hardware implementation of the above program modules, and in order to implement the embodiment of the present invention, the embodiment of the present invention further provides an electronic device (computer device), see Figure 4 , including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114,
[0117] Memory 113, used for storing computer programs;
[0118] In one embodiment of the present application, the processor 111 is used to implement the steps of the method provided by any one of the aforementioned method embodiments when executing the program stored in the memory 113.
[0119] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0120] The device provided by an embodiment of the present invention includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the method of any one of the above embodiments is implemented.
[0121] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program objects. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program object implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0122] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program objects according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0123] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0124] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0125] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0126] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method provided in any of the aforementioned method embodiments are implemented.
[0127] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0128] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0129] It can be understood that the memory of the embodiment of the present invention can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memories.
[0130] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0131] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A device network configuration method, It is characterized in that Applied to a mobile terminal, the method comprises: Broadcasting a preset wake-up audio so that the voice device receives the preset wake-up audio to wake up the network configuration state; Broadcasting random number audio data so that the voice device receives the random number audio data and releases a Bluetooth hotspot whose name contains the random number; Establish a connection with the Bluetooth hotspot whose name contains the random number to perform network configuration.
2. The method according to claim 1, It is characterized in that Before broadcasting the random number audio data, the method further includes: Generate random numbers; Perform binary conversion on the random number to obtain the corresponding ASCII code; Perform analog-to-digital conversion on the ASCII code to obtain random number audio data.
3. The method according to claim 1, It is characterized in that The step of establishing a connection with the Bluetooth hotspot whose name includes a random number and performing device network configuration includes: Establishing a connection with a Bluetooth hotspot whose name contains a random number; Based on the connected Bluetooth hotspot, network configuration information is sent to the voice device.
4. A device network configuration method, It is characterized in that Applied to a voice device, the method comprises: Receive the preset wake-up audio sent by the mobile terminal and enter the wake-up network configuration state; Receiving random number audio data sent by a mobile terminal, and obtaining a random number in the random number audio data; Release the Bluetooth hotspot whose name contains the random number, and perform network configuration with the mobile terminal.
5. The method according to claim 4, It is characterized in that The obtaining of the random number in the random number audio data comprises: Performing digital-to-analog conversion on the random number audio data to obtain ASCII code; The ASCII code is converted to obtain a corresponding random number.
6. The method according to claim 4, It is characterized in that The releasing name includes the Bluetooth hotspot of the random number, including: Get the Bluetooth name of this voice device; The random number is concatenated to the end of the Bluetooth name to obtain a new Bluetooth name; The Bluetooth hotspot with the new Bluetooth name is released.
7. The method according to claim 4, It is characterized in that The network configuration with the mobile terminal includes: After establishing a connection with the mobile terminal through the Bluetooth hotspot whose name includes the random number, receiving network configuration information sent by the mobile terminal; Based on the network configuration information, network configuration is performed.
8. A mobile terminal, It is characterized in that The mobile terminal comprises: A broadcast module is used to broadcast a preset wake-up audio so that the voice device receives the preset wake-up audio to wake up the network configuration state; broadcast random number audio data so that the voice device receives the random number audio data to release a Bluetooth hotspot whose name contains a random number; The network configuration module is used to establish a connection with the Bluetooth hotspot whose name contains a random number to perform network configuration.
9. A voice device, It is characterized in that The voice device comprises: A receiving module is used to receive a preset wake-up audio sent by a mobile terminal and enter a wake-up network configuration state; receive random number audio data sent by the mobile terminal and obtain a random number in the random number audio data; The network configuration module is used to release a Bluetooth hotspot whose name includes the random number and perform network configuration with the mobile terminal.
10. A storage medium having a computer program stored therein. It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Communication control method and system, and vehicle
CN111757301A
Method for simultaneously distributing network for multiple voice devices through voice
CN115297478A