Wi-Fi signal enhancement method and electronic device

By detecting and amplifying the Wi-Fi signal of the target device, and using smart home devices for signal relay, the problem of insufficient Wi-Fi signal coverage is solved, the device response speed and coverage are improved, and the cost is reduced.

CN117135719BActive Publication Date: 2024-08-27HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310206814.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-08-27
Estimated Expiration
2043-02-27

AI Technical Summary

Technical Problem

The Wi-Fi signal coverage of wireless access point (AP) equipment is limited, resulting in the existence of smart home devices that cannot be covered in the same place, affecting users' control of smart homes and viewing of device information, especially when signal penetration Signal strength is severely attenuated by walls or doors.

Method used

Provides a Wi-Fi signal enhancement method that detects and amplifies Wi-Fi signals through preset target devices, uses existing smart home devices for signal relay, increases signal coverage, and eliminates the need to set up additional relay devices, reducing costs. .

Benefits of technology

It effectively improves the response speed and signal coverage of smart home devices, avoids device disconnection problems, and reduces the cost of increasing signal coverage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117135719B
    Figure CN117135719B
Patent Text Reader

Abstract

The present application provides a method for enhancing Wi‑Fi signals and an electronic device, and relates to the field of communications. The present application provides a method for enhancing Wi‑Fi signals, which is applied to a first electronic device, which has been connected to a first Wi‑Fi network; the method includes: the first electronic device responds to a first Wi‑Fi signal, and determines whether the first electronic device needs to broadcast the first Wi‑Fi signal for a target device based on the first Wi‑Fi signal and information of a preset target device, where the target device is a device associated with an access point device of the first Wi‑Fi network; if it is determined that the first electronic device needs to broadcast the first Wi‑Fi signal for the target device, the first Wi‑Fi signal is broadcast. By using the method in the present application, the Wi‑Fi signal can be amplified for the preset target device and the amplified Wi‑Fi signal can be forwarded, thereby increasing the coverage of the Wi‑Fi signal. At the same time, there is no need to set up an additional relay device, which reduces the cost of the electronic device to increase the coverage of the Wi‑Fi signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communications, and in particular to a method and electronic device for enhancing Wi-Fi signals. Background Art

[0002] Nowadays, there are more and more smart devices in people's lives, especially smart home devices connected by Wi-Fi (such as smart lights, smart sockets, intelligent air conditioners, refrigerators, etc.). Users can control smart home devices connected to the Wi-Fi network through their mobile phones, such as remotely controlling the opening and closing of air conditioners and remotely viewing visitor information.

[0003] However, the coverage of wireless access point (AP) devices is limited, and the signal strength of Wi-Fi signals will be greatly attenuated when penetrating walls or doors, resulting in the existence of smart home devices that cannot be covered by Wi-Fi signals in the same place, affecting users' control of smart homes and viewing of device information. For example, an AP is deployed in the living room of user A's home, and multiple smart home devices (such as smart doorbells, smart table lamps, smart sockets, smart water purifiers, etc.) are deployed. The smart water purifier is located in the kitchen cabinet. Since the Wi-Fi signal needs to pass through walls and cabinets, the smart water purifier responds slowly to control commands or the status of smart home devices is updated slowly. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a method and electronic device for enhancing Wi-Fi signals, which can amplify Wi-Fi signals for preset target devices and forward the amplified Wi-Fi signals, thereby increasing the coverage of Wi-Fi signals. At the same time, no additional relay device is required, thereby reducing the cost of increasing the coverage of Wi-Fi signals by electronic devices.

[0005] In a first aspect, the present application provides a method for enhancing a Wi-Fi signal, which is applied to a first electronic device, which has been connected to a first Wi-Fi network; the method includes: the first electronic device responds to a first Wi-Fi signal, and determines whether the first electronic device needs to broadcast the first Wi-Fi signal for a target device according to the first Wi-Fi signal and information of a preset target device, where the target device is a device associated with an access point device of the first Wi-Fi network; if it is determined that the first electronic device needs to broadcast the first Wi-Fi signal for the target device, then broadcast the first Wi-Fi signal.

[0006] In this way, the first electronic device pre-stores the information of the target device, and when the first electronic device receives the Wi-Fi signal, it can detect whether the first Wi-Fi signal needs to be broadcast. When it is determined that the first Wi-Fi signal needs to be broadcast. The Wi-Fi module in the first electronic device will amplify the first Wi-Fi signal, and during the broadcast of the first Wi-Fi signal, the antenna will amplify the first Wi-Fi signal again, that is, without adding an additional relay device, the first electronic device can amplify the first Wi-Fi signal twice, so that the target device can receive the first Wi-Fi signal or the second electronic device (such as a mobile phone, a smart speaker, a smart TV) can receive the first Wi-Fi signal sent by the target device through the AP, thereby increasing the signal coverage of the first Wi-Fi network where the current first electronic device is located, and increasing the speed of the smart home device responding to the instruction sent by the second electronic device, and can also avoid the problem of disconnection of the smart home device. And because there is no need to add additional relay devices, but the existing smart home devices are used to relay the first Wi-Fi signal, the cost of relaying Wi-Fi signals is reduced.

[0007] According to a first aspect, judging whether a first electronic device needs to broadcast a first Wi-Fi signal for a target device based on a first Wi-Fi signal and information of a preset target device includes: acquiring stored identification information of a target manufacturer; detecting whether the first Wi-Fi signal includes the identification information of the target manufacturer, and acquiring a first detection result; and determining whether the first electronic device needs to broadcast a first Wi-Fi signal for the target device based on the first detection result.

[0008] In this way, the first electronic device can quickly identify the device belonging to the target manufacturer by detecting the identification information of the target manufacturer; at the same time, based on the first detection result, it determines whether the first Wi-Fi signal needs to be broadcasted, and the success rate of the target device receiving the first Wi-Fi signal can be measured.

[0009] According to the first aspect, determining whether the first electronic device needs to broadcast the first Wi-Fi signal for the target device based on the first detection result includes: if the first detection result indicates that the first Wi-Fi signal contains the identification information of the target manufacturer, determining that the first electronic device needs to broadcast the first Wi-Fi signal for the target device. In this way, when the first electronic device detects that the first Wi-Fi signal contains the identification information of the target manufacturer, it determines to broadcast the first Wi-Fi signal. This method can be implemented as devices belonging to the same target manufacturer forwarding Wi-Fi signals, and there is no need to add the identification information of each target device one by one, thereby reducing the stored information.

[0010] According to the first aspect, according to the first detection result, determining whether the first electronic device needs to broadcast the first Wi-Fi signal for the target device includes: if the first detection result indicates that the first Wi-Fi signal contains the identification information of the target manufacturer, obtaining the MAC address containing the identification information of the target manufacturer as the first address; detecting whether there is a MAC address identical to the first address in the first tag data, the first tag data is used to store the MAC address of the non-target device, and the first electronic device does not broadcast the Wi-Fi signal containing the MAC address of the non-target device; if it is detected that there is no MAC address identical to the first address in the first tag data, determining that the first electronic device needs to broadcast the first Wi-Fi signal for the target device. In this way, the first electronic device determines whether it needs to broadcast the first Wi-Fi signal through the first detection result and the first tag data, which can improve the accuracy of the judgment, reduce the situation where the broadcasted first Wi-Fi signal cannot be received by the target device, and improve the probability of effectively forwarding the first Wi-Fi signal.

[0011] According to the first aspect, if it is detected that the first address is a receiving end address, after broadcasting the first Wi-Fi signal, the method further includes:

