Network access method and device, storage medium and electronic device

By connecting the wireless hotspots of the devices to be connected to the network in a smart home and receiving operating instructions from the audio device, the problem that the audio device cannot accurately determine the devices to be connected to the network is solved, and accurate network distribution operations are achieved.

CN115580868BActive Publication Date: 2025-03-25QINGDAO HAIER TECH +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110740823.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-30
Publication Date
2025-03-25
Estimated Expiration
2041-06-30

AI Technical Summary

Technical Problem

Audio devices in smart homes cannot accurately determine the target devices to be connected to the network among multiple devices to be connected to the network and distribute the network.

Method used

By determining that the audio device has been connected to the wireless hotspot of the device to be connected to the network, receiving the operation instructions of the audio device, completing the operation events corresponding to the device capabilities, and accessing the network through account information.

Benefits of technology

It realizes that the audio equipment accurately determines the target equipment among multiple devices to be entered and accurately allocates the network, solving the problem that the target equipment cannot be accurately determined during the audio equipment distribution process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115580868B_ABST
    Figure CN115580868B_ABST
Patent Text Reader

Abstract

The present invention discloses a network access method and device, a storage medium and an electronic device, wherein the method comprises: determining that an audio device has been connected to a wireless hotspot opened by a device to be connected to the network; receiving an operation instruction of the audio device when the audio device has obtained the device capability of the device to be connected to the network, wherein the operation instruction is used to instruct the device to be connected to the network to complete an operation event corresponding to the device capability; receiving account information from the audio device when it is determined through the audio device that the device to be connected to the network has completed the operation event, and accessing the network where the audio device is located according to the account information. The above technical scheme can solve the problems in the related technology that the audio device cannot accurately determine a target device to be connected to the network among multiple target devices to be connected to the network, and cannot configure the network for the target device to be connected to the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communications, and in particular to a network access method and device, a storage medium and an electronic device. Background Art

[0002] With the increasing number of smart devices, smart home products for users are becoming more and more common, and the convenience they bring to users is obvious.

[0003] As the number of smart homes increases, there may be other devices to be connected to the network when the smart appliance is configuring the network for the target device to be connected to the network. Since the smart appliance cannot determine the target device to be connected to the network among multiple devices to be connected to the network, it will configure the network for multiple devices to be connected to the network.

[0004] In the related art, an effective solution has not yet been proposed for the problem that an audio device cannot accurately determine a target device to be connected to the network among multiple target devices to be connected to the network and perform network configuration for the target device to be connected to the network. Summary of the invention

[0005] Embodiments of the present invention provide a network access method and device, a storage medium and an electronic device to at least solve the problem in the related art that an audio device cannot accurately determine a target device to be connected to the network among multiple target devices to be connected to the network and configure the network for the target device to be connected to the network.

[0006] According to one embodiment of the present invention, there is provided a network access method, comprising: determining that an audio device has been connected to a wireless hotspot enabled by a device to be networked; receiving an operation instruction of the audio device when the audio device has acquired the device capability of the device to be networked, wherein the operation instruction is used to instruct the device to be networked to complete an operation event corresponding to the device capability; and receiving account information from the audio device when it is determined through the audio device that the device to be networked has completed the operation event, and accessing the network where the audio device is located according to the account information.

[0007] In an exemplary embodiment, after receiving the operation instruction of the audio device, the method also includes: determining whether the audio device has the target capability, wherein the target capability is used to indicate the ability to determine whether the device to be connected to the network has completed the operation event; if the audio device has the target capability, determining whether the device to be connected to the network has completed the operation event through the audio device; if the audio device does not have the target capability, determining whether a third-party device has the target capability, and if the third-party device has the target capability, instructing the third-party device to determine whether the device to be connected to the network has completed the operation event.

[0008] In an exemplary embodiment, before determining that the audio device has been connected to the wireless hotspot turned on by the device to be connected, the method also includes: determining whether the audio device has successfully sent a connection request, wherein the connection request is used to request connection to the wireless hotspot; if the audio device has successfully sent the connection request, verifying the connection request, and if the verification passes, determining that the audio device is allowed to connect to the wireless hotspot turned on by the device to be connected.

