Method, device and equipment for automatically adjusting antenna board by using 5G millimeter wave CPE (customer premises equipment)

文档序号:1875034 发布日期:2021-11-23 浏览:23次 中文

阅读说明:本技术 5g毫米波cpe自动调节天线板的方法、装置及设备 (Method, device and equipment for automatically adjusting antenna board by using 5G millimeter wave CPE (customer premises equipment) ) 是由 万博雨 余慧明 袁毅 于 2021-08-12 设计创作,主要内容包括:本发明公开了一种5G毫米波CPE自动调节天线板的方法、装置及设备,所述方法包括:接收信号强度检测信号,根据信号强度检测信号,控制步进电机带动所述天线板旋转一周,并对所述天线板的位置进行存储;同时,将中断信号输出至5G模组;其中,所述天线板与控制所述天线板旋转的步进电机连接;根据所述5G模组的反馈,获取所述天线板的目标位置;根据所述天线板的目标位置,控制所述步进电机将所述天线板旋转至所述目标位置。本发明的技术方案,有效规避了电机运动超过限位产生的堵转和导致LCP线或同轴线断开的问题,可以实现自动调节天线板的位置。(The invention discloses a method, a device and equipment for automatically adjusting an antenna board by using 5G millimeter wave CPE, wherein the method comprises the following steps: receiving a signal intensity detection signal, controlling a stepping motor to drive the antenna plate to rotate for a circle according to the signal intensity detection signal, and storing the position of the antenna plate; meanwhile, the interrupt signal is output to the 5G module; the antenna plate is connected with a stepping motor which controls the antenna plate to rotate; acquiring the target position of the antenna plate according to the feedback of the 5G module; and controlling the stepping motor to rotate the antenna plate to the target position according to the target position of the antenna plate. According to the technical scheme, the problems of locked rotor caused by the fact that the motor moves beyond the limit position and LCP (liquid Crystal display) lines or coaxial lines are disconnected are effectively solved, and the position of the antenna plate can be automatically adjusted.)

1. A method for automatically adjusting an antenna board by using 5G millimeter wave CPE is characterized by being applied to a single chip microcomputer and comprising the following steps:

receiving a signal intensity detection signal, controlling a stepping motor to drive the antenna plate to rotate for a circle according to the signal intensity detection signal, and storing the position of the antenna plate; meanwhile, the interrupt signal is output to the 5G module; the antenna plate is connected with a stepping motor which controls the antenna plate to rotate;

acquiring the target position of the antenna plate according to the feedback of the 5G module;

and controlling the stepping motor to rotate the antenna plate to the target position according to the target position of the antenna plate.

2. The method of claim 1, prior to the receiving the signal strength detection signal, comprising:

receiving a signal of the position of the antenna plate obtained by the 5G module, and feeding back the position of the antenna plate to the 5G module;

and receiving a reset signal, and resetting the antenna board according to the reset signal.

3. The method according to claim 1 or 2, wherein controlling a stepper motor to rotate the antenna board by one rotation according to the signal strength detection signal comprises:

presetting an angle of one rotation as M degrees, and presetting an angle of each rotation of the antenna plate as N degrees; the angle of each rotation of the antenna plate is controlled through pulses, the N degrees correspond to the L pulses, and the M/N is the number of times of one rotation of the antenna plate.

4. The method of claim 3, wherein the storing the location of the antenna board comprises:

and storing the current position of the antenna plate every N degrees of rotation of the antenna plate.

5. The method of claim 4, wherein controlling the stepper motor to rotate the antenna plate to the target position based on the target position of the antenna plate comprises:

calculating target pulse according to the target position;

outputting the target pulse to the stepping motor;

and the target pulse controls the stepping motor to drive the antenna plate to rotate reversely to the target position.

6. The method according to claim 1, further comprising a 5G millimeter wave CPE abnormal power down process:

outputting L pulses to the stepping motor; the single chip microcomputer is connected with an abnormal power failure prevention power supply;

and acquiring the position of the antenna plate, and judging whether the 5G millimeter wave CPE is powered down or not according to the position of the antenna plate.

7. The method of claim 6, wherein the obtaining the position of the antenna board and the determining whether the 5G millimeter wave CPE has power down according to the position of the antenna board comprise:

detecting whether the antenna plate rotates by N degrees at the I-th rotation; wherein I is the rotation frequency of the antenna plate, and I is more than or equal to 1 and less than or equal to M/N;

if so, judging that the 5G millimeter wave CPE is not powered down, storing the current position of the antenna board, and outputting an interrupt signal to the 5G module;

if not, judging that the 5G millimeter wave CPE is abnormally powered down.

8. The method according to claim 7, wherein the determining that the 5G millimeter wave CPE has abnormal power failure comprises:

confirming abnormal power failure of the 5G millimeter wave CPE;

the determining the abnormal power failure of the 5G millimeter wave CPE comprises the following steps:

outputting a detection pulse to the stepping motor;

if the feedback signal of the stepping motor is not received, determining that the 5G millimeter wave CPE is abnormally powered down;

and storing the current position of the antenna board to the EEPROM, and outputting an interrupt signal to the 5G module.

9. The method for automatically adjusting the antenna board by the CPE of the 5G millimeter waves is characterized by being applied to a 5G module and comprising the following steps:

sending an antenna board position acquisition signal to a single chip microcomputer, and confirming that the antenna board is at an initial position;

sending a signal strength detection signal to the single chip microcomputer;