[0012] If the second Wi-Fi signal returned by the device to which the first address belongs is not received within the preset time, it is detected whether the first Wi-Fi signal containing the first address is broadcasted N times in succession and the second Wi-Fi signal returned by the device to which the first address belongs is not received, where N is an integer greater than or equal to 1; if it is detected that the first Wi-Fi signal containing the first address is broadcasted N times in succession and the second Wi-Fi signal returned by the device to which the first address belongs is not received, the first address is used as the MAC address of the non-target device and stored in the first tag data. In this way, after the first electronic device forwards the first Wi-Fi signal to the first address, it does not receive the second Wi-Fi signal returned by the device to which the first address belongs within the preset time, that is, the device to which the first address belongs does not receive the first Wi-Fi signal. When the second Wi-Fi signal returned by the device to which the first address belongs is not received for multiple consecutive times, the first address is added to the first tag data, so that the first electronic device no longer forwards the Wi-Fi signal for the device to which the first address belongs, thereby reducing the problem of invalid forwarding of the first electronic device and reducing the power consumption of the first electronic device.

[0013] According to the first aspect, before determining whether the first electronic device needs to broadcast the first Wi-Fi signal for the target device based on the first Wi-Fi signal and the information of the preset target device, the method further includes: storing identification information of at least two different manufacturers; receiving a selection instruction sent by a second electronic device, the second electronic device is in communication connection with the first electronic device, and the selection instruction is generated by the second electronic device based on a selection operation input by the user; according to the selection instruction, obtaining identification information of at least one manufacturer from the identification information of at least two different manufacturers stored as identification information of the target manufacturer. In this way, the user can select the target manufacturer by himself, thereby improving the flexibility of the target device set by the first electronic device.

[0014] According to the first aspect, before determining whether the first electronic device needs to broadcast the first Wi-Fi signal to the target device based on the first Wi-Fi signal and the preset target device information, the method further includes: receiving identification information of the target device sent by the second electronic device, the identification information of the target device being input by the user to the second electronic device; and storing the identification information of the target device. In this way, the user can set the target device by himself, which improves the flexibility of the first electronic device forwarding the signal to the target device.

[0015] According to the first aspect, the identification information of the target device includes the MAC address of the target device; judging whether the first electronic device needs to broadcast the first Wi-Fi signal for the target device based on the first Wi-Fi signal and the preset target device information includes: detecting whether there is a MAC address in the first Wi-Fi signal that is the same as the MAC address of the target device; if it is detected that there is, determining that the first electronic device needs to broadcast the first Wi-Fi signal for the target device. In this way, the first electronic device can quickly identify whether the first Wi-Fi signal is sent by the target device or identify whether the first Wi-Fi signal is sent to the target device through the MAC address of the target device.

[0016] According to the first aspect, before the first electronic device responds to the first Wi-Fi signal, the method further includes: receiving a control instruction forwarded by the second electronic device through the access point device, the control instruction is used to instruct the target device to perform the target operation; after broadcasting the first Wi-Fi signal, the method further includes: receiving a second Wi-Fi signal sent by the target device, the second Wi-Fi signal includes feedback information generated after the target device performs the target operation; after detecting that the second Wi-Fi signal contains information about the target device, broadcasting the second Wi-Fi signal so that the access point device forwards the second Wi-Fi signal to the second electronic device. In this way, the second electronic device can control the target device by forwarding the signal by the first electronic device, avoiding the problem of slow response of the target device.

[0017] According to the first aspect, the method further includes: if it is detected that the first Wi-Fi signal does not contain information of a preset target device and it is detected that the receiving end of the first Wi-Fi signal is not the first electronic device, discarding the first Wi-Fi signal. In this way, the useless first Wi-Fi signal is discarded, and the power consumption of the first electronic device is reduced.

[0018] In a second aspect, the present application provides an electronic device, a memory and a processor, wherein the memory is coupled to the processor; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the method for enhancing Wi-Fi signals in the first aspect and any one of the implementation methods of the first aspect.

[0019] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

[0020] In a third aspect, the present application provides a computer-readable medium for storing a computer program. When the computer program is executed on an electronic device, the electronic device executes the method for enhancing Wi-Fi signals corresponding to the first aspect and any one of the implementations of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0022] Figure 1a This is an exemplary scenario of an electronic device using a Wi-Fi network;

[0023] Figure 1b is a schematic diagram exemplarily showing that a smart device is out of coverage of a Wi-Fi network;

[0024] Figure 2 is a schematic diagram of the structure of an electronic device shown exemplarily;

[0025] Figure 3 is a schematic structural diagram of a Wi-Fi module in the wireless communication module 160;

[0026] Figure 4 is a schematic diagram of a software structure of an electronic device shown as an example;

[0027] Figure 5 is a flowchart exemplarily showing a method for enhancing a Wi-Fi signal;

[0028] Figure 6 is a schematic diagram exemplarily showing a scenario in which a first electronic device forwards a first Wi-Fi signal;

[0029] Figure 7 is a schematic diagram showing an example of a smart socket sending and receiving signals in two adjacent time slices;

[0030] Figure 8 is a schematic diagram showing an exemplary smart socket relaying a Wi-Fi signal;

[0031] Fig. 9 The process of storing identification information of a target manufacturer by a first electronic device is exemplarily shown;

[0032] Fig.10 This is a schematic diagram of a scenario in which a smart socket forwards a Wi-Fi signal based on identification information of a target manufacturer;

[0033] Fig.11 The figure is a schematic diagram showing an exemplary scenario in which a smart socket forwards a Wi-Fi signal based on identification information of a target manufacturer and first tag data;

[0034] Fig.12 A schematic diagram of a scenario in which a smart socket updates first tag data as an example;

[0035] Fig.13 This is a schematic diagram of another scenario in which a smart socket forwards a Wi-Fi signal based on identification information of a target manufacturer and first tag data;

[0036] Fig.14 is a schematic diagram of a scenario in which a Wi-Fi signal is forwarded when a smart socket stores a MAC address of a target device;

[0037] Fig.15 The figure is a schematic diagram showing an exemplary scenario of enhancing Wi-Fi signals. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0039] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0040] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.

[0041] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0042] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

[0043] Before describing the technical solution of the embodiment of the present application, the scenario of the electronic device using the Wi-Fi network in the embodiment of the present application is first described in conjunction with the accompanying drawings. Figure 1a As shown, the residence of the user includes three rooms. A wireless access point device (Access Point, "AP") AP1 and a smart TV are placed in room 1. A smart water purifier is placed in room 2, a smart doorbell is installed outside the door of room 3, and smart sockets are installed in room 2 and room 3. Each smart device supports the Wi-Fi function, that is, each smart device can access the Wi-Fi network. The user can control the smart device connected to the Wi-Fi network through the mobile phone. For example, the mobile phone can control the doorbell to turn on the camera through the Wi-Fi network. The signal strength of the Wi-Fi signal will attenuate as the distance increases, and the signal strength will be greatly reduced when penetrating obstacles (such as walls), resulting in the smart water purifier and the smart doorbell being out of the coverage of the Wi-Fi network, or being at the edge of the range of the Wi-Fi network. This will cause the water purifier to be disconnected and unable to be controlled; or, the mobile phone can still control the water purifier, but the water purifier responds to the control command slowly, such as waiting for several seconds or longer to respond to the control command, resulting in the user may continue to send control commands, reducing the user experience. Since the Wi-Fi signal is unstable, it will also affect the status update of the water purifier.

[0044] Figure 1b A schematic diagram showing a smart device outside the coverage of a Wi-Fi network. In this example, it is assumed that the signal coverage area of ​​AP1 (i.e., wireless access point device, hereinafter referred to as access point device) is a circle, and the radius of the coverage area is R. Figure 1b As shown, the radius of the Wi-Fi network range of AP1 is smaller than a, and due to the location of the water purifier and the doorbell, the Wi-Fi signal needs to penetrate the wall, resulting in a further reduction in the coverage range of the Wi-Fi signal, such as Figure 1b As shown, the water purifier and doorbell are outside the coverage of the Wi-Fi signal, causing the water purifier and doorbell to be offline.