[0009] In an exemplary embodiment, before determining that the audio device has been connected to the wireless hotspot enabled by the device to be networked, the method further includes: receiving a network access instruction issued by a target object through the audio device, wherein the network access instruction is used to instruct the audio device to connect to the wireless hotspot; and when it is detected that the network access instruction is legal, instructing the audio device to initiate the following operation: connecting to the wireless hotspot initiated by the device to be networked.

[0010] In an exemplary embodiment, after receiving a network access instruction issued by a target object through the audio device, the method further includes: instructing the audio device to verify whether the network access instruction matches a preset network access instruction, and determining whether the target object has network configuration authority based on the voiceprint information corresponding to the network access instruction; and determining that the network access instruction is legal when the network access instruction matches the preset network access instruction and the target object has network configuration authority.

[0011] In an exemplary embodiment, after receiving the operation instruction of the audio device, the method further includes: when it is determined through the audio device that the device to be connected has not completed the operation event, instructing the device to be connected to complete at least one of the following: directly disconnecting the hotspot connection with the audio device; receiving the operation event sent by the audio device according to a preset number of times.

[0012] According to another embodiment of the embodiments of the present invention, a network access device is also provided, including: a determination module, used to determine that an audio device has been connected to a wireless hotspot turned on by a device to be connected to the network; a receiving module, used to receive an operation instruction of the audio device when the audio device has acquired the device capability of the device to be connected to the network, wherein the operation instruction is used to instruct the device to be connected to the network to complete an operation event corresponding to the device capability; an access module, used to receive account information from the audio device when it is determined through the audio device that the device to be connected to the network has completed the operation event, and access the network where the audio device is located according to the account information.

[0013] In an exemplary embodiment, the determination module is also used to determine whether the audio device has the target capability, wherein the target capability is used to indicate the ability to determine whether the device to be connected to the network has completed the operation event; if the audio device has the target capability, determine whether the device to be connected to the network has completed the operation event through the audio device; if the audio device does not have the target capability, determine whether a third-party device has the target capability, and if the third-party device has the target capability, instruct the third-party device to determine whether the device to be connected to the network has completed the operation event.

[0014] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to complete the above-mentioned network access method when executed.

[0015] According to another aspect of an embodiment of the present invention, there is provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the network access method through the computer program.

[0016] In an embodiment of the present invention, it is determined that the audio device has been connected to the wireless hotspot turned on by the device to be connected to the network; when the audio device has obtained the device capability of the device to be connected to the network, an operation instruction of the audio device is received, wherein the operation instruction is used to instruct the device to be connected to the network to complete an operation event corresponding to the device capability; when it is determined by the audio device that the device to be connected to the network has completed the operation event, account information is received from the audio device, and the network where the audio device is located is accessed according to the account information, that is, when it is determined by the audio device that the device to be connected to the network has completed the operation event, the account information is sent to the device to be connected to the network, and the device to be connected to the network completes the network access operation according to the account information. Through the above technical solution, the problem that the audio device cannot accurately determine the target device to be connected to the network among multiple target devices to be connected to the network and perform network configuration for the target device to be connected to the network in the related technology is solved, and the target device to be connected to the network is accurately configured for the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0018] Figure 1 It is a hardware structure block diagram of a network access device in a network access method according to an embodiment of the present invention;

[0019] Figure 2is a flow chart of a network access method according to an embodiment of the present invention;

[0020] Figure 3 is a schematic diagram of a network access method according to an embodiment of the present invention;

[0021] Figure 4 It is a structural block diagram of a network access device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0022] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0024] The method embodiment provided in the embodiment of the present application can be implemented in a device to be connected to the network, a mobile terminal or a similar computing device. Taking running on a device to be connected to the network as an example, Figure 1 1 is a hardware structure diagram of a network access device in a network access method according to an embodiment of the present invention. Figure 1 As shown, the device to be connected to the network may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. In an exemplary embodiment, the above-mentioned network access device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the above-mentioned network access device. Figure 1More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.

[0025] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the network access method in the embodiment of the present invention. The processor 102 completes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the device to be connected to the network through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0026] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the device to be connected to the network. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0027] In this embodiment, a network access method is provided, which is applied to the above-mentioned device to be connected to the network. Figure 2 1 is a flow chart of a network access method according to an embodiment of the present invention, and the flow chart includes the following steps:

[0028] Step S202, determining that the audio device has been connected to the wireless hotspot enabled by the device to be connected to the network;

[0029] Step S204, receiving an operation instruction of the audio device when the audio device has acquired the device capability of the device to be connected to the network, wherein the operation instruction is used to instruct the device to be connected to the network to complete an operation event corresponding to the device capability;

[0030] Step S206: When it is determined through the audio device that the device to be connected to the network has completed the operation event, account information is received from the audio device, and the network where the audio device is located is accessed according to the account information, wherein the account information includes: a service set identifier and a password.

[0031] In an embodiment of the present invention, it is determined that the audio device has been connected to the wireless hotspot turned on by the device to be connected to the network; when the audio device has obtained the device capability of the device to be connected to the network, an operation instruction of the audio device is received, wherein the operation instruction is used to instruct the device to be connected to the network to complete an operation event corresponding to the device capability; when it is determined by the audio device that the device to be connected to the network has completed the operation event, account information is received from the audio device, and the network where the audio device is located is accessed according to the account information, that is, when it is determined by the audio device that the device to be connected to the network has completed the operation event, the account information is sent to the device to be connected to the network, and the device to be connected to the network completes the network access operation according to the account information. Through the above technical solution, the problem that the audio device cannot accurately determine the target device to be connected to the network among multiple target devices to be connected to the network and perform network configuration for the target device to be connected to the network in the related technology is solved, and the target device to be connected to the network is accurately configured for the network.

[0032] In an exemplary embodiment, after receiving the operation instruction of the audio device, it is determined whether the audio device has the target capability, wherein the target capability is used to indicate the ability to determine whether the device to be connected to the network has completed the operation event; if the audio device has the target capability, it is determined through the audio device whether the device to be connected to the network has completed the operation event; if the audio device does not have the target capability, it is determined whether a third-party device has the target capability, and if the third-party device has the target capability, the third-party device is instructed to determine whether the device to be connected to the network has completed the operation event.

[0033] Specifically, the device to be connected to the network determines whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event by at least one of the following methods: receiving the device capability of the audio device sent by the audio device, and determining whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event according to the device capability of the audio device; receiving the device capability of the audio device sent by the server, and determining whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event according to the device capability of the audio device; receiving first information of the audio device sent by the audio device, wherein the first information is used to indicate whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event, and determining whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event according to the first information.

[0034] Furthermore, when the device to be connected to the network determines that the audio device has the target capability, the device to be connected to the network instructs the audio device to monitor and collect information, and then determines whether the device to be connected to the network has completed the operation event sent by the audio device; when the audio device does not have the target capability, it instructs a third-party device to monitor and collect information, and then determines whether the device to be connected to the network has completed the operation event sent by the audio device based on the monitored and collected information, and a first connection is established between the third-party device and the audio device, and the third-party device sends the third-party device monitoring and collection information to the audio device through the first connection, and or, the target result, wherein the target result is used to indicate whether the device to be connected to the network has completed the operation event. When the audio device receives the monitoring and collection information sent by the third-party device, the audio device determines whether the device to be connected to the network has completed the operation event sent by the audio device based on the monitoring and collection information; the third-party device is a device different from the device to be connected to the network and the audio device, and the embodiment of the present invention does not limit the third-party device.

[0035] Furthermore, after the audio device sends the operation time to the device to be connected to the network, the audio device can also autonomously detect whether the device to be connected to the network has completed the operation event. When the audio device does not have the target capability, the audio device instructs a third-party device with the target capability to monitor and collect information, wherein a first connection is established between the third-party device and the audio device, and the third-party device and the audio device communicate through the first connection.

[0036] In an exemplary embodiment, before determining that the audio device has been connected to the wireless hotspot turned on by the device to be connected, it is determined whether the audio device has successfully sent a connection request, wherein the connection request is used to request connection to the wireless hotspot; if the audio device has successfully sent the connection request, the connection request is verified, and if the verification passes, it is determined that the audio device is allowed to connect to the wireless hotspot turned on by the device to be connected.