receiving an interrupt signal sent by the singlechip, and storing the current position of the antenna board and the corresponding signal strength according to the interrupt signal;

confirming that the antenna plate has completed one rotation according to the position of the antenna plate;

comparing the stored signal intensities of a plurality of groups to obtain target signal intensity;

and according to the target signal intensity, acquiring the target position of the antenna plate and feeding the target position of the antenna plate back to the single chip microcomputer.

10. The method of claim 9, wherein the sending an antenna board position acquisition signal to a single chip microcomputer to confirm that the antenna board is at an initial position comprises:

receiving the position of the antenna plate fed back by the singlechip;

judging whether the antenna plate is at the initial position or not according to the position of the antenna plate;

if the antenna plate is located at the initial position, recording the current position of the antenna plate and the corresponding signal strength; otherwise, a signal for resetting the antenna plate to the initial position is sent to the single chip microcomputer, and after the antenna plate is detected to be located at the initial position, the current position of the antenna plate and the corresponding signal strength are recorded.

11. The utility model provides a device of 5G millimeter wave CPE automatically regulated antenna panel which characterized in that is applied to the singlechip, includes:

the receiving module is used for receiving the signal intensity detection signal, controlling the stepping motor to drive the antenna plate to rotate for a circle according to the signal intensity detection signal, and storing the position of the antenna plate; meanwhile, the interrupt signal is output to the 5G module; the antenna plate is connected with a stepping motor which controls the antenna plate to rotate;

the first acquisition module is used for acquiring the target position of the antenna plate according to the feedback of the 5G module;

and the control module is used for controlling the stepping motor to rotate the antenna plate to the target position according to the target position of the antenna plate.

12. The utility model provides a device of 5G millimeter wave CPE automatically regulated antenna panel which characterized in that is applied to the 5G module, includes:

the confirming module is used for sending an antenna plate position obtaining signal to the single chip microcomputer and confirming that the antenna plate is in an initial position;

the sending module is used for sending a signal strength detection signal to the single chip microcomputer;

the storage module is 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;

the judging module is used for confirming that the antenna plate rotates for a circle according to the position of the antenna plate;

the comparison module is used for comparing the stored signal intensities of a plurality of groups to obtain the target signal intensity;

the second acquisition module is used for acquiring the target position of the antenna plate according to the target signal intensity;

and the feedback module is used for feeding the target position of the antenna plate back to the single chip microcomputer.

13. The utility model provides a 5G millimeter wave CPE equipment, includes singlechip, 5G module and antenna panel, the singlechip respectively with 5G module with antenna panel communication connection, its characterized in that still includes:

the stepping motor is in transmission connection with the antenna plate, the stepping motor is in communication connection with the single chip microcomputer, and the single chip microcomputer controls the antenna plate to rotate through the stepping motor;

the feedback module is connected with the stepping motor and used for feeding back the execution state of the stepping motor to the single chip microcomputer;

and the abnormal power-down prevention power supply is connected with the single chip microcomputer and is used for preventing the abnormal power-down of the single chip microcomputer.

Technical Field

The invention belongs to the technical field of communication, and particularly relates to a method, a device and equipment for automatically adjusting an antenna board by using 5G millimeter wave CPE.

Background

The mode of fixed position installation is adopted to the inside antenna of traditional CPE equipment, can't satisfy the application demand of mmW CPE equipment, need adopt the electric scanning phased array to 5G mmW CPE equipment, but beamracking can only track about 1/4 sphere, consequently need 4 faces all to install the antenna array, mmW CPE equipment needs antenna radiation effective power to be greater than 40dBm, four faces all install economically infeasible, consequently can adopt the rotatory mode of motor drive antenna panel to come the auxiliary scanning.

However, the scanning method based on the rotation of the antenna plate assisted by the motor has the following problems: 1. LCP (liquid Crystal display) wires or coaxial wires are mostly adopted for connection between the antenna board and the CPE mainboard, and in the process that the direct current motor or the stepping motor drives the antenna board to rotate, if a limit switch is not introduced, the LCP or the coaxial wires are separated from the mainboard under the limitation of wire length, and simultaneously, the motor is locked to generate large current, so that the risk of burning a motor control circuit is caused; 2. the additional installation of the limit switch is influenced by the size of the limit switch, so that the 5G mmW CPE whole machine is larger; 3. if the 5G mmW CPE is suddenly abnormally powered off in the rotation process of the antenna board, the initial position of the antenna board cannot be obtained after the antenna board is powered on and started again, and the risk of motor stalling and connection line disconnection can be increased due to rotation of the antenna board under the condition.

Disclosure of Invention

The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, the invention aims to provide a method, a device and equipment for automatically adjusting an antenna board of a 5G millimeter wave CPE.

In order to solve the above technical problem, an embodiment of the present invention provides the following technical solutions:

a method for automatically adjusting an antenna board by using 5G millimeter wave CPE is applied to a singlechip and comprises the following steps:

receiving a signal intensity detection signal, controlling a stepping motor to drive the antenna plate to rotate for a circle according to the signal intensity detection signal, and storing the position of the antenna plate; meanwhile, the interrupt signal is output to the 5G module; the antenna plate is connected with a stepping motor which controls the antenna plate to rotate;

acquiring the target position of the antenna plate according to the feedback of the 5G module;

and controlling the stepping motor to rotate the antenna plate to the target position according to the target position of the antenna plate.