[0045] Usually, users can set up a router in room 2 and room 3 respectively, so that the water purifier and doorbell can access the Wi-Fi network normally. Users can also add other relay devices to improve the signal coverage of the Wi-Fi network. However, these two methods require the addition of additional equipment, which increases the cost of using the Wi-Fi network.

[0046] The present application provides a method for enhancing Wi-Fi signals, which is applied to a first electronic device, which may be a smart home device with Wi-Fi function, such as a smart desk lamp, a smart socket, an air conditioner, a smart speaker, a smart doorbell, a smart water purifier, etc. After receiving the Wi-Fi signal, the smart home device detects whether there is information of the target device in the Wi-Fi signal. If so, the Wi-Fi signal is broadcast through the antenna of the first electronic device. Since the antenna of the first electronic device and the Wi-Fi module itself amplify the Wi-Fi signal, the target device can receive the Wi-Fi signal, or the target device's peer device can receive the Wi-Fi signal sent by the target device. In this example, the signal coverage range of the current Wi-Fi network is increased by broadcasting the Wi-Fi signal sent by the target device or broadcasting the Wi-Fi signal sent to the target device through the first electronic device.

[0047] In this example, the first electronic device may have a display screen, such as an air conditioner, a stereo, etc.; it may also have an audio module, such as a stereo, a doorbell, etc. Figure 2 The structural diagram of an electronic device 100 shown in the embodiment of the present application can be shown. The electronic device 100 can be used as a first electronic device or a second electronic device, and the second electronic device can be used to control a device of a target device, for example, the second electronic device can be a mobile phone, a smart speaker, a smart TV, etc.

[0048] It should be understood that Figure 2The electronic device 100 shown is only one example of an electronic device, and the electronic device 100 may have more or fewer components than shown in the drawings, may combine two or more components, or may have a different configuration of components. Figure 2 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0049] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0050] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. The antenna 2 also has the effect of amplifying the transmitted signal.

[0051] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.

[0052] like Figure 3The structure diagram of the Wi-Fi module in the wireless communication module 160 is shown as an example. For example, the Wi-Fi module is loaded with a Wi-Fi CPU (i.e., a Wi-Fi processor) 201. The Wi-Fi CPU 201 is optionally a core processor of the Wi-Fi module, which is used to process Wi-Fi-related computing functions, such as: responsible for congestion control, carrier aggregation, frame filtering, key control, management frame transmission and reception, etc. It can be understood that the processor and the Wi-Fi module 200 can be integrated on the same chip, or on different chips and connected through a bus, which is not limited in this application.

[0053] Continue to refer to Figure 3 Exemplarily, N Wi-Fi radio frequency circuits are integrated in the Wi-Fi module 200, where N is an integer greater than or equal to 1. In this example, one Wi-Fi radio frequency circuit is taken as an example. The Wi-Fi radio frequency circuit is used to access a Wi-Fi network, and the Wi-Fi radio frequency circuit corresponds to an independent set of media access control (English: Media Access Control, abbreviated: MAC) 202 and physical layer (English: physical layer, abbreviated: PHY) 203. The Wi-Fi radio frequency circuit can be used to access a 2.4GHz network, or to access a 5GHz network. Optionally, the Wi-Fi module of the electronic device can integrate multiple Wi-Fi radio frequency circuits, such as 2 Wi-Fi radio frequency circuits, to support 2.4GHz networks and 5GHz networks.

[0054] Still refer to Figure 3 The functions of MAC 202 mainly include channel access, frame decomposition, data transmission and reception, encryption and decryption, and energy saving control. Of course, MAC 202 can also be implemented by Wi-Fi CPU 201, that is, its functions are implemented by Wi-Fi CPU 201. PHY203 mainly implements physical layer functions, such as digital baseband processing.

[0055] Optionally, the Wi-Fi module 200 is coupled to a radio frequency component 204, and the radio frequency component 204 is used to convert the baseband signal processed by the MAC 202 and the PHY 203 into a radio frequency signal and transmit it, and convert the radio frequency signal received from the antenna into a baseband signal for further processing by the PHY 203 and the MAC 202. Optionally, the radio frequency component 204 can be integrated on the Wi-Fi chip where the Wi-Fi module is located, or it can be outside the chip, which is not limited in this application.

[0056] It is understandable that the Wi-Fi CPU 201 may also be replaced by a DSP (digital signal processor) or an independent FPGA (field programmable gate array) chip. The specific form of the processor for implementing Wi-Fi processing may be flexible and variable. Figure 3 The number and layout of each device are for reference only and are not intended to be limiting.

[0057] Figure 4 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0058] The layered architecture of the electronic device 100 divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into three layers, from top to bottom, namely, the application layer, the application framework layer, and the kernel layer. It is understandable that Figure 4 The layers in the software structure and the components contained in each layer do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown in the figure, and each layer may include more or fewer components, which is not limited in the present application.

[0059] like Figure 4 As shown, the application layer may include a series of application packages. Application packages may include applications, relay applications, alarms, cameras and other applications. The application framework layer provides an application programming interface (API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. In this example, the relay application is used to forward Wi-Fi signals to a target device specified by the user, or to forward Wi-Fi signals to the target device (i.e., send Wi-Fi signals to the target device). If in this example, the electronic device is a smart camera, the electronic device can realize remote alarms, and can also remotely control the camera to capture images.

[0060] like Figure 4 As shown, the application framework layer may include a Wi-Fi module, a resource manager, a content provider, etc.

[0061] The Wi-Fi module can be used to manage the Wi-Fi connection of the electronic device, including establishing a connection, disconnecting a connection, maintaining a connection, storing information of a target device, updating first tag data, etc.

[0062] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0063] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0064] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, Wi-Fi driver, Bluetooth driver, audio driver, sensor driver, etc.

[0065] Understandably, Figure 4 The layers in the software structure shown and the components included in each layer do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown, and each layer may include more or fewer components, which is not limited in the present application.

[0066] Figure 5 The flowchart of a method for enhancing Wi-Fi signals is shown as an example, and specifically includes the following steps:

[0067] Step 501: The first electronic device determines whether the first electronic device needs to broadcast the first Wi-Fi signal to the target device based on the first Wi-Fi signal and the preset target device information. If yes, step 502 is executed; if no, step 503 is executed.

[0068] In this example, the first electronic device may be an electronic device with a Wi-Fi module, and the first electronic device may have a display screen or may not have a display screen. For example, the first electronic device may be a smart door lock, a smart desk lamp, a smart socket, a smart speaker, a smart air conditioner, a smart TV, or other devices.

[0069] Optionally, the number of first electronic devices may be one or two or more. The first electronic device may be pre-selected by the user. For example, in the user's residence shown in FIG1 , the user may select the smart sockets in room 2 and room 3 as the first electronic device according to the coverage of the Wi-Fi signal. In this example, the first electronic device may be described by taking a smart socket and a smart speaker as an example.

[0070] The smart socket and the smart speaker are connected to the first Wi-Fi network through scanning, authentication, association, and connection steps. The scanning, authentication, association, and connection process of the smart socket and the smart speaker can refer to the process of existing electronic devices accessing a Wi-Fi network, which will not be repeated here.

[0071] Optionally, the user may predetermine a target device, which is already associated with an access point device (AP) of the first Wi-Fi network. In this example, the target device is a water purifier and a doorbell.

[0072] The water purifier and doorbell scan the first Wi-Fi network, and after authenticating with the AP of the first Wi-Fi network, the water purifier and doorbell are associated with the AP of the first Wi-Fi network respectively. When the water purifier and doorbell receive the Wi-Fi signal of the first Wi-Fi network, they communicate with other devices through the Wi-Fi network, such as mobile phones, speakers, etc. For example, the water purifier and doorbell can be associated with the AP of the first Wi-Fi network before installation; after the water purifier and doorbell are associated with the AP of the first Wi-Fi network respectively, and as follows Figure 1a Install in the position shown.