[0037] That is to say, the audio device sends a connection request to the device to be connected to the network, wherein the connection request is encrypted information, and the device to be connected verifies the connection request, that is, the device to be connected decrypts the encrypted information through a key, and when the device to be connected successfully decrypts the encrypted information through the key, the audio device is determined to be a legal device, and the audio device is allowed to access the wireless hotspot opened by the device to be connected, wherein the wireless hotspot is a hotspot with a specific name, and when the device to be connected fails to decrypt the encrypted information through the key, the audio device is determined to be an illegal device, and the audio device is prohibited from accessing the wireless hotspot opened by the device to be connected.

[0038] In an exemplary embodiment, a network access instruction issued by a target object is received by the audio device, wherein the network access instruction is used to instruct the audio device to connect to the wireless hotspot; when it is detected that the network access instruction is legal, the audio device is instructed to initiate the following operation: connecting to the wireless hotspot initiated by the device to be connected to the network.

[0039] That is to say, when the device to be networked detects that the target object has issued a network access instruction, the device to be networked instructs the audio device to turn on the function of receiving the network access instruction. When the target object issues a network access instruction to the audio device and the audio device determines that the network access instruction is legal through a preset method, the audio device connects to the wireless hotspot initiated by the device to be networked, wherein the preset method includes: the audio device verifies whether the network access instruction matches the preset network access instruction, and determines whether the target object has the network configuration authority based on the voiceprint information corresponding to the network access instruction; when the network access instruction matches the preset network access instruction and the target object has the network configuration authority, the network access instruction is determined to be legal.

[0040] Furthermore, the audio device may also keep the function of receiving the network access instruction enabled, that is, as long as the target object sends the network access instruction to the audio device, the audio device detects whether the network access instruction is legal.

[0041] In an exemplary embodiment, after receiving the operation instruction of the audio device, when it is determined through the audio device that the device to be connected has not completed the operation event, the device to be connected is instructed to complete at least one of the following: directly disconnecting the hotspot connection with the audio device; receiving the operation event sent by the audio device according to a preset number of times.

[0042] Specifically, when the device to be connected has not completed the operation event, the audio device may send the operation event to the device to be connected again. When the audio device receives the operation event for a preset number of times and the device to be connected has not completed the operation event, the connection between the audio device and the device to be connected is disconnected; or when the device to be connected has not completed the operation event, the connection between the audio device and the device to be connected is directly disconnected, and the operation event sent by the audio device is not received. For example, when the preset number of times is three, the audio device receives the operation event for the first time and the target device does not execute the operation event, the audio device receives the operation event sent by the audio device for the second time; when the audio device receives the operation event for the second time and the target device does not execute the operation event, the audio device receives the operation event sent by the audio device for the third time; when the audio device receives the operation event for the third time and the target device does not execute the operation event, the device to be connected no longer receives the operation event sent by the audio device.

[0043] In order to better understand the process of the above network access method, the implementation method flow of the above network access is described below in combination with an optional embodiment, but it is not intended to limit the technical solution of the embodiment of the present invention.

[0044] like Figure 3 As shown, Figure 3 is a schematic diagram of a network access method according to an embodiment of the present invention, and the specific steps are as follows:

[0045] Step S301: the household appliance (equivalent to the device to be connected to the network in the above embodiment) enters the network configuration mode and opens a hotspot with a specific name format (equivalent to the wireless access point in the above embodiment);

[0046] Step S302: the smart speaker (equivalent to the audio device in the above embodiment) receives a network access instruction issued by a user (equivalent to the target object in the above embodiment);

[0047] Step S303: The smart speaker determines whether the network access instruction is legal, which includes two aspects of verification: verifying whether the content of the network access instruction matches the content of the pre-set network access instruction; and judging whether the target object issuing the network access instruction is a user with network configuration authority through voiceprint technology. If both match, step S304 is completed. Otherwise, the network configuration action is not completed;

[0048] Step S304: the smart speaker searches for hotspots of the target name;

[0049] Step S305: The smart speaker and the home appliance mutually authenticate and connect. After searching for the hotspot, the home appliance sends a connection request to the device to be connected to the network, and starts the connection authentication process. After the authentication is passed, the home appliance connects to the hotspot;