Optionally, before the receiving the signal strength detection signal, the method includes:

receiving a signal of the position of the antenna plate obtained by the 5G module, and feeding back the position of the antenna plate to the 5G module;

and receiving a reset signal, and resetting the antenna board according to the reset signal.

Optionally, according to the signal intensity detection signal, control step motor drives the antenna panel is rotatory a week, include:

presetting an angle of one rotation as M degrees, and presetting an angle of each rotation of the antenna plate as N degrees; the angle of each rotation of the antenna plate is controlled through pulses, the N degrees correspond to the L pulses, and the M/N is the number of times of one rotation of the antenna plate.

Optionally, the storing the position of the antenna board includes:

and storing the current position of the antenna plate every N degrees of rotation of the antenna plate.

Optionally, controlling the stepping motor to rotate the antenna plate to the target position according to the target position of the antenna plate includes:

calculating target pulse according to the target position;

outputting the target pulse to the stepping motor;

and the target pulse controls the stepping motor to drive the antenna plate to rotate reversely to the target position.

Optionally, the method further includes an abnormal power down process of the 5G millimeter wave CPE:

outputting L pulses to the stepping motor; the single chip microcomputer is connected with an abnormal power failure prevention power supply;

and acquiring the position of the antenna plate, and judging whether the 5G millimeter wave CPE is powered down or not according to the position of the antenna plate.

Optionally, the obtaining the position of the antenna board, and determining whether the 5G millimeter wave CPE has a power failure according to the position of the antenna board includes:

detecting whether the antenna plate rotates by N degrees at the I-th rotation; wherein I is the rotation frequency of the antenna plate, and I is more than or equal to 1 and less than or equal to M/N;

if so, judging that the 5G millimeter wave CPE is not powered down, storing the current position of the antenna board, and outputting an interrupt signal to the 5G module;

if not, judging that the 5G millimeter wave CPE is abnormally powered down.

Optionally, after determining that the 5G millimeter wave CPE abnormally fails to power down, the method includes:

confirming abnormal power failure of the 5G millimeter wave CPE;

the determining the abnormal power failure of the 5G millimeter wave CPE comprises the following steps:

outputting a detection pulse to the stepping motor;

if the feedback signal of the stepping motor is not received, determining that the 5G millimeter wave CPE is abnormally powered down;

and storing the current position of the antenna board to the EEPROM, and outputting an interrupt signal to the 5G module.

The embodiment of the invention also provides a method for automatically adjusting the antenna board by the CPE of the 5G millimeter wave, which is applied to a 5G module and comprises the following steps:

sending an antenna board position acquisition signal to a single chip microcomputer, and confirming that the antenna board is at an initial position;

sending a signal strength detection signal to the single chip microcomputer;

receiving an interrupt signal sent by the singlechip, and storing the current position of the antenna board and the corresponding signal strength according to the interrupt signal;

confirming that the antenna plate has completed one rotation according to the position of the antenna plate;

comparing the stored signal intensities of a plurality of groups to obtain target signal intensity;

and according to the target signal intensity, acquiring the target position of the antenna plate and feeding the target position of the antenna plate back to the single chip microcomputer.

Optionally, the sending an antenna panel position acquisition signal to the single chip microcomputer, and confirming that the antenna panel is at an initial position includes:

receiving the position of the antenna plate fed back by the singlechip;

judging whether the antenna plate is at the initial position or not according to the position of the antenna plate;

if the antenna plate is located at the initial position, recording the current position of the antenna plate and the corresponding signal strength; otherwise, a signal for resetting the antenna plate to the initial position is sent to the single chip microcomputer, and after the antenna plate is detected to be located at the initial position, the current position of the antenna plate and the corresponding signal strength are recorded.

The embodiment of the invention also provides a device for automatically adjusting the antenna board by using the 5G millimeter wave CPE, which is applied to a singlechip and comprises:

the receiving module is used for receiving the signal intensity detection signal, controlling the stepping motor to drive the antenna plate to rotate for a circle according to the signal intensity detection signal, and storing the position of the antenna plate; meanwhile, the interrupt signal is output to the 5G module; the antenna plate is connected with a stepping motor which controls the antenna plate to rotate;

the first acquisition module is used for acquiring the target position of the antenna plate according to the feedback of the 5G module;

and the control module is used for controlling the stepping motor to rotate the antenna plate to the target position according to the target position of the antenna plate.

The embodiment of the invention also provides a device for automatically adjusting the antenna board of the 5G millimeter wave CPE, which is applied to a 5G module and comprises the following components:

the confirming module is used for sending an antenna plate position obtaining signal to the single chip microcomputer and confirming that the antenna plate is in an initial position;

the sending module is used for sending a signal strength detection signal to the single chip microcomputer;

the storage module is 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;

the judging module is used for confirming that the antenna plate rotates for a circle according to the position of the antenna plate;

the comparison module is used for comparing the stored signal intensities of a plurality of groups to obtain the target signal intensity;

the second acquisition module is used for acquiring the target position of the antenna plate according to the target signal intensity;

and the feedback module is used for feeding the target position of the antenna plate back to the single chip microcomputer.

The embodiment of the present invention further provides a 5G millimeter wave CPE device, including a single chip, a 5G module and an antenna board, where the single chip is in communication connection with the 5G module and the antenna board, and further including:

the stepping motor is in transmission connection with the antenna plate, the stepping motor is in communication connection with the single chip microcomputer, and the single chip microcomputer controls the antenna plate to rotate through the stepping motor;

