Method, device and equipment for automatically adjusting antenna board of 5G millimeter wave CPE
The microcontroller controls the stepper motor to automatically adjust the antenna board of the 5G millimeter wave CPE equipment, which solves the problems of limited limit switches and position loss after power failure in traditional equipment, achieves high-precision rotation and miniaturization design, and ensures the stability of the equipment. Stable operation and preservation of location information.
Patent Information
- Application Number
- CN202110924353.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-12
- Publication Date
- 2024-08-13
- Estimated Expiration
- 2041-08-12
AI Technical Summary
The antenna board rotation method of traditional 5G millimeter wave CPE equipment has limitations in the size of the limit switch, leading to risks of large equipment size, motor stalling and disconnection of connecting wires, and the loss of antenna board position information after abnormal power outage.
The microcontroller is used to control the stepper motor to automatically adjust the antenna board, and the signal strength detection signal is used to realize the automatic rotation and position storage of the antenna board. The limit switch is cancelled, and the MCU is used to realize distributed control and position loop feedback. A small battery is used to prevent loss of position due to power outage. information.
It improves the movement accuracy of the antenna board, avoids motor stalling and disconnection of connecting wires, reduces the size of the equipment, solves the problem of position information loss after power failure, and realizes automatic reset calibration.
Smart Images

