Antenna direction adjusting method and device and electronic equipment
By acquiring and analyzing client performance parameters and adjusting the antenna direction of the network equipment, the problem of low accuracy caused by relying on signal strength adjustment in the prior art is solved, and the working efficiency of the network equipment is improved.
Patent Information
- Application Number
- CN202411364707.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-09-27
AI Technical Summary
In the prior art, network equipment only relies on signal strength when adjusting the antenna direction, resulting in low adjustment accuracy, which in turn reduces the working efficiency of network equipment.
By obtaining client performance parameters in different preset antenna directions, determining the target performance parameters, and adjusting the antenna direction according to these parameters to improve adjustment accuracy and working efficiency.
It improves the accuracy of antenna direction adjustment, meets the data transmission needs of different clients, and improves the working efficiency of network equipment.
Smart Images

Figure CN119485341A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of antenna technology, and in particular relates to an antenna direction adjustment method, device and electronic equipment. Background Art
[0002] In the related art, when a wireless network is created, the antenna configuration of the network device is very important. In the process of configuring the antenna of the network device, each antenna of the network device is mainly associated with different devices, and then the antenna direction of the antenna in the network device is adjusted, specifically, the antenna direction of the antenna is adjusted to the direction where the signal strength of the antenna is the strongest. But in fact, the signal strength is not strongly correlated with the actual data transmission capacity. For example: according to the 802.11 protocol, when data is transmitted between a network device and the device connected to it, when the signal strength of the corresponding antenna is the strongest, the data transmission rate of the corresponding data is not the largest. Therefore, in the related art, the dimension of adjusting the antenna direction of the corresponding antenna only according to the signal strength of the antenna is too single, and the accuracy of adjusting the antenna direction is not high, which greatly reduces the working efficiency of the network device. Summary of the invention
[0003] The embodiment of the present application provides a solution to solve the technical problem in the related art that when a network device adjusts the antenna direction of an antenna, the antenna direction dimension of the corresponding antenna is adjusted only according to the signal strength of the antenna, which is too single and the utilization rate of the antenna is low, thereby greatly reducing the working efficiency of the network device.
[0004] In a first aspect, the present application provides an antenna direction adjustment method, which is applicable to a network device, wherein a first antenna and a second antenna are provided in the network device, the network device communicates data with a plurality of first clients through the first antenna, and the network device communicates data with a plurality of second clients through the second antenna, and the method comprises:
[0005] For each first preset antenna direction of the multiple first preset antenna directions of the first antenna, obtaining multiple first performance parameters corresponding to multiple first clients when the direction of the first antenna is the first preset antenna direction; based on the multiple first performance parameters, determining a first target performance parameter corresponding to the first preset antenna direction, and then obtaining multiple first target performance parameters corresponding to the multiple first preset antenna directions;
[0006] adjusting an antenna direction of the first antenna based on a plurality of first target performance parameters;
[0007] After the antenna direction of the first antenna is adjusted, for each second preset antenna direction of the second antenna, multiple second performance parameters corresponding to multiple second clients and multiple third performance parameters corresponding to multiple first clients are obtained when the direction of the second antenna is the second preset antenna direction; based on the multiple second performance parameters and the multiple third performance parameters, a second target performance parameter corresponding to the second preset antenna direction is determined, and then multiple second target performance parameters corresponding to the multiple second preset antenna directions are obtained;
[0008] Based on the plurality of second target performance parameters, the antenna direction of the second antenna is adjusted.
[0009] In a second aspect, the present application provides an antenna direction adjustment device, which is applicable to a network device, wherein a first antenna and a second antenna are provided in the network device, the network device communicates data with a plurality of first clients through the first antenna, and the network device communicates data with a plurality of second clients through the second antenna, and the device comprises:
[0010] an acquisition unit, configured to acquire, for each first preset antenna direction of a plurality of first preset antenna directions of the first antenna, a plurality of first performance parameters corresponding to a plurality of first clients when the direction of the first antenna is the first preset antenna direction; determine, based on the plurality of first performance parameters, a first target performance parameter corresponding to the first preset antenna direction, and thereby obtain a plurality of first target performance parameters corresponding to the plurality of first preset antenna directions;
[0011] an adjusting unit, configured to adjust an antenna direction of the first antenna based on a plurality of first target performance parameters;
[0012] The acquisition unit is further used to, after the antenna direction of the first antenna is adjusted, obtain, for each of the multiple second preset antenna directions of the second antenna, multiple second performance parameters corresponding to the multiple second clients and multiple third performance parameters corresponding to the multiple first clients when the direction of the second antenna is the second preset antenna direction; determine the second target performance parameters corresponding to the second preset antenna direction based on the multiple second performance parameters and the multiple third performance parameters, and then obtain the multiple second target performance parameters corresponding to the multiple second preset antenna directions;
[0013] The adjustment unit is further used to adjust the antenna direction of the second antenna based on multiple second target performance parameters.
[0014] In a third aspect, the present application provides an electronic device, including:
[0015] Processor; and
[0016] A memory for storing executable instructions of the processor;
[0017] The processor is configured to execute any method in the first aspect or any possible implementation of the first aspect by executing executable instructions.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the first aspect or any method in any possible implementation manner of the first aspect.
[0019] The technical solution provided by the present application is applicable to a network device, wherein a first antenna and a second antenna are provided in the network device, the network device communicates data with a plurality of first clients through the first antenna, and the network device communicates data with a plurality of second clients through the second antenna, and the method comprises: for each first preset antenna direction among a plurality of first preset antenna directions of the first antenna, obtaining a plurality of first performance parameters corresponding to the plurality of first clients when the direction of the first antenna is the first preset antenna direction; based on the plurality of first performance parameters, determining a first target performance parameter corresponding to the first preset antenna direction, and then obtaining a plurality of first target performance parameters corresponding to the plurality of first preset antenna directions; adjusting the antenna direction of the first antenna based on the plurality of first target performance parameters; after the antenna direction of the first antenna is adjusted, for each second preset antenna direction among a plurality of second preset antenna directions of the second antenna, obtaining a plurality of second performance parameters corresponding to the plurality of second clients when the direction of the second antenna is the second preset antenna direction, and a plurality of third performance parameters corresponding to the plurality of first clients; based on the plurality of second performance parameters and the plurality of third performance parameters, determining a second target performance parameter corresponding to the second preset antenna direction, and then obtaining a plurality of second target performance parameters corresponding to the plurality of second preset antenna directions; and adjusting the antenna direction of the second antenna based on the plurality of second target performance parameters. This technical solution involves analyzing different performance parameters of clients when different clients communicate data with network devices whose deployed antennas are at different preset antenna directions, and then adjusting the antenna direction of the antenna on the network device according to the different performance parameters when different clients communicate data with the network device, thereby meeting the data transmission requirements of different clients, improving the accuracy of adjusting the antenna direction, and also improving the working efficiency of the network device. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following is a brief introduction to the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0021] Figure 1A schematic diagram of a flow chart of an antenna direction adjustment method provided in an embodiment of the present application;
[0022] Figure 2a and Figure 2b A schematic diagram of interaction between a network device and a client provided in an embodiment of the present application;
[0023] Figure 3 A schematic diagram of the structure of an antenna direction adjustment device provided in one embodiment of the present application;
[0024] Figure 4 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0025] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, but cannot be understood as limiting the present application.
[0026] The terms "first" and "second" in the specification, claims and drawings of the embodiments of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device including a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The "first antenna" and "second antenna" in this application are only an exemplary way of expression to distinguish similar objects, and the scope of protection of this application is not limited to this. Further, the number of the first antenna and the number of the second antenna in this application can be 1 or more, and this application is not limited to this.
[0027] The antenna direction adjustment method provided in the embodiment of the present application can be run on various servers or network devices with data processing functions. Among them, the network device can be a local router device. Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0028] In the related art, when a wireless network is created, the antenna configuration of the network device is very important. In the process of configuring the antenna of the network device, each antenna of the network device is mainly associated with different devices, and then the antenna direction of the antenna in the network device is adjusted, specifically, the antenna direction of the antenna is adjusted to the direction where the signal strength of the antenna is the strongest. But in fact, the signal strength is not strongly correlated with the actual data transmission capacity. For example: according to the 802.11 protocol, when data is transmitted between a network device and the device connected to it, when the signal strength of the corresponding antenna is the strongest, the data transmission rate of the corresponding data is not the largest. Therefore, in the related art, the dimension of adjusting the antenna direction of the corresponding antenna only according to the signal strength of the antenna is too single, and the accuracy of adjusting the antenna direction is not high, which greatly reduces the working efficiency of the network device.
[0029] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0030] Figure 1 A flowchart of an antenna direction adjustment method provided for an exemplary embodiment of the present application is provided. The method can be applied to various network devices with antennas. Taking the method applied to a network device as an example, the network device is provided with a first antenna and a second antenna. The network device communicates data with multiple first clients through the first antenna, and the network device communicates data with multiple second clients through the second antenna. The scheme includes at least the following steps S101-S104:
[0031] S101. For each first preset antenna direction of a plurality of first preset antenna directions of a first antenna, execute the following steps S1011-S1012 to obtain a plurality of first target performance parameters corresponding to the plurality of first preset antenna directions.
[0032] S1011. Acquire multiple first performance parameters corresponding to multiple first clients when the direction of the first antenna is a first preset antenna direction.
[0033] In some embodiments, for each of the plurality of first preset antenna directions, when the direction of the first antenna is the first preset antenna direction, each first client corresponds to one first performance parameter. The first performance parameter corresponding to each first client may refer to a data transmission rate at which the network device communicates data with the first client through the first antenna when the direction of the first antenna is the first preset antenna direction.
[0034] Optionally, the aforementioned multiple first clients are partially the same, completely the same, or different from each other.
[0035] In some embodiments, in an actual wifi usage scenario, the network device includes RE (Relay equipment) and a network connection device, the first antenna is arranged in the relay device, and the second antenna is arranged in the network connection device.
[0036] In the present application, the first client communicates with the network connection device through the relay device, and the second client communicates directly with the network connection device. Specifically, the network connection device is a device that is connected to the Internet using a network cable. The user device can access the Internet after connecting to the network connection device through an antenna. The relay device is a device that can expand the signal coverage of the network connection device. The relay device itself does not provide the Internet. Therefore, the user device can access the Internet only after connecting to the relay device through an antenna and then connecting to the network connection device through the relay device.
[0037] Optionally, the aforementioned network connection device may refer to an AP (Access Point), which is an access point of a wireless network, commonly known as a hotspot. There are mainly routing, switching and access integrated devices and pure access point devices. The integrated device performs access and routing work, and the pure access device is only responsible for the access of wireless clients.
[0038] Relay equipment is a connection device that works at the physical layer. It is suitable for interconnecting two completely identical networks. Its main function is to extend the distance of network transmission by resending or forwarding data signals.
[0039] The first performance parameter corresponding to the aforementioned first client may refer to a data transmission rate at which the relay device in the network device communicates data with the first client via the first antenna when the direction of the first antenna is the first preset antenna direction.
[0040] In order to better explain this scheme, Figure 2a and Figure 2bTo further illustrate this solution, the network device 10 includes a network connection device 31 and a relay device 32, the network connection device 31 is connected to the relay device 32, the connection channel between the network connection device 31 and the relay device 32 is a backhaul link, and the connection channel between the second antenna on the network connection device 31 and the second client 21, the second client 22, the second client 2N, etc. is a host link, where N is a positive integer greater than 2. The network device 10 is connected to M first clients such as the first client 11, the first client 12, the first client 1M, etc. through the first antenna on the relay device 32, where M is a positive integer greater than 2, and the network device 10 is connected to N second clients such as the second client 21, the second client 22, the second client 2N, etc. through the second antenna on the network connection device 31, where the values of M and N can be the same or different.
[0041] In some embodiments, the first antenna includes multiple first sub-antennas, and when each first sub-antenna has one or more first preset sub-antenna directions, the multiple first preset sub-antenna directions of the multiple first sub-antennas are the first preset antenna directions of the first antenna.
[0042] S1012. Determine a first target performance parameter corresponding to a first preset antenna direction based on multiple first performance parameters.
[0043] In some embodiments, in the aforementioned S1012, determining the first target performance parameter corresponding to the first preset antenna direction based on multiple first performance parameters includes: using the multiple first performance parameters as the first target performance parameter corresponding to the first preset antenna direction.
[0044] In other embodiments, in the aforementioned S1012, based on multiple first performance parameters, a first target performance parameter corresponding to the first preset antenna direction is determined, including: summing the multiple first performance parameters to obtain a first performance parameter sum, and using the first performance parameter sum as the first target performance parameter corresponding to the first preset antenna direction.
[0045] After the first target performance parameter corresponding to each first preset antenna direction is determined, a plurality of first target performance parameters corresponding to the plurality of first preset antenna directions are obtained.
[0046] S102: Adjust the antenna direction of the first antenna based on multiple first target performance parameters.
[0047] Optionally, in S1012, determining a first target performance parameter corresponding to a first preset antenna direction based on a plurality of first performance parameters includes: when the plurality of first performance parameters are used as first target performance parameters corresponding to the first preset antenna direction, in the aforementioned S102, adjusting the antenna direction of the first antenna based on the plurality of first target performance parameters includes steps S11-S13:
[0048] S11. For each first target performance parameter in the multiple first target performance parameters, sum the multiple first performance parameters included in the first target performance parameter to obtain a first performance parameter sum corresponding to the first target performance parameter, and then obtain multiple first performance parameter sums corresponding to the multiple first target performance parameters.
[0049] In some embodiments, different first preset antenna directions correspond to different first target performance parameters, and different first preset antenna directions correspond to different first performance parameters and.
[0050] S12: Take the first preset antenna direction corresponding to the largest first performance parameter and the corresponding first target performance parameter among the sums of the multiple first performance parameters as the first target direction.
[0051] The maximum first performance parameter and the corresponding first target performance parameter refer to: the first target performance parameter whose sum is the maximum sum of the first performance parameters.
[0052] S13. Adjust the antenna direction of the first antenna based on the first target direction.
[0053] In some embodiments, the aforementioned S13 may specifically include: adjusting the antenna direction of the first antenna to a first target direction.
[0054] Optionally, in S1012, based on multiple first performance parameters, a first target performance parameter corresponding to a first preset antenna direction is determined, including: summing the multiple first performance parameters to obtain a first performance parameter sum, and using the first performance parameter sum as the first target performance parameter corresponding to the first preset antenna direction. In the aforementioned S102, based on the multiple first target performance parameters, the antenna direction of the first antenna is adjusted, including: using the first preset antenna direction corresponding to the first target performance parameter with the largest value among the multiple first target performance parameters as the first target direction; and adjusting the antenna direction of the first antenna to the first target direction.
[0055] S103. After the antenna direction of the first antenna is adjusted, for each second preset antenna direction of the plurality of second preset antenna directions of the second antenna, execute the following S1031-S1032 to obtain a plurality of second target performance parameters corresponding to the plurality of second preset antenna directions.
[0056] S1031. Acquire a plurality of second performance parameters corresponding to a plurality of second clients and a plurality of third performance parameters corresponding to a plurality of first clients when the direction of the second antenna is a second preset antenna direction.
[0057] In some embodiments, for each second preset antenna direction in the aforementioned multiple second preset antenna directions, when the direction of the second antenna is the second preset antenna direction, each second client corresponds to one second performance parameter. The second performance parameter corresponding to each second client may refer to the data transmission rate at which the network device communicates data with the second client through the second antenna when the direction of the second antenna is the second preset antenna direction.
[0058] In some embodiments, the third performance parameter corresponding to the first client includes a data transmission rate at which the network device communicates data with the first client through the first antenna when the direction of the first antenna is the adjusted antenna direction.
[0059] S1032. Determine a second target performance parameter corresponding to a second preset antenna direction based on the multiple second performance parameters and the multiple third performance parameters.
[0060] In some embodiments, in S1032, determining the second target performance parameter corresponding to the second preset antenna direction based on multiple second performance parameters and multiple third performance parameters may include: using the multiple second performance parameters and the multiple third performance parameters as the second target performance parameters corresponding to the second preset antenna direction.
[0061] In other embodiments, in S1032, determining the second target performance parameter corresponding to the second preset antenna direction based on multiple second performance parameters and multiple third performance parameters may include: summing the multiple second performance parameters and the multiple third performance parameters to obtain the sum of the second performance parameters, and using the sum of the second performance parameters as the second target performance parameter corresponding to the second preset antenna direction.
[0062] Optionally, when the second antenna includes multiple second sub-antennas and each second sub-antenna has one or more second preset sub-antenna directions, the multiple second preset sub-antenna directions of the multiple second sub-antennas are the second preset antenna directions of the second antenna.
[0063] After the second target performance parameter corresponding to each second preset antenna direction is determined, a plurality of second target performance parameters corresponding to the plurality of second preset antenna directions are obtained.
[0064] S104: Adjust the antenna direction of the second antenna based on multiple second target performance parameters.
[0065] In some embodiments, in S1032, determining the second target performance parameter corresponding to the second preset antenna direction based on the plurality of second performance parameters and the plurality of third performance parameters includes: when the plurality of second performance parameters and the plurality of third performance parameters are used as the second target performance parameters corresponding to the second preset antenna direction, in S104, adjusting the antenna direction of the second antenna based on the plurality of second target performance parameters, including steps S31-S33:
[0066] S31. For each second target performance parameter in the multiple second target performance parameters, sum the multiple second performance parameters contained in each second target performance parameter and the multiple third performance parameters to obtain a second performance parameter sum corresponding to the second target performance parameter, and then obtain multiple second performance parameter sums corresponding to the multiple second target performance parameters.
[0067] In some embodiments, different second preset antenna directions correspond to different second target performance parameters.
[0068] S32: Take the second preset antenna direction corresponding to the largest second performance parameter and the corresponding second target performance parameter among the sums of the multiple second performance parameters as the second target direction.
[0069] S33. Adjust the antenna direction of the second antenna based on the second target direction.
[0070] In some embodiments, the aforementioned S33 may specifically include: adjusting the antenna direction of the second antenna to a second target direction.
[0071] In other embodiments, in S1032, based on multiple second performance parameters and multiple third performance parameters, a second target performance parameter corresponding to a second preset antenna direction is determined, including: summing the multiple second performance parameters and the multiple third performance parameters to obtain the sum of the second performance parameters, and taking the sum of the second performance parameters as the second target performance parameter corresponding to the second preset antenna direction. In S104, based on the multiple second target performance parameters, the antenna direction of the second antenna is adjusted, including: taking the second preset antenna direction corresponding to the largest second target performance parameter among the multiple second target performance parameters as the second target direction; and adjusting the antenna direction of the second antenna to the second target direction.
[0072] In some embodiments, after adjusting the antenna direction of the second antenna based on the plurality of second target performance parameters, the method further includes steps S41-S42:
[0073] S41: Detect first location information of at least one first client among a plurality of first clients, and / or second location information of at least one second client among a plurality of second clients.
[0074] S42: If the first position information and / or the second position information changes, readjust the antenna direction of the first antenna and / or the antenna direction of the second antenna.
[0075] If the first position information and / or the second position information changes, it will affect the signal connection between the network device and at least one of the multiple first clients or at least one of the multiple second clients, thereby causing the antenna direction corresponding to the current first antenna or second antenna to not be the optimal antenna direction. Therefore, when the first position information and / or the second position information changes, it is necessary to readjust the antenna direction of the first antenna and / or the antenna direction of the second antenna.
[0076] In some embodiments, after adjusting the antenna direction of the second antenna based on the plurality of second target performance parameters, the method further includes steps S21-S22:
[0077] S21. Detect environmental data of the current environment.
[0078] In some embodiments, the environmental data includes at least weather information and magnetic field strength.
[0079] S22. If the environmental data does not meet the preset conditions, readjust the antenna direction of the first antenna and / or the antenna direction of the second antenna, for example, return to execute the aforementioned steps S101-S104 to readjust the antenna direction of the first antenna and / or the second antenna.
[0080] In some embodiments, the preset condition may be preset environmental data. If the environmental data is different from the preset environmental data, or the environmental data is not within the range of the preset environmental data, the environmental data is deemed to not meet the preset condition. When the environmental data does not meet the preset condition, it indicates that the environment in which the network device is located has changed, and the antenna direction of the first antenna and / or the antenna direction of the second antenna of the network device needs to be readjusted.
[0081] Specifically, taking the environmental data including magnetic field strength as an example, if it is detected that the magnetic field strength of the network device has changed, the antenna direction of the first antenna and / or the antenna direction of the second antenna is adjusted again, for example, returning to execute the aforementioned steps S101-S104.
[0082] In some embodiments, based on multiple second performance parameters and multiple third performance parameters, a second target performance parameter corresponding to a second preset antenna direction is determined, including: when each of the multiple third performance parameters includes a data transmission rate, the multiple third performance parameters are summed to obtain the sum of the multiple third performance parameters; based on the sum of the multiple third performance parameters and the sum of the multiple second performance parameters, the second target performance parameter corresponding to the second preset antenna direction is determined.
[0083] In some other embodiments, determining the second target performance parameter corresponding to the second preset antenna direction based on the plurality of second performance parameters and the plurality of third performance parameters further includes S51-S52:
[0084] S51. When at least one of the multiple third performance parameters does not include a data transmission rate, obtain a current power of the relay device, and determine a sum of the multiple third performance parameters based on the current power.
[0085] Specifically, when at least one of the multiple third performance parameters does not include the data transmission rate, the network connection device cannot obtain from the relay device the data transmission rate of data communication between at least one of the multiple first clients corresponding to the aforementioned at least one third performance parameter and the relay device. In order to ensure that the network device can quickly adjust the antenna direction of the second antenna, the current power of the relay device can be directly obtained to replace the sum of the data transmission rates of data communication between each of the multiple first clients and the relay device, wherein the sum of the data transmission rates of data communication between each of the multiple first clients and the relay device is the sum of the multiple third performance parameters.
[0086] In some embodiments, determining the sum of multiple third performance parameters based on the current power includes steps S511-S513:
[0087] S511. Determine a weight factor of the first antenna.
[0088] In some embodiments, the weight factor is pre-set by relevant personnel based on information such as the damage condition of the first antenna on the relay device and current environmental data.
[0089] S512: Multiply the weight factor and the current power to obtain a multiplication result.
[0090] S513: Taking the product result as the sum of multiple third performance parameters.
[0091] S52: Determine a second target performance parameter corresponding to a second preset antenna direction based on a sum of multiple third performance parameters and a sum of multiple second performance parameters.
[0092] Optionally, the aforementioned determination of the second target performance parameter corresponding to the second preset antenna direction based on the sum of multiple third performance parameters and the sum of multiple second performance parameters includes: summing the sum of multiple third performance parameters and the sum of multiple second performance parameters to obtain the sum of the second performance parameters, and using the sum of the second performance parameters as the second target performance parameter corresponding to the second preset antenna direction.
[0093] The technical solution provided by the present application is applicable to a network device, wherein a first antenna and a second antenna are provided in the network device, the network device communicates data with a plurality of first clients through the first antenna, and the network device communicates data with a plurality of second clients through the second antenna, and the method comprises: for each first preset antenna direction among a plurality of first preset antenna directions of the first antenna, obtaining a plurality of first performance parameters corresponding to the plurality of first clients when the direction of the first antenna is the first preset antenna direction; based on the plurality of first performance parameters, determining a first target performance parameter corresponding to the first preset antenna direction, and then obtaining a plurality of first target performance parameters corresponding to the plurality of first preset antenna directions; adjusting the antenna direction of the first antenna based on the plurality of first target performance parameters; after the antenna direction of the first antenna is adjusted, for each second preset antenna direction among a plurality of second preset antenna directions of the second antenna, obtaining a plurality of second performance parameters corresponding to the plurality of second clients when the direction of the second antenna is the second preset antenna direction, and a plurality of third performance parameters corresponding to the plurality of first clients; based on the plurality of second performance parameters and the plurality of third performance parameters, determining a second target performance parameter corresponding to the second preset antenna direction, and then obtaining a plurality of second target performance parameters corresponding to the plurality of second preset antenna directions; and adjusting the antenna direction of the second antenna based on the plurality of second target performance parameters. This technical solution involves analyzing different performance parameters of clients when different clients communicate data with network devices whose deployed antennas are at different preset antenna directions, and then adjusting the antenna direction of the antenna on the network device according to the different performance parameters when different clients communicate data with the network device, thereby meeting the data transmission requirements of different clients, improving the accuracy of adjusting the antenna direction, and also improving the working efficiency of the network device.
[0094] Figure 3 A schematic diagram of the structure of an antenna direction adjustment device provided for an exemplary embodiment of the present application; wherein the device is applicable to a network device, wherein a first antenna and a second antenna are provided in the network device, the network device communicates data with a plurality of first clients through the first antenna, and the network device communicates data with a plurality of second clients through the second antenna, and the device comprises:
[0095] An acquisition unit 201 is configured to acquire, for each first preset antenna direction of a plurality of first preset antenna directions of a first antenna, a plurality of first performance parameters corresponding to a plurality of first clients when the direction of the first antenna is the first preset antenna direction; determine, based on the plurality of first performance parameters, a first target performance parameter corresponding to the first preset antenna direction, and thereby obtain a plurality of first target performance parameters corresponding to the plurality of first preset antenna directions;
[0096] An adjusting unit 202, configured to adjust an antenna direction of the first antenna based on a plurality of first target performance parameters;
[0097] The acquisition unit 201 is further used to, after the antenna direction of the first antenna is adjusted, obtain, for each second preset antenna direction of the second antenna, a plurality of second performance parameters corresponding to the plurality of second clients and a plurality of third performance parameters corresponding to the plurality of first clients when the direction of the second antenna is the second preset antenna direction; determine the second target performance parameters corresponding to the second preset antenna direction based on the plurality of second performance parameters and the plurality of third performance parameters, and thereby obtain the plurality of second target performance parameters corresponding to the plurality of second preset antenna directions;
[0098] The adjustment unit 202 is further configured to adjust the antenna direction of the second antenna based on a plurality of second target performance parameters.
[0099] In some embodiments, when the apparatus is used to adjust the antenna direction of the first antenna based on a plurality of first target performance parameters, it is specifically used to:
[0100] For each first target performance parameter in the plurality of first target performance parameters, summing the plurality of first performance parameters included in the first target performance parameter to obtain a first performance parameter sum corresponding to the first target performance parameter, and further obtaining a plurality of first performance parameter sums corresponding to the plurality of first target performance parameters;
[0101] Taking the first preset antenna direction corresponding to the largest first performance parameter and the corresponding first target performance parameter among the sum of the multiple first performance parameters as the first target direction;
[0102] The antenna direction of the first antenna is adjusted based on the first target direction.
[0103] Optionally, when the apparatus is used to adjust the antenna direction of the second antenna based on the multiple second target performance parameters, it is specifically used to:
[0104] For each second target performance parameter in the plurality of second target performance parameters, summing the plurality of second performance parameters and the plurality of third performance parameters included in each second target performance parameter to obtain a second performance parameter sum corresponding to the second target performance parameter, and further obtaining a plurality of second performance parameter sums corresponding to the plurality of second target performance parameters;
[0105] Taking the second preset antenna direction corresponding to the largest second performance parameter and the corresponding second target performance parameter among the sum of the multiple second performance parameters as the second target direction;
[0106] The antenna direction of the second antenna is adjusted based on the second target direction.
[0107] Optionally, when the apparatus is used to determine the second target performance parameter corresponding to the second preset antenna direction based on the multiple second performance parameters and the multiple third performance parameters, it is specifically used to:
[0108] When each of the plurality of third performance parameters includes a data transmission rate, the plurality of third performance parameters are summed to obtain a sum of the plurality of third performance parameters;
[0109] Based on the sum of the plurality of third performance parameters and the sum of the plurality of second performance parameters, a second target performance parameter corresponding to the second preset antenna direction is determined.
[0110] Optionally, the network device includes a relay device and a network connection device, the first antenna is arranged in the relay device, and the second antenna is arranged in the network connection device;
[0111] When the device is used to determine the second target performance parameter corresponding to the second preset antenna direction based on the multiple second performance parameters and the multiple third performance parameters, it is specifically used to:
[0112] When at least one of the plurality of third performance parameters does not include a data transmission rate, obtaining a current power of the relay device, and determining a sum of the plurality of third performance parameters based on the current power;
[0113] Based on the sum of the plurality of third performance parameters and the sum of the plurality of second performance parameters, a second target performance parameter corresponding to the second preset antenna direction is determined.
[0114] Optionally, when the device is used to determine the sum of multiple third performance parameters based on the current power, it is specifically used to:
[0115] Determine the weight factor of the first antenna;
[0116] The weight factor and the current power are multiplied to obtain a multiplication result;
[0117] The quadrature result is taken as the sum of the plurality of third performance parameters.
[0118] Optionally, after the device is used to adjust the antenna direction of the second antenna based on the multiple second target performance parameters, the device is also used to:
[0119] Detecting first location information of at least one first client among a plurality of first clients, and / or second location information of at least one second client among a plurality of second clients;
[0120] If the first position information and / or the second position information changes, the antenna direction of the first antenna and / or the antenna direction of the second antenna is readjusted.
[0121] Optionally, after the device is used to adjust the antenna direction of the second antenna based on the multiple second target performance parameters, the device is also used to:
[0122] Detecting environmental data of the current environment, wherein the environmental data at least includes weather information and magnetic field strength;
[0123] If the environmental data does not meet the preset conditions, the antenna direction of the first antenna and / or the antenna direction of the second antenna is readjusted.
[0124] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, no further description is given here. Specifically, the device may perform the above method embodiment, and the above and other operations and / or functions of each module in the device are the corresponding processes in each method in the above method embodiment, respectively, and no further description is given here for the sake of brevity.
[0125] The above describes the device of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.
[0126] Figure 4 is a schematic block diagram of an electronic device provided in an embodiment of the present application, and the electronic device may include:
[0127] The memory 301 and the processor 302, the memory 301 is used to store the computer program and transmit the program code to the processor 302. In other words, the processor 302 can call and run the computer program from the memory 301 to implement the method in the embodiment of the present application.
[0128] For example, the processor 302 may be configured to execute the above method embodiments according to instructions in the computer program.
[0129] In some embodiments of the present application, the processor 302 may include but is not limited to:
[0130] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0131] In some embodiments of the present application, the memory 301 includes but is not limited to:
[0132] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).
[0133] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 301 and executed by the processor 302 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.
[0134] like Figure 4 As shown, the electronic device may also include:
[0135] The transceiver 303 may be connected to the processor 302 or the memory 301 .
[0136] The processor 302 may control the transceiver 303 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 303 may include a transmitter and a receiver. The transceiver 303 may further include an antenna, and the number of antennas may be one or more.
[0137] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0138] The present application also provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.
[0139] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0140] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0141] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0142] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0143] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for adjusting the direction of an antenna, the method being applicable to a network device, characterized in that: The network device is provided with a first antenna and a second antenna, the network device communicates data with a plurality of first clients via the first antenna, and the network device communicates data with a plurality of second clients via the second antenna, and the method includes: For each first preset antenna direction of the multiple first preset antenna directions of the first antenna, obtaining multiple first performance parameters corresponding to the multiple first clients when the direction of the first antenna is the first preset antenna direction; Based on the multiple first performance parameters, determine a first target performance parameter corresponding to the first preset antenna direction, and then obtain a plurality of first target performance parameters corresponding to the multiple first preset antenna directions; Based on the multiple first target performance parameters, adjusting the antenna direction of the first antenna; After the antenna direction of the first antenna is adjusted, for each second preset antenna direction of the plurality of second preset antenna directions of the second antenna, obtaining, when the direction of the second antenna is the second preset antenna direction, a plurality of second performance parameters corresponding to the plurality of second clients and a plurality of third performance parameters corresponding to the plurality of first clients; Determine, based on the multiple second performance parameters and the multiple third performance parameters, a second target performance parameter corresponding to the second preset antenna direction, and then obtain a plurality of second target performance parameters corresponding to the multiple second preset antenna directions; Based on the multiple second target performance parameters, the antenna direction of the second antenna is adjusted.
2. The method according to claim 1, characterized in that The adjusting the antenna direction of the first antenna based on the multiple first target performance parameters includes: For each first target performance parameter in the multiple first target performance parameters, summing the multiple first performance parameters included in the first target performance parameter to obtain a first performance parameter sum corresponding to the first target performance parameter, and further obtaining multiple first performance parameter sums corresponding to the multiple first target performance parameters; Using a first preset antenna direction corresponding to a maximum first performance parameter and a corresponding first target performance parameter among the plurality of first performance parameters as a first target direction; The antenna direction of the first antenna is adjusted based on the first target direction.
3. The method according to claim 1, characterized in that The adjusting the antenna direction of the second antenna based on the multiple second target performance parameters includes: For each second target performance parameter in the plurality of second target performance parameters, summing the plurality of second performance parameters and the plurality of third performance parameters included in each second target performance parameter to obtain a second performance parameter sum corresponding to the second target performance parameter, and further obtaining a plurality of second performance parameter sums corresponding to the plurality of second target performance parameters; Using the second preset antenna direction corresponding to the largest second performance parameter and the corresponding second target performance parameter among the plurality of second performance parameters as the second target direction; The antenna direction of the second antenna is adjusted based on the second target direction.
4. The method according to claim 1, characterized in that: The determining, based on the plurality of second performance parameters and the plurality of third performance parameters, a second target performance parameter corresponding to the second preset antenna direction includes: When each of the plurality of third performance parameters includes a data transmission rate, the plurality of third performance parameters are summed to obtain a sum of the plurality of third performance parameters; Based on the sum of the multiple third performance parameters and the sum of the multiple second performance parameters, a second target performance parameter corresponding to the second preset antenna direction is determined.
5. The method according to claim 1, characterized in that The network device includes a relay device and a network connection device, the first antenna is arranged in the relay device, and the second antenna is arranged in the network connection device; The determining, based on the plurality of second performance parameters and the plurality of third performance parameters, a second target performance parameter corresponding to the second preset antenna direction includes: When at least one of the plurality of third performance parameters does not include a data transmission rate, obtaining a current power of the relay device, and determining a sum of the plurality of third performance parameters based on the current power; Based on the sum of the multiple third performance parameters and the sum of the multiple second performance parameters, a second target performance parameter corresponding to the second preset antenna direction is determined.
6. The method according to claim 5, characterized in that The determining the sum of the plurality of third performance parameters based on the current power comprises: determining a weight factor for the first antenna; Obtaining a product result by multiplying the weight factor and the current power; The product result is taken as the sum of the plurality of third performance parameters.
7. The method according to claim 1, characterized in that After adjusting the antenna direction of the second antenna based on the multiple second target performance parameters, the method further includes: Detecting first location information of at least one first client among the plurality of first clients, and / or second location information of at least one second client among the plurality of second clients; If the first position information and / or the second position information changes, the antenna direction of the first antenna and / or the antenna direction of the second antenna is readjusted.
8. The method according to claim 1, characterized in that After adjusting the antenna direction of the second antenna based on the multiple second target performance parameters, the method further includes: Detecting environmental data of the current environment, wherein the environmental data at least includes weather information and magnetic field strength; If the environmental data does not meet the preset condition, the antenna direction of the first antenna and / or the antenna direction of the second antenna is readjusted.
9. An antenna direction adjustment device, the device being applicable to a network device, characterized in that: The network device is provided with a first antenna and a second antenna, the network device communicates data with a plurality of first clients via the first antenna, and the network device communicates data with a plurality of second clients via the second antenna, and the apparatus comprises: an acquiring unit, configured to acquire, for each first preset antenna direction of the first antenna, a plurality of first performance parameters corresponding to the plurality of first clients when the direction of the first antenna is the first preset antenna direction; determine, based on the plurality of first performance parameters, a first target performance parameter corresponding to the first preset antenna direction, and thereby obtain a plurality of first target performance parameters corresponding to the plurality of first preset antenna directions; an adjusting unit, configured to adjust the antenna direction of the first antenna based on the multiple first target performance parameters; The acquisition unit is further used to, after the antenna direction of the first antenna is adjusted, acquire, for each second preset antenna direction of the second antenna, a plurality of second performance parameters corresponding to the plurality of second clients and a plurality of third performance parameters corresponding to the plurality of first clients when the direction of the second antenna is the second preset antenna direction; determine, based on the plurality of second performance parameters and the plurality of third performance parameters, a second target performance parameter corresponding to the second preset antenna direction, and thereby obtain a plurality of second target performance parameters corresponding to the plurality of second preset antenna directions; The adjustment unit is further used to adjust the antenna direction of the second antenna based on the multiple second target performance parameters.
10. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 8 by executing the executable instructions.
Citation Information
Patent Citations
Smart antenna adjustment method and device, equipment and readable storage medium
CN109640342A
Antenna parameter determination method and device
CN112469060A
Communication method, device and system
CN114257278A
Equipment control method, storage medium, chip and electronic equipment
CN118234056A
Antenna adjustment system and antenna adjustment method
JP2016039594A