the feedback module is connected with the stepping motor and used for feeding back the execution state of the stepping motor to the single chip microcomputer;

and the abnormal power-down prevention power supply is connected with the single chip microcomputer and is used for preventing the abnormal power-down of the single chip microcomputer. The embodiment of the invention has the following technical effects:

according to the technical scheme, 1) the movement precision of the antenna plate is improved, the position of the antenna plate can be automatically reset and calibrated after the 5G millimeter wave CPE is started, and the problems of rotation blockage caused by the fact that the movement of a motor exceeds a limit position and disconnection of LCP lines or coaxial lines are effectively avoided.

2) By adopting a distributed control scheme, the MCU is utilized to realize motor control and speed loop and position loop closed-loop feedback, and meanwhile, the installation of a limit switch is cancelled, so that the size of 5G millimeter wave CPE terminal equipment is reduced.

3) The small battery power-down prevention circuit of 40mAh is used as a standby battery of the MCU, so that the charging of the small battery and the instant power supply of abnormal power down can be realized, and the MCU can detect and store the position of the power down antenna board;

4) the problem that the position information of the traditional CPE antenna board is lost after abnormal power failure is solved, and the traditional CPE antenna board can be accurately reset to the initial position again after being electrified and started again.

Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.

Drawings

Fig. 1 is a schematic structural diagram of a 5G millimeter wave CPE device according to an embodiment of the present invention;

fig. 2 is a schematic structural diagram of an antenna board provided by an embodiment of the present invention in an initial position;

fig. 3 is a schematic structural diagram of an antenna board provided by an embodiment of the present invention, which is rotated by 180 ° counterclockwise;

fig. 4 is a schematic structural diagram of an abnormal power down prevention circuit provided in the embodiment of the present invention.

Fig. 5 is a schematic flowchart of a method for automatically adjusting an antenna board of a 5G millimeter wave CPE according to an embodiment of the present invention at a single chip;

FIG. 6 is a block diagram of the operating principle of the MCU provided by the embodiment of the present invention;

fig. 7 is a schematic diagram illustrating the principle of forward and reverse rotation of a control stepping motor of orthogonal coding in the method for automatically adjusting an antenna board by using 5G millimeter waves CPE according to an embodiment of the present invention;

fig. 8 is a functional block diagram of an MCU in the case of power failure of the 5G millimeter wave CPE according to the embodiment of the present invention;

fig. 9 is a schematic flow diagram of a method for automatically adjusting an antenna board of a 5G millimeter wave CPE according to an embodiment of the present invention, on a 5G module side;

fig. 10 is a functional block diagram of a 5G module according to an embodiment of the present invention.

Detailed Description

Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.

As mentioned in the invention, 5G is a fifth generation mobile communication system; CPE (Customer Premise Equipment); mmW: millimeter waves; LCP (liquid Crystal polymer) is a high-performance special engineering plastic; dBm: decibel milliwatt; GPIO (General-purpose input/output), short for General-purpose input/output; an I2C (Inter-Integrated Circuit) bus; an EEPROM: a charged erasable programmable read-only memory; an adc (analog to Digital converter); mAh: milliampere hour; beamracking: beam tracking; a printed circuit board (pcb); VBAT: a battery operating mode dedicated pin; VIN is the input voltage; VOUT is output voltage; EN: enabling; LDO: a voltage regulator.

In order to facilitate understanding of the embodiment of the present invention, a device on which the 5G millimeter wave CPE automatically adjusts the antenna board according to the embodiment of the present invention is described below.

As shown in fig. 1, an embodiment of the present invention further provides a 5G millimeter wave CPE device, including a single chip, a 5G module, and an antenna board, where the single chip is in communication connection with the 5G module and the antenna board, and further including:

the stepping motor is in transmission connection with the antenna plate, the stepping motor is in communication connection with the single chip microcomputer, and the single chip microcomputer controls the antenna plate to rotate through the stepping motor;

the feedback module is connected with the stepping motor and used for feeding back the execution state of the stepping motor to the single chip microcomputer;

and the abnormal power-down prevention power supply is connected with the single chip microcomputer and is used for preventing the abnormal power-down of the single chip microcomputer.

With reference to fig. 2 and fig. 3, specifically, after the 5G millimeter wave CPE is turned on, the 5G module outputs and detects 5G signal strength to the MCU through I2C; MCU control step motor rotatory antenna panel, every rotatory 15 control GPIO output interrupt to 5G modules, simultaneously with the positional information storage of antenna panel to EEPROM, can carry out the position reading and the signal strength detection of antenna panel after the interrupt signal is received to 5G modules, then repeat above-mentioned step, after step motor rotates 360, contrast the signal strength size that detects, select the strongest angle of signal strength, let the antenna panel reversal turn back the strongest angle of signal strength, realize high antenna gain through beam forming.

In an alternative embodiment of the present invention, referring to fig. 2 and 3, the feedback module is an angle sensor or an encoder.

Specifically, a miniature stepping motor matched with an encoder or an angle sensor is embedded and welded and fixed on a PCB main board in 5G mmW CPE equipment, and an external antenna board is hung on a rotating shaft of the miniature stepping motor.

As shown in fig. 4, an alternative embodiment of the present invention further includes a first diode and a second diode;

the input end of the first diode is connected with the abnormal power-down prevention power supply, and the output end of the first diode is connected with the single chip microcomputer;