[0050] Step S306: the smart speaker requests device information and its own interaction information from the home appliance;

[0051] Step S307: The home appliance sends device information and interaction capabilities to the smart speaker. The interaction capabilities include but are not limited to whether the home appliance has the ability to make sounds, whether the home appliance has the ability to display lights, whether the home appliance has the ability to display multimedia information, and whether the home appliance has the ability to complete the target gesture;

[0052] Step S308: The smart speaker sends information about the completion of the operation event to the home appliance according to the interactive capability of the home appliance, such as emitting a sound with a target frequency, target rhythm and preset duration, or displaying an alarm light of the target frequency, or displaying a target image, etc.;

[0053] Step S309: the household appliance completes the operation event;

[0054] Step S310: the smart speaker monitors and collects information about the home appliance completing the operation event. If the smart speaker has the ability to detect and collect, the smart speaker determines whether the home appliance has completed the operation event; if the smart speaker does not have the ability to detect and collect, a third-party device connected to the smart speaker is instructed to determine whether the home appliance has completed the operation event, and the detection result of the third-party device on whether the device to be connected to the network has completed the operation event is received;

[0055] Step S311: The smart speaker determines whether the collected information matches the operation event;

[0056] Step S312: When the smart speaker determines that the collected information matches the operation event, it sends AP information to the home appliance, including: SSID and password;

[0057] Step S313: The home appliance connects to the router according to the AP information to complete the network configuration process.

[0058] In an embodiment of the present invention, it is determined that the audio device has been connected to the wireless hotspot turned on by the device to be connected to the network; when the audio device has obtained the device capability of the device to be connected to the network, an operation instruction of the audio device is received, wherein the operation instruction is used to instruct the device to be connected to the network to complete an operation event corresponding to the device capability; when it is determined by the audio device that the device to be connected to the network has completed the operation event, account information is received from the audio device, and the network where the audio device is located is accessed according to the account information, that is, when it is determined by the audio device that the device to be connected to the network has completed the operation event, the account information is sent to the device to be connected to the network, and the device to be connected to the network completes the network access operation according to the account information. Through the above technical solution, the problem that the audio device cannot accurately determine the target device to be connected to the network among multiple target devices to be connected to the network and perform network configuration for the target device to be connected to the network in the related technology is solved, and the target device to be connected to the network is accurately configured for the network.

[0059] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to complete the methods of various embodiments of the present invention.

[0060] Figure 4is a structural block diagram of a network access device according to an embodiment of the present invention; Figure 4 As shown, including:

[0061] A determination module 42 is used to determine whether the audio device has been connected to the wireless hotspot enabled by the device to be connected to the network;

[0062] The receiving module 44 is used to receive an operation instruction of the audio device when the audio device has acquired the device capability of the device to be connected to the network, wherein the operation instruction is used to instruct the device to be connected to the network to complete an operation event corresponding to the device capability;

[0063] The access module 46 is used to receive account information from the audio device when it is determined through the audio device that the device to be connected to the network has completed the operation event, and access the network where the audio device is located according to the account information.

[0064] In an embodiment of the present invention, the determination module 42 determines that the audio device has been connected to the wireless hotspot turned on by the device to be connected to the network; the receiving module 44 receives the operation instruction of the audio device when the audio device has obtained the device capability of the device to be connected to the network, wherein the operation instruction is used to instruct the device to be connected to complete the operation event corresponding to the device capability; the access module 46 receives the account information from the audio device when it is determined through the audio device that the device to be connected to the network has completed the operation event, and accesses the network where the audio device is located according to the account information, that is, when it is determined through the audio device that the device to be connected to the network has completed the operation event, the account information is sent to the device to be connected to the network, and the device to be connected to the network completes the network access operation according to the account information. Through the above technical solution, the problem that the audio device cannot accurately determine the target device to be connected to the network among multiple target devices to be connected to the network and perform network configuration for the target device to be connected to the network in the related technology is solved, and the target device to be connected to the network is accurately configured for the network.

