Network access method and device for equipment to be networked, storage medium and electronic device
By turning on the target wireless access access point in the sound generating device and obtaining the equipment capability information of the equipment to be entered, the problem that the sounding device cannot accurately allocate the network in the distribution mode of multiple equipment to be entered is solved, and a higher distribution accuracy is achieved.
Patent Information
- Application Number
- CN202110743543.2
- 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
When multiple devices to be accessed are in the distribution mode, the sound generating device cannot accurately distribute the network for the target devices to be accessed.
By turning on the target wireless access access point, the device capability information of the device to be entered is obtained and instructed to perform the corresponding target event. After determining whether the target event has been executed by the device to be accessed, send network access information to it to complete the network access operation.
It solves the problem that the sounding device cannot accurately distribute the network for the target equipment to be accessed, and improves the accuracy of the distribution network.
Smart Images

Figure CN115580869B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a network access method and device for a device to be networked, 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] In the related art, there are usually two ways to configure the network for the device to be connected: Method 1: The configuration device starts the hotspot, and the device to be connected accesses the hotspot. The configuration device sends network access information such as SSID and password to the device to be connected, and the device to be connected connects to the router according to the network access information; Method 2: The device to be connected starts the hotspot, and the configuration device accesses the hotspot. The configuration device sends network access information such as SSID and password to the device to be connected, and the device to be connected connects to the router according to the network access information. However, due to the increasing number of smart homes, there may be other devices to be connected when the smart home appliance configures the network for the target device to be connected. Since the smart home appliance cannot determine the target device to be connected among multiple devices to be connected, it will configure multiple devices to be connected.
[0004] In the related art, when multiple devices to be connected to the network are in the network configuration mode, the sound-emitting device cannot accurately configure the network for the target device to be connected to the network, and no effective solution has been proposed yet. Summary of the invention
[0005] Embodiments of the present invention provide a network access method and device, a storage medium and an electronic device for a device to be networked, so as to at least solve the problem in the related art that, when multiple devices to be networked are in network configuration mode, a sound-emitting device cannot accurately configure the network for a target device to be networked.
[0006] According to one embodiment of the present invention, a network access method for a device to be networked is provided, comprising: turning on a target wireless access point; obtaining device capability information of the device to be networked when the device to be networked has been connected to the target wireless access point, and instructing the device to be networked to execute a target event corresponding to the device capability information; judging whether the device to be networked has executed the target event, and sending network access information to the device to be networked when the device to be networked has executed the target event, so as to instruct the device to be networked to execute a network access operation according to the network access information, wherein the network access information comprises: SSID and password.
[0007] In an exemplary embodiment, judging whether the device to be connected to the network has executed the target event includes: when the sound-emitting device has the ability to detect whether the device to be connected to the network has executed the target event, judging whether the device to be connected to the network has executed the target event through the sound-emitting device; when the sound-emitting device does not have the ability to detect whether the device to be connected to the network has executed the target event, instructing a third-party device connected to the sound-emitting device to determine whether the device to be connected to the network has executed the target event, and receiving the detection result of the third-party device on whether the device to be connected to the network has executed the target event, and judging whether the device to be connected to the network has executed the target event based on the detection result.
[0008] In an exemplary embodiment, after determining whether the device to be connected has executed the target event, the method further includes: if the device to be connected has not executed the target event, performing at least one of the following operations: sending the target event to the device to be connected again; directly disconnecting the sound-emitting device and the device to be connected.
[0009] In an exemplary embodiment, before controlling the sound-emitting device to turn on the target wireless access point, the method further includes: receiving a network configuration voice command issued by the target object, wherein the network configuration voice command is used to instruct the sound-emitting device to turn on the target wireless access point; detecting whether the network configuration voice command is legal, and if it is detected that the network configuration voice command is legal, instructing the sound-emitting device to turn on the target wireless access point.
[0010] In an exemplary embodiment, detecting whether the network configuration voice command is legal includes: verifying whether the network configuration voice command matches a preset voice command, and determining whether the target object has network configuration authority based on the target object's voiceprint; and determining that the network configuration voice command is legal when the network configuration voice command matches the preset voice command and the target object has network configuration authority.
[0011] In an exemplary embodiment, after controlling the sound-emitting device to turn on the target wireless access point, the method further includes: receiving a connection request sent by the device to be connected to the network to the sound-emitting device, wherein the connection request is used to request connection to the target wireless access point; verifying the connection request; and if the connection request verification passes, instructing the sound-emitting device to connect to the device to be connected to the network.
[0012] In an exemplary embodiment, the device capability information includes at least one of the following: whether the device to be connected to the network has the ability to make sounds, whether the device to be connected to the network has the ability to display lights, whether the device to be connected to the network has the ability to display multimedia information, and whether the device to be connected to the network has the ability to execute target gestures.
[0013] According to another embodiment of the embodiments of the present invention, there is also provided a device for network access of a device to be networked, comprising: an enabling module, used to enable a target wireless access point; an indicating module, used to obtain device capability information of the device to be networked when the device to be networked has been connected to the target wireless access point, and to instruct the device to be networked to execute a target event corresponding to the device capability information; a judging module, used to judge whether the device to be networked has executed the target event, and when the device to be networked has executed the target event, send network access information to the device to be networked, so as to instruct the device to be networked to execute a network access operation according to the network access information.
[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 execute the network access method of the device to be networked when running.
[0015] According to another aspect of an embodiment of the present invention, there is also 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 executes the network access method of the device to be networked through the computer program.
[0016] In an embodiment of the present invention, a target wireless access point is turned on; when the device to be connected to the network has connected to the target wireless access point, the device capability information of the device to be connected to the network is obtained, and the device to be connected to the network is instructed to execute a target event corresponding to the device capability information; it is determined whether the device to be connected to the network has executed the target event, and when the device to be connected to the network has executed the target event, network access information is sent to the device to be connected to instruct the device to be connected to execute a network access operation according to the network access information, that is, when it is determined through a sound-emitting device that the device to be connected to the network has executed the target event, network access information is sent to the device to be connected to the network, and the device to be connected to the network executes the network access operation according to the network access information. Through the above technical solution, the problem in the related art that when multiple devices to be connected to the network are in a network configuration mode, the sound-emitting device cannot accurately perform network configuration for the target device to be connected to the network, thereby ensuring the accuracy of network configuration. 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 1It is a hardware structure block diagram of a sound-generating device of a network access method for a device to be networked according to an embodiment of the present invention;
[0019] Figure 2 is a flow chart of a method for network access of a device to be networked according to an embodiment of the present invention;
[0020] Figure 3 is a schematic diagram of a network access method for a device to be networked according to an embodiment of the present invention;
[0021] Figure 4 The present invention is a structural block diagram of a device for accessing a network 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 the order or precedence of the objects. 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 embodiments provided in the embodiments of the present application can be executed in a sound device, a mobile terminal or a similar computing device. Taking running on a sound device as an example, Figure 1 1 is a hardware structure block diagram of a sound-generating device for a network access method of a device to be networked according to an embodiment of the present invention. Figure 1 As shown, the sound-generating device may include one or more ( Figure 1Only 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 sound-generating device may also include a transmission device 106 for communication functions and an input / output device 108. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned sound-generating device. Figure 1 More 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 of the device to be networked in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement 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 may be connected to the sound-generating device via 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 sound-emitting device. 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 (RF) module, which is used to communicate with the Internet wirelessly.
[0027] In this embodiment, a method for accessing a network for a device to be connected to the network is provided, which is applied to the above-mentioned sound-generating device. Figure 2 1 is a flow chart of a method for accessing a network by a device to be accessed according to an embodiment of the present invention, the flow chart comprising the following steps:
[0028] Step S202, controlling the sound-generating device to turn on the target wireless access point;
[0029] It should be noted that the sound-generating device may be a device with a sound-generating function, such as a speaker, etc., and the embodiment of the present invention does not limit this.
[0030] Step S204, when the device to be connected to the network has been connected to the target wireless access point, obtaining device capability information of the device to be connected to the network, and instructing the device to be connected to the network to execute a target event corresponding to the device capability information;
[0031] Step S206, determine whether the device to be connected to the network has executed the target event, and if the device to be connected to the network has executed the target event, send network access information to the device to be connected to the network to instruct the device to be connected to perform a network access operation according to the network access information, wherein the network access information includes: SSID and password.
[0032] In an embodiment of the present invention, a sound-emitting device is controlled to turn on a target wireless access point; when the device to be connected to the network has connected to the target wireless access point, the device capability information of the device to be connected to the network is obtained, and the device to be connected to the network is instructed to execute a target event corresponding to the device capability information; it is determined whether the device to be connected to the network has executed the target event, and when the device to be connected to the network has executed the target event, network access information is sent to the device to be connected to instruct the device to be connected to execute a network access operation according to the network access information, that is, when it is determined by the sound-emitting device that the device to be connected to the network has executed the target event, network access information is sent to the device to be connected to the network, and the device to be connected to the network executes the network access operation according to the network access information. Through the above technical solution, the problem in the related art that when multiple devices to be connected to the network are in the network configuration mode, the sound-emitting device cannot accurately configure the network for the target device to be connected to the network, thereby ensuring the accuracy of the network configuration.
[0033] The network access information in step S206 includes: a service set identifier SSID and a password; when the sound-emitting device determines that the device to be connected has executed the target event, the sound-emitting device sends the service set identifier and password to the device to be connected, and the device to be connected connects to the network according to the service set identifier and password.
[0034] In an exemplary embodiment, it is determined whether the device to be connected to the network has executed the target event. Specifically, when the sound-emitting device has the ability to detect whether the device to be connected to the network has executed the target event, it is determined whether the device to be connected to the network has executed the target event through the sound-emitting device; when the sound-emitting device does not have the ability to detect whether the device to be connected to the network has executed the target event, a third-party device connected to the sound-emitting device is instructed to determine whether the device to be connected to the network has executed the target event, and a detection result of the third-party device on whether the device to be connected to the network has executed the target event is received, and whether the device to be connected to the network has executed the target event is determined based on the detection result.
[0035] That is to say, it is determined whether the sound-emitting device has the ability to detect whether the device to be connected has executed the target event. When the sound-emitting device has the ability to detect whether the device to be connected has executed the target event, the sound-emitting device detects whether the device to be connected has executed the target event. When the sound-emitting device does not have the ability to detect whether the device to be connected has executed the target event, information is monitored and collected through a third-party device that is interconnected with the sound-emitting device and has the ability to detect whether the device to be connected has executed the target event. For example, the sound-emitting device instructs the device to be connected to display the target picture according to the ability of the device to be connected, but when the sound-emitting device does not have the ability to obtain the target picture displayed by the device to be connected, the picture displayed by the device to be connected can be obtained through a third-party device with a camera connected to the sound-emitting device, and it is determined whether the picture displayed by the third-party device is consistent with the target picture. When the picture displayed by the third-party device is consistent with the target picture, the detection result is sent to the sound-emitting device. Among them, the third-party device not only indicates a device different from the manufacturer of the sound-emitting device, but also distinguishes between the device to be connected and the sound-emitting device, and both the devices are third-party devices.
[0036] Furthermore, the sound-emitting device preferentially instructs the device to be connected to the network to execute a target event in which the sound-emitting device has the ability to obtain the execution result of the target event. For example, if the sound-emitting device only has the ability to obtain sound, then the sound-emitting device preferentially instructs the device to be connected to the network to execute a target event of emitting a target sound. If the device to be connected to the network does not have the ability to execute the target event of emitting a target sound, then the target device is instructed to execute a target event of emitting a target image, etc.
[0037] In an exemplary embodiment, after determining whether the device to be connected has executed the target event, if the device to be connected has not executed the target event, at least one of the following operations is performed: sending the target event to the device to be connected again; directly disconnecting the sound-emitting device and the device to be connected.
[0038] Specifically, when the device to be connected does not execute the target event, the target event can be sent to the device to be connected again. Specifically, the first number of times the target event is sent to the device to be connected is preset. When the device to be connected does not execute the target event, the maximum number of times the target event is sent to the device to be connected is the preset number. When the number of times the sound-emitting device sends the target event to the device to be connected reaches the preset number, and the device to be connected has not executed the target event, the connection between the sound-emitting device and the device to be connected is disconnected; or when the device to be connected does not execute the target event, the connection between the sound-emitting device and the device to be connected is directly disconnected, and the target event is not sent to the device to be connected.
[0039] In an exemplary embodiment, before controlling the sound-emitting device to turn on the target wireless access point, a network configuration voice command issued by the target object is received, wherein the network configuration voice command is used to instruct the sound-emitting device to turn on the target wireless access point; and detecting whether the network configuration voice command is legal, and instructing the sound-emitting device to turn on the target wireless access point when it is detected that the network configuration voice command is legal.
[0040] That is to say, the target object sends a network configuration voice command to the sound-emitting device. When the sound-emitting device receives the network configuration voice command, it determines that the network configuration voice command is legal, then the target wireless access point is turned on. If it is determined that the network configuration voice command is illegal, the hotspot is prohibited from being turned on.
[0041] Specifically, detecting whether the network configuration voice command is legal includes: verifying whether the network configuration voice command matches a preset voice command, and determining whether the target object has network configuration authority based on the voiceprint of the target object; when the network configuration voice command matches the preset voice command and the target object has network configuration authority, determining that the network configuration voice command is legal.
[0042] That is to say, when the content of the network configuration voice command matches the preset voice command, and the target object of the network configuration voice command is a user with network configuration authority, the network configuration voice command is deemed to be legal; further, the preset voice command can be preset when the sound device leaves the factory or can be preset by the target object. The method of determining that the target object of the network configuration voice command is a user with network configuration authority can be: judging whether the voiceprint information of the target object that issues the network configuration voice command matches the voiceprint information in the database, and when the voiceprint information of the target object matches the voiceprint information in the database, determining that the target object that issues the network configuration voice command is a user with network configuration authority. It should be noted that the embodiments of the present invention do not limit this.
[0043] In an exemplary embodiment, after controlling a sound-emitting device to turn on a target wireless access point, a connection request sent by a device to be connected to the network is received to the sound-emitting device, wherein the connection request is used to request connection to the target wireless access point; the connection request is verified; and if the connection request verification passes, the sound-emitting device is instructed to connect to the device to be connected to the network.
[0044] After the sound-emitting device turns on the target wireless access point, the sound-emitting device sends a connection request to the device to be connected to the network, wherein the connection request includes encrypted data and information requesting to connect to the target wireless access point. The network configuration device decrypts the encrypted data, and if the decryption is successful, it is determined that the connection request verification has passed, and then the sound-emitting device connects to the device to be connected to the network.
[0045] In an exemplary embodiment, the device capability information includes at least one of the following: whether the device to be connected to the network has the ability to make sounds, whether the device to be connected to the network has the ability to display lights, whether the device to be connected to the network has the ability to display multimedia information, and whether the device to be connected to the network has the ability to execute target gestures.
[0046] The sound-emitting device obtains device information and device capability information of the device to be connected to the network, wherein the device information is used to uniquely indicate the device to be connected to the network, and the device capability information includes at least one of the following: whether the device to be connected to the network has the ability to make sounds, whether the device to be connected to the network has the ability to display lights, whether the device to be connected to the network has the ability to display multimedia information, and whether the device to be connected to the network has the ability to execute a target gesture. According to the device capability information, the device to be connected to the network is instructed to execute a target event.
[0047] Specifically, when it is determined that the device to be connected to the network has the ability to make sound, the device to be connected to the network is instructed to execute at least one of the following target events: emitting sound with target content, sound with target frequency; when it is determined that the device to be connected to the network has the ability to display light, the device to be connected to the network is instructed to execute at least one of the following target events: emitting light of target color, emitting light of target frequency; when it is determined that the device to be connected to the network has the ability to display multimedia information, the device to be connected to the network is instructed to execute at least one of the following target events: displaying a target image, displaying a target video, displaying a target picture of a preset duration, displaying a target video of a preset duration; when it is determined that the device to be connected to the network has the ability to execute a target posture, the device to be connected to the network is instructed to execute at least one of the following target events: executing a target walking action towards the target direction.
[0048] In order to better understand the process of the network access method of the above-mentioned device to be networked, the implementation method flow of the network access of the above-mentioned device to be networked is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present invention.
[0049] like Figure 3 As shown, Figure 3 1 is a schematic diagram of a method for accessing a network for a device to be accessed according to an embodiment of the present invention, and the specific steps are as follows:
[0050] Step S301: the smart speaker (equivalent to the sound device in the above embodiment) receives a network configuration voice command issued by a user (equivalent to the target object in the above embodiment);
[0051] Step S302: The smart speaker determines whether the network configuration voice command is legal, which includes two aspects of verification: verifying whether the content of the network configuration voice command matches the content of the pre-set network configuration voice command; and judging whether the target object of the network configuration voice command is a user with network configuration authority through voiceprint technology. If both match, step S303 is executed. Otherwise, the network configuration action is not executed;
[0052] Step S303: the smart speaker opens a hotspot with a target name (equivalent to the target wireless access point in the above embodiment);
[0053] Step S304: the household appliance (equivalent to the device to be connected to the network in the above embodiment) enters the network distribution mode and searches for a hotspot with the target name;
[0054] 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 hotspot and starts the connection authentication process. After the authentication is passed, the home appliance connects to the hotspot;
[0055] Step S306: 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 execute target gestures;
[0056] Step S307: the smart speaker sends information about executing the target 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.;
[0057] Step S308: the household appliance executes the target event;
[0058] Step S309: the smart speaker monitors and collects information about the home appliance executing the target event. If the smart speaker has the ability to detect and collect, the smart speaker determines whether the home appliance has executed the target event; if the smart speaker does not have the ability to detect and collect, the smart speaker instructs a third-party device connected to the smart speaker to determine whether the home appliance has executed the target event, and receives the detection result of the third-party device on whether the device to be connected to the network has executed the target event;
[0059] Step S310: The smart speaker determines whether the collected information matches the target event;
[0060] Step S311: When the smart speaker determines that the collected information matches the target event, it sends AP information to the home appliance, including: SSID and password;
[0061] Step S312: The home appliance connects to the router according to the AP information to complete the network configuration process.
[0062] In an embodiment of the present invention, the smart speaker is controlled to open a hotspot with a target hotspot name; when the home appliance has been connected to the hotspot with the target hotspot name, the device capability information of the home appliance is obtained, and the home appliance is instructed to execute a target event corresponding to the device capability information; it is determined whether the home appliance has executed the target event, and when the home appliance has executed the target event, password information is sent to the home appliance to instruct the home appliance to execute a network access operation according to the password information, that is, when it is determined through the smart speaker that the home appliance has executed the target event, password information is sent to the home appliance, and the home appliance executes a network access operation according to the password information. Through the above technical solution, the problem in the related technology that when multiple home appliances are in network distribution mode, the network distribution device cannot accurately perform network distribution for the target home appliance is solved, thereby ensuring the accuracy of network distribution.
[0063] 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 is essentially 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, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0064] Figure 4is a structural block diagram of a device for accessing a network according to an embodiment of the present invention; Figure 4 As shown, including:
[0065] An opening module 42, used to open a target wireless access point;
[0066] It should be noted that the sound-generating device may be a device with a sound-generating function, such as a speaker, etc., and the embodiment of the present invention does not limit this.
[0067] The instruction module 44 is used to obtain the device capability information of the device to be connected to the network when the device to be connected to the network has been connected to the target wireless access point, and instruct the device to be connected to the network to execute the target event corresponding to the device capability information;
[0068] The judgment module 46 is used to judge whether the device to be connected to the network has executed the target event, and if the device to be connected to the network has executed the target event, send network access information to the device to be connected to the network to instruct the device to be connected to perform the network access operation according to the network access information.
[0069] In an embodiment of the present invention, a target wireless access point is turned on; when the device to be connected to the network has connected to the target wireless access point, the device capability information of the device to be connected to the network is obtained, and the device to be connected to the network is instructed to execute a target event corresponding to the device capability information; it is determined whether the device to be connected to the network has executed the target event, and when the device to be connected to the network has executed the target event, network access information is sent to the device to be connected to instruct the device to be connected to execute a network access operation according to the network access information, that is, when it is determined through a sound-emitting device that the device to be connected to the network has executed the target event, network access information is sent to the device to be connected to the network, and the device to be connected to the network executes the network access operation according to the network access information. Through the above technical solution, the problem in the related art that when multiple devices to be connected to the network are in a network configuration mode, the sound-emitting device cannot accurately perform network configuration for the target device to be connected to the network, thereby ensuring the accuracy of network configuration.
[0070] The network access information includes: a service set identifier and a password; when the determination module of the sound-emitting device determines that the device to be connected has executed the target event, the sound-emitting device sends the service set identifier and password to the device to be connected, and the device to be connected accesses the network according to the service set identifier and password.
[0071] In an exemplary embodiment, the determination module is also used to determine whether the device to be connected has executed the target event through the sound-emitting device when the sound-emitting device has the ability to detect whether the device to be connected has executed the target event; when the sound-emitting device does not have the ability to detect whether the device to be connected has executed the target event, instruct a third-party device connected to the sound-emitting device to determine whether the device to be connected has executed the target event, receive the detection result of the third-party device on whether the device to be connected has executed the target event, and determine whether the device to be connected has executed the target event based on the detection result.
[0072] That is to say, determine whether the sound-emitting device has the ability to detect whether the device to be connected has executed the target event. When the sound-emitting device has the ability to detect whether the device to be connected has executed the target event, the sound-emitting device detects whether the device to be connected has executed the target event. When the sound-emitting device does not have the ability to detect whether the device to be connected has executed the target event, monitor and collect information through a third-party device that is interconnected with the sound-emitting device and has the ability to detect whether the device to be connected has executed the target event. For example, the sound-emitting device instructs the device to be connected to display the target picture according to the capability of the device to be connected. However, when the sound-emitting device does not have the ability to obtain the target picture displayed by the device to be connected, the picture displayed by the device to be connected can be obtained through a third-party device with a camera connected to the sound-emitting device, and determine whether the picture displayed by the third-party device is consistent with the target picture. When the picture displayed by the third-party device is consistent with the target picture, the detection result is sent to the sound-emitting device.
[0073] Furthermore, the sound-emitting device preferentially instructs the device to be connected to the network to execute a target event in which the sound-emitting device has the ability to obtain the execution result of the target event. For example, if the sound-emitting device only has the ability to obtain sound, then the sound-emitting device preferentially instructs the device to be connected to the network to execute a target event of emitting a target sound. If the device to be connected to the network does not have the ability to execute the target event of emitting a target sound, then the target device is instructed to execute a target event of emitting a target image, etc.
[0074] In an exemplary embodiment, the indication module is further used to perform at least one of the following operations when the device to be connected does not execute the target event: send the target event to the device to be connected again; directly disconnect the sound-emitting device and the device to be connected.
[0075] Specifically, when the device to be connected does not execute the target event, the target event can be sent to the device to be connected again. Specifically, the first number of times the target event is sent to the device to be connected is preset. When the device to be connected does not execute the target event, the maximum number of times the target event is sent to the device to be connected is the preset number. When the number of times the sound-emitting device sends the target event to the device to be connected reaches the preset number, and the device to be connected has not executed the target event, the connection between the sound-emitting device and the device to be connected is disconnected; or when the device to be connected does not execute the target event, the connection between the sound-emitting device and the device to be connected is directly disconnected, and the target event is not sent to the device to be connected.
[0076] In an exemplary embodiment, before controlling the sound-emitting device to turn on the target wireless access point, the above-mentioned device also includes: a receiving module, used to receive a network configuration voice command issued by the target object, wherein the network configuration voice command is used to instruct the sound-emitting device to turn on the target wireless access point; detecting whether the network configuration voice command is legal, and instructing the sound-emitting device to turn on the target wireless access point when it is detected that the network configuration voice command is legal.
[0077] That is to say, the target object sends a network configuration voice command to the sound-emitting device. When the sound-emitting device receives the network configuration voice command, it determines that the network configuration voice command is legal, then the target wireless access point is turned on. If it is determined that the network configuration voice command is illegal, the hotspot is prohibited from being turned on.
[0078] Specifically, the determination module is also used to verify whether the network configuration voice command matches the preset voice command, and to determine whether the target object has the network configuration authority based on the voiceprint of the target object; when the network configuration voice command matches the preset voice command and the target object has the network configuration authority, it is determined that the network configuration voice instruction is legal.
[0079] That is to say, when the content of the network configuration voice command matches the preset voice command, and the target object of the network configuration voice command is a user with network configuration authority, the network configuration voice command is deemed to be legal; further, the preset voice command can be preset when the sound device leaves the factory or can be preset by the target object. The method of determining that the target object of the network configuration voice command is a user with network configuration authority can be: judging whether the voiceprint information of the target object that issues the network configuration voice command matches the voiceprint information in the database, and when the voiceprint information of the target object matches the voiceprint information in the database, determining that the target object that issues the network configuration voice command is a user with network configuration authority. It should be noted that the embodiments of the present invention do not limit this.
[0080] In an exemplary embodiment, after controlling the sound-emitting device to turn on the target wireless access point, the receiving module is further used to receive a connection request sent by the device to be connected to the network to the sound-emitting device, wherein the connection request is used to request connection to the target wireless access point; verify the connection request; and if the connection request verification passes, instruct the sound-emitting device to connect to the device to be connected to the network.
[0081] After the sound-emitting device turns on the target wireless access point, the sound-emitting device sends a connection request to the device to be connected to the network, wherein the connection request includes encrypted data and information requesting to connect to the target wireless access point. The network configuration device decrypts the encrypted data, and if the decryption is successful, it is determined that the connection request verification has passed, and then the sound-emitting device connects to the device to be connected to the network.
[0082] In an exemplary embodiment, the device capability information includes at least one of the following: whether the device to be connected to the network has the ability to make sounds, whether the device to be connected to the network has the ability to display lights, whether the device to be connected to the network has the ability to display multimedia information, and whether the device to be connected to the network has the ability to execute target gestures.
[0083] The sound-emitting device obtains device information and device capability information of the device to be connected to the network, wherein the device information is used to uniquely indicate the device to be connected to the network, and the device capability information includes at least one of the following: whether the device to be connected to the network has the ability to make sounds, whether the device to be connected to the network has the ability to display lights, whether the device to be connected to the network has the ability to display multimedia information, and whether the device to be connected to the network has the ability to execute a target gesture. According to the device capability information, the device to be connected to the network is instructed to execute a target event.
[0084] Specifically, when it is determined that the device to be connected to the network has the ability to make sound, the device to be connected to the network is instructed to execute at least one of the following target events: emitting sound with target content, sound with target frequency; when it is determined that the device to be connected to the network has the ability to display light, the device to be connected to the network is instructed to execute at least one of the following target events: emitting light of target color, emitting light of target frequency; when it is determined that the device to be connected to the network has the ability to display multimedia information, the device to be connected to the network is instructed to execute at least one of the following target events: displaying a target image, displaying a target video, displaying a target picture of a preset duration, displaying a target video of a preset duration; when it is determined that the device to be connected to the network has the ability to execute a target posture, the device to be connected to the network is instructed to execute at least one of the following target events: executing a target walking action towards the target direction.
[0085] An embodiment of the present invention further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.
[0086] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:
[0087] S1, turn on the target wireless access point;
[0088] S2, when the device to be connected to the network has been connected to the target wireless access point, obtaining device capability information of the device to be connected to the network, and instructing the device to be connected to the network to execute a target event corresponding to the device capability information;
[0089] S3, judging whether the device to be connected to the network has executed the target event, and if the device to be connected to the network has executed the target event, sending network access information to the device to be connected to the network to instruct the device to be connected to perform a network access operation according to the network access information, wherein the network access information includes: a service set identifier SSID and a password.
[0090] 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 execute the steps in any one of the above method embodiments.
[0091] 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.
[0092] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0093] S1, turn on the target wireless access point;
[0094] S2, when the device to be connected to the network has been connected to the target wireless access point, obtaining device capability information of the device to be connected to the network, and instructing the device to be connected to the network to execute a target event corresponding to the device capability information;
[0095] S3, judging whether the device to be connected to the network has executed the target event, and if the device to be connected to the network has executed the target event, sending network access information to the device to be connected to the network to instruct the device to be connected to perform a network access operation according to the network access information, wherein the network access information includes: a service set identifier SSID and a password.
[0096] 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.
[0097] 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.
[0098] 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 executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, 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 combination of hardware and software of any target.
[0099] 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 for a device to be networked, applied to a sound-generating device, characterized in that: include: Turn on the target wireless access point; When the device to be connected to the network has been connected to the target wireless access point, acquiring device capability information of the device to be connected to the network, and instructing the device to be connected to the network to execute a target event corresponding to the device capability information; Determine whether the device to be networked has executed the target event, and if the device to be networked has executed the target event, send network access information to the device to be networked to instruct the device to be networked to perform a network access operation according to the network access information, wherein the network access information includes: a service set identifier SSID and a password; Wherein, instructing the device to be connected to the network to execute the target event corresponding to the device capability information includes: in case of determining that the device to be connected to the network has the ability to make sounds, instructing the device to be connected to the network to execute at least one of the following target events: emitting a sound of target content, a sound of target frequency; in case of determining that the device to be connected to the network has the ability to display lights, instructing the device to be connected to the network to execute at least one of the following target events: emitting lights of target colors, emitting lights of target frequencies; in case of determining that the device to be connected to the network has the ability to display multimedia information, instructing the device to be connected to the network to execute at least one of the following target events: displaying a target image, displaying a target video, displaying a target picture of a preset duration, and displaying a target video of a preset duration; in case of determining that the device to be connected to the network has the ability to execute a target posture, instructing the device to be connected to the network to execute at least one of the following target events: walking towards the target direction, executing a target walking action; Among them, judging whether the device to be connected to the network has executed the target event includes: determining whether the collected information matches the target event, and if the collected information matches the target event, determining that the device to be connected to the network has executed the target event.
2. The network access method of a device to be networked according to claim 1, characterized in that: Determining whether the device to be connected to the network has executed the target event includes: In the case where the sound-generating device has the ability to detect whether the device to be connected to the network has executed the target event, judging whether the device to be connected to the network has executed the target event by using the sound-generating device; In the case that the sound-emitting device does not have the ability to detect whether the device to be connected to the network has executed the target event, instruct a third-party device connected to the sound-emitting device to determine whether the device to be connected to the network has executed the target event, and receive the detection result of the third-party device on whether the device to be connected to the network has executed the target event, and judge whether the device to be connected to the network has executed the target event based on the detection result.
3. The network access method of a device to be networked according to claim 1, characterized in that: After determining whether the device to be connected to the network has executed the target event, the method further includes: If the device to be connected to the network does not execute the target event, perform at least one of the following operations: Sending the target event to the device to be connected to the network again; Directly disconnect the connection between the sound-generating device and the device to be connected to the network.
4. The network access method of a device to be networked according to claim 1, characterized in that: Before controlling the sound-generating device to turn on the target wireless access point, the method further includes: Receiving a network configuration voice command issued by a target object, wherein the network configuration voice command is used to instruct a sound-emitting device to turn on the target wireless access point; Detecting whether the network configuration voice command is legal, and instructing the sound-generating device to turn on the target wireless access point if it is detected that the network configuration voice command is legal.
5. The network access method of a device to be networked according to claim 4, characterized in that: Detecting whether the network configuration voice command is legal includes: Verify whether the network configuration voice command matches a preset voice command, and determine whether the target object has network configuration authority based on the voiceprint information of the network configuration voice command; In the case that the network configuration voice command matches the preset voice command and the target object has the network configuration authority, it is determined that the network configuration voice command is legal.
6. The network access method for a device to be networked according to claim 1, characterized in that: After controlling the sound-generating device to turn on the target wireless access point, the method further includes: Receiving a connection request sent by the device to be connected to the network to the sound-generating device, wherein the connection request is used to request connection to the target wireless access point; Verifying the connection request; In the case where the connection request verification is passed, the sound-emitting device is instructed to connect to the device to be connected to the network.
7. The network access method for a device to be networked according to any one of claims 1 to 6, characterized in that: The device capability information includes at least one of the following: whether the device to be connected to the network has the ability to make sounds, whether the device to be connected to the network has the ability to display lights, whether the device to be connected to the network has the ability to display multimedia information, and whether the device to be connected to the network has the ability to execute target gestures.
8. A device for accessing a network of a device to be connected to the network, characterized in that: include: An opening module is used to open a target wireless access point; an instruction module, configured to obtain device capability information of the device to be connected to the network, and instruct the device to be connected to the network to execute a target event corresponding to the device capability information, when the device to be connected to the network has connected to the target wireless access point; A judgment module, used to judge whether the device to be networked has executed the target event, and if the device to be networked has executed the target event, send network access information to the device to be networked to instruct the device to be networked to perform a network access operation according to the network access information, wherein the network access information includes: a service set identifier SSID and a password; Wherein, the indication module is further used to, when it is determined that the device to be connected to the network has the ability to make sounds, instruct the device to be connected to the network to execute at least one of the following target events: emitting a sound of target content, a sound of target frequency; when it is determined that the device to be connected to the network has the ability to display lights, instruct the device to be connected to the network to execute at least one of the following target events: emitting a light of target color, emitting a light of target frequency; when it is determined that the device to be connected to the network has the ability to display multimedia information, instruct the device to be connected to the network to execute at least one of the following target events: displaying a target image, displaying a target video, displaying a target picture of a preset duration, displaying a target video of a preset duration; when it is determined that the device to be connected to the network has the ability to execute a target posture, instruct the device to be connected to the network to execute at least one of the following target events: walking towards the target direction, executing a target walking action; The judgment module is further used to determine whether the collected information matches the target event, and if the collected information matches the target event, determine that the device to be connected to the network has executed the target event.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when a processor runs the program, the method described in any one of claims 1 to 7 is executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
Citation Information
Patent Citations
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