and the output end of the second diode is respectively connected with the output ends of the singlechip and the first diode.

Specifically, 1) through VBAT _ SYS to VIN input voltage, through VOUT output voltage, with prevent that the unusual power supply that falls is connected, adopt 50mAh little battery as the unusual power supply that falls of preventing of MCU, the electric quantity of little battery is detected through MCU's ADC, and control GPIO enables little battery charging circuit, when little battery electric quantity falls to the threshold value of charging, control VOUT terminal pair is charged little battery, can adjust output voltage in order to realize, at VIN input voltage, be equipped with the stabiliser between the VOUT output voltage.

The small battery is connected with a power supply from the first diode D1 to the MCU in series, the first diode cannot be conducted under normal conditions due to the voltage of the small battery and the power supply voltage difference of the MCU, the small battery is immediately supplemented to the MCU as a standby power supply after abnormal power failure, the MCU is guaranteed to normally operate when the 5G mmW CPE is powered down, VBAT _ MCU is 0 level, and the first diode is conducted.

3) And the small battery cannot be charged to other circuits of the mainboard due to the anti-reverse charging function of the second diode D2.

As shown in fig. 5, 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 single chip microcomputer, and includes:

step S11: receiving a signal intensity detection signal, controlling a stepping motor to drive the antenna plate to rotate for a circle according to the signal intensity detection signal, and storing the position of the antenna plate; meanwhile, the interrupt signal is output to the 5G module; the antenna plate is connected with a stepping motor which controls the antenna plate to rotate;

specifically, with reference to fig. 1, the MCU controls the GPIO to output a fixed number of variable frequency pulses according to the initial position information read out from the EEPROM, thereby controlling the rotation of the antenna plate.

The antenna plate rotates anticlockwise for multiple times to complete one rotation, and after each rotation is finished, the current position of the antenna plate is stored through the EEPROM.

Step S12: acquiring the target position of the antenna plate according to the feedback of the 5G module;

specifically, the pulse number of the pulse which rotates clockwise to the target position is converted according to the target position information provided by the 5G module, and the GPIO is used for outputting the variable frequency pulse of the fixed pulse.

Step S13: and controlling the stepping motor to rotate the antenna plate to the target position according to the target position of the antenna plate.

Specifically, with reference to fig. 1, the MCU determines whether the antenna board moves to a target position after the GPIO port outputs a fixed pulse by using an orthogonal decoder (encoder) or an ADC (angle sensor), and if so, updates the position information to the EEPROM, and outputs an interrupt signal to the 5G module through the GPIO to enter a standby state; if not, the number of the pulses which are not needed to be supplemented is calculated through the error, and the frequency conversion pulses with the fixed number are output through the GPIO to eliminate the error.

According to the embodiment of the invention, the movement precision of the antenna plate is improved, the position of the antenna plate can be automatically reset and calibrated after the CPE is started at 5G mmW, the problems of locked rotor caused by the fact that the movement of the stepping motor exceeds the limit and LCP (liquid Crystal display) lines or coaxial lines are disconnected are effectively avoided, and the position of the antenna plate can be automatically adjusted; in addition, a distributed control scheme is adopted, the control of the stepping motor and the closed-loop feedback of a speed loop and a position loop are realized by using the MCU, meanwhile, the I2C is used for communication, relevant interfaces of the 5G module are released, the installation of a limit switch is cancelled, and the size of the 5G mmW CPE equipment is reduced.

Referring to fig. 6, an alternative embodiment of the present invention, in step S11, before the receiving the signal strength detection signal, includes:

step S111: receiving a signal of the position of the antenna plate obtained by the 5G module, and feeding back the position of the antenna plate to the 5G module;

specifically, the MCU waits for the 5G module to send a signal for resetting the antenna board, if the antenna board in the initial state is not at the position (initial position) of 0 degree, the 5G module outputs a reset signal through I2C, and the MCU controls the GPIO to output a fixed number of variable frequency pulses according to the initial position information read out by the EEPROM;

wherein, the pulse of the stepping motor is controlled and output by the differential algorithm, because if the fixed low-frequency pulse is used, the motor rotates very slowly; if a fixed high-frequency pulse is used, motor locking occurs in a starting state, so that an acceleration-constant speed-deceleration pulse output process is needed.

Step S112: and receiving a reset signal, and resetting the antenna board according to the reset signal.

Specifically, after the 5G mmW CPE is powered on, the MCU waits for the 5G module to output a signal for acquiring the position of the antenna board, and if the signal is not received, the MCU is always in a standby state, and if the signal is received through I2C, the MCU reads the position information from the EEPROM and feeds the position information back to the 5G module through I2C.

Referring to fig. 7, in an alternative embodiment of the present invention, in step S11, controlling a stepper motor to drive the antenna board to rotate for one circle according to the signal strength detection signal includes:

s113: presetting an angle of one rotation as M degrees, and presetting an angle of each rotation of the antenna plate as N degrees; the angle of each rotation of the antenna plate is controlled through pulses, the N degrees correspond to the L pulses, and the M/N is the number of times of one rotation of the antenna plate.

For example, M ° may be 360 °, N ° may be 15 °, and M/N is 24.

Specifically, if the antenna board is at the 0 ° position in the initial state, I2C will output a signal strength detection signal;