[0065] In an exemplary embodiment, the determination module is also used to determine whether the audio device has the target capability, wherein the target capability is used to indicate the ability to determine whether the device to be connected to the network has completed the operation event; if the audio device has the target capability, determine whether the device to be connected to the network has completed the operation event through the audio device; if the audio device does not have the target capability, determine whether a third-party device has the target capability, and if the third-party device has the target capability, instruct the third-party device to determine whether the device to be connected to the network has completed the operation event.

[0066] Specifically, the device to be connected to the network determines whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event by at least one of the following methods: receiving the device capability of the audio device sent by the audio device, and determining whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event according to the device capability of the audio device; receiving the device capability of the audio device sent by the server, and determining whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event according to the device capability of the audio device; receiving first information of the audio device sent by the audio device, wherein the first information is used to indicate whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event, and determining whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event according to the first information.

[0067] Furthermore, when the device to be connected to the network determines that the audio device has the target capability, the device to be connected to the network instructs the audio device to monitor and collect information, and then determines whether the device to be connected to the network has completed the operation event sent by the audio device; when the audio device does not have the target capability, it instructs a third-party device to monitor and collect information, and then determines whether the device to be connected to the network has completed the operation event sent by the audio device based on the monitored and collected information, and a first connection is established between the third-party device and the audio device, and the third-party device sends the third-party device monitoring and collection information to the audio device through the first connection, and or, the target result, wherein the target result is used to indicate whether the device to be connected to the network has completed the operation event. When the audio device receives the monitoring and collection information sent by the third-party device, the audio device determines whether the device to be connected to the network has completed the operation event sent by the audio device based on the monitoring and collection information; the third-party device is a device different from the device to be connected to the network and the audio device, and the embodiment of the present invention does not limit the third-party device.

[0068] Furthermore, after the audio device sends the operation time to the device to be connected to the network, the audio device can also autonomously detect whether the device to be connected to the network has completed the operation event. When the audio device does not have the target capability, the audio device instructs a third-party device with the target capability to monitor and collect information, wherein a first connection is established between the third-party device and the audio device, and the third-party device and the audio device communicate through the first connection.

[0069] In an exemplary embodiment, the determination module is also used to determine whether the audio device has successfully sent a connection request, wherein the connection request is used to request connection to the wireless hotspot; if the audio device has successfully sent a connection request, the connection request is verified, and if the verification passes, it is determined that the audio device is allowed to connect to the wireless hotspot turned on by the device to be connected to the network.

[0070] That is to say, the audio device sends a connection request to the device to be connected to the network, wherein the connection request is encrypted information, and the device to be connected verifies the connection request, that is, the device to be connected decrypts the encrypted information through a key, and when the device to be connected successfully decrypts the encrypted information through the key, the audio device is determined to be a legal device, and the audio device is allowed to access the wireless hotspot opened by the device to be connected, wherein the wireless hotspot is a hotspot with a specific name, and when the device to be connected fails to decrypt the encrypted information through the key, the audio device is determined to be an illegal device, and the audio device is prohibited from accessing the wireless hotspot opened by the device to be connected.

[0071] In an exemplary embodiment, the receiving module is also used to receive a network access instruction issued by the target object through the audio device, wherein the network access instruction is used to instruct the audio device to connect to the wireless hotspot; when it is detected that the network access instruction is legal, the audio device is instructed to initiate the following operation: connecting to the wireless hotspot initiated by the device to be connected to the network.

[0072] That is to say, when the device to be networked detects that the target object has issued a network access instruction, the device to be networked instructs the audio device to turn on the function of receiving the network access instruction. When the target object issues a network access instruction to the audio device and the audio device determines that the network access instruction is legal through a preset method, the audio device connects to the wireless hotspot initiated by the device to be networked, wherein the preset method includes: the audio device verifies whether the network access instruction matches the preset network access instruction, and determines whether the target object has the network configuration authority based on the voiceprint information corresponding to the network access instruction; when the network access instruction matches the preset network access instruction and the target object has the network configuration authority, the network access instruction is determined to be legal.

[0073] Furthermore, the audio device may also keep the function of receiving the network access instruction enabled, that is, as long as the target object sends the network access instruction to the audio device, the audio device detects whether the network access instruction is legal.