[0073] like Figure 1a As shown, the user can also install the water purifier in room 2 and the doorbell outside the door of room 3; after the installation is completed, the water purifier and the doorbell are connected to the first Wi-Fi network after scanning, authentication, and association. In other words, the target device can be within the coverage of the first Wi-Fi network and has been connected to the first Wi-Fi network, or it can be associated with the AP of the first Wi-Fi network and outside the coverage of the first Wi-Fi network.

[0074] In one example, the user may set the target device information, which may include identification information of the target device.

[0075] Optionally, the user can add identification information of the target device in the first electronic device, and the identification information of the target device can be the MAC address of the target device. Each electronic device has a unique MAC address, which is usually marked on the electronic device. After obtaining the MAC address of the target device, the user adds the MAC address of the target device to the first electronic device by manual input. For example, the user connects the mobile phone to the first electronic device (such as a smart socket) for communication (such as Wi-Fi direct connection, Bluetooth connection or other short-range communication connection method), the user manually enters the MAC address of the target device on the mobile phone, and sends it to the first electronic device for storage by the first electronic device. Optionally, the first electronic device can store the MAC address of each target device in the form of a table, or store the MAC address of each target device in other ways.

[0076] Optionally, the first electronic device may also download the MAC address of the target device from the server, and the MAC address of the target device in the server is manually added by the user.

[0077] The first Wi-Fi signal can be a signal forwarded by the second electronic device through AP1, and the first Wi-Fi signal can also be a signal returned by the target device to the second electronic device. That is to say, the first electronic device can receive a signal sent to the target device and can also receive a signal returned by the target device. The second electronic device can be a device for controlling the target device. For example, in the scenario shown in Figure 1, the first electronic device is a smart socket, the target device is a water purifier and a doorbell, and the second electronic device can be a smart TV, a mobile phone, a tablet computer, a smart watch and other devices. It can be understood that in different scenarios, the same device can be the first electronic device or the second electronic device. For example, in the scenario where the mobile phone controls the water purifier, the smart speaker can be used as the first electronic device; in the scenario where the smart speaker controls the desk lamp to turn off, the smart speaker can be used as the second electronic device and the smart socket as the first electronic device. In this example, the second electronic device is illustrated by taking a mobile phone as an example.

[0078] Optionally, the first Wi-Fi signal includes a control frame, where the control frame is used to instruct the target device to perform a specific operation.

[0079] The first electronic device can detect whether the first Wi-Fi signal contains information of a preset target device. If so, it is determined that the first Wi-Fi signal needs to be broadcast to the target device. If not, it is determined that the first Wi-Fi signal does not need to be forwarded to the target device.

[0080] Specifically, after receiving the first Wi-Fi signal, the first electronic device may detect whether the destination address (i.e., the receiving end address) of the first Wi-Fi signal contains information about the target device, or detect whether the sending end address of the first Wi-Fi signal contains information about the target device. If the first electronic device detects that the destination address or the sending end address in the first Wi-Fi signal contains information about the target device, it is determined that the first Wi-Fi signal contains information about the target device, and step 502 is executed. If the first electronic device detects that the destination address in the first Wi-Fi signal does not contain information about the target device and the sending end address does not contain information about the target device, it is determined that the first Wi-Fi signal does not contain information about the target device, and step 503 is executed. The information about the target device may be a MAC address of the target device, or identification information of a target manufacturer.

[0081] Step 502: A first electronic device broadcasts a first Wi-Fi signal.

[0082] Specifically, the Wi-Fi module in the first electronic device determines to broadcast the first Wi-Fi signal, and the Wi-Fi module can amplify the first Wi-Fi signal, amplify the first Wi-Fi signal again through the antenna in the first electronic device, and transmit the first Wi-Fi signal. For example, if the signal strength of the first Wi-Fi signal is -60dB, the signal strength of the first Wi-Fi signal after amplification by the Wi-Fi module is -55dB; the antenna of the first electronic device can further amplify the first Wi-Fi signal, such as the signal strength of the first Wi-Fi signal transmitted by the first electronic device is -50dB.

[0083] It should be noted that when the first electronic device transmits a signal, it will amplify the signal, and there is no need to add an additional amplification circuit in the first electronic device; at the same time, the antenna can further amplify the transmitted signal, thereby enhancing the signal strength of the broadcast first Wi-Fi signal.

[0084] Step 503: When the first electronic device detects that the receiving end of the first Wi-Fi signal is not the first electronic device, step 504 is executed.

[0085] Specifically, the first electronic device can detect whether the destination address of the first Wi-Fi signal is the same as the MAC address of the first electronic device, and if so, determine that the first Wi-Fi signal is a signal sent to the device. If not, determine to execute step 504, that is, discard the first Wi-Fi signal.

[0086] It should be noted that the first electronic device may first perform a step of detecting whether the first Wi-Fi signal is a signal sent to the present device, that is, first perform a step of detecting whether the destination address of the first Wi-Fi signal is the MAC address of the first electronic device. When the first electronic device detects that the destination address of the first Wi-Fi signal is not the MAC address of the first electronic device, it detects whether the first Wi-Fi signal contains information of a preset target device. If the first electronic device detects that the first Wi-Fi signal contains information of the target device, step 502 is performed; if the first electronic device detects that the first Wi-Fi signal does not contain information of the target device, step 504 is directly performed.

[0087] Step 504: The first electronic device discards the first Wi-Fi signal.

[0088] The following describes the process of processing the first Wi-Fi signal when the first electronic device receives the Wi-Fi signal sent by the AP and when the first electronic device receives the Wi-Fi signal sent by the target device.

[0089] When the first electronic device receives a Wi-Fi signal sent by the AP of the first Wi-Fi network, the first electronic device can detect whether the destination address of the Wi-Fi signal contains information of a preset target device. The information of the target device can be the MAC address of the target device; or it can be identification information of the target manufacturer of the target device. When the first electronic device detects that the destination address of the Wi-Fi signal contains information of the target device, it determines to forward the Wi-Fi signal. When the first electronic device detects that the destination address of the Wi-Fi signal does not contain information of the target device, and detects that the destination address of the Wi-Fi signal does not contain the MAC address of the first electronic device, it discards the Wi-Fi signal.

[0090] Combine the following Figure 6 Describe the process in detail. Figure 6 The figure is a schematic diagram of a scenario in which a first electronic device forwards a first Wi-Fi signal.

[0091] like Figure 6 As shown, the access point device of the first Wi-Fi network is AP1. The first electronic device in this example includes a smart socket and a smart air conditioner; the target device includes a water purifier and a doorbell, and the second electronic device is mobile phone A. Assume that mobile phone A, the smart socket, the smart air conditioner, the water purifier and the doorbell are all connected to the first Wi-Fi network. The user A wants to control the water purifier to turn off the water purification function through mobile phone A. The user inputs an instruction to turn off the water purification function to mobile phone A. In response to the instruction input by the user, mobile phone A sends control instruction 1 through the first Wi-Fi network. The destination address of the control instruction 1 includes the MAC address of the water purifier. In response to the received control instruction 1, the AP1 broadcasts the control instruction 1 in the first Wi-Fi network. The distance between the smart socket and the smart speaker and the AP1 is less than the distance between the water purifier and the AP1. The smart socket receives the control instruction 1 and detects whether the destination address in the control instruction 1 contains the MAC address of the water purifier. When the smart socket detects that the destination address of the control instruction 1 includes the MAC address of the water purifier, the Wi-Fi signal including the control instruction 1 is amplified by the Wi-Fi module of the smart socket and the amplified Wi-Fi signal is forwarded by the antenna of the smart socket.