the MCU waits for the 5G module to send an instruction, and if a signal strength detection signal is received, the stepping motor is controlled to rotate anticlockwise for 15 degrees; if the signal that the stepping motor finishes rotating for one circle after rotating for a fixed angle is received, executing the step S13; waiting for the signal indication of the 5G module if the signal of completing one rotation is not received; the MCU utilizes the GPIO to output fixed pulse (N is 15 degrees corresponding to the number of pulses L) frequency conversion pulses.

Referring to fig. 6, in an alternative embodiment of the present invention, in step S11, the storing the position of the antenna board includes:

step S114: and storing the current position of the antenna plate every N degrees of rotation of the antenna plate.

Specifically, the current position of the antenna plate is stored every time the antenna plate rotates by N degrees; specifically, after the MCU utilizes orthogonal decoding or ADC detection to confirm that the GPIO port outputs fixed pulses, after the antenna board completes sequential rotation, whether the antenna board moves to a preset position or not is judged, if yes, position information is updated to an EEPROM, and an interrupt signal is output to the 5G module through the GPIO port until the antenna board completes one rotation; if not, the number of the pulses which are not needed to be supplemented is calculated through errors (the pulses of GPIO supplementary response are controlled according to the difference fed back by the encoder or the angle sensor), and the frequency conversion pulses with fixed number are output through the GPIO to eliminate the errors. The MCU stores the position information in a fixed area of the EEPROM; for example: 0x12, where the default direction is counterclockwise, 12 indicates the number of rotations, 01 indicates 1 rotation and 15 °, so 0x12 indicates that 18x15 ° counterclockwise (in hexadecimal terms) is 270 °, and clockwise is counted down; the parameter is updated each time the location is completed.

Referring to fig. 6, an alternative embodiment of the present invention, in step S13, controlling the stepping motor to rotate the antenna board to the target position according to the target position of the antenna board includes:

step S141: calculating target pulse according to the target position;

step S142: outputting the target pulse to the stepping motor;

step S143: and the target pulse controls the stepping motor to drive the antenna plate to rotate reversely to the target position.

Specifically, the MCU utilizes orthogonal decoding or ADC to detect and confirm whether the antenna board moves to a target position after the GPIO port outputs a fixed pulse, if so, the MCU updates position information to the EEPROM, outputs interrupt information to the 5G module through the GPIO port and enters a standby state; if not, the number of the pulses which are not needed to be supplemented is calculated through the error, and the frequency conversion pulses with the fixed number are output through the GPIO to eliminate the error.

As shown in fig. 6, the orthogonal coding may be implemented by a MCU timer pin, where the falling edge of item a is corresponding to the high level of phase B, the motor rotates in reverse (clockwise), and the rising edge of item a is corresponding to the high level of phase B, the motor rotates in forward (counterclockwise).

Referring to fig. 8, in an optional embodiment of the present invention, in step S14, the method further includes an abnormal power down process of the 5 gmw CPE:

step S141: outputting L pulses to the stepping motor; the single chip microcomputer is connected with an abnormal power failure prevention power supply;

specifically, 1) the MCU receives signals which are sent by the 5G module and need to rotate the stepping motor, wherein the signals comprise antenna plate reset signals, network monitoring signals or signals of the antenna plate moving to a specified angle; the MCU outputs variable frequency pulses corresponding to the number of the pulses;

2) abnormal power failure of the 5G mmW CPE suddenly occurs in the certain process;

3) the stepping motor and the 5G module are powered off, and the abnormal power failure prevention power supply (50mAh small battery) supplies power to the MCU through the diode, so that the MCU still continues to operate, and fixed pulse transmission is completed.

Step S142: and acquiring the position of the antenna plate, and judging whether the 5G millimeter wave CPE is powered down or not according to the position of the antenna plate.

The MCU utilizes orthogonal decoding or ADC to detect whether the antenna board moves to a preset position after finishing sequential rotation after confirming that the GPIO port outputs the fixed pulse; due to the power loss during the movement of the stepping motor, the encoder only returns a part of the pulse, namely, a part of the pulse is not executed.

Specifically, two situations can exist in the abnormal power failure of the 5G mmW CPE: a. the stepping motor finishes the relevant movement, and at the moment, the MCU only needs to update the position information to the EEPROM; b. the stepping motor does not complete relative movement, and the position area information is not updated at the moment, so that the movement information of abnormal power failure needs to be stored in another storage area of the EEPROM;

for example: 0x100123, where 0x1 of the highest byte represents the direction of rotation, 0 counter-clockwise, 1 clockwise; the remaining low byte 0x00123 represents 291 pulses (hexadecimal for example), so that the specific byte size depends on the total number of pulses required for the antenna board to rotate 360 ° because the stepping motor has walked 291 pulses before abnormal power failure.

According to the embodiment of the invention, the small battery power-down prevention circuit with 50mAh is used as the standby battery of the MCU, so that the charging of the small battery and the instant power supply of abnormal power failure can be realized, and the MCU can detect and store the position of the power-down antenna board; the problem that position information of a traditional CPE antenna board is lost after abnormal power failure is solved, and the traditional CPE antenna board can be accurately reset to an initial position again after being electrified and started again.

Referring to fig. 8, in an optional embodiment of the present invention, in step S142, the obtaining the position of the antenna board, and determining whether the 5G millimeter wave CPE has a power failure according to the position of the antenna board include:

step S1421: detecting whether the antenna plate rotates by N degrees at the I-th rotation; wherein I is the rotation frequency of the antenna plate, and I is more than or equal to 1 and less than or equal to M/N;

