Antenna position adjustment method, device, electronic equipment and computer storage medium
By automatically detecting and adjusting the position of wireless camera antennas and using signal strength distribution information, it solves the problem in the surveillance industry that manual intervention is required for antenna position adjustment, reduces maintenance costs and improves efficiency.
Patent Information
- Application Number
- CN202110215199.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-25
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-02-25
AI Technical Summary
In the surveillance industry, adjusting the antenna position of wireless cameras requires manual intervention, resulting in high maintenance costs and low efficiency, especially when the installation location is complex.
By detecting the connection between the image acquisition device and the network node, the antenna position is automatically adjusted, and the signal strength distribution information is used to determine the best position to realize automatic adjustment of the antenna.
It greatly reduces maintenance costs, improves maintenance efficiency, solves the problem of manual adjustment of the antenna position, and ensures connection quality.
Smart Images

Figure CN114978369B
Abstract
Description
Technical Field
[0001] The present application relates to the field of monitoring technology, and in particular to a method, device, electronic device and computer-readable storage medium for adjusting the position of an antenna. Background Art
[0002] In the surveillance industry, wireless cameras are becoming more and more popular among customers because they are easy to install on site. Wireless cameras are responsible for acquiring images / information and using wireless technology to transmit images / information to network nodes such as network video recorders or wireless routers, making deployment very convenient.
[0003] However, since wireless transmission is more susceptible to external interference than wired transmission, the increase in wireless devices in the surrounding environment may affect image / information transmission, or the construction workers may improperly install the antenna position / angle during construction, resulting in poor connection quality between the wireless camera and the network node. If the connection quality continues to be poor, it may cause abnormal loss of image / information or even connection failure. At this time, the user can restart the device. If the problem still cannot be solved after restarting, the maintenance personnel will need to adjust the antenna position of the wireless camera, which has high maintenance costs and low efficiency, especially when the installation location of the wireless camera is more complicated. Summary of the invention
[0004] The present application provides a method, device, electronic device and computer-readable storage medium for adjusting the position of an antenna, which can solve the problem of high maintenance cost and low efficiency caused by maintenance personnel adjusting the position of the antenna of a wireless camera. The technical solution is as follows:
[0005] According to one aspect of the present application, a method for adjusting the position of an antenna is provided, the method comprising:
[0006] When the image acquisition device completes establishing a connection with the network node, detecting whether the field of view of the image acquisition device changes, and obtaining a first detection result;
[0007] The position of the antenna of the image acquisition device is adjusted based on the first detection result.
[0008] In one or more embodiments, when the first detection result is no change, adjusting the position of the antenna of the image acquisition device based on the first detection result includes:
[0009] Obtaining the top N signal strengths of the antennas before the image acquisition device is powered off, and determining the largest first target signal strength among the N signal strengths; N is a positive integer;
[0010] determining a first position corresponding to the first target signal strength;
[0011] The antenna is adjusted to the first position.
[0012] In one or more embodiments, when the first detection result is a change, adjusting the position of the antenna of the image acquisition device based on the first detection result includes:
[0013] Based on the stored signal strength distribution information, the top M signal strengths of the antennas before the image acquisition device is powered off are obtained, and the smallest second target signal strength among the M signal strengths is determined; M is a positive integer;
[0014] Detecting whether the second target signal strength exceeds the first signal strength threshold to obtain a second detection result;
[0015] The position of the antenna is adjusted based on the second detection.
[0016] In one or more embodiments, when the second detection result is exceeded, adjusting the position of the antenna based on the second detection includes:
[0017] Sorting the M signal strengths to determine the largest third target signal strength among the M signal strengths;
[0018] determining a second position corresponding to the third target signal strength;
[0019] The antenna is adjusted to the second position.
[0020] In one or more embodiments, when the second detection result is not more than, adjusting the antenna position based on the second detection includes:
[0021] Acquire each current signal strength of the antenna at all adjustable positions, and generate current signal strength distribution information based on the each current signal strength;
[0022] Determine the maximum current signal strength in the current signal strength distribution information, and determine a third position corresponding to the current signal strength;
[0023] The antenna is adjusted to the third position.
[0024] In one or more embodiments, obtaining each current signal strength of the antenna at all adjustable positions, and generating current signal strength distribution information based on the each current signal strength, includes:
[0025] Acquire the null point position of the antenna, and adjust the antenna to the null point position;
[0026] Adjusting the position of the antenna from the zero position until the antenna returns to the zero position, recording the current signal strength of the antenna at each adjustable position, and generating a mapping relationship between each adjustable position and the current signal strength corresponding to each position;
[0027] Current signal strength distribution information is generated based on each of the current signal strengths, and the current signal strength distribution information and the mapping relationship are stored.
[0028] In one or more embodiments, determining the maximum current signal strength in the current signal strength distribution information includes:
[0029] Determine the top T current signal strengths ranked from the current signal strength distribution information; T is a positive integer;
[0030] Detecting whether the T current signal strengths exceed a second signal strength threshold;
[0031] If the T current signal strengths all exceed the second signal strength threshold, determining a maximum value among the T current signal strengths;
[0032] If K current signal strengths among the T current signal strengths exceed the second signal strength threshold, determining a maximum value among the K current signal strengths; wherein K is a positive integer less than T;
[0033] If the T current signal strengths do not exceed the second signal strength threshold, replace T with K, repeat the steps of obtaining the current signal strengths of the antenna at all adjustable positions, and generating current signal strength distribution information based on the current signal strengths; and determining the maximum current signal strength based on the current signal strength distribution information until the maximum current signal strength is determined.
[0034] In one or more embodiments, detecting whether the T current signal strengths exceed a second signal strength threshold includes:
[0035] Determine a maximum value among the T current signal strengths as a first candidate signal strength;
[0036] Detecting whether the first candidate signal strength is less than the second signal strength threshold within a preset time period;
[0037] If yes, determine the current signal strength that is one digit after the first candidate signal strength as the second candidate signal strength, and use the second candidate signal strength as the current first candidate signal strength;
[0038] Repeat the step of detecting whether the first candidate signal strength is less than the second signal strength threshold within a preset time period; if so, determining the current signal strength after the first candidate signal strength as the second candidate signal strength, and using the second candidate signal strength as the current first candidate signal strength, until all the T current signal strengths are detected.
[0039] According to another aspect of the present application, a device for adjusting the position of an antenna is provided, the device comprising:
[0040] A detection module, used to detect whether the field of view of the image acquisition device changes when the image acquisition device completes the connection with the network node, and obtain a first detection result;
[0041] An antenna adjustment module is used to adjust the position of the antenna of the image acquisition device based on the first detection result.
[0042] In one or more embodiments, the antenna adjustment module includes:
[0043] A first acquisition submodule is used for acquiring, when the first detection result is unchanged, N signal strengths of the antennas ranked top before the image acquisition device is powered off, and determining the largest first target signal strength among the N signal strengths; N is a positive integer;
[0044] A first determination submodule, configured to determine a first position corresponding to the first target signal strength;
[0045] The first adjusting submodule is used to adjust the antenna to the first position.
[0046] In one or more embodiments, the antenna adjustment module includes:
[0047] A second acquisition submodule is used for acquiring, when the first detection result changes, M signal strengths of the antennas ranked top before the image acquisition device is powered off based on the stored signal strength distribution information, and determining the smallest second target signal strength among the M signal strengths; M is a positive integer;
[0048] A detection submodule, used to detect whether the second target signal strength exceeds a first signal strength threshold, and obtain a second detection result;
[0049] The second adjustment submodule is used to adjust the position of the antenna based on the second detection.
[0050] In one or more embodiments, the second regulating submodule includes:
[0051] A first determining unit, configured to determine a third target signal strength which is the largest among the M signal strengths when the second detection result is exceeded;
[0052] A second determining unit, configured to determine a second position corresponding to the third target signal strength;
[0053] The first adjusting unit is used to adjust the antenna to the second position.
[0054] In one or more embodiments, the second regulating submodule includes:
[0055] A signal strength acquisition unit, configured to acquire each current signal strength of the antenna at all adjustable positions when the second detection result is not more than;
[0056] A generating unit, configured to generate current signal strength distribution information based on the respective current signal strengths;
[0057] A third determining unit, configured to determine the maximum current signal strength in the current signal strength distribution information, and determine a third position corresponding to the current signal strength;
[0058] The second adjusting unit is used to adjust the antenna to the third position.
[0059] In one or more embodiments, the signal strength acquisition unit is specifically configured to:
[0060] Obtaining the zero point position of the antenna and adjusting the antenna to the zero point position; adjusting the position of the antenna from the zero point position until the antenna returns to the zero point position, and recording the current signal strength of the antenna at each adjustable position;
[0061] The generating unit is specifically used for:
[0062] Generate a mapping relationship between each adjustable position and the current signal strength corresponding to each position; generate current signal strength distribution information based on each current signal strength, and store the current signal strength distribution information and the mapping relationship.
[0063] In one or more embodiments, the third determining unit includes:
[0064] A first determining subunit is used to determine the top T current signal strengths ranked from the current signal strength distribution information; T is a positive integer;
[0065] A detection subunit, used to detect whether the T current signal strengths exceed a second signal strength threshold;
[0066] A second determining subunit, configured to determine a maximum value among the T current signal strengths if the T current signal strengths all exceed the second signal strength threshold;
[0067] A third determining subunit is configured to determine a maximum value of the K current signal strengths if K current signal strengths among the T current signal strengths exceed the second signal strength threshold; wherein K is a positive integer less than T;
[0068] a replacement subunit, configured to replace T with K if none of the T current signal strengths exceeds the second signal strength threshold;
[0069] The signal strength acquisition unit, the generation unit, and the third determination unit are repeatedly called until the maximum current signal strength is determined.
[0070] In one or more embodiments, the detection subunit is specifically used for:
[0071] Determine a maximum value among the T current signal strengths as a first candidate signal strength;
[0072] Detecting whether the first candidate signal strength is less than the second signal strength threshold within a preset time period;
[0073] If yes, determine the current signal strength that is one digit after the first candidate signal strength as the second candidate signal strength, and use the second candidate signal strength as the current first candidate signal strength;
[0074] Repeat the step of detecting whether the first candidate signal strength is less than the second signal strength threshold within a preset time period; if so, determining the current signal strength after the first candidate signal strength as the second candidate signal strength, and using the second candidate signal strength as the current first candidate signal strength, until all the T current signal strengths are detected.
[0075] According to another aspect of the present application, an electronic device is provided, the electronic device comprising:
[0076] one or more processors;
[0077] Memory;
[0078] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: perform operations corresponding to the antenna position adjustment method shown in the first aspect of the present application.
[0079] According to another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the antenna position adjustment method shown in the first aspect of the present application is implemented.
[0080] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method provided in various implementations of any of the above aspects.
[0081] The beneficial effects of the technical solution provided by this application are:
[0082] In an embodiment of the present invention, when the image acquisition device completes establishing a connection with the network node, it is detected whether the field of view of the image acquisition device has changed, and a first detection result is obtained, and then the position of the antenna of the image acquisition device is adjusted based on the first detection result. In this way, the physical position of the image acquisition device is detected to see whether it has changed through the field of view, and then the position of the antenna is automatically adjusted according to the detection result, thereby solving the problem of the antenna position needing to be manually adjusted in the prior art, greatly reducing maintenance costs and improving maintenance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.
[0084] Figure 1 An application environment for executing a method for adjusting the position of an antenna provided in an embodiment of the present application;
[0085] Figure 2 A schematic diagram of the structural architecture of an image acquisition device provided in an embodiment of the present application;
[0086] Figure 3 A schematic diagram of a flow chart of a method for adjusting the position of an antenna provided in an embodiment of the present application;
[0087] Figure 4 The specific process diagram of step S302 provided in the embodiment of the present application is as follows: Figure 1 ;
[0088] Figure 5 The specific process diagram of step S302 provided in the embodiment of the present application is as follows: Figure 2 ;
[0089] Figure 6 The specific process diagram of step S503 provided in the embodiment of the present application is as follows: Figure 1 ;
[0090] Figure 7 The specific process diagram of step S503 provided in the embodiment of the present application is as follows: Figure 2 ;
[0091] Figure 8 A schematic diagram of a specific flow chart of steps S301 to S302 provided in an embodiment of the present application;
[0092] Fig. 9 A schematic diagram of a specific flow chart of step S701 provided in an embodiment of the present application;
[0093] Fig.10 A signal strength distribution diagram provided in an embodiment of the present application;
[0094] Fig.11 A schematic diagram of a specific flow chart of step S903 provided in an embodiment of the present application;
[0095] Fig.12 A schematic diagram of a specific flow chart of step S1102 provided in an embodiment of the present application;
[0096] Fig.13 A schematic diagram of the structure of a device for adjusting the position of an antenna provided in an embodiment of the present application;
[0097] Fig.14 A schematic diagram of the structure of an electronic device for adjusting the position of an antenna provided in an embodiment of the present application. DETAILED DESCRIPTION
[0098] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.
[0099] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0100] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0101] 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.
[0102] The embodiment of the present invention provides an application environment for executing a method for adjusting the position of an antenna. Figure 1, the application environment includes: a first device 101 and a second device 102. The first device 101 and the second device 102 are connected via a network, the first device 101 is an image acquisition device, such as a camera, and the second device 102 is a network node, such as an NVR (Network Video Recorder), a router, etc. In the present application, the first device and the second device can communicate with each other through any communication method, including but not limited to mobile communications based on 3GPP (3rd Generation Partnership Project), 4GPP (4th Generation Partnership Project), 5GPP (5th Generation Partnership Project), LTE (Long Term Evolution), WIMAX (World Interoperability for Microwave Access), computer network communications based on TCP / IP (Transmission Control Protocol / Internet Protocol), UDP (User Datagram Protocol), and short-range wireless transmission methods based on Bluetooth and infrared transmission standards.
[0103] It should be noted that in the embodiments of the present invention, a first device communicating with a second device is used as an example for illustration. However, in actual applications, multiple first devices can communicate with a second device at the same time, which can be set according to actual needs, and the embodiments of the present invention do not limit this.
[0104] in, Figure 2 The structural architecture of the image acquisition device is shown. The image acquisition device includes but is not limited to: a power supply unit, a wireless detection unit, an algorithm processing unit, an antenna adjustment unit and an antenna.
[0105] Power supply unit: used to provide electrical energy for the operation of other units.
[0106] Wireless detection unit: used to detect the (wireless) signal strength between the image acquisition device and the network node, and provide the signal strength to the algorithm processing unit.
[0107] Algorithm processing unit: compares the signal strength provided by the wireless detection unit with a preset threshold. If it is greater than or equal to the threshold, the antenna position of the image acquisition device remains unchanged. If it is less than the threshold, an adjustment instruction is provided to the antenna adjustment unit.
[0108] The antenna adjustment unit drives the antenna to adjust its position through a motor according to the adjustment instructions provided by the algorithm processing unit; wherein the motor includes but is not limited to a stepper motor, a DC brushed motor, a brushless servo motor, etc.
[0109] Furthermore, in the above application environment, a method for adjusting the position of an antenna can be performed, such as Figure 3 As shown, the method includes:
[0110] Step S301, when the image acquisition device completes establishing a connection with the network node, detecting whether the field of view of the image acquisition device changes, and obtaining a first detection result;
[0111] The video range is the range of objects that can be observed by the image acquisition device, and the field of view represents the maximum range that the lens can observe, usually expressed in degrees. The larger the field of view, the larger the observation range. For example, some lenses have a field of view of 50 degrees, while others have a field of view of 58 degrees. Compared with the former, the latter can observe a larger range of objects at the same distance.
[0112] Furthermore, when detecting whether the image field of view has changed, an image may be acquired when the image acquisition device is initialized, and then compared with the most recent image. If the similarity exceeds a similarity threshold, it is determined that the field of view has not changed. Otherwise, it is determined that the field of view has changed. The most recent image may be an image acquired by the image acquisition device under normal circumstances, for example, an image acquired by the image acquisition device when it receives a power-off instruction, or an image acquired when it receives a restart instruction.
[0113] Alternatively, when detecting whether the image field of view has changed, it is also possible to determine whether the field of view has changed by detecting whether the relevant parameters of the image acquisition device have changed when the image acquisition device is initialized. The relevant parameters include but are not limited to the shooting angle (which can be measured by a compass) and the focal length. For example, the shooting angle of the image acquisition device before power failure is "268° west" and the focal length is 15mm. When the image acquisition device is powered on, its shooting angle is "152° west" and the focal length is 68mm, then it can be determined that the field of view has changed.
[0114] It should be noted that, in addition to the above method, other methods may be used to detect whether the image field of view has changed. In practical applications, these methods may be configured according to actual needs, and the embodiments of the present invention do not limit this.
[0115] Furthermore, in the embodiments of the present invention, the change in the field of view of the image acquisition device mainly refers to the change in the physical position of the image acquisition device under objective circumstances. For example, a user originally placed a camera in the living room, and later placed the camera in the bedroom, so the field of view of the camera changed. The reasons for the change in the field of view under subjective circumstances, such as the user adjusting the zoom focus of the camera (because the user's adjustment of the zoom focus is an active behavior, and the camera can make corresponding adjustments according to the user's instructions), etc., are not within the scope of the description of the embodiments of the present invention.
[0116] Step S302: adjusting the position of the antenna of the image acquisition device based on the first detection result.
[0117] In the embodiment of the present invention, when the image acquisition device completes the connection with the network node, it detects whether the field of view of the image acquisition device has changed, obtains a first detection result, and then adjusts the position of the antenna of the image acquisition device based on the first detection result. In this way, it detects whether the physical position of the image acquisition device has changed through the field of view, and then automatically adjusts the position of the antenna according to the detection result, thereby solving the problem that the position of the antenna in the prior art needs to be manually adjusted, greatly reducing maintenance costs and improving maintenance efficiency.
[0118] In another embodiment, Figure 3 The various steps of the antenna position adjustment method shown are described in detail.
[0119] Step S301, when the image acquisition device completes establishing a connection with the network node, detecting whether the field of view of the image acquisition device changes, and obtaining a first detection result;
[0120] Specifically, under normal circumstances, the image acquisition device and the network node are connected, but under abnormal circumstances, when the image acquisition device and the network node are not connected, it is necessary to establish a connection between the image acquisition device and the network node. For example, at least one of the image acquisition device and the network node is in a power-off state, or at least one of the two is in an initialization state based on a startup instruction, a restart instruction, etc. Of course, it can also be other states, and the embodiments of the present invention are not limited to this.
[0121] When the image acquisition device and the network node have established a connection, the two can exchange data. At this time, it is detected whether the field of view of the image acquisition device has changed, thereby obtaining a first detection result, which includes: no change, or change.
[0122] The video range is the range of objects that can be observed by the image acquisition device, and the field of view represents the maximum range that the lens can observe, usually expressed in degrees. The larger the field of view, the larger the observation range. For example, some lenses have a field of view of 50 degrees, while others have a field of view of 58 degrees. Compared with the former, the latter can observe a larger range of objects at the same distance.
[0123] Furthermore, when detecting whether the image field of view has changed, an image may be acquired when the image acquisition device is initialized, and then compared with the most recent image. If the similarity exceeds a similarity threshold, it is determined that the field of view has not changed. Otherwise, it is determined that the field of view has changed. The most recent image may be an image acquired by the image acquisition device under normal circumstances, for example, an image acquired by the image acquisition device when it receives a power-off instruction, or an image acquired when it receives a restart instruction.
[0124] It should be noted that, in addition to the above method, other methods may be used to detect whether the image field of view has changed. In practical applications, these methods may be configured according to actual needs, and the embodiments of the present invention do not limit this.
[0125] Furthermore, in the embodiments of the present invention, the change in the field of view of the image acquisition device mainly refers to the change in the physical position of the image acquisition device under objective circumstances. For example, a user originally placed a camera in the living room, and later placed the camera in the bedroom, so the field of view of the camera changed. The reasons for the change in the field of view under subjective circumstances, such as the user adjusting the zoom focus of the camera (because the user's adjustment of the zoom focus is an active behavior, and the camera can make corresponding adjustments according to the user's instructions), etc., are not within the scope of the description of the embodiments of the present invention.
[0126] Step S302: adjusting the position of the antenna of the image acquisition device based on the first detection result.
[0127] If the first detection result is no change, it can be determined that the physical position of the image acquisition device has not changed, and then it can be further determined whether the position of the antenna needs to be adjusted. If so, then the position that needs to be adjusted is determined and the antenna is adjusted to that position; if not, then there is no need to adjust the position of the antenna.
[0128] In one embodiment of the present invention, when the first detection result is no change, Figure 4 As shown, step S302 includes:
[0129] Step S401, obtaining N signal strengths of the antennas ranked top before the image acquisition device is powered off, and determining the largest first target signal strength among the N signal strengths; N is a positive integer;
[0130] Step S402, determining a first position corresponding to a first target signal strength;
[0131] Step S403: adjust the antenna to a first position.
[0132] Specifically, when the image acquisition device is initialized based on the startup instruction, restart instruction, etc., it needs to be powered off and then powered on. Therefore, when the image acquisition device is powered on and initialized, and the field of view has not changed, the N (N is a positive integer) signal strengths of the antennas with the highest signal strength before the image acquisition device is powered off can be obtained based on the stored signal strength distribution information, and then the largest first target signal strength among the N signal strengths can be determined. Among them, the signal strength distribution information is generated and stored by the image acquisition device before power is off, and the specific generation method will be described in detail later. The signal strength distribution information records the signal strengths corresponding to the antennas at different positions.
[0133] For example, the stored signal strength distribution information records the signal strengths (denoted as S) corresponding to the antenna at five positions (denoted as P): P1-S1, P2-S2, P3-S3, P4-S4, and P5-S5, where S1>S3>S2>S5>S4. Assuming N is 3, the top three signal strengths are selected from S1 to S5: S1, S3, and S2, and the maximum value S1 among the three signal strengths is used as the first target signal strength.
[0134] After determining the first target signal strength, the first position corresponding to the first target signal strength is determined based on the signal strength distribution information, and then the antenna is adjusted to the first position. For example, continuing with the above example, if the position corresponding to S1 is determined to be P1, then the antenna is adjusted to P1.
[0135] It should be noted that, in practical applications, the value of N can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0136] If the first detection result is a change, it can be determined that the physical position of the image acquisition device has changed. At this time, it is necessary to further determine the position of the antenna that needs to be adjusted, and then adjust the position of the antenna.
[0137] In one embodiment of the present invention, when the first detection result is a change, such as Figure 5 As shown, step S302 includes:
[0138] Step S501, obtaining the top M signal strengths of the antennas before the image acquisition device is powered off based on the stored signal strength distribution information, and determining the smallest second target signal strength among the M signal strengths; M is a positive integer;
[0139] Step S502, detecting whether the second target signal strength exceeds the first signal strength threshold, and obtaining a second detection result;
[0140] Step S503: adjusting the position of the antenna based on the second detection.
[0141] Specifically, when a change in the field of view is detected, the top M (M is a positive integer) signal strengths of the antenna before the image acquisition device is powered off can be obtained based on the stored signal strength distribution information, and then the smallest second target signal strength among the M signal strengths can be determined.
[0142] For example, the stored signal strength distribution information records the signal strengths corresponding to the antenna at four positions: P6-S6, P7-S7, P8-S8, and P9-S9, where S7>S8>S6>S9. Assuming M is 3, the top three signal strengths are selected from S6 to S9: S7, S8, and S6, and the minimum value S6 of the three signal strengths is used as the second target signal strength.
[0143] After determining the second target signal strength, detect whether the second target signal strength exceeds the first signal strength threshold, thereby obtaining a second detection result, and then adjust the position of the antenna based on the second detection result. The second detection result includes: exceeding the first signal strength threshold, or not exceeding the first signal strength threshold.
[0144] It should be noted that, in practical applications, the value of M can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0145] In one embodiment of the present invention, when the second detection result is exceeded, Figure 6 As shown, step S503 includes:
[0146] Step S601, sorting the M signal strengths to determine the largest third target signal strength among the M signal strengths;
[0147] Step S602, determining a second position corresponding to a third target signal strength;
[0148] Step S603: adjust the antenna to a second position.
[0149] Specifically, when the second detection result exceeds the first signal strength threshold, the M signal strengths are sorted, the third target signal strength with the largest value among the M signal strengths is determined, and then the second position corresponding to the third target signal strength is determined based on the signal strength distribution information, and then the antenna is adjusted to the second position. For example, continuing with the above example, after S6, S7, and S8 are determined, the three signal strengths are sorted, and the largest signal strength S7 is determined to be the third target signal strength, and then the position corresponding to S7 is determined to be P7 based on the signal strength distribution information, and then the position of the antenna is adjusted to P7.
[0150] In one embodiment of the present invention, when the second detection result is not more than, Figure 7 As shown, step S503 includes:
[0151] Step S701, obtaining each current signal strength of the antenna at all adjustable positions, and generating current signal strength distribution information based on each current signal strength;
[0152] Step S702, determining the maximum current signal strength in the current signal strength distribution information, and determining a third position corresponding to the current signal strength;
[0153] Step S703: adjust the antenna to a third position.
[0154] Specifically, when the second detection result does not exceed the first signal strength threshold, a signal strength search program is started to obtain the current signal strengths of the antenna at all adjustable positions, and then generate current signal strength distribution information based on the current signal strengths. The adjustable position of the antenna is any position that the antenna can reach through automatic adjustment.
[0155] For example, if the antenna of an image acquisition device can reach 180 positions through automatic adjustment, then after starting the signal strength search program, the current signal strength corresponding to each of the 180 positions can be obtained, thereby generating current signal strength distribution information including the 180 current signal strengths. The current signal strength distribution information records each position and the current signal strength corresponding to each position.
[0156] After the current signal strength distribution information is generated, the maximum current signal strength and the third position corresponding to the maximum current signal strength are determined, and the antenna is adjusted to the third position.
[0157] For example, the antenna of an image acquisition device has 180 adjustable positions, namely P1 to P180. The signal strength search program obtains the current signal strengths corresponding to the 180 adjustable positions, namely S1 to S180, where P1 corresponds to S1, P2 corresponds to S2, and so on, P180 corresponds to S180. By comparison, it is determined that the maximum current signal strength among S1 to S180 is S128, so the position P128 corresponding to S128 is used as the third position, and then the antenna is adjusted to P128.
[0158] For ease of understanding, Figure 8 A complete flow chart of the above steps is shown, wherein the detailed description of each step can refer to the above embodiment, and to avoid repetition, it will not be described here.
[0159] In one embodiment of the present invention, Fig. 9 As shown, step S701 includes:
[0160] Step S901, obtaining the null position of the antenna, and adjusting the antenna to the null position;
[0161] Step S902, adjusting the position of the antenna from the zero position until the antenna returns to the zero position, recording the current signal strength of the antenna at each adjustable position, and generating a mapping relationship between each adjustable position and the current signal strength corresponding to each position;
[0162] Step S903: Generate current signal strength distribution information based on each current signal strength, and store the current signal strength distribution information and the mapping relationship.
[0163] Among them, the antenna of the image acquisition device has a preset zero position, and the zero position is used to mark the starting point of the antenna position during the signal strength search process, and then the antenna is adjusted from the zero position, and returns to the zero position after each adjustable position. Among them, the zero position can be any of all adjustable positions. The zero position is based on the same principle as the starting point of the playground runway. Any point on the runway can be used as the starting point, and the movement along the runway from the starting point is a circle when returning to the starting point. No matter which point on the runway is used as the starting point, as long as it starts from the starting point and moves along the runway back to the starting point, the movement trajectory is a circle.
[0164] Specifically, when obtaining the current signal strength of the antenna at all adjustable positions, the zero position of the antenna can be obtained first, and the antenna can be adjusted to the zero position, and then the position of the antenna can be adjusted from the zero position, and adjusted along all adjustable positions until the antenna returns to the zero position. At the same time, in the process of adjusting the antenna position, the current signal strength of the antenna corresponding to each adjustable position is recorded in real time, and a mapping relationship between each adjustable position and its corresponding current signal strength is generated. Then, current signal strength distribution information is generated based on each current signal strength, and the current signal strength distribution information and the mapping relationship are stored for use after the image acquisition device is initialized (step S302).
[0165] For example, the antenna of an image acquisition device has 10 adjustable positions: P1~P10, where P1 is the zero position. Assume that the current position of the antenna is P6. When the signal strength search program is started, the zero position P1 of the antenna is first obtained, and then the antenna position is adjusted from P6 to P1. At this time, the current signal strength S1 corresponding to the antenna at the P1 position is obtained and recorded. After the recording is completed, the antenna is adjusted from the P1 position to the P2 position, and the current signal strength S2 corresponding to the antenna at the P2 position is obtained and recorded, and so on, until S1~S10 are recorded. When the antenna is readjusted back to P1, the signal strength search program ends. Then map P1 with S1, map P2 with S2, and so on, until the mapping of P10 with S10 is completed. Then generate the current signal strength distribution information based on S1~S10, for example, Fig.10 The signal strength distribution diagram shown in the figure has a horizontal axis representing the position of the antenna and a vertical axis representing the signal strength. The signal strength distribution diagram and the mapping relationship can then be stored.
[0166] It should be noted that when mapping the current signal strength with the adjustable position, it can be mapped with the corresponding adjustable position immediately after recording a current signal strength. For example, after recording S1, S1 and P1 are mapped; it can also be mapped after the current signal strength corresponding to each adjustable position is fully recorded. For example, after S1~S10 is recorded, S1~S10 are mapped with P1~P10 respectively; of course, mapping can also be performed in other ways, which can be set according to actual needs in actual applications, and the embodiments of the present invention are not limited to this.
[0167] Furthermore, the signal strength distribution information may be in other forms besides the distribution graph form, and may be configured according to actual needs in practical applications, and the embodiments of the present invention do not limit this.
[0168] In one embodiment of the present invention, Fig.11As shown, determining the maximum current signal strength in the current signal strength distribution information in step S903 includes:
[0169] Step S1101, determining the top T current signal strengths from the current signal strength distribution information; T is a positive integer;
[0170] Step S1102, detecting whether T current signal strengths exceed a second signal strength threshold;
[0171] Step S1103: if the T current signal strengths all exceed the second signal strength threshold, determine the maximum value among the T current signal strengths;
[0172] Step S1104: if K current signal strengths among the T current signal strengths exceed the second signal strength threshold, then determine the maximum value among the K current signal strengths; K is a positive integer less than T;
[0173] Step S1105, if T current signal strengths do not exceed the second signal strength threshold, replace T with K, repeat the steps of obtaining the current signal strengths of the antenna at all adjustable positions, and generating current signal strength distribution information based on each current signal strength; determine the maximum current signal strength based on the current signal strength distribution information until the maximum current signal strength is determined.
[0174] Specifically, after generating the current signal strength distribution information, the top T (T is a positive integer) current signal strengths can be determined from the current signal strength distribution information, and then it is detected whether the T current signal strengths exceed the second signal strength threshold respectively.
[0175] If the T current signal strengths all exceed the second signal strength threshold, then the maximum value among the T current signal strengths is determined.
[0176] If K (a positive integer less than T) current signal strengths among the T current signal strengths exceed the second signal strength, then the maximum value among the K current signal strengths is determined.
[0177] If the T current signal strengths do not exceed the second signal strength threshold, it means that the T current signal strengths are weak and the connection quality with the network node is poor. At this time, it is necessary to restart the signal strength search program. Specifically, first replace T with K, and then repeat steps S701 to S702 until the maximum current signal strength exceeding the second signal strength threshold is determined.
[0178] Among them, Fig.12 As shown, step S1102 includes:
[0179] Step S1201, determining the maximum value among T current signal strengths as the first candidate signal strength;
[0180] Step S1202, detecting whether the first candidate signal strength is less than a second signal strength threshold within a preset time period;
[0181] Step S1203: If yes, determine the current signal strength that is one digit after the first candidate signal strength as the second candidate signal strength, and use the second candidate signal strength as the current first candidate signal strength;
[0182] Step S1204, repeatedly executing the step of detecting whether the first candidate signal strength is less than the second signal strength threshold within a preset time period; if so, determining the current signal strength after the first candidate signal strength as the second candidate signal strength, and taking the second candidate signal strength as the current first candidate signal strength, until all T current signal strengths are detected.
[0183] Specifically, when detecting whether the T current signal strengths respectively exceed the second signal strength threshold, the maximum value among the T current signal strengths can be first determined as the first candidate signal strength, and then the first candidate signal strength can be detected whether it is less than the second signal strength threshold within a preset time period. Among them, the detection can be based on the average value of the first candidate signal strength within the preset time period, or it can also be detected in other ways. In actual applications, it can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0184] If yes, then determine the current signal strength after the first candidate signal strength and use it as the second candidate signal strength, and adjust the antenna from the position corresponding to the first candidate signal strength to the position corresponding to the second candidate signal strength. At this time, use the second candidate signal strength as the current first candidate signal strength, and repeat steps S1202 to S1203 until all T current signal strengths are detected.
[0185] If not, the position of the antenna remains unchanged until the preset time period ends, and then the current signal strength that is one position after the first candidate signal strength is determined and used as the second candidate signal strength, and the antenna is adjusted from the position corresponding to the first candidate signal strength to the position corresponding to the second candidate signal strength. At this time, the second candidate signal strength is used as the current first candidate signal strength, and steps S1202 to S1203 are repeatedly executed until all the T current signal strengths are detected.
[0186] For example, assuming T=5, the five current signal strengths determined from the current signal strength distribution information are: S1, S2, S3, S4, S5, and the order of the current signal strengths is: S3>S4>S2>S5>S1. At this time, the position of the antenna is first adjusted to the position P3 corresponding to S3. If the average value of S3 within 10 minutes exceeds the second signal strength threshold, then after 10 minutes, the position P4 corresponding to S4 is determined. If the average value of S4 within 10 minutes exceeds the second signal strength threshold, the position of the antenna is adjusted to the position P2 corresponding to S2. Similarly, if the average value of S1 within 10 minutes exceeds the second signal strength threshold, it means that the five current signal strengths all exceed the second signal strength. At this time, S3 is taken as the maximum current signal strength.
[0187] If only the signal strengths of S3, S4 and S2 among S1, S2, S3, S4 and S5 exceed the second signal threshold, then S3 is taken as the maximum current signal strength, and K=3 is set so that K is used to replace T when steps S1101 to S1102 are subsequently executed.
[0188] If S1, S2, S3, S4, and S5 are all less than the second signal strength threshold, it means that the selected T current signal strengths do not meet the requirements. At this time, the previously set K is obtained, K is used to replace T, and then steps S1101 to S1102 are re-executed.
[0189] In the embodiment of the present invention, when the image acquisition device completes the connection with the network node, it detects whether the field of view of the image acquisition device has changed, obtains a first detection result, and then adjusts the position of the antenna of the image acquisition device based on the first detection result. In this way, it detects whether the physical position of the image acquisition device has changed through the field of view, and then automatically adjusts the position of the antenna according to the detection result, thereby solving the problem that the position of the antenna in the prior art needs to be manually adjusted, greatly reducing maintenance costs and improving maintenance efficiency.
[0190] Furthermore, when it is detected that the physical position of the image acquisition device has not changed, the strongest signal strength can be determined based on the stored signal strength distribution information after the image acquisition device is connected to the network node, and the antenna can be adjusted based on the strongest signal strength. In this way, even if the physical position of the image acquisition device has not changed, but the position of the antenna has changed, resulting in a decrease in connection quality, automatic adjustment of the antenna can still be achieved, thereby ensuring the connection quality.
[0191] Furthermore, when a change in the physical position of the image acquisition device is detected, a signal strength search program can be started to obtain the signal strengths corresponding to the antenna at all adjustable positions, generate and store signal strength distribution information, and then determine the current strongest signal strength based on the generated signal strength distribution information, and adjust the position of the antenna to the position corresponding to the current strongest signal strength, thereby further ensuring the connection quality.
[0192] Fig.13 A schematic diagram of the structure of an antenna position adjustment device provided in an embodiment of the present application is shown in FIG. Fig.13 As shown, the device of this embodiment may include:
[0193] The detection module 1301 is used to detect whether the field of view of the image acquisition device changes when the image acquisition device completes the connection with the network node, and obtain a first detection result;
[0194] The antenna adjustment module 1302 is used to adjust the position of the antenna of the image acquisition device based on the first detection result.
[0195] In one embodiment of the present invention, the antenna adjustment module includes:
[0196] The first acquisition submodule is used to obtain the top N signal strengths of the antenna signal strengths before the image acquisition device is powered off when the first detection result is no change, and determine the largest first target signal strength among the N signal strengths; N is a positive integer;
[0197] A first determination submodule, used to determine a first position corresponding to a first target signal strength;
[0198] The first adjusting submodule is used to adjust the antenna to a first position.
[0199] In one embodiment of the present invention, the antenna adjustment module includes:
[0200] The second acquisition submodule is used for acquiring, when the first detection result is changed, the top M signal strengths of the antenna signal strengths before the image acquisition device is powered off based on the stored signal strength distribution information, and determining the smallest second target signal strength among the M signal strengths; M is a positive integer;
[0201] A detection submodule, used to detect whether the second target signal strength exceeds the first signal strength threshold, and obtain a second detection result;
[0202] The second adjustment submodule is used to adjust the position of the antenna based on the second detection.
[0203] In one embodiment of the present invention, the second regulating submodule includes:
[0204] A first determining unit, configured to determine a third target signal strength which is the largest among the M signal strengths when the second detection result is exceeded;
[0205] A second determining unit, configured to determine a second position corresponding to a third target signal strength;
[0206] The first adjusting unit is used to adjust the antenna to a second position.
[0207] In one embodiment of the present invention, the second regulating submodule includes:
[0208] A signal strength acquisition unit, configured to acquire each current signal strength of the antenna at all adjustable positions when the second detection result is not more than;
[0209] A generating unit, configured to generate current signal strength distribution information based on each current signal strength;
[0210] A third determining unit, configured to determine the maximum current signal strength in the current signal strength distribution information, and determine a third position corresponding to the current signal strength;
[0211] The second adjusting unit is used to adjust the antenna to a third position.
[0212] In one embodiment of the present invention, the signal strength acquisition unit is specifically used to:
[0213] Obtain the zero point position of the antenna and adjust the antenna to the zero point position; start adjusting the position of the antenna from the zero point position until the antenna returns to the zero point position, and record the current signal strength of the antenna at each adjustable position;
[0214] Generate a unit, specifically for:
[0215] Generate a mapping relationship between each adjustable position and the current signal strength corresponding to each position; generate current signal strength distribution information based on each current signal strength, and store the current signal strength distribution information and the mapping relationship.
[0216] In one embodiment of the present invention, the third determining unit includes:
[0217] The first determining subunit is used to determine the top T current signal strengths ranked from the current signal strength distribution information; T is a positive integer;
[0218] A detection subunit, used to detect whether T current signal strengths exceed a second signal strength threshold;
[0219] A second determining subunit, configured to determine a maximum value among the T current signal strengths if all of the T current signal strengths exceed a second signal strength threshold;
[0220] A third determining subunit is configured to determine a maximum value among the K current signal strengths if K current signal strengths among the T current signal strengths exceed a second signal strength threshold; K is a positive integer less than T;
[0221] a replacement subunit, configured to replace T with K if none of the T current signal strengths exceeds a second signal strength threshold;
[0222] The signal strength acquisition unit, the generation unit, and the third determination unit are repeatedly called until the maximum current signal strength is determined.
[0223] In one embodiment of the present invention, the detection subunit is specifically used for:
[0224] Determine a maximum value among T current signal strengths as a first candidate signal strength;
[0225] Detecting whether the first candidate signal strength is less than a second signal strength threshold within a preset time period;
[0226] If so, determine the current signal strength that is one digit after the first candidate signal strength as the second candidate signal strength, and use the second candidate signal strength as the current first candidate signal strength;
[0227] Repeat the step of detecting whether the first candidate signal strength is less than the second signal strength threshold within a preset time period; if so, determining the current signal strength after the first candidate signal strength as the second candidate signal strength, and taking the second candidate signal strength as the current first candidate signal strength, until all T current signal strengths are detected.
[0228] The antenna position adjustment device of this embodiment can execute the antenna position adjustment method shown in the previous embodiments of the present application. The implementation principle is similar and will not be repeated here.
[0229] In the embodiment of the present invention, when the image acquisition device completes the connection with the network node, it detects whether the field of view of the image acquisition device has changed, obtains a first detection result, and then adjusts the position of the antenna of the image acquisition device based on the first detection result. In this way, it detects whether the physical position of the image acquisition device has changed through the field of view, and then automatically adjusts the position of the antenna according to the detection result, thereby solving the problem that the position of the antenna in the prior art needs to be manually adjusted, greatly reducing maintenance costs and improving maintenance efficiency.
[0230] Furthermore, when it is detected that the physical position of the image acquisition device has not changed, the strongest signal strength can be determined based on the stored signal strength distribution information after the image acquisition device is connected to the network node, and the antenna can be adjusted based on the strongest signal strength. In this way, even if the physical position of the image acquisition device has not changed, but the position of the antenna has changed, resulting in a decrease in connection quality, automatic adjustment of the antenna can still be achieved, thereby ensuring the connection quality.
[0231] Furthermore, when a change in the physical position of the image acquisition device is detected, a signal strength search program can be started to obtain the signal strengths corresponding to the antenna at all adjustable positions, generate and store signal strength distribution information, and then determine the current strongest signal strength based on the generated signal strength distribution information, and adjust the position of the antenna to the position corresponding to the current strongest signal strength, thereby further ensuring the connection quality.
[0232] An electronic device is provided in an embodiment of the present application, and the electronic device includes: a memory and a processor; at least one program, which is stored in the memory and is used to be executed by the processor. Compared with the prior art, the following can be achieved: in an embodiment of the present invention, when the image acquisition device completes the connection with the network node, it detects whether the field of view of the image acquisition device has changed, obtains a first detection result, and then adjusts the position of the antenna of the image acquisition device based on the first detection result. In this way, the physical position of the image acquisition device is detected by the field of view, and then the position of the antenna is automatically adjusted according to the detection result, thereby solving the problem that the position of the antenna in the prior art needs to be manually adjusted, greatly reducing maintenance costs and improving maintenance efficiency.
[0233] In one embodiment, an electronic device is provided, such as Fig.14 As shown, Fig.14 The electronic device 14000 shown includes: a processor 14001 and a memory 14003. The processor 14001 and the memory 14003 are connected, such as through a bus 14002. The electronic device 14000 may also include a transceiver 14004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 14004 is not limited to one, and the structure of the electronic device 14000 does not constitute a limitation on the embodiments of the present application.
[0234] Processor 14001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 14001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0235] The bus 14002 may include a path to transmit information between the above components. The bus 14002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 14002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.14 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0236] Memory 14003 can be ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or it can be EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.
[0237] The memory 14003 is used to store the application code (computer program) for executing the solution of the present application, and the execution is controlled by the processor 14001. The processor 14001 is used to execute the application code stored in the memory 14003 to implement the contents shown in the above method embodiment.
[0238] Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc.
[0239] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment.
[0240] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0241] The above descriptions are only some embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for adjusting the position of an antenna, characterized in that: include: When the image acquisition device completes establishing a connection with the network node, detecting whether the field of view of the image acquisition device changes, and obtaining a first detection result; adjusting the position of the antenna of the image acquisition device based on the first detection result; When the first detection result shows a change, adjusting the position of the antenna of the image acquisition device based on the first detection result includes: Based on the stored signal strength distribution information, the top M signal strengths of the antennas before the image acquisition device is powered off are obtained, and the smallest second target signal strength among the M signal strengths is determined; M is a positive integer; Detecting whether the second target signal strength exceeds the first signal strength threshold to obtain a second detection result; The position of the antenna is adjusted based on the second detection result.
2. The method for adjusting the position of an antenna according to claim 1, characterized in that: When the first detection result is no change, adjusting the position of the antenna of the image acquisition device based on the first detection result includes: Obtaining the top N signal strengths of the antennas before the image acquisition device is powered off, and determining the largest first target signal strength among the N signal strengths; N is a positive integer; determining a first position corresponding to the first target signal strength; The antenna is adjusted to the first position.
3. The method for adjusting the position of an antenna according to claim 1, characterized in that: When the second detection result is exceeded, adjusting the position of the antenna based on the second detection result includes: Sorting the M signal strengths to determine the largest third target signal strength among the M signal strengths; determining a second position corresponding to the third target signal strength; The antenna is adjusted to the second position.
4. The method for adjusting the position of an antenna according to claim 1, characterized in that: When the second detection result is not more than, adjusting the position of the antenna based on the second detection result includes: Acquire each current signal strength of the antenna at all adjustable positions, and generate current signal strength distribution information based on the each current signal strength; Determine the maximum current signal strength in the current signal strength distribution information, and determine a third position corresponding to the maximum current signal strength; The antenna is adjusted to the third position.
5. The method for adjusting the position of an antenna according to claim 4, characterized in that: The obtaining of each current signal strength of the antenna at all adjustable positions, and generating current signal strength distribution information based on each current signal strength, includes: Acquire the null point position of the antenna, and adjust the antenna to the null point position; Adjusting the position of the antenna from the zero position until the antenna returns to the zero position, recording the current signal strength of the antenna at each adjustable position, and generating a mapping relationship between each adjustable position and the current signal strength corresponding to each position; Current signal strength distribution information is generated based on each of the current signal strengths, and the current signal strength distribution information and the mapping relationship are stored.
6. The method for adjusting the position of an antenna according to claim 4, characterized in that: The determining the maximum current signal strength in the current signal strength distribution information includes: Determine the top T current signal strengths ranked from the current signal strength distribution information; T is a positive integer; Detecting whether the T current signal strengths exceed a second signal strength threshold; If the T current signal strengths all exceed the second signal strength threshold, determining a maximum value among the T current signal strengths; If K current signal strengths among the T current signal strengths exceed the second signal strength threshold, determining a maximum value among the K current signal strengths; wherein K is a positive integer less than T; If the T current signal strengths do not exceed the second signal strength threshold, replace T with K, repeat the steps of obtaining the current signal strengths of the antenna at all adjustable positions, and generating current signal strength distribution information based on the current signal strengths; and determining the maximum current signal strength based on the current signal strength distribution information until the maximum current signal strength is determined.
7. The method for adjusting the position of an antenna according to claim 6, characterized in that: The detecting whether the T current signal strengths exceed a second signal strength threshold comprises: Determine a maximum value among the T current signal strengths as a first candidate signal strength; Detecting whether the first candidate signal strength is less than the second signal strength threshold within a preset time period; If yes, determine the current signal strength that is one digit after the first candidate signal strength as the second candidate signal strength, and use the second candidate signal strength as the current first candidate signal strength; Repeat the step of detecting whether the first candidate signal strength is less than the second signal strength threshold within a preset time period; if so, determining the current signal strength after the first candidate signal strength as the second candidate signal strength, and using the second candidate signal strength as the current first candidate signal strength, until all the T current signal strengths are detected.
8. A device for adjusting the position of an antenna, characterized in that: include: A detection module, used to detect whether the field of view of the image acquisition device changes when the image acquisition device completes the connection with the network node, and obtain a first detection result; An antenna adjustment module, used to adjust the position of the antenna of the image acquisition device based on the first detection result; When the first detection result is a change, the antenna adjustment module is specifically used to: Based on the stored signal strength distribution information, obtain the top M signal strengths of the antennas before the image acquisition device is powered off, and determine the smallest second target signal strength among the M signal strengths; The M is a positive integer; Detecting whether the second target signal strength exceeds the first signal strength threshold to obtain a second detection result; The position of the antenna is adjusted based on the second detection result.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs are configured to: execute the antenna position adjustment method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the antenna position adjustment method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Antenna-direction adjusting device and antenna-direction adjusting method
CN105981221A
Antenna device and method for controlling antenna device
CN106063032A