[0092] Figure 7 FIG. 1 is a schematic diagram showing an example of a smart socket sending and receiving signals in two adjacent time slices. Figure 7 As shown, the smart socket receives and transmits signals in time. The AP broadcast of the first Wi-Fi network broadcasts signals in the first Wi-Fi network, such as Figure 6Assume that AP1 broadcasts three Wi-Fi signals during the period T1 to T2, which are respectively recorded as signal A and signal B. The destination address of signal A is MAC_A, the destination address of signal B is MAC_B, and the destination address of signal C is MAC_C. Figure 7 As shown, the smart socket receives signal A, signal B and signal C during the time period from T1 to T2. The smart socket detects that the destination address of signal A is consistent with the MAC address of the smart socket. Then the smart socket performs the corresponding operation based on the received signal A and sends a return signal D to the mobile phone, that is, the smart socket broadcasts the return signal D. When AP1 receives the return signal D, it forwards the return signal D to the mobile phone. The smart socket detects that the destination address of signal B is consistent with the MAC address of the pre-stored smart water purifier, and determines to broadcast signal B. The smart socket detects that the destination address of signal C is inconsistent with the MAC address of the device and the stored MAC address of the target device, and then discards signal C.

[0093] Among them, the time T1~T2 and the time T2~T3 constitute the first time slice, such as Figure 7 As shown, the smart socket receives signals at time T1 to T2, and the received signals are information of the MAC address sent to the device (i.e., signal A) and information of the MAC address sent to the target device (i.e., signal B). Since the destination address of signal C is detected to be different from the MAC address of the present application and the MAC address of the target device, signal C is discarded. Figure 7 The signal D is not shown in the figure. At time T2 to T3, the smart socket broadcasts the information sent back by the device (ie, signal D) and the MAC information of the target device (ie, signal B).

[0094] When the first electronic device broadcasts a signal to the target device, the target device broadcasts a return signal (the return signal is a second Wi-Fi signal) in response to receiving the signal broadcast by the first electronic device. Similar to the first electronic device receiving the signal sent by the AP, if the first electronic device receives the return signal, it detects whether the information of the target device exists in the sender address of the return signal. If the sender address of the return signal contains the information of the target device, it determines to broadcast the return signal. When the first electronic device detects that the sender address of the return signal does not contain the information of the target device, and detects that the target address of the return signal does not contain the MAC address of the first electronic device, the return signal is discarded.

[0095] Continue to refer to Figure 7, the smart socket amplifies and broadcasts signal B, the water purifier receives signal B (such as instructing to turn off the water purification function), the water purifier responds to the instruction in signal B, turns off the water purification function, and generates a return signal E (the sender address of signal E is MAC_B) to indicate that the water purification function has been turned off. Assume that the water purifier broadcasts signal E at time T4-T5, and the smart socket receives signal E and signal F at time T4-T5. AP1 broadcasts signal F (the destination address of signal F is MAC_A) and signal G (the destination address of signal F is MAC_B) at time T4-T5.

[0096] The smart socket receives signal E, signal F, and signal G at T4-T5. The smart socket detects that the destination address of signal F is consistent with the MAC address of the smart socket, then the smart socket performs the corresponding operation based on the received signal F, and sends a return signal F' to the mobile phone, that is, the smart socket broadcasts the return signal F' at T5-T6, and when AP1 receives the return signal F', it forwards the return signal F' to the mobile phone. The smart socket detects that the sender address of signal E is consistent with the MAC address of the pre-stored smart water purifier, then broadcasts signal E at T5-T6. The smart socket detects that the destination address of signal G is consistent with the MAC address of the pre-stored smart water purifier, then determines to broadcast signal G.