step S1422: if yes, judging that the 5G millimeter wave CPE is not powered down, storing the current position of the antenna board, and outputting an interrupt signal to the 5G module.

Step S1422: if not, judging that the 5G millimeter wave CPE is abnormally powered down.

Specifically, the MCU judges whether the current position of the antenna plate reaches a preset position after the rotation is completed, if so, the position information is updated to the EEPROM, and the GPIO sends an interrupt signal to the 5G module until the M/N rotation is completed.

Referring to fig. 8, an optional embodiment of the present invention, in step S1422, after determining that the 5G millimeter wave CPE abnormally loses power, includes:

step S14221: confirming abnormal power failure of the 5G millimeter wave CPE;

the determining the abnormal power failure of the 5G millimeter wave CPE comprises the following steps:

step S142211: outputting a detection pulse to the stepping motor;

step S142212: if the feedback signal of the stepping motor is not received, determining that the 5G millimeter wave CPE is abnormally powered down;

specifically, if the preset position after the rotation is not reached, the GPIO is controlled to output pulses to eliminate position errors (the GPIO is controlled to supplement corresponding pulses according to the difference fed back by the encoder or the angle sensor, and at the moment, the stepping motor is out of power and cannot move, so that the encoder or the angle sensor has no feedback); abnormal power failure of the 5 GmmW CPE can be confirmed.

Step S14223: and storing the current position of the antenna board to the EEPROM, and outputting an interrupt signal to the 5G module.

Specifically, the MCU judges whether the data of the encoder or the angle sensor is changed, and if the data of the encoder or the angle sensor is changed, whether the antenna plate reaches a preset position is judged; if the data is not changed, the rotation direction (clockwise or anticlockwise) of the stepping motor is recorded, and the encoder feeds back the pulse number or the angle deflection value to the EEPROM.

After the 5G mmW CPE is powered on again, the 5G module can be started to read position information, the 5G module can acquire the total number of pulses of the antenna board moving from a certain angle to a certain direction before abnormal power failure, and the antenna board is controlled to reset to the initial position based on the data.

As shown in fig. 9, 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, and includes:

step S21: sending an antenna board position acquisition signal to a single chip microcomputer, and confirming that the antenna board is at an initial position;

specifically, when the 5G module is powered on, the 5G mmW CPE sends the antenna board position acquisition information to the MCU through the I2C, and the MCU returns the antenna board position information to the 5G module after receiving the I2C command.

Step S22: sending a signal strength detection signal to the single chip microcomputer;

step S23: receiving an interrupt signal sent by the singlechip, and storing the current position of the antenna board and the corresponding signal strength according to the interrupt signal;

step S24: confirming that the antenna plate has completed one rotation according to the position of the antenna plate;

step S25: and comparing the stored signal intensities of the plurality of groups to obtain the target signal intensity.

Step S26: and according to the target signal intensity, acquiring the target position of the antenna plate and feeding the target position of the antenna plate back to the single chip microcomputer.

Referring to fig. 10, in an optional embodiment of the present invention, in step S21, the sending an antenna board position acquisition signal to the single chip microcomputer to confirm that the antenna board is at an initial position includes:

step S211: receiving the position of the antenna plate fed back by the singlechip;

step S212: judging whether the antenna plate is at the initial position or not according to the position of the antenna plate;

step S213: if the antenna plate is located at the initial position, recording the current position of the antenna plate and the corresponding signal strength; otherwise, a signal for resetting the antenna plate to the initial position is sent to the single chip microcomputer, and after the antenna plate is detected to be located at the initial position, the current position of the antenna plate and the corresponding signal strength are recorded.

Specifically, the 5G module judges whether the current antenna board position is an initial position, i.e., a 0 ° position, and if not, sends an antenna board reset signal to the MCU through I2C, and the MCU restores the control antenna board to the initial position state and outputs an interrupt signal to the 5G module through a GPIO. And the 5G module starts signal detection to acquire the 5G signal strength of the initial position after verifying that the current antenna board position is the initial position through the interrupt signal, and records the position and the corresponding signal strength.

After finishing signal strength record 5G module can be through I2C signal to MCU of sending detection 5G signal strength, MCU control antenna panel is rotatory, and rotation angle is 15 at every turn, MCU can pass through GPIO output interrupt signal and give the 5G module after antenna panel rotates to corresponding preset position.

Referring to fig. 10, an alternative embodiment of the present invention, in step S23, receiving an interrupt signal sent by the single chip, and storing the current position of the antenna board and the corresponding signal strength according to the interrupt signal, includes:

step S231: receiving an interrupt signal of the singlechip through GPIO;

step S232: and storing the current position of the antenna plate and the corresponding signal strength according to the interrupt signal, and forming a group of data.

Specifically, after the 5G module detects the interrupt signal, the current position of the antenna board is obtained through the signal, the 5G signal intensity of the position is detected, and after the detection is completed, the current position and the signal intensity of the antenna board are recorded to form a group of data.

Referring to fig. 7, an alternative embodiment of the present invention, in step S24, the step of confirming that the antenna board has completed one rotation according to the position of the antenna board includes:

step S241: confirming that the antenna plate has completed one rotation according to the position of the antenna plate;

specifically, the 5G module determines whether the current antenna board has reached the end position 360 °, if not, the step S23 is repeated, and if so, the multiple sets of data stored in the storage module are compared to obtain the angle or position with the maximum signal intensity.