Figure CN113687664B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of communication technology, and in particular to a method, device and equipment for automatically adjusting an antenna board of a 5G millimeter wave CPE. Background Art
[0002] The internal antennas of traditional CPE devices are installed in fixed positions, which cannot meet the application requirements of mmW CPE devices. For 5G mmW CPE devices, electronically scanned phased arrays are required. However, Beamtracking can only track approximately 1 / 4 of a sphere, so antenna arrays need to be installed on all four surfaces. mmW CPE devices require the antenna to radiate effective power greater than 40dBm. It is not economically feasible to install all four surfaces, so a motor is used to drive the antenna plate to rotate to assist in scanning.
[0003] However, the scanning method based on the motor-assisted rotation of the antenna board will have the following problems: 1. The antenna board and the CPE mainboard are mostly connected by LCP wire or coaxial wire. When the DC motor or stepper motor drives the antenna board to rotate, if the limit switch is not introduced, the LCP or coaxial wire will be disconnected from the mainboard due to the limitation of the wire length, and the motor will be blocked and generate large current, which may burn out the motor control circuit; 2. The installation of a limit switch will be affected by the size of the limit switch, resulting in a larger 5G mmW CPE machine; 3. If the 5G mmW CPE suddenly loses power abnormally while the antenna board is rotating, the initial position of the antenna board cannot be obtained after it is powered on again. Under this condition, the rotation of the antenna board will increase the risk of motor blocking and disconnection of the connecting wire. Summary of the invention
[0004] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, one object of the present invention is to propose a method, device and equipment for automatically adjusting the antenna board of a 5G millimeter wave CPE.
[0005] In order to solve the above technical problems, the embodiments of the present invention provide the following technical solutions:
[0006] A method for automatically adjusting an antenna board of a 5G millimeter wave CPE, applied to a single chip microcomputer, comprising:
[0007] Receive a signal strength detection signal, control the stepper motor to drive the antenna plate to rotate one circle according to the signal strength detection signal, and store the position of the antenna plate; at the same time, output an interrupt signal to the 5G module; wherein the antenna plate is connected to the stepper motor that controls the rotation of the antenna plate;
[0008] According to the feedback from the 5G module, a target position of the antenna plate is obtained;
[0009] According to the target position of the antenna plate, the stepping motor is controlled to rotate the antenna plate to the target position.
[0010] Optionally, before the receiving signal strength detection signal, the method includes:
[0011] receiving a signal from the 5G module for acquiring the position of the antenna board, and feeding back the position of the antenna board to the 5G module;
[0012] A reset signal is received, and the antenna board is reset according to the reset signal.
[0013] Optionally, according to the signal strength detection signal, controlling a stepper motor to drive the antenna plate to rotate one circle includes:
[0014] The preset angle of one rotation is M°, and the angle of each rotation of the antenna plate is N°; wherein the angle of each rotation of the antenna plate is controlled by pulses, N° corresponds to L pulses, and M / N is the number of times the antenna plate rotates one rotation.
[0015] Optionally, storing the position of the antenna board includes:
[0016] Every time the antenna board rotates N°, the current position of the antenna board is stored.
[0017] Optionally, according to the target position of the antenna plate, controlling the stepper motor to rotate the antenna plate to the target position includes:
[0018] Calculating a target pulse according to the target position;
[0019] outputting the target pulse to the stepping motor;
[0020] The target pulse controls the stepping motor to drive the antenna plate to rotate in the opposite direction to the target position.
[0021] Optionally, it also includes the abnormal power-off process of 5G millimeter wave CPE:
[0022] Outputting L pulses to the stepper motor; wherein the single chip microcomputer is connected to an abnormal power-off protection power supply;
[0023] Obtain the position of the antenna board, and determine whether the 5G millimeter wave CPE is powered off according to the position of the antenna board.
[0024] Optionally, obtaining the position of the antenna board, and judging whether the 5G millimeter wave CPE is powered off according to the position of the antenna board includes:
[0025] Detecting whether the antenna plate rotates N° in the I-th rotation; wherein I is the number of rotations of the antenna plate, and 1≤I≤M / N;
[0026] If yes, it is determined that the 5G millimeter wave CPE is not powered off, and the current position of the antenna board is stored, and an interrupt signal is output to the 5G module;
[0027] If not, it is determined that the 5G millimeter wave CPE is abnormally powered off.
[0028] Optionally, the determining that the 5G millimeter wave CPE is abnormally powered off includes:
[0029] Confirming the abnormal power failure of the 5G millimeter wave CPE;
[0030] The confirming that the 5G millimeter wave CPE is abnormally powered off includes:
[0031] Outputting detection pulses to the stepping motor;
[0032] If no feedback signal from the stepper motor is received, it is determined that the 5G millimeter wave CPE is abnormally powered off;
[0033] The current position of the antenna board is stored in the EEPROM, and at the same time, an interrupt signal is output to the 5G module.
[0034] An embodiment of the present invention further provides a method for automatically adjusting an antenna board of a 5G millimeter wave CPE, which is applied to a 5G module, comprising:
[0035] Sending an antenna board position acquisition signal to the single chip microcomputer to confirm that the antenna board is in an initial position;
[0036] Sending a signal strength detection signal to the single chip microcomputer;
[0037] receiving an interrupt signal sent by the single chip microcomputer, and storing the current position of the antenna board and the corresponding signal strength according to the interrupt signal;
[0038] According to the position of the antenna plate, confirming that the antenna plate has completed one rotation;
[0039] Comparing the stored signal strengths of the plurality of groups to obtain a target signal strength;
[0040] According to the target signal strength, the target position of the antenna board is acquired and the target position of the antenna board is fed back to the single chip microcomputer.
[0041] Optionally, sending an antenna board position acquisition signal to the single-chip microcomputer to confirm that the antenna board is in an initial position includes:
[0042] receiving the position of the antenna board fed back by the single chip microcomputer;
[0043] According to the position of the antenna board, determining whether the antenna board is in the initial position;
[0044] If the antenna board is in the initial position, the current position of the antenna board and the corresponding signal strength are recorded; otherwise, a signal is sent to the microcontroller to reset the antenna board to the initial position. After detecting that the antenna board is in the initial position, the current position of the antenna board and the corresponding signal strength are recorded.
[0045] An embodiment of the present invention further provides a device for automatically adjusting an antenna board of a 5G millimeter wave CPE, which is applied to a single chip microcomputer, including:
[0046] A receiving module, used for receiving a signal strength detection signal, controlling the stepper motor to drive the antenna plate to rotate one circle according to the signal strength detection signal, and storing the position of the antenna plate; at the same time, outputting an interrupt signal to the 5G module; wherein the antenna plate is connected to the stepper motor that controls the rotation of the antenna plate;
[0047] A first acquisition module, configured to acquire a target position of the antenna board according to feedback from the 5G module;
[0048] The control module is used to control the stepper motor to rotate the antenna board to the target position according to the target position of the antenna board.
[0049] An embodiment of the present invention further provides a device for automatically adjusting an antenna board of a 5G millimeter wave CPE, which is applied to a 5G module, including:
[0050] A confirmation module, used for sending an antenna board position acquisition signal to the single chip microcomputer to confirm that the antenna board is in an initial position;
[0051] A sending module, used for sending a signal strength detection signal to the single chip microcomputer;
[0052] A storage module, used for receiving an interrupt signal sent by the single chip microcomputer, and storing the current position of the antenna board and the corresponding signal strength according to the interrupt signal;
[0053] A judgment module, used for confirming that the antenna board has completed one rotation according to the position of the antenna board;
[0054] A comparison module, used for comparing the stored signal strengths of the plurality of groups to obtain a target signal strength;
[0055] A second acquisition module, used for acquiring a target position of the antenna board according to the target signal strength;
[0056] A feedback module is used to feed back the target position of the antenna board to the single chip microcomputer.
[0057] An embodiment of the present invention further provides a 5G millimeter wave CPE device, comprising a single chip microcomputer, a 5G module and an antenna board, wherein the single chip microcomputer is communicatively connected to the 5G module and the antenna board respectively, and further comprising:
[0058] A stepper motor, wherein the stepper motor is in driving connection with the antenna plate, the stepper motor is in communication connection with the single-chip microcomputer, and the single-chip microcomputer controls the rotation of the antenna plate through the stepper motor;
[0059] A feedback module, the feedback module is connected to the stepper motor and is used to feed back the execution state of the stepper motor to the single chip microcomputer;
[0060] The anti-abnormal power-off power supply is connected to the single-chip microcomputer and is used to prevent the single-chip microcomputer from abnormally powering off. The embodiment of the present invention has the following technical effects:
[0061] The above technical solution of the present invention 1) improves the movement accuracy of the antenna board, and automatically resets and calibrates the position of the antenna board after the 5G millimeter wave CPE is turned on, effectively avoiding the problem of motor stalling caused by exceeding the limit movement and causing the LCP line or coaxial line to be disconnected.
[0062] 2) A distributed control solution is adopted, and MCU is used to realize motor control and closed-loop feedback of speed loop and position loop. At the same time, the installation of limit switches is cancelled, which reduces the size of 5G millimeter wave CPE terminal equipment.
[0063] 3) Using a 40mAh small battery anti-power-off circuit as the backup battery for the MCU, it can charge the small battery and provide instant power supply in the event of abnormal power failure, allowing the MCU to detect and store the position of the power-off antenna board;
[0064] 4) The problem of traditional CPE antenna board position information being lost after abnormal power failure is solved, and it can be accurately reset to the initial position again after powering on again.
[0065] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 It is a structural schematic diagram of a 5G millimeter wave CPE device provided in an embodiment of the present invention;
[0067] Figure 2 is a schematic structural diagram of an antenna board in an initial position provided by an embodiment of the present invention;
[0068] Figure 3is a schematic structural diagram of an antenna board provided by an embodiment of the present invention rotated 180° counterclockwise;
[0069] Figure 4 It is a schematic diagram of the structure of a circuit for preventing abnormal power failure provided by an embodiment of the present invention.
[0070] Figure 5 It is a flow chart of a method for automatically adjusting an antenna board of a 5G millimeter wave CPE provided in an embodiment of the present invention on the microcontroller side;
[0071] Figure 6 It is a block diagram of the working principle of the MCU provided by an embodiment of the present invention;
[0072] Figure 7 It is a schematic diagram of the principle of controlling the forward and reverse rotation of a stepper motor by orthogonal coding in a method for automatically adjusting an antenna board of a 5G millimeter wave CPE provided in an embodiment of the present invention;
[0073] Figure 8 This is a block diagram of the working principle of the MCU when the 5G millimeter wave CPE is powered off provided by an embodiment of the present invention;
[0074] Fig. 9 It is a flow chart of a method for automatically adjusting an antenna board of a 5G millimeter wave CPE provided in an embodiment of the present invention on the 5G module side;
[0075] Fig.10 It is a block diagram of the working principle of the 5G module provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0076] Embodiments of the present invention are described in detail below, examples of which 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 intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0077] The present invention mentions: 5G: fifth generation mobile communication system; CPE (Customer Premise Equipment); mmW: millimeter wave; LCP (Liquid Crystal Polymer) a high-performance special engineering plastic; dBm: decibel milliwatt; GPIO (General-purpose input / output), the abbreviation of general-purpose input and output; I2C (Inter-Integrated Circuit) bus; EEPROM: electrically erasable programmable read-only memory; ADC (Analog to Digital Converter) analog-to-digital converter; mAh: milliampere-hour; Beam tracking: beam tracking; PCB (printed circuit board) printed circuit board; VBAT: dedicated pin for battery working mode; VIN: input voltage; VOUT: output voltage; EN: enable; LDO: voltage regulator.
[0078] To facilitate understanding of the embodiments of the present invention, a device for automatically adjusting the antenna board of a 5G millimeter wave CPE on which the embodiments of the present invention are based is described below.
[0079] like Figure 1 As shown, an embodiment of the present invention further provides a 5G millimeter wave CPE device, including a single chip microcomputer, a 5G module and an antenna board, wherein the single chip microcomputer is communicatively connected with the 5G module and the antenna board respectively, and further includes:
[0080] A stepper motor, wherein the stepper motor is in driving connection with the antenna plate, the stepper motor is in communication connection with the single-chip microcomputer, and the single-chip microcomputer controls the rotation of the antenna plate through the stepper motor;
[0081] A feedback module, the feedback module is connected to the stepper motor and is used to feed back the execution state of the stepper motor to the single chip microcomputer;
[0082] An abnormal power-off prevention power supply is connected to the single-chip microcomputer and is used to prevent the single-chip microcomputer from abnormal power-off.
[0083] Combination Figure 2 and Figure 3Specifically, when the 5G millimeter wave CPE is turned on, the 5G module detects the 5G signal strength through I2C output to the MCU; the MCU controls the stepper motor to rotate the antenna board, and controls the GPIO output interrupt to the 5G module every 15° rotation, and stores the position information of the antenna board in the EEPROM. After receiving the interrupt signal, the 5G module will read the position of the antenna board and detect the signal strength, and then repeat the above steps. After the stepper motor rotates 360°, the detected signal strength is compared, and the angle with the strongest signal strength is selected. The antenna board is reversed back to the angle with the strongest signal strength, and high antenna gain is achieved through beam forming.
[0084] Combination Figure 2 and Figure 3 In an optional embodiment of the present invention, the feedback module is an angle sensor or an encoder.
[0085] Specifically, a micro stepper motor with an encoder or angle sensor is embedded and welded on the internal PCB motherboard of the 5G mmW CPE device, and an antenna board is mounted on the rotating shaft of the micro stepper motor.
[0086] like Figure 4 As shown, an optional embodiment of the present invention further includes a first diode and a second diode;
[0087] The input end of the first diode is connected to the power supply for preventing abnormal power failure, and the output end of the first diode is connected to the single chip microcomputer;
[0088] The output end of the second diode is connected to the output end of the single chip microcomputer and the output end of the first diode respectively.
[0089] Specifically, 1) input voltage to VIN through VBAT_SYS, output voltage through VOUT, connect to the anti-abnormal power-off power supply, use 50mAh small battery as the anti-abnormal power-off power supply of MCU, detect the power of small battery through ADC of MCU, and control GPIO to enable small battery charging circuit, when the power of small battery drops to the charging threshold, control VOUT to charge the small battery, in order to realize the adjustment of output voltage, a voltage regulator is provided between VIN input voltage and VOUT output voltage.
[0090] The small battery is connected in series with the first diode D1 to the MCU power supply. Under normal circumstances, the voltage difference between the small battery and the MCU supply voltage cannot make the first diode conduct. After an abnormal power failure, the small battery immediately serves as a backup power supply to supplement the MCU to ensure the normal operation of the MCU data storage. When the 5G mmW CPE loses power, VBAT_MCU is at 0 level and the first diode is conducted.
[0091] 3) Due to the anti-backflow function of the second diode D2, the small battery will not supply power to other circuits of the mainboard.
[0092] like Figure 5 As shown, an embodiment of the present invention also provides a method for automatically adjusting an antenna board of a 5G millimeter wave CPE, which is applied to a single chip microcomputer, including:
[0093] Step S11: receiving a signal strength detection signal, controlling the stepper motor to drive the antenna board to rotate one circle according to the signal strength detection signal, and storing the position of the antenna board; at the same time, outputting an interrupt signal to the 5G module; wherein the antenna board is connected to the stepper motor that controls the rotation of the antenna board;
[0094] Specific, combined Figure 1 , the MCU controls the GPIO to output a fixed number of variable frequency pulses according to the initial position information read from the EEPROM, thereby controlling the rotation of the antenna board.
[0095] The antenna board rotates counterclockwise for several times to complete one rotation. After each rotation, the current position of the antenna board is stored in the EEPROM.
[0096] Step S12: acquiring the target position of the antenna board according to the feedback from the 5G module;
[0097] Specifically, the number of pulses required to rotate clockwise to the target position is calculated based on the target position information provided by the 5G module, and the variable frequency pulses of the fixed pulses are output using GPIO.
[0098] Step S13: According to the target position of the antenna plate, controlling the stepper motor to rotate the antenna plate to the target position.
[0099] Specific, combined Figure 1 , the MCU uses orthogonal decoding (encoder) or ADC detection (angle sensor) to confirm whether the antenna board moves to the target position after the GPIO port outputs a fixed pulse. If so, the position information is updated to the EEPROM, and an interrupt signal is output to the 5G module through the GPIO to enter the standby state; if not, the error is calculated through the error to calculate the number of pulses that do not need to be supplemented and a fixed number of variable frequency pulses are output through the GPIO to eliminate the error.
[0100] This embodiment of the present invention improves the movement accuracy of the antenna board, and automatically resets and calibrates the position of the antenna board after the 5G mmW CPE is turned on, effectively avoiding the problem of stalling caused by the stepper motor moving beyond the limit and causing the LCP line or coaxial line to be disconnected, and can realize automatic adjustment of the position of the antenna board; in addition, a distributed control solution is adopted, and the MCU is used to realize the stepper motor control and the closed-loop feedback of the speed loop and position loop. At the same time, I2C is used for communication, which releases the relevant interfaces of the 5G module, cancels the installation of the limit switch, and reduces the size of the 5G mmW CPE device.
[0101] Combination Figure 6 In an optional embodiment of the present invention, in step S11, before receiving the signal strength detection signal, the steps include:
[0102] Step S111: receiving a signal from the 5G module for acquiring the position of the antenna board, and feeding back the position of the antenna board to the 5G module;
[0103] Specifically, the MCU waits for the 5G module to send a signal to reset the antenna board. If the antenna board in the initial state is not at the 0° position (initial position), the 5G module will output a reset signal through I2C, and the MCU will control the GPIO to output a fixed number of variable frequency pulses according to the initial position information read from the EEPROM;
[0104] Among them, the pulses of the stepper motor are controlled by the differential algorithm. If fixed low-frequency pulses are used, the motor rotates very slowly; if fixed high-frequency pulses are used, the motor will lock at the starting state. Therefore, an acceleration-uniform speed-deceleration pulse output process is required.
[0105] Step S112: receiving a reset signal, and resetting the antenna board according to the reset signal.
[0106] Specifically, after the 5G mmW CPE is powered on, the MCU waits for the 5G module to output a signal to obtain the antenna board position. If it is not received, it will remain in standby mode. If it is received through I2C, the position information will be read from the EEPROM and fed back to the 5G module through I2C.
[0107] Combination Figure 7 In an optional embodiment of the present invention, in step S11, according to the signal strength detection signal, controlling the stepping motor to drive the antenna plate to rotate one circle includes:
[0108] S113: The preset angle of one rotation is M°, and the angle of each rotation of the antenna plate is N°; wherein the angle of each rotation of the antenna plate is controlled by pulses, N° corresponds to L pulses, and M / N is the number of times the antenna plate rotates one rotation.
[0109] For example, M° may be 360°, N° may be 15°, and M / N is 24.
[0110] Specifically, if the antenna board is at the 0° position in the initial state, the I2C will output a signal strength detection signal;
[0111] The MCU waits for the 5G module to send instructions. If it receives a signal strength detection signal, it controls the stepper motor to rotate 15° counterclockwise. If it receives a signal that the stepper motor has completed one rotation at a fixed angle, it executes step S13. If it does not receive a signal that it has completed one rotation, it waits for the signal indication from the 5G module. The MCU uses GPIO to output a fixed pulse (N=the number of pulses L corresponding to 15°) variable frequency pulse.
[0112] Combination Figure 6 In an optional embodiment of the present invention, in step S11, storing the position of the antenna board includes:
[0113] Step S114: Every time the antenna board rotates N°, the current position of the antenna board is stored.
[0114] Specifically, the current position of the antenna board is stored every time the antenna board rotates N°; specifically, after the MCU uses orthogonal decoding or ADC detection to confirm that the GPIO port outputs a fixed pulse, whether the antenna board moves to the preset position after completing the rotation in sequence, if so, the position information is updated to the EEPROM, and an interrupt signal is output to the 5G module through the GPIO until one rotation is completed; if not, the number of pulses that do not need to be supplemented is calculated by error (the GPIO supplementary response pulse is controlled according to the difference feedback from the encoder or angle sensor) and the error is eliminated by outputting a fixed number of variable frequency pulses through the GPIO. Among them, the MCU stores the position information in a fixed area of the EEPROM; for example: 0x12, where the default direction is counterclockwise, 12 represents the number of rotations, 01 represents 15° rotation once, so 0x12 represents a counterclockwise rotation of 18x15°=270° (taking hexadecimal as an example), and a clockwise rotation is counted down; the parameter is updated after each position is completed.
[0115] Combination Figure 6 In an optional embodiment of the present invention, in step S13, according to the target position of the antenna plate, controlling the stepper motor to rotate the antenna plate to the target position includes:
[0116] Step S141: Calculate a target pulse according to the target position;
[0117] Step S142: outputting the target pulse to the stepping motor;
[0118] Step S143: the target pulse controls the stepping motor to drive the antenna plate to rotate in the opposite direction to the target position.
[0119] Specifically, the MCU uses orthogonal decoding or ADC detection to confirm whether the antenna board moves to the target position after the GPIO port outputs a fixed pulse. If so, the position information is updated to the EEPROM, and the interrupt information is output to the 5G module through the GPIO to enter the standby state; if not, the error is calculated through the error to calculate the number of pulses that do not need to be supplemented and a fixed number of variable frequency pulses are output through the GPIO to eliminate the error.
[0120] Among them, Figure 6 As shown, orthogonal encoding can be implemented through the MCU timer pin. When the falling edge of item A corresponds to the high level of phase B, the motor reverses (clockwise), and when the rising edge of item A corresponds to the high level of phase B, the motor rotates forward (counterclockwise).
[0121] Combination Figure 8 In an optional embodiment of the present invention, step S14 further includes a 5G mmW CPE abnormal power-off process:
[0122] Step S141: outputting L pulses to the stepper motor; wherein the single chip microcomputer is connected to an abnormal power-off protection power supply;
[0123] Specifically, 1) the MCU receives a signal from the 5G module that requires the stepper motor to rotate, including an antenna board reset signal, a network monitoring signal, or a signal that the antenna board moves to a specified angle; the MCU outputs a variable frequency pulse corresponding to the number of pulses;
[0124] 2) During any of the above processes, the 5G mmW CPE suddenly loses power abnormally;
[0125] 3) The stepper motor and 5G module are both powered off, and the anti-abnormal power-off power supply (50mAh small battery) supplies power to the MCU through a diode, so the MCU will continue to run and complete the sending of fixed pulses.
[0126] Step S142: Obtain the position of the antenna board, and determine whether the 5G millimeter wave CPE is powered off based on the position of the antenna board.
[0127] Among them, the MCU uses orthogonal decoding or ADC detection to confirm whether the antenna board moves to the preset position after completing the rotation after the GPIO port outputs a fixed pulse; since the power is lost during the movement of the stepper motor, the encoder will only return part of the pulse, that is, some pulses are not executed.
[0128] Specifically, there are two situations in which 5G mmW CPE loses power abnormally: a. The stepper motor has completed the relevant movement, and the MCU only needs to update the position information to the EEPROM; b. The stepper motor has not completed the relevant movement, and the position area information is not updated at this time, so the movement information of the abnormal power failure needs to be stored in another storage area of the EEPROM;
[0129] For example: 0x100123, where the highest byte 0x1 represents the direction of rotation, 0 is counterclockwise and 1 is clockwise; the remaining low byte 0x00123 represents the number of pulses 291 (in hexadecimal as an example), so the stepper motor has walked 291 pulses before the abnormal power failure. The specific byte size depends on the total number of pulses required for the antenna board to rotate 360°.
[0130] This embodiment of the present invention uses a 50mAh small battery anti-power-off circuit as a backup battery for the MCU, which can realize charging of the small battery and instant power supply in the event of abnormal power failure, so that the MCU can detect and store the position of the power-off antenna board; it solves the problem of loss of position information of the traditional CPE antenna board after an abnormal power failure, and can accurately reset to the initial position again after powering on again.
[0131] Combination Figure 8 In an optional embodiment of the present invention, in step S142, obtaining the position of the antenna board and determining whether the 5G millimeter wave CPE is powered off according to the position of the antenna board include:
[0132] Step S1421: Detect whether the antenna plate rotates N° in the I-th rotation; where I is the number of rotations of the antenna plate, and 1≤I≤M / N;
[0133] Step S1422: If so, determine that the 5G millimeter wave CPE is not powered off, store the current position of the antenna board, and output an interrupt signal to the 5G module.
[0134] Step S1422: If not, determine that the 5G millimeter wave CPE is abnormally powered off.
[0135] Specifically, the MCU determines whether the current position of the antenna board has reached the preset position after completing this rotation. If it has reached it, the position information is updated to the EEPROM, and the GPIO sends an interrupt signal to the 5G module until M / N rotations are completed.
[0136] Combination Figure 8 In an optional embodiment of the present invention, in step S1422, the step of determining that the 5G millimeter wave CPE is abnormally powered off includes:
[0137] Step S14221: confirming abnormal power failure of the 5G millimeter wave CPE;
[0138] The confirming that the 5G millimeter wave CPE is abnormally powered off includes:
[0139] Step S142211: outputting a detection pulse to the stepping motor;
[0140] Step S142212: If the feedback signal of the stepping motor is not received, it is determined that the 5G millimeter wave CPE is abnormally powered off;
[0141] Specifically, if the preset position after completing the rotation is not reached, the GPIO output pulse is controlled to eliminate the position error (the GPIO is controlled to supplement the corresponding pulse according to the difference feedback from the encoder or angle sensor. At this time, the stepper motor has no power and cannot move, so the encoder or angle sensor has no feedback); it can be confirmed that the 5G mmW CPE has abnormal power failure.
[0142] Step S14223: Store the current position of the antenna board to the EEPROM, and at the same time, output an interrupt signal to the 5G module.
[0143] Specifically, the MCU determines whether the encoder or angle sensor data has changed. If changed, it determines whether the antenna board has reached the preset position; if the data has not changed, it records the rotation direction of the stepper motor (clockwise or counterclockwise), and the encoder feeds back the number of pulses or angle deflection value to the EEPROM.
[0144] Among them, after the 5G mmW CPE is powered on again, the 5G module will start up and read the location information. At this time, the 5G module will obtain the total number of pulses that the antenna board moved from a certain angle to a certain direction before the abnormal power failure, and control the antenna board to reset to the initial position based on this data.
[0145] like Fig. 9 As shown, an embodiment of the present invention further provides a method for automatically adjusting an antenna of a 5G millimeter wave CPE, which is applied to a 5G module, comprising:
[0146] Step S21: sending an antenna board position acquisition signal to the single chip microcomputer to confirm that the antenna board is in the initial position;
[0147] Specifically, when the 5G mmW CPE is turned on, when the 5G module is turned on, the antenna board position acquisition information will be sent to the MCU through I2C. After receiving the I2C command, the MCU will return the antenna board position information to the 5G module.
[0148] Step S22: sending a signal strength detection signal to the single chip microcomputer;
[0149] Step S23: receiving an interrupt signal sent by the single chip microcomputer, and storing the current position of the antenna board and the corresponding signal strength according to the interrupt signal;
[0150] Step S24: confirming, based on the position of the antenna plate, that the antenna plate has completed one rotation;
[0151] Step S25: Compare the stored signal strengths of the plurality of groups to obtain the target signal strength.
[0152] Step S26: According to the target signal strength, the target position of the antenna board is obtained and the target position of the antenna board is fed back to the single chip microcomputer.
[0153] Combination Fig.10 In an optional embodiment of the present invention, in step S21, sending an antenna board position acquisition signal to the single-chip microcomputer to confirm that the antenna board is in an initial position includes:
[0154] Step S211: receiving the position of the antenna board fed back by the single chip microcomputer;
[0155] Step S212: judging whether the antenna board is in the initial position according to the position of the antenna board;
[0156] Step S213: If the antenna board is in the initial position, record the current position of the antenna board and the corresponding signal strength; otherwise, send a signal to the microcontroller to reset the antenna board to the initial position, and after detecting that the antenna board is in the initial position, record the current position of the antenna board and the corresponding signal strength.
[0157] Specifically, the 5G module determines whether the current antenna board position is the initial position, that is, the 0° position. If not, it sends an antenna board reset signal to the MCU through I2C. The MCU controls the antenna board to return to the initial position and outputs an interrupt signal to the 5G module through GPIO. After the 5G module verifies that the current antenna board position is the initial position through the interrupt signal, it will start signal detection to obtain the 5G signal strength at the initial position, and record the position and the corresponding signal strength.
[0158] After completing the signal strength recording, the 5G module will send a signal to detect the 5G signal strength to the MCU through I2C. The MCU controls the rotation of the antenna board, with each rotation angle being 15°. After the antenna board rotates to the corresponding preset position, the MCU will output an interrupt signal to the 5G module through GPIO.
[0159] Combination Fig.10 In an optional embodiment of the present invention, in step S23, an interrupt signal sent by the single chip microcomputer is received, and the current position of the antenna board and the corresponding signal strength are stored according to the interrupt signal, including:
[0160] Step S231: receiving an interrupt signal of the single-chip microcomputer via GPIO;
[0161] Step S232: store the current position of the antenna board and the corresponding signal strength according to the interrupt signal to form a set of data.
[0162] Specifically, after the 5G module detects the interruption signal, it obtains the current position of the antenna board through the signal and detects the 5G signal strength at that position. After the detection is completed, the current antenna board position and signal strength are recorded to form a set of data.
[0163] Combination Figure 7 In an optional embodiment of the present invention, in step S24, confirming that the antenna board has completed one rotation according to the position of the antenna board includes:
[0164] Step S241: confirming, based on the position of the antenna board, that the antenna board has completed one rotation;
[0165] Specifically, the 5G module determines whether the current antenna board has reached the end position of 360°. If not, step S23 is repeated. If it has reached, multiple sets of data stored in the storage module are compared to obtain the angle or position with the maximum signal strength.
[0166] Step S242: comparing the signal strengths of several sets of stored data to obtain target data;
[0167] Step S2413: Acquire the target position of the antenna board according to the target data.
[0168] Specifically, the 5G module outputs a signal to the MCU through I2C that the motor has rotated to the position with the maximum signal strength. The MCU controls the antenna board to rotate in the opposite direction. When it reaches the position with the maximum signal strength, the MCU outputs a GPIO interrupt to the 5G module. After the 5G module detects the interrupt signal, it obtains the position of the current antenna board through the signal to confirm whether the current antenna board has reached the target position. If so, the 5G CPE workflow starts. If not, the 5G module outputs a signal to the MCU through I2C that the motor has rotated to the position with the maximum signal strength.
[0169] An embodiment of the present invention further provides a device for automatically adjusting an antenna board of a 5G millimeter wave CPE, which is applied to a single chip microcomputer, including:
[0170] A receiving module, used for receiving a signal strength detection signal, controlling the stepper motor to drive the antenna plate to rotate one circle according to the signal strength detection signal, and storing the position of the antenna plate; at the same time, outputting an interrupt signal to the 5G module; wherein the antenna plate is connected to the stepper motor that controls the rotation of the antenna plate;
[0171] A first acquisition module, configured to acquire a target position of the antenna board according to feedback from the 5G module;
[0172] The control module is used to control the stepper motor to rotate the antenna board to the target position according to the target position of the antenna board.
[0173] Optionally, before the receiving signal strength detection signal, the method includes:
[0174] receiving a signal from the 5G module for acquiring the position of the antenna board, and feeding back the position of the antenna board to the 5G module;
[0175] A reset signal is received, and the antenna board is reset according to the reset signal.
[0176] Optionally, according to the signal strength detection signal, controlling a stepper motor to drive the antenna plate to rotate one circle includes:
[0177] The preset angle of one rotation is M°, and the angle of each rotation of the antenna plate is N°; wherein the angle of each rotation of the antenna plate is controlled by pulses, N° corresponds to L pulses, and M / N is the number of times the antenna plate rotates one rotation.
[0178] Optionally, storing the position of the antenna board includes:
[0179] Every time the antenna board rotates N°, the current position of the antenna board is stored.
[0180] Optionally, according to the target position of the antenna plate, controlling the stepper motor to rotate the antenna plate to the target position includes:
[0181] Calculating a target pulse according to the target position;
[0182] outputting the target pulse to the stepping motor;
[0183] The target pulse controls the stepping motor to drive the antenna plate to rotate in the opposite direction to the target position.
[0184] Optionally, it also includes the abnormal power-off process of 5G millimeter wave CPE:
[0185] Outputting L pulses to the stepper motor; wherein the single chip microcomputer is connected to an abnormal power-off protection power supply;
[0186] Obtain the position of the antenna board, and determine whether the 5G millimeter wave CPE is powered off according to the position of the antenna board.
[0187] Optionally, the acquiring the position of the antenna board and determining whether the 5G millimeter wave CPE is powered off according to the position of the antenna board includes:
[0188] Detecting whether the antenna plate rotates N° in the I-th rotation; wherein I is the number of rotations of the antenna plate, and 1≤I≤M / N;
[0189] If yes, it is determined that the 5G millimeter wave CPE is not powered off, and the current position of the antenna board is stored, and an interrupt signal is output to the 5G module;
[0190] If not, it is determined that the 5G millimeter wave CPE is abnormally powered off.
[0191] Optionally, the determining that the 5G millimeter wave CPE is abnormally powered off includes:
[0192] Confirming the abnormal power failure of the 5G millimeter wave CPE;
[0193] The confirming that the 5G millimeter wave CPE is abnormally powered off includes:
[0194] Outputting detection pulses to the stepping motor;
[0195] If no feedback signal from the stepper motor is received, it is determined that the 5G millimeter wave CPE is abnormally powered off;
[0196] The current position of the antenna board is stored in the EEPROM, and at the same time, an interrupt signal is output to the 5G module.
[0197] An embodiment of the present invention further provides a device for automatically adjusting an antenna board of a 5G millimeter wave CPE, which is applied to a 5G module, including:
[0198] A confirmation module, used for sending an antenna board position acquisition signal to the single chip microcomputer to confirm that the antenna board is in an initial position;
[0199] A sending module, used for sending a signal strength detection signal to the single chip microcomputer;
[0200] A storage module, used for receiving an interrupt signal sent by the single chip microcomputer, and storing the current position of the antenna board and the corresponding signal strength according to the interrupt signal;
[0201] A judgment module, used for confirming that the antenna board has completed one rotation according to the position of the antenna board;
[0202] A comparison module, used for comparing the stored signal strengths of the plurality of groups to obtain a target signal strength;
[0203] A second acquisition module, used for acquiring a target position of the antenna board according to the target signal strength;
[0204] A feedback module is used to feed back the target position of the antenna board to the single chip microcomputer.
[0205] Optionally, sending an antenna board position acquisition signal to the single-chip microcomputer to confirm that the antenna board is in an initial position includes:
[0206] receiving the position of the antenna board fed back by the single chip microcomputer;
[0207] According to the position of the antenna board, determining whether the antenna board is in the initial position;
[0208] If the antenna board is in the initial position, the current position of the antenna board and the corresponding signal strength are recorded; otherwise, a signal is sent to the microcontroller to reset the antenna board to the initial position. After detecting that the antenna board is in the initial position, the current position of the antenna board and the corresponding signal strength are recorded.
[0209] In addition, other structures and functions of the device in the embodiment of the present invention are known to those skilled in the art and will not be described herein in detail to reduce redundancy.
[0210] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0211] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0212] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0213] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0214] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0215] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0216] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0217] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for automatically adjusting an antenna board of a 5G millimeter wave CPE, characterized in that: Applied to microcontrollers, including: Receive a signal strength detection signal, and according to the signal strength detection signal, control the stepper motor to drive the antenna board to rotate one circle, and store the position of the antenna board; at the same time, output an interrupt signal to the 5G module, so that the 5G module stores the current position of the antenna board and the corresponding signal strength according to the interrupt signal; wherein the antenna board is connected to the stepper motor that controls the rotation of the antenna board; According to the feedback from the 5G module, a target position of the antenna plate is obtained; According to the target position of the antenna plate, controlling the stepper motor to rotate the antenna plate to the target position; This also includes the abnormal power-off process of 5G millimeter wave CPE: Outputting L pulses to the stepper motor; wherein the single chip microcomputer is connected to an abnormal power-off protection power supply; Obtaining the position of the antenna board, and determining whether the 5G millimeter wave CPE is powered off according to the position of the antenna board; The obtaining the position of the antenna board and determining whether the 5G millimeter wave CPE is powered off according to the position of the antenna board includes: Detecting whether the antenna plate rotates N° in the I-th rotation; wherein I is the number of rotations of the antenna plate, and 1≤I≤M / N; If yes, it is determined that the 5G millimeter wave CPE is not powered off, and the current position of the antenna board is stored, and an interrupt signal is output to the 5G module; If not, it is determined that the 5G millimeter wave CPE is abnormally powered off.
2. The method according to claim 1, characterized in that Before the receiving signal strength detection signal, it includes: receiving a signal from the 5G module for acquiring the position of the antenna board, and feeding back the position of the antenna board to the 5G module; A reset signal is received, and the antenna board is reset according to the reset signal.
3. The method according to claim 1 or 2, characterized in that: According to the signal strength detection signal, controlling the stepper motor to drive the antenna plate to rotate one circle includes: The preset angle of one rotation is M°, and the angle of each rotation of the antenna plate is N°; wherein the angle of each rotation of the antenna plate is controlled by pulses, the N° corresponds to L pulses, and M / N is the number of times the antenna plate rotates one rotation.
4. The method according to claim 3, characterized in that The storing the position of the antenna board comprises: Every time the antenna board rotates N°, the current position of the antenna board is stored.
5. The method according to claim 4, characterized in that According to the target position of the antenna plate, controlling the stepper motor to rotate the antenna plate to the target position includes: Calculating a target pulse according to the target position; outputting the target pulse to the stepping motor; The target pulse controls the stepping motor to drive the antenna plate to rotate in the opposite direction to the target position.
6. The method according to claim 1, characterized in that The method of judging that the 5G millimeter wave CPE is abnormally powered off includes: Confirming the abnormal power failure of the 5G millimeter wave CPE; The confirming that the 5G millimeter wave CPE is abnormally powered off includes: Outputting detection pulses to the stepping motor; If no feedback signal from the stepper motor is received, it is determined that the 5G millimeter wave CPE is abnormally powered off; The current position of the antenna board is stored in the EEPROM, and at the same time, an interrupt signal is output to the 5G module.
7. A device for automatically adjusting antenna boards of 5G millimeter wave CPEs, characterized in that: Applied to microcontrollers, including: A receiving module, used to receive a signal strength detection signal, and according to the signal strength detection signal, control the stepper motor to drive the antenna board to rotate one circle, and store the position of the antenna board; at the same time, output an interrupt signal to the 5G module, so that the 5G module stores the current position of the antenna board and the corresponding signal strength according to the interrupt signal; wherein the antenna board is connected to the stepper motor that controls the rotation of the antenna board; A first acquisition module, configured to acquire a target position of the antenna board according to feedback from the 5G module; A control module, configured to control the stepping motor to rotate the antenna plate to the target position according to the target position of the antenna plate; This also includes the abnormal power-off process of 5G millimeter wave CPE: Outputting L pulses to the stepper motor; wherein the single chip microcomputer is connected to an abnormal power-off protection power supply; Obtaining the position of the antenna board, and determining whether the 5G millimeter wave CPE is powered off according to the position of the antenna board; The obtaining the position of the antenna board and determining whether the 5G millimeter wave CPE is powered off according to the position of the antenna board includes: Detecting whether the antenna plate rotates N° in the I-th rotation; wherein I is the number of rotations of the antenna plate, and 1≤I≤M / N; If yes, it is determined that the 5G millimeter wave CPE is not powered off, and the current position of the antenna board is stored, and an interrupt signal is output to the 5G module; If not, it is determined that the 5G millimeter wave CPE is abnormally powered off.
8. A 5G millimeter wave CPE device, comprising a single chip microcomputer, a 5G module and an antenna board, wherein the single chip microcomputer is communicatively connected to the 5G module and the antenna board respectively, characterized in that: Also includes: A stepper motor, wherein the stepper motor is in driving connection with the antenna plate, the stepper motor is in communication connection with the single-chip microcomputer, and the single-chip microcomputer controls the rotation of the antenna plate through the stepper motor; A feedback module, the feedback module is connected to the stepper motor and is used to feed back the execution state of the stepper motor to the single chip microcomputer; An abnormal power-off prevention power supply, the abnormal power-off prevention power supply is connected to the single-chip microcomputer and is used to prevent the single-chip microcomputer from abnormal power-off; Wherein, the single chip microcomputer is used to receive a signal strength detection signal, and according to the signal strength detection signal, control the stepper motor to drive the antenna board to rotate one circle, and store the position of the antenna board, and at the same time, output an interrupt signal to the 5G module, so that the 5G module stores the current position of the antenna board and the corresponding signal strength according to the interrupt signal, obtains the target position of the antenna board according to the feedback of the 5G module, and controls the stepper motor to rotate the antenna board to the target position according to the target position of the antenna board; the single chip microcomputer is used to output L pulses to the stepper motor; wherein, The single-chip microcomputer is connected to an anti-abnormal power-off power supply; the position of the antenna board is obtained, and whether the 5G millimeter wave CPE is powered off is determined according to the position of the antenna board; the obtaining of the position of the antenna board and determining whether the 5G millimeter wave CPE is powered off according to the position of the antenna board include: detecting whether the antenna board rotates N° during the I rotation; wherein I is the number of rotations of the antenna board, and 1≤I≤M / N; if so, it is determined that the 5G millimeter wave CPE is not powered off, and the current position of the antenna board is stored, and an interrupt signal is output to the 5G module; if not, it is determined that the 5G millimeter wave CPE is powered off abnormally; The 5G module is used to send a signal strength detection signal to the single-chip microcomputer; receive an interrupt signal sent by the single-chip microcomputer, store the current position of the antenna board and the corresponding signal strength according to the interrupt signal, obtain the target position of the antenna board, and feed back the target position of the antenna board to the single-chip microcomputer.
Citation Information
Patent Citations
Customer front-end device, antenna control method and computer readable storage medium
CN111313925A