[0074] In an exemplary embodiment, the determination module is also used to instruct the device to access the network to complete at least one of the following when it is determined through the audio device that the device to access the network has not completed the operation event: directly disconnecting the hotspot connection with the audio device; receiving the operation event sent by the audio device according to a preset number of times.

[0075] Specifically, when the device to be connected has not completed the operation event, the audio device may send the operation event to the device to be connected again. When the audio device receives the operation event for a preset number of times and the device to be connected has not completed the operation event, the connection between the audio device and the device to be connected is disconnected; or when the device to be connected has not completed the operation event, the connection between the audio device and the device to be connected is directly disconnected, and the operation event sent by the audio device is not received. For example, when the preset number of times is three, the audio device receives the operation event for the first time and the target device does not execute the operation event, the audio device receives the operation event sent by the audio device for the second time; when the audio device receives the operation event for the second time and the target device does not execute the operation event, the audio device receives the operation event sent by the audio device for the third time; when the audio device receives the operation event for the third time and the target device does not execute the operation event, the device to be connected no longer receives the operation event sent by the audio device.

[0076] An embodiment of the present invention further provides a storage medium, which includes a stored program, wherein the program completes any of the above methods when executed.

[0077] Optionally, in this embodiment, the storage medium may be configured to store program codes for completing the following steps:

[0078] S1, confirming that the audio device has been connected to the wireless hotspot enabled by the device to be connected to the network;

[0079] S2, receiving an operation instruction of the audio device when the audio device has acquired the device capability of the device to be connected to the network, wherein the operation instruction is used to instruct the device to be connected to the network to complete an operation event corresponding to the device capability;

[0080] S3, when it is determined through the audio device that the device to be connected to the network has completed the operation event, receiving account information from the audio device, and accessing the network where the audio device is located according to the account information, wherein the account information includes: a service set identifier and a password.

[0081] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to complete the steps in any one of the above method embodiments.

[0082] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0083] Optionally, in this embodiment, the processor may be configured to complete the following steps through a computer program:

[0084] S1, confirming that the audio device has been connected to the wireless hotspot enabled by the device to be connected to the network;

[0085] S2, receiving an operation instruction of the audio device when the audio device has acquired the device capability of the device to be connected to the network, wherein the operation instruction is used to instruct the device to be connected to the network to complete an operation event corresponding to the device capability;

[0086] S3, when it is determined through the audio device that the device to be connected to the network has completed the operation event, receiving account information from the audio device, and accessing the network where the audio device is located according to the account information, wherein the account information includes: a service set identifier and a password.

[0087] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0088] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0089] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code that can be completed by a computing device, so that they can be stored in a storage device and completed by the computing device, and in some cases, the steps shown or described can be completed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0090] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A network access method, characterized in that: Applied to a device to be connected to a network, the method comprises: determining that the audio device has been connected to a wireless hotspot enabled by the device to be connected to a network; In the case where the audio device has acquired the device capability of the device to be connected to the network, receiving an operation instruction of the audio device, wherein the operation instruction is used to instruct the device to be connected to the network to complete an operation event corresponding to the device capability, and the operation event includes: emitting a sound with a target frequency, a target rhythm and a preset duration, or displaying an alarm light of a target frequency, or displaying a target image; In the case where it is determined through the audio device that the device to be connected to the network has completed the operation event, receiving account information from the audio device, and accessing the network where the audio device is located according to the account information, wherein determining through the audio device that the device to be connected to the network has completed the operation event includes: determining through the audio device whether the collected information matches the operation event, and in the case where the collected information matches the operation event, the audio device determines that the device to be connected to the network has completed the operation event; Wherein, after receiving the operation instruction of the audio device, the method also includes: determining whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event by at least one of the following methods: receiving the device capability of the audio device sent by the audio device, and determining whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event according to the device capability of the audio device; receiving the device capability of the audio device sent by the server and determining whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event according to the device capability of the audio device; receiving first information of the audio device sent by the audio device, wherein the first information is used to indicate whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event, and determining whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event according to the first information.