Step S242: comparing the signal intensity of several stored groups of data to obtain target data;

step S2413: and acquiring the target position of the antenna plate according to the target data.

Specifically, the 5G module outputs a signal that the motor rotates to the position with the maximum signal intensity to the MCU through the I2C, the MCU controls the antenna board to rotate in the opposite direction, and after the position with the maximum signal intensity is reached, the MCU outputs GPIO to be interrupted to the 5G module; after the 5G module detects the interrupt signal, the position of the current antenna board is obtained through the signal, whether the current antenna board reaches the target position is confirmed, if yes, the 5G CPE working process is started, and if not, the 5G module outputs a signal to the MCU through the I2C when the motor rotates to the position with the maximum signal intensity.

The embodiment of the invention also provides a device for automatically adjusting the antenna board by using the 5G millimeter wave CPE, which is applied to a singlechip and comprises:

the receiving module is used for receiving the signal intensity detection signal, controlling the stepping motor to drive the antenna plate to rotate for a circle according to the signal intensity detection signal, and storing the position of the antenna plate; meanwhile, the interrupt signal is output to the 5G module; the antenna plate is connected with a stepping motor which controls the antenna plate to rotate;

the first acquisition module is used for acquiring the target position of the antenna plate according to the feedback of the 5G module;

and the control module is used for controlling the stepping motor to rotate the antenna plate to the target position according to the target position of the antenna plate.

Optionally, before the receiving the signal strength detection signal, the method includes:

receiving a signal of the position of the antenna plate obtained by the 5G module, and feeding back the position of the antenna plate to the 5G module;

and receiving a reset signal, and resetting the antenna board according to the reset signal.

Optionally, according to the signal intensity detection signal, control step motor drives the antenna panel is rotatory a week, include:

presetting an angle of one rotation as M degrees, and presetting an angle of each rotation of the antenna plate as N degrees; the angle of each rotation of the antenna plate is controlled through pulses, the N degrees correspond to the L pulses, and the M/N is the number of times of one rotation of the antenna plate.

Optionally, the storing the position of the antenna board includes:

and storing the current position of the antenna plate every N degrees of rotation of the antenna plate.

Optionally, controlling the stepping motor to rotate the antenna plate to the target position according to the target position of the antenna plate includes:

calculating target pulse according to the target position;

outputting the target pulse to the stepping motor;

and the target pulse controls the stepping motor to drive the antenna plate to rotate reversely to the target position.

Optionally, the method further includes an abnormal power down process of the 5G millimeter wave CPE:

outputting L pulses to the stepping motor; the single chip microcomputer is connected with an abnormal power failure prevention power supply;

and acquiring the position of the antenna plate, and judging whether the 5G millimeter wave CPE is powered down or not according to the position of the antenna plate.

Optionally, the obtaining the position of the antenna board and determining whether the 5G millimeter wave CPE has a power failure according to the position of the antenna board include:

detecting whether the antenna plate rotates by N degrees at the I-th rotation; wherein I is the rotation frequency of the antenna plate, and I is more than or equal to 1 and less than or equal to M/N;

if so, judging that the 5G millimeter wave CPE is not powered down, storing the current position of the antenna board, and outputting an interrupt signal to the 5G module;

if not, judging that the 5G millimeter wave CPE is abnormally powered down.

Optionally, after determining that the 5G millimeter wave CPE abnormally fails to power down, the method includes:

confirming abnormal power failure of the 5G millimeter wave CPE;

the determining the abnormal power failure of the 5G millimeter wave CPE comprises the following steps:

outputting a detection pulse to the stepping motor;

if the feedback signal of the stepping motor is not received, determining that the 5G millimeter wave CPE is abnormally powered down;

and storing the current position of the antenna board to the EEPROM, and outputting an interrupt signal to the 5G module.

The embodiment of the invention also provides a device for automatically adjusting the antenna board of the 5G millimeter wave CPE, which is applied to a 5G module and comprises the following components:

the confirming module is used for sending an antenna plate position obtaining signal to the single chip microcomputer and confirming that the antenna plate is in an initial position;

the sending module is used for sending a signal strength detection signal to the single chip microcomputer;

the storage module is 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;

the judging module is used for confirming that the antenna plate rotates for a circle according to the position of the antenna plate;

the comparison module is used for comparing the stored signal intensities of a plurality of groups to obtain the target signal intensity;

the second acquisition module is used for acquiring the target position of the antenna plate according to the target signal intensity;

and the feedback module is used for feeding the target position of the antenna plate back to the single chip microcomputer.

Optionally, the sending an antenna panel position acquisition signal to the single chip microcomputer, and confirming that the antenna panel is at an initial position includes:

receiving the position of the antenna plate fed back by the singlechip;

judging whether the antenna plate is at the initial position or not according to the position of the antenna plate;

if the antenna plate is located at the initial position, recording the current position of the antenna plate and the corresponding signal strength; otherwise, a signal for resetting the antenna plate to the initial position is sent to the single chip microcomputer, and after the antenna plate is detected to be located at the initial position, the current position of the antenna plate and the corresponding signal strength are recorded.

In addition, other configurations and functions of the device according to the embodiment of the present invention are known to those skilled in the art, and are not described herein in detail to reduce redundancy.

It should be noted that the logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.

It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.

In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention.

Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.

In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.

In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.

Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:给水流量的控制方法及装置、电子设备和可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!