[0097] Among them, the time T4~T5 and the time T5~T6 constitute the second time slice, such as Figure 7 As shown, at time T4-T5, the smart socket receives signals, and the received signals include: information sent to the MAC of the device (i.e., signal F), information sent to the MAC of the target device (i.e., signal G), and a signal sent back by the target device (i.e., signal E). At time T5-T6, the smart socket broadcasts information sent back by the device (i.e., signal F'), information sent to the MAC of the target device (i.e., signal G), and information sent back by the target device (i.e., signal E).

[0098] It should be noted that the mobile phone can respond to the received signal G to prompt the user that the water purification function of the water purifier has been turned off.

[0099] Figure 8 FIG. 1 is a schematic diagram showing an exemplary smart socket relaying a Wi-Fi signal. Figure 8 As shown, the access point device of the first Wi-Fi network is AP1, and it is assumed that the smart doorbell is located outside the door (such as Figure 1aAs shown in the figure, the smart doorbell is equipped with a camera, and the smart socket stores the MAC address of the smart doorbell. Mobile phone A sends instruction A to turn on the camera to the doorbell through AP1, and the smart doorbell receives instruction A to send the smart doorbell (i.e., the information of the MAC of the target device). The smart socket detects that the destination address of instruction A is the same as the MAC address of the smart doorbell, and broadcasts instruction A (i.e., the information of the MAC of the target device). The smart doorbell receives instruction A, turns on the camera, and generates a return signal. The smart doorbell broadcasts the return signal (i.e., the signal sent back by the target device). The smart socket receives the return signal, detects that the sender address of the return signal is consistent with the MAC address of the smart doorbell, and determines to broadcast the return signal. The AP1 receives the broadcast return signal, and then can send the return signal to the mobile phone according to the destination address in the return signal. The mobile phone responds to the return signal and prompts the user that the camera is turned on.

[0100] Should Figure 8 The schematic diagram in the figure clearly shows that the smart socket forwards the signals from the sending and receiving ends to achieve the relay of Wi-Fi signals.

[0101] Fig.14 This is a schematic diagram of a scenario in which a Wi-Fi signal is forwarded when the smart socket stores the MAC address of a target device.

[0102] Assume that when the smart speaker receives the user's instruction A to turn off the desk lamp, it forwards the Wi-Fi signal A containing the instruction A through AP1. Mobile phone A instructs the water purifier to turn off the water purification function, and the mobile phone forwards the Wi-Fi signal B containing the instruction through AP1. When the smart speaker responds to the user's instruction B to turn off the doorbell camera, it forwards the Wi-Fi signal C containing the instruction B through AP1. Fig.14 As shown, AP1( Fig.14 The AP1 is not shown in the figure) broadcasting the three Wi-Fi signals. The destination address of Wi-Fi signal A is MAC_A; the destination address of Wi-Fi signal B is MAC_B; and the destination address of Wi-Fi signal C is MAC_C.

[0103] like Fig.14 As shown, the smart socket receives Wi-Fi signal A, detects whether there is a MAC address in the Wi-Fi signal A that is the same as the MAC address of the target device, and when it is detected that the receiving end address in the Wi-Fi signal A is the same as the stored MAC_A, it determines to broadcast the Wi-Fi signal A. The Wi-Fi module of the smart socket can amplify the Wi-Fi signal, and the antenna of the smart socket can amplify the Wi-Fi signal A again and transmit the amplified Wi-Fi signal A.

[0104] The smart socket receives Wi-Fi signal B, detects whether there is a MAC address in the Wi-Fi signal B that is the same as the MAC address of the target device, and when it is detected that the receiving end address in the Wi-Fi signal B is the same as the stored MAC_B, it determines to broadcast the Wi-Fi signal B. Similarly, the smart socket amplifies and transmits Wi-Fi signal B.

[0105] The smart socket receives the Wi-Fi signal C and detects whether there is a MAC address in the Wi-Fi signal C that is the same as the MAC address of the target device. When it is detected that there is no MAC address in the Wi-Fi signal C that is the same as the MAC address of the target device, it is determined not to broadcast the Wi-Fi signal C and the Wi-Fi signal C can be discarded. Fig.14 As shown, the desk lamp receives Wi-Fi signal A broadcast by the smart socket, and the water purifier receives Wi-Fi signal B broadcast by the smart socket. The desk lamp can respond to Wi-Fi signal A, perform corresponding operations, and then broadcast return signal A (i.e., the second Wi-Fi signal). The return signal A can continue to return to AP1 through the smart socket, and AP1 forwards the smart speaker. The smart speaker can prompt the user that it has been turned off or perform other operations based on the return signal A.

[0106] Similarly, after the water purifier has completed the operation of shutting down the water purification function, it can broadcast a return signal B, and the return signal B can continue to return to AP1 through the smart socket, and AP1 will forward it to the mobile phone.

[0107] In this example, the smart socket stores information about the target device. When the smart socket receives a Wi-Fi signal, it detects whether the receiving end address of the Wi-Fi signal contains information about the target device or detects whether the sending end address of the Wi-Fi signal contains information about the target device. When it is detected that the receiving end address of the Wi-Fi signal contains information about the target device or detects whether the sending end address of the Wi-Fi signal contains information about the target device, it is determined to broadcast the Wi-Fi signal. The Wi-Fi module in the smart socket amplifies the first Wi-Fi signal, and the antenna amplifies the first Wi-Fi signal again. That is, without adding an additional relay device, the smart socket can amplify the first Wi-Fi signal twice, so that the target device can receive the first Wi-Fi signal or the second electronic device (such as a mobile phone, a smart speaker, a smart TV) can receive the first Wi-Fi signal sent by the target device through the AP, thereby improving the signal coverage of the first Wi-Fi network where the current smart socket is located, improving the response speed of smart home devices, and avoiding the problem of smart home devices being disconnected. For example, Figure 1bAs shown, the radius of the signal coverage range of the first Wi-Fi network is less than a; and the smart socket performs the Wi-Fi signal enhancement method in this application, such as Figure 7 As shown, the radius of the signal range of the first Wi-Fi network is greater than a. Since there is no need to add additional relay equipment, but existing smart home devices are used, the cost of relaying Wi-Fi signals is reduced. In addition, in this example, the first electronic device forwards the first Wi-Fi signal. Since the first Wi-Fi signal carries a control frame, the throughput of the control frame is small, which reduces the load on the smart socket (i.e., the first electronic device) and reduces power consumption.

[0108] In some embodiments, the information of the target device includes: identification information of the target manufacturer. The first electronic device may pre-store the identification information of the target manufacturer. For example, the target manufacturer may be "Honor" or another manufacturer. The identification information of the target manufacturer may be an OUI (Organizationally unique identifier). In the 6-byte MAC address burned into any network card (NIC), the first 3 bytes are used to reflect the OUI.

[0109] For example, an engineer may store the target manufacturer's OUI in the first electronic device in advance by pre-compiling.

[0110] Optionally, the first electronic device may also receive identification information of a target manufacturer transmitted by other devices. Two methods are described below.

[0111] Method 1: When the first electronic device is connected to a network, the server corresponding to the first electronic device can send the identification information of the target manufacturer.

[0112] Method 2: The first electronic device can also transmit the identification information of the target manufacturer through the second electronic device, and the second electronic device is communicated with the first electronic device. The communication connection method can be a wired connection (such as a USB cable) or a wireless connection, such as a Bluetooth connection, a Wi-Fi connection, etc.

[0113] In this example, we combine Fig. 9 The process of storing the identification information of the target manufacturer by the first electronic device through the second method is specifically described. The second electronic device takes a mobile phone as an example, and the first electronic device takes a smart socket and a smart speaker as examples. The mobile phone can form an Ad-Hoc (point-to-point) mode with the smart socket and the smart speaker. The mobile phone can also communicate with the smart socket and the smart speaker through the AP. Fig. 9Take the example of the mobile phone communicating with the smart socket and smart speaker through AP1. The display interface 901 of the mobile phone shows three manufacturer options, namely, manufacturer A 902, manufacturer B 903, and manufacturer C 904. The user clicks option 904 to confirm that the user has selected "manufacturer C". When the user clicks the OK button, a selection instruction 1 is generated. The selection instruction 1 is used to indicate that the manufacturer selected by the user is "manufacturer C". Fig. 9 As shown, the selection instruction is forwarded to the smart door lock and the smart speaker through AP1. Optionally, the user can also select 2 or more manufacturers.

[0114] The smart socket and the smart speaker each store the OUI information of three smart home manufacturers, namely the OUI of manufacturer A, the OUI of manufacturer B, and the OUI of manufacturer C. Among them, the OUI of manufacturer A is: b019c6; the OUI of manufacturer B is b019c7; the OUI of manufacturer C is: F0FE6B. When the smart door lock receives the selection instruction 1, according to the selection instruction 1, the identification information of manufacturer C is selected from the stored manufacturer identification information as the identification information of the target manufacturer. Fig. 9 As shown, the identification information of the target manufacturer is F0FE6B.

[0115] Similarly, when the smart speaker receives the selection instruction 1, according to the selection instruction 1, the identification information of manufacturer C is selected from the stored identification information of manufacturers as the identification information of the target manufacturer. Fig. 9 As shown, the identification information of the target manufacturer is F0FE6B.

[0116] Optionally, the second electronic device responds to the instruction of the manufacturer selected by the user, obtains the OUI of the manufacturer selected by the user, and transmits the identification information of the target manufacturer (i.e., the OUI of the target manufacturer) to each smart home device in the current first Wi-Fi network. After receiving the identification information of the target manufacturer, each smart home device in the first Wi-Fi network saves the identification information of the target manufacturer.

[0117] Fig.10 FIG. 1 is a schematic diagram of a scenario in which a smart socket forwards a Wi-Fi signal based on the identification information of a target manufacturer. Fig.10 As shown, AP1 of the first Wi-Fi network broadcasts 3 Wi-Fi signals ( Fig.10 The AP is not shown in the figure. The destination address of Wi-Fi signal A is MAC_A; the destination address of Wi-Fi signal B is MAC_B, and the destination address of Wi-Fi signal C is MAC_C. Among them, the OUIs in MAC_A, MAC_B and MAC_C are all F0FE6B.

[0118] The identification information of the target manufacturer stored in the smart socket is: F0FE6B. When the smart socket receives Wi-Fi signal A, it detects whether the identification information of the target manufacturer exists in the destination address of the Wi-Fi signal A. The smart socket detects that the OUI in the destination address of the Wi-Fi signal A is consistent with the identification information of the target manufacturer (i.e., F0FE6B), and determines to broadcast the Wi-Fi signal A.

[0119] When the smart socket receives Wi-Fi signal B, it detects that the OUI in the destination address of the Wi-Fi signal is consistent with the identification information of the target manufacturer (i.e., F0FE6B), and determines to broadcast Wi-Fi signal B. When the smart socket receives Wi-Fi signal C, it detects that the OUI in the destination address of the Wi-Fi signal is consistent with the identification information of the target manufacturer (i.e., F0FE6B), and determines to broadcast Wi-Fi signal C.

[0120] It should be noted that the Wi-Fi module and antenna of the smart socket amplify Wi-Fi signal A, thereby increasing the signal strength of the broadcast Wi-Fi signal. Similarly, the Wi-Fi module and antenna of the smart socket amplify Wi-Fi signal B and Wi-Fi signal C, thereby enhancing the signal strength of the broadcast Wi-Fi signal B and Wi-Fi signal C.

[0121] Continue to refer to Fig.10 , Assume that the signal coverage of Wi-Fi signal A, Wi-Fi signal B and Wi-Fi signal C broadcast by the smart socket includes: table lamp, water purifier and doorbell. The table lamp, water purifier and doorbell all receive three Wi-Fi signals. The table lamp detects that the MAC address of Wi-Fi signal A is the same as its own MAC address, and retains Wi-Fi signal A. The table lamp detects that the destination addresses of Wi-Fi signal B and Wi-Fi signal C are different from the table lamp's own MAC address, so it discards Wi-Fi signal B and Wi-Fi signal C. Similarly, the water purifier retains Wi-Fi signal B with destination address MAC_B and discards other Wi-Fi signals. The doorbell retains Wi-Fi signal with destination address MAC_C and discards other Wi-Fi signals.

[0122] In this example, the first electronic device saves the OUI of the target manufacturer and can forward the Wi-Fi signal for the device belonging to the target manufacturer by identifying the OUI in the MAC address in the received Wi-Fi signal without storing the MAC address of each target device one by one, thereby reducing user operations.

[0123] In some embodiments, the target device information includes: identification information of the target manufacturer. The first electronic device can determine whether the first electronic device needs to broadcast a first Wi-Fi signal for the target device based on the OUI of the target manufacturer and the stored first tag data, the first tag data being used to store the MAC address of the non-target device, wherein the first electronic device does not broadcast a Wi-Fi signal containing the MAC address of the non-target device.

[0124] Specifically, when the first electronic device is in the initial state, the first tag data may be empty, and the first tag data may also store the MAC address of a non-target device input by the user. After the first electronic device broadcasts a Wi-Fi signal whose destination address contains the OUI of the target manufacturer, it determines whether the device to which the destination address belongs feeds back a return signal (i.e., a second Wi-Fi signal) within a preset time period. If not, it further detects whether the Wi-Fi signal sent to the destination address is broadcasted N times in succession, and no return signal is received from the device to which the destination address belongs; N is an integer greater than 1; if it is determined that the Wi-Fi signal to the destination address is broadcasted N times in succession and no return signal is received, the MAC address in the destination address is added to the first tag data. Optionally, N can be 2, 3, 4, 5 or more, and in this example, N is illustrated by taking 2 as an example.

[0125] For example, when the smart speaker receives the user's instruction A to turn off the desk lamp, it forwards the Wi-Fi signal A containing the instruction A through AP1. Mobile phone A instructs the user to turn off the water purification function of the water purifier, and the mobile phone forwards the Wi-Fi signal B containing the instruction through AP1. When the smart speaker responds to the user's instruction B to turn off the camera of the doorbell, it forwards the Wi-Fi signal C containing the instruction B through AP1. Fig.11 As shown, AP1( Fig.11 The AP1 is not shown in the figure. The destination address of Wi-Fi signal A is MAC_A; the destination address of Wi-Fi signal B is MAC_B; and the destination address of Wi-Fi signal C is MAC_C. The OUIs in MAC_A, MAC_B, and MAC_C are all F0FE6B.

[0126] The identification information of the target manufacturer stored in the smart socket is: F0FE6B. When the smart socket receives Wi-Fi signal A, it detects whether the identification information of the target manufacturer exists in the destination address of the Wi-Fi signal A. The smart socket detects that the OUI in the destination address of the Wi-Fi signal A is consistent with the identification information of the target manufacturer (i.e., F0FE6B), and determines that the Wi-Fi signal A needs to be broadcasted for the target device. After determining to broadcast the Wi-Fi signal A, the smart socket can record the destination address.

[0127] When the smart socket receives Wi-Fi signal B, detects that the OUI in the destination address of the Wi-Fi signal is consistent with the identification information of the target manufacturer (i.e., F0FE6B) and detects that MAC_B does not exist in the first tag data, it determines that the Wi-Fi signal B needs to be broadcast to the target device. After determining to broadcast the Wi-Fi signal B, the smart socket can record the destination address.

[0128] When the smart socket receives the Wi-Fi signal C, detects that the OUI in the destination address of the Wi-Fi signal is consistent with the identification information of the target manufacturer (i.e., F0FE6B), and detects that the MAC_C does not exist in the first tag data, it determines that the Wi-Fi signal C needs to be broadcast to the target device. After determining to broadcast the Wi-Fi signal C, the smart socket can record the destination address.

[0129] like Fig.11 As shown in the figure, the smart socket broadcasts Wi-Fi signal A, Wi-Fi signal B and Wi-Fi signal C. Although the smart socket amplifies the Wi-Fi signal when broadcasting, the table lamp and the doorbell are far away from the smart socket, so the table lamp and the doorbell do not receive the three Wi-Fi signals (i.e., Wi-Fi signal A, Wi-Fi signal B and Wi-Fi signal C) broadcast by the smart socket. Fig.11 As shown, only the water purifier receives Wi-Fi signal B, and discards Wi-Fi signal A and Wi-Fi signal C.

[0130] like Fig.12 As shown, the water purifier responds to the instruction B in the Wi-Fi signal B, turns off the water purification function, and generates a return signal (i.e., Wi-Fi signal D), and the sender address in the Wi-Fi signal D is MAC_B. The water purifier broadcasts the Wi-Fi signal D. The smart socket receives the Wi-Fi signal D, detects within a preset time (e.g., 0.2 seconds) that the OUI in the sender address of the Wi-Fi signal D is consistent with the identification information of the target manufacturer (i.e., F0FE6B), and detects that the MAC_B does not exist in the first tag data, and determines to broadcast the Wi-Fi signal B. The smart socket can record the information of the Wi-Fi signal returned by the device to which MAC_B belongs.

[0131] Since the smart socket did not receive the Wi-Fi signal returned by the device belonging to MAC_A within the preset time, the information that the Wi-Fi signal returned by the device belonging to MAC_C was not received this time can be recorded. Similarly, the smart socket did not receive the Wi-Fi signal returned by the device belonging to MAC_C, and the information that the Wi-Fi signal returned by the device belonging to MAC_C was not received this time can be recorded. The recorded information can be in a table form, as shown in Table 1:

[0132] Table 1

[0133] Receiver MAC address Whether the Wi-Fi signal sent back by the MAC address is received MAC_A no MAC_B yes MAC_C no MAC_A no MAC_B yes MAC_C no

[0134] As shown in Table 1, if the smart socket detects that it has not received the Wi-Fi signal returned by the device to which MAC_A belongs for two consecutive times, then MAC_A is stored in the first tag data. If the smart socket detects that it has not received the Wi-Fi signal returned by the device to which MAC_C belongs for two consecutive times, then MAC_C is stored in the first tag data. Fig.12 As shown, the first tag data now includes MAC_A and MAC_C.

[0135] Reference Fig.13 As shown, when AP1 broadcasts three Wi-Fi signals again the next time, the smart socket detects that the destination address of Wi-Fi signal A contains the identification information of the target manufacturer, and then detects whether there is an address consistent with MAC_A in the first tag data. When MAC_A is detected in the first tag data, it is determined not to broadcast Wi-Fi signal A. The smart socket detects that the destination address of Wi-Fi signal A contains the identification information of the target manufacturer and detects that MAC_B does not exist in the first tag data, and then determines to broadcast Wi-Fi signal B. The smart socket detects that the destination address of Wi-Fi signal A contains the identification information of the target manufacturer and detects that MAC_C exists in the first tag data, and then determines not to broadcast Wi-Fi signal C. That is, Fig.13 As shown, the smart socket broadcasts Wi-Fi signal B and discards Wi-Fi signal A and Wi-Fi signal C.

[0136] In this example, the target device needs to send a return signal after receiving the Wi-Fi signal; based on this, the smart socket detects whether it will receive the return signal sent by the target device each time it forwards the Wi-Fi signal to the target device; if the smart socket does not receive the return signal sent by the target device after forwarding the Wi-Fi signal to the same target device for multiple consecutive times, it can be determined that the target device cannot receive the Wi-Fi signal amplified by the smart socket, and the target device is marked as a non-target device, so that the smart device does not forward the Wi-Fi signal marked as a non-target device at the receiving end, thereby reducing the load and power consumption of the smart socket. At the same time, it also realizes automatic updating of target devices and non-target devices, reduces user operations, and reduces the workload of the smart socket forwarding.

[0137] Fig.15 The electronic device shown in FIG. 1 is an exemplary embodiment of a scene using a Wi-Fi network. Fig.15As shown, the user's residence includes three rooms. A wireless access point device (Access Point, "AP") AP1 and a smart TV are placed in Room 1. A smart water purifier is placed in Room 2, a smart doorbell is installed outside the door of Room 3, and smart sockets are installed in Room 2 and Room 3. Each smart device supports the Wi-Fi function, that is, each smart device can access the Wi-Fi network. Users can control smart devices connected to the Wi-Fi network through their mobile phones. For example, the mobile phone can control the doorbell to turn on the camera through the Wi-Fi network. Fig.15 As shown, the smart socket detects that the received Wi-Fi signal 1 contains the information of the water purifier, then amplifies the Wi-Fi signal 1 and broadcasts the Wi-Fi signal 1, so that the water purifier can receive the Wi-Fi signal 1. The smart socket detects that the received Wi-Fi signal 2 contains the information of the doorbell, then amplifies the Wi-Fi signal 2 and broadcasts it, so that the doorbell can receive the Wi-Fi signal 2.

[0138] Compared to Figure 1a In the scenario where the doorbell and water purifier cannot receive Wi-Fi signals, this example does not require additional relay devices to enhance the Wi-Fi signal and improve the signal coverage of the Wi-Fi signal.

[0139] In some embodiments, the first electronic device can also perform secondary relaying. For example, the Wi-Fi signal to be forwarded is signal 2. The smart socket, as the first-level relay device, forwards signal 2 for the first time. When the smart speaker receives signal 2, it detects that the receiving end of signal 2 is the doorbell, and then continues to forward signal 2. Similarly, the second Wi-Fi signal returned by the doorbell in response to signal 2 passes through the smart speaker and the smart socket in turn and returns to the AP.

[0140] It is understandable that, in order to realize the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.

[0141] This embodiment also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method for enhancing Wi-Fi signals in the above-mentioned embodiment. The storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0142] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the method for enhancing Wi-Fi signals in the above-mentioned embodiment.

[0143] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.

[0144] Any content of each embodiment of the present application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of the present application.

[0145] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for enhancing Wi-Fi signals, characterized in that: Applied to a first electronic device, the first electronic device has been connected to a first Wi-Fi network; the method includes: The first electronic device determines, in response to the first Wi-Fi signal, whether the first electronic device needs to broadcast the first Wi-Fi signal to the target device according to the first Wi-Fi signal and information of a preset target device, wherein the target device is a device associated with an access point device of the first Wi-Fi network; the first Wi-Fi signal is sent by the access point device of the first Wi-Fi network or by the target device; If it is determined that the first electronic device needs to broadcast the first Wi-Fi signal for the target device, broadcast the first Wi-Fi signal; when the first electronic device determines that the first Wi-Fi signal needs to be broadcast for the target device, the first Wi-Fi signal includes information of the target device; Herein, when the first Wi-Fi signal is sent by an access point device of the first Wi-Fi network, the first Wi-Fi signal broadcast by the first electronic device is received by the target device; or, when the first Wi-Fi signal is sent by the target device, the first Wi-Fi signal broadcast by the first electronic device is received by the second electronic device through the access point device of the first Wi-Fi network.

2. The method according to claim 1, characterized in that The determining, according to the first Wi-Fi signal and information of a preset target device, whether the first electronic device needs to broadcast the first Wi-Fi signal to the target device includes: Obtaining stored identification information of the target manufacturer; detecting whether the first Wi-Fi signal includes identification information of the target manufacturer, and obtaining a first detection result; According to the first detection result, it is determined whether the first electronic device needs to broadcast the first Wi-Fi signal to the target device.

3. The method according to claim 2, characterized in that The determining, according to the first detection result, whether the first electronic device needs to broadcast the first Wi-Fi signal to the target device includes: If the first detection result indicates that the first Wi-Fi signal includes the identification information of the target manufacturer, it is determined that the first electronic device needs to broadcast the first Wi-Fi signal for the target device.

4. The method according to claim 2, characterized in that: The determining, according to the first detection result, whether the first electronic device needs to broadcast the first Wi-Fi signal to the target device includes: If the first detection result indicates that the first Wi-Fi signal includes the identification information of the target manufacturer, acquiring a MAC address including the identification information of the target manufacturer as the first address; Detecting whether there is a MAC address identical to the first address in the first tag data, the first tag data being used to store the MAC address of the non-target device, and the first electronic device not broadcasting a Wi-Fi signal including the MAC address of the non-target device; If it is detected that there is no MAC address identical to the first address in the first tag data, it is determined that the first electronic device needs to broadcast the first Wi-Fi signal to the target device.

5. The method according to claim 4, characterized in that If it is detected that the first address is a receiving end address, after broadcasting the first Wi-Fi signal, the method further includes: If the second Wi-Fi signal returned by the device to which the first address belongs is not received within the preset time length, detecting whether the first Wi-Fi signal including the first address is broadcasted N times consecutively and the second Wi-Fi signal returned by the device to which the first address belongs is not received, where N is an integer greater than or equal to 1; If it is detected that the first Wi-Fi signal containing the first address is broadcasted N times continuously and the second Wi-Fi signal returned by the device to which the first address belongs is not received, the first address is used as the MAC address of the non-target device and stored in the first tag data.

6. The method according to claim 5, characterized in that Before determining, based on the first Wi-Fi signal and information of the preset target device, whether the first electronic device needs to broadcast the first Wi-Fi signal to the target device, the method further includes: storing identification information of at least two different manufacturers; Receiving a selection instruction sent by a second electronic device, the second electronic device being in communication connection with the first electronic device, the selection instruction being generated by the second electronic device based on a selection operation input by a user; According to the selection instruction, identification information of at least one manufacturer is acquired from identification information of at least two different manufacturers stored as identification information of the target manufacturer.

7. The method according to claim 1, characterized in that Before determining, based on the first Wi-Fi signal and information of the preset target device, whether the first electronic device needs to broadcast the first Wi-Fi signal to the target device, the method further includes: receiving identification information of a target device sent by a second electronic device, where the identification information of the target device is input to the second electronic device by a user; The identification information of the target device is stored.

8. The method according to claim 7, characterized in that The identification information of the target device includes a MAC address of the target device; The determining, according to the first Wi-Fi signal and information of a preset target device, whether the first electronic device needs to broadcast the first Wi-Fi signal to the target device includes: Detecting whether there is a MAC address in the first Wi-Fi signal that is the same as the MAC address of the target device; If the presence is detected, it is determined that the first electronic device needs to broadcast the first Wi-Fi signal to the target device.

9. The method according to claim 1, characterized in that: Before the first electronic device responds to the first Wi-Fi signal, the method further includes: receiving a control instruction forwarded by a second electronic device through the access point device, the control instruction being used to instruct the target device to perform a target operation; After broadcasting the first Wi-Fi signal, the method further includes: receiving a second Wi-Fi signal sent by the target device, where the second Wi-Fi signal includes feedback information generated after the target device performs the target operation; After detecting that the second Wi-Fi signal contains the information of the target device, the second Wi-Fi signal is broadcasted so that the access point device forwards the second Wi-Fi signal to the second electronic device.

10. The method according to claim 1, characterized in that The method further comprises: If it is detected that the first Wi-Fi signal does not include information of a preset target device and it is detected that a receiving end of the first Wi-Fi signal is not the first electronic device, the first Wi-Fi signal is discarded.

11. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the method for enhancing Wi-Fi signals as described in any one of claims 1 to 10.

12. A computer-readable storage medium comprising a computer program, characterized in that: When the computer program runs on an electronic device, the electronic device executes the method for enhancing Wi-Fi signals as described in any one of claims 1 to 10.