2. The network access method according to claim 1, characterized in that: After receiving the operation instruction of the audio device, the method further includes: Determining whether the audio device has a target capability, wherein the target capability is used to indicate a capability of determining whether the device to be connected to the network completes the operation event; In the case where the audio device has the target capability, determining, through the audio device, whether the device to be connected to the network has completed the operation event; In the case that the audio device does not have the target capability, determine whether the third-party device has the target capability, and instruct the third-party device to determine whether the device to be connected to the network completes the operation event if the third-party device has the target capability.

3. The network access method according to claim 1, characterized in that: Before determining that the audio device has been connected to the wireless hotspot enabled by the device to be connected to the network, the method further includes: Determining whether the audio device has successfully sent a connection request, wherein the connection request is used to request connection to the wireless hotspot; In the case that the audio device has successfully sent a connection request, the connection request is verified, and if the verification passes, it is determined that the audio device is allowed to connect to the wireless hotspot enabled by the device to be connected to the network.

4. The network access method according to claim 1, characterized in that: Before determining that the audio device has been connected to the wireless hotspot enabled by the device to be connected to the network, the method further includes: Receiving a network access instruction issued by a target object through the audio device, wherein the network access instruction is used to instruct the audio device to connect to the wireless hotspot; When it is detected that the network access instruction is legal, the audio device is instructed to initiate the following operation: connecting to the wireless hotspot initiated by the device to be networked.

5. The network access method according to claim 4, characterized in that: After receiving the network access instruction issued by the target object through the audio device, the method further includes: Instructing the audio device to verify whether the network access instruction matches a preset network access instruction, and determining whether the target object has network configuration authority according to the voiceprint information corresponding to the network access instruction; In the case where the network access instruction matches the preset network access instruction and the target object has network configuration authority, it is determined that the network access instruction is legal.

6. The network access method according to claim 2, characterized in that: After receiving the operation instruction of the audio device, the method further includes: In the case where it is determined through the audio device that the network access device has not completed the operation event, instructing the network access device to complete at least one of the following: Directly disconnect the hotspot connection with the audio device; The operation event is received according to a preset number of times sent by the audio device.

7. A network access device, characterized in that: include: A determination module, used to determine whether the audio device has been connected to the wireless hotspot enabled by the device to be connected to the network; A receiving module, configured to receive an operation instruction of the audio device when the audio device has acquired the device capability of the device to be connected to the network, wherein the operation instruction is used to instruct the device to be connected to the network to complete an operation event corresponding to the device capability, and the operation event includes: emitting a sound with a target frequency, a target rhythm and a preset duration, or displaying an alarm light of a target frequency, or displaying a target image; An access module, configured to receive account information from the audio device and access the network where the audio device is located according to the account information when it is determined through the audio device that the device to be connected to the network has completed the operation event, wherein determining through the audio device that the device to be connected to the network has completed the operation event includes: determining through the audio device whether the collected information matches the operation event, and when the collected information matches the operation event, the audio device determines that the device to be connected to the network has completed the operation event; Wherein, the determination module is also used to perform at least one of the following: receiving the device capability of the audio device sent by the audio device, and determining whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event based on the device capability of the audio device; receiving the device capability of the audio device sent by the server, and determining whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event based on the device capability of the audio device; receiving first information of the audio device sent by the audio device, wherein the first information is used to indicate whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event, and determining whether the audio device has the ability to detect whether the device to be connected to the network has completed the operation event based on the first information.

8. The network access device according to claim 7, characterized in that: include: The determination module is also used to determine whether the audio device has the target capability, wherein the target capability is used to indicate the ability to determine whether the device to be connected to the network has completed the operation event; when the audio device has the target capability, determining whether the device to be connected to the network has completed the operation event through the audio device; when the audio device does not have the target capability, determining whether a third-party device has the target capability, and when the third-party device has the target capability, instructing the third-party device to determine whether the device to be connected to the network has completed the operation event.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program performs the method described in any one of claims 1 to 6 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to implement the method described in any one of claims 1 to 6 through the computer program.

Citation Information

Patent Citations

  • Method and system for realizing achieving household appliance networking by automatically capturing sound source

    CN110166331A

  • Data processing system, method and device and terminal equipment

    CN110492935A

  • Network configuration method, network configuration device, electronic equipment and readable storage medium

    CN112492611A

  • Sound control method and device for smart home apparatus and electronic device

    WO2020228280A1