WO2018072764A1 - Antenna control circuit and method - Google Patents

Antenna control circuit and method Download PDF

Info

Publication number
WO2018072764A1
WO2018072764A1 PCT/CN2017/117056 CN2017117056W WO2018072764A1 WO 2018072764 A1 WO2018072764 A1 WO 2018072764A1 CN 2017117056 W CN2017117056 W CN 2017117056W WO 2018072764 A1 WO2018072764 A1 WO 2018072764A1
Authority
WO
WIPO (PCT)
Prior art keywords
antenna
charging
circuit
voltage
control system
Prior art date
Application number
PCT/CN2017/117056
Other languages
French (fr)
Chinese (zh)
Inventor
张瑜
周洋
田晓光
张建华
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018072764A1 publication Critical patent/WO2018072764A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0602Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01QANTENNAS, i.e. RADIO AERIALS
    • H01Q1/00Details of, or arrangements associated with, antennas
    • H01Q1/12Supports; Mounting means
    • H01Q1/22Supports; Mounting means by structural association with other equipment or articles
    • H01Q1/24Supports; Mounting means by structural association with other equipment or articles with receiving set
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0802Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection
    • H04B7/0805Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection with single receiver and antenna switching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Definitions

  • the present invention relates to wireless communication technologies, and in particular, to an antenna control circuit and method.
  • the RF antenna is the basic structure for wireless communication.
  • the RF antenna has also evolved from a single-antenna system to a complex multiple-input multiple-output (MIMO) antenna system.
  • MIMO multiple-input multiple-output
  • each antenna must have good radiation characteristics. Any damage or abnormal connection of the antenna will affect the normal operation of the entire communication system, and may even bring the front-end RF. Damage to the link.
  • the antenna system In order to ensure the normal operation of complex antenna systems such as MIMO antenna systems, and avoid communication failures in the entire communication system due to abnormal antenna connections or antenna damage, the antenna system will be detected, but when the antenna system fails. Will affect normal communication.
  • an embodiment of the present invention is directed to providing an antenna control circuit and method, which can still ensure a normal communication state when an abnormality occurs in an antenna connection state, thereby avoiding a situation in which communication cannot be normally performed due to an antenna failure.
  • an embodiment of the present invention provides an antenna control circuit, where the circuit includes: an antenna system, a charging circuit, a detecting circuit, and a main control system; wherein the antenna system includes: a primary antenna, a backup antenna, and Antenna switch
  • the charging circuit is adjacent to the main antenna
  • the detection circuit includes a charging power source, a charging power switch, and a detection circuit
  • the main control system is configured to instruct the charging power source to charge the charging circuit by controlling the charging power switch to be turned on;
  • the charging circuit is specifically implemented by a series inductance or a resistance of a capacitive device having a large capacitance value and grounding.
  • the main control system separately controls the antenna switching switch and the charging power switch through a universal input/output GPIO interface, and acquires the charging detected by the detecting circuit through an analog-digital converter ADC detecting interface. parameter.
  • the specific form of the detection circuit in the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes a first port E connected to the charging power source and a second port B inputting a voltage to the charging circuit. And a third port D that is connected to the ADC detection interface of the main control system and outputs a charging voltage.
  • the main control system is specifically set as:
  • the main control system is specifically configured to: when detecting that the main antenna is short-circuited or open-circuited, control the antenna switch to switch the antenna connected to the radio frequency circuit from the main antenna to the Said spare antenna.
  • the main control system is specifically set as:
  • the working state of the main antenna is determined according to the relationship between V1 and V2.
  • the main control system is set to:
  • V2 When the V2 is greater than the V1, it is determined that the primary antenna works normally; otherwise, it is determined that the active state of the primary antenna is abnormal.
  • the specific form of the detection circuit in the detecting circuit is a voltage dividing circuit
  • the voltage dividing circuit includes: an input voltage port B2 that inputs a voltage to the charging circuit and an ADC detecting interface with the main control system. And outputting a charging voltage port D2 for outputting a charging voltage; wherein the input voltage port B2 is connected to a charging access point of the capacitor in the charging circuit.
  • the main control system is set to:
  • an embodiment of the present invention provides an antenna control method, where the method is applied to an antenna control circuit, where the antenna control circuit includes an antenna system, a charging circuit, a detecting circuit, and a main control system; wherein the antenna
  • the system includes: a main antenna, a backup antenna, and an antenna switch; the charging circuit is connected to the main antenna; the detecting circuit includes a charging power source, a charging power switch, and a detecting circuit; after the charging power switch is turned on, The charging power source charges the charging circuit, and the detecting circuit detects a charging parameter of the charging circuit during charging; the method includes:
  • the main control system instructs the charging power source to charge the charging circuit by controlling the opening of the charging power switch;
  • the main control system acquires a charging parameter detected by the detection loop
  • the main control system determines that the working state of the main antenna is abnormal, the main control system controls an antenna switching switch in the antenna system to switch an antenna connected to the radio frequency circuit from the main antenna to the Spare antenna.
  • the main control system controls the antenna switching switch and the charging power switch respectively through the universal input/output GPIO interface, and acquires the charging parameter detected by the detecting circuit through the analog-digital converter ADC detecting interface.
  • the specific form of the detection circuit in the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes a first port E connected to the charging power source and a second port B inputting a voltage to the charging circuit. And a third port D that is connected to the ADC detection interface of the main control system and outputs a charging voltage.
  • the master control system acquires the charging parameters detected by the detection loop, and specifically includes:
  • the main control system detects a voltage value VD of the third port D in the voltage dividing circuit when the preset detection period arrives within a preset detection period.
  • the master control system determines the working state of the active antenna according to the preset determining policy according to the charging parameter, and specifically includes:
  • the main control system determines an operating state of the main antenna according to a voltage value VD when the third port D of the voltage dividing circuit arrives at a preset detection period.
  • the main control system determines the working state of the main antenna according to the voltage value of the third port D in the voltage dividing circuit when the preset detecting time period arrives, including:
  • the main control system detects that the difference between the terminal voltage of the VD and the charging circuit is within a preset range, determining that the primary antenna is working normally; wherein the primary antenna is open and shorted The states all indicate that the working state of the primary antenna is abnormal.
  • the master control system acquires the charging parameters detected by the detection loop, and specifically includes:
  • the master control system sets a first charging time T1 and a second charging time T2 in a preset detection period T, where T>T2>T1;
  • the main control system detects a voltage value V1 corresponding to the voltage value V1 of the third port D of the voltage dividing circuit at the first charging time T1 and the second charging time T2;
  • the master control system determines the working state of the active antenna according to the preset determining policy according to the charging parameter, specifically: the master control system determines the primary use according to a relationship between V1 and V2. The working state of the antenna.
  • the main control system determines the working state of the main antenna according to the relationship between V1 and V2, including:
  • V2 is greater than V1
  • the main control system determines that the primary antenna is working normally; otherwise, the main control system determines that the active state of the primary antenna is abnormal.
  • the specific form of the detection circuit in the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes an input voltage port B2 for inputting a voltage to the charging circuit and an ADC detecting interface connected to the main control system. And outputting a charging voltage port D2 of the charging voltage; wherein the input voltage port B2 is connected to a charging access point of the capacitor in the charging circuit.
  • the master control system acquires the charging parameters detected by the detection loop, and specifically includes:
  • the main control system detects a voltage value of the output charging voltage port D2 in the voltage dividing circuit when the preset detection period arrives;
  • the master control system determines the working state of the active antenna according to the preset determining policy according to the charging parameter, and specifically includes:
  • the main control system determines an operating state of the main antenna according to a voltage value VD when the output charging voltage port D2 of the voltage dividing circuit arrives at a preset detection period.
  • the main control system determines the working state of the main antenna according to the voltage value VD of the output charging voltage port D2 in the voltage dividing circuit when the preset detecting time period arrives, including:
  • the main control system detects that the difference between the terminal voltage of the VD and the charging circuit is within a preset range, determining that the primary antenna is working normally; wherein the primary antenna is open and shorted The states all indicate that the working state of the primary antenna is abnormal.
  • an embodiment of the present invention provides an antenna control method, where the method includes:
  • the antenna connected to the radio frequency circuit is switched from the primary antenna to the backup antenna.
  • the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes a first port E connected to the charging power source, a second port B inputting a voltage to the charging circuit, and the main control The ADC detection interface of the system is connected, and the third port D of the charging voltage is output.
  • the detecting the charging parameter by the detecting circuit specifically includes: detecting, during a preset detecting period, a voltage value VD when the third port D of the voltage dividing circuit arrives at a preset detecting time period;
  • the determining, according to the preset determining policy, the working state of the active antenna according to the charging parameter specifically:
  • the operating state of the primary antenna is determined according to the voltage value VD when the third port D arrives at the preset detection period in the voltage dividing circuit.
  • the operating state of the primary antenna is determined according to the voltage value VD when the third port D reaches the preset detection period in the voltage dividing circuit, and specifically includes:
  • the detecting the charging parameter by using the detecting circuit comprises:
  • the main control system detects a voltage value V1 corresponding to the voltage value V1 of the third port D of the voltage dividing circuit at the first charging time T1 and the second charging time T2;
  • determining the working state of the active antenna according to the preset determining policy according to the charging parameter specifically: determining that the primary antenna works normally when V2 is greater than V1; otherwise, determining the primary The antenna is working abnormally.
  • the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes an input voltage port B2 for inputting a voltage to the charging circuit and an ADC detecting interface connected to the main control system, and outputs an output of the charging voltage. a charging voltage port D2; wherein the input voltage port B2 is coupled to a charging access point of a capacitor in the charging circuit.
  • the detecting the charging parameter by the detecting circuit specifically includes: detecting a voltage value when the output charging voltage port D2 of the voltage dividing circuit arrives at a preset detection time period;
  • determining the working state of the active antenna according to the preset determining policy according to the charging parameter comprising: according to the voltage of the output charging voltage port D2 in the voltage dividing circuit when the preset detecting time period arrives The value VD determines the operating state of the primary antenna.
  • the operating state of the primary antenna is determined according to the voltage value VD when the output charging voltage port D2 of the voltage dividing circuit reaches the preset detection time period, and specifically includes:
  • a storage medium comprising a stored program, wherein the program is executed to perform the method of any of the above.
  • a processor for running a program wherein the program is executed to perform the method of any of the above.
  • the embodiment of the invention provides an antenna control circuit and method for determining whether the connection state of the antenna is normal by monitoring the charging parameter change process on the charging circuit, and performing switching of the standby antenna when the antenna connection state is abnormal to ensure normal operation. Communication status, so as to avoid normal communication due to antenna failure.
  • FIG. 1 is a schematic diagram of an antenna control circuit according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a specific implementation of a charging circuit according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a specific implementation of a detection loop according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a charging process of a charging circuit according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another antenna control circuit according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of another implementation of a detection loop according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of an antenna control method according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic flowchart of another antenna control method according to an embodiment of the present invention.
  • the basic idea of the embodiment of the present invention is to connect the charging circuit at the antenna connector of the primary antenna, and determine whether the connection state of the primary antenna is normal by detecting relevant parameters of the charging circuit during charging. Based on this basic idea, the following embodiments of the present invention are proposed.
  • FIG. 1 is a schematic diagram of an antenna control circuit according to an embodiment of the present invention.
  • the circuit 1 may include an antenna system 10; the antenna system 10 may include: a primary antenna 101, a backup antenna 102, an antenna connector 103, and an antenna switch. Switch 104;
  • the antenna switch 104 can switch the connection with the radio frequency circuit between the main antenna 101 and the backup antenna 102; the antenna connector 103 is connected to the main antenna 101 or the backup antenna 102 to form a radio frequency channel.
  • the antenna switching switch 104 may specifically be a single-pole double-throw switch, which is not specifically limited in this embodiment.
  • the antenna control circuit 1 provided in this embodiment further includes: a charging circuit 20, a detecting circuit 30, and a main control system 40;
  • the charging circuit 20 is connected to the main antenna 101;
  • the detecting circuit 30 includes a charging power source 301, a charging power switch 302 and a detecting circuit 303. After the charging power switch 302 is turned on, the charging power source 301 charges the charging circuit 20, and the detecting circuit 303 detects the charging parameter of the charging circuit 20 during charging, for example, Detecting a voltage value of the charging circuit 20 during charging;
  • the main control system 40 is configured to instruct the charging power source 301 to charge the charging circuit 20 by controlling the charging power switch 302 to be turned on;
  • the antenna switching switch 104 in the control antenna system 10 switches the antenna connected to the radio frequency circuit from the primary antenna 101 to the backup antenna 102.
  • the main control system 40 can acquire the charging parameters detected by the detection circuit 303 within a preset detection period, wherein the preset detection period generally does not exceed the time required for the charging circuit 20 to complete charging.
  • a corresponding protection circuit 11 is required in the antenna control circuit 1, and may include a DC blocking protection portion and an AC blocking protection portion; specifically, it may be blocked by a capacitive device.
  • the DC signal damages the antenna system, and an inductance device or a resistance device with a large inductance is added to the DC path to block the shunt of the RF signal.
  • the charging circuit 20 can be realized by connecting a series of inductors or resistors with a capacitor having a large capacitance value and grounding.
  • the specific implementation circuit is shown in FIG. 2 .
  • the selection rule of the capacitance value, the inductance value and the resistance value may be: the inductance value or the resistance value is to ensure that the RF signal of the antenna can be blocked from short-circuiting to the ground, and the RF impedance in the working frequency band of the antenna is not affected, and The selection of the resistance value will affect the charging current and affect the charging time.
  • the selection of the capacitance value needs to be selected according to the length of the charging and discharging time, but it can not affect the resonant frequency or RF impedance of the antenna.
  • the capacitance value is 0.1 microfarad ⁇ F
  • the inductance value is 68 nH
  • the resistance value is 100 k ⁇ k ⁇ . Accordingly, the charging circuit 20 completes the charging time T of 2.62 milliseconds ms.
  • the master control system 40 can control the antenna switch 104 and the charge power switch 302 respectively through a General Purpose Input Output (GPIO) interface, and can pass an analog-to-digital converter (ADC, Analog-to-Digital).
  • the detection interface acquires the charging parameter detected by the detection circuit 303, and can also time the charging parameter detected by the ADC detection interface acquisition detection circuit 303 by the timer.
  • the specific form of the detection circuit 303 in the detection circuit 30 may be a voltage dividing circuit, and the voltage dividing circuit includes a charging power source 301.
  • the connected first port E, the second port B that inputs the voltage to the charging circuit 20, and the ADC detection interface of the main control system 40, output the third port D of the charging voltage, and the resistance value and the connection form in the voltage dividing circuit can be
  • the specific setting rule is: when the main antenna 101 is in an open state, the voltage VB of the second port B is much larger than the third port of the main antenna 101 when the charging circuit 20 is charged under the normal working state.
  • the main control system 40 can detect the voltage value of the third port D in the voltage dividing circuit when the preset detection period arrives, and determine according to the voltage value.
  • the charging completion time is 2.62 ms
  • the preset detection time period is 1 ms.
  • the interval between the origin and the Ts point in the figure is the charging completion interval of the charging circuit, and the duration is 2.62 ms, charging.
  • the charging curve of the circuit is as shown in the figure. It can be known that the charging curve is incremented in the charging completion interval, and as shown in FIG. 4, the main control system 40 selects the preset detection time period T0 by the timer. 1ms.
  • the voltage value of the corresponding point on the charging circuit as shown in FIG. 1 is 2.5V, and the voltage at the point B shown in FIG. 1 is equal to the voltage at point A, as shown in FIG.
  • the actual decision threshold of the ADC is set according to this theoretical value: 1.15V-1.35V.
  • the resistance value of the voltage divider circuit can be calculated according to its own hardware design.
  • the principle is that the VB in the open state is much larger than the ADC sampling value during normal charging, so as to avoid the misjudgment of the charging voltage.
  • the main control system 40 issues a command to disconnect the charging power switch 302 through the GPIO interface, so that the charging circuit discharges, and the timer turns on the recording discharge time, and the discharging time ends.
  • the main control system 40 can determine the operating state of the main antenna 101 by detecting the third port D voltage VD, specifically: when the main antenna 101 is short-circuited, the charging circuit 20 cannot be normally charged, therefore, the detection circuit In the 303, the third port D voltage VD of the voltage dividing circuit is zero; when the main antenna 101 is open, the charging voltage cannot reach the charging circuit, and therefore cannot be normally charged.
  • the third port D voltage VD of the voltage dividing circuit in the detecting circuit 303 will be The terminal voltage when the charging circuit 20 is normally charged is far greater than the preset threshold when the terminal voltage of the third port D voltage VD and the charging circuit 20 is normally charged is greater than the preset threshold.
  • the voltage VB at the B point is 4.5V
  • the VD is 2.25V, which is significantly larger than the terminal voltage of the charging circuit 20 when it is normally charged 1.25V.
  • the main control system 40 detects that the VD is zero, it determines that the main antenna 101 is short-circuited; when the main control system 40 detects that the VD is 2.25 V, it determines that the main antenna 101 is open; when the main control system 40 detects the VD and When the difference of 1.25V is within the preset range, it is determined that the main antenna 101 operates normally. In this embodiment, when the VD is at 1.15V to 1.35V, it is determined that the difference between VD and 1.25V is within a preset range. When the main control system 40 detects that the main antenna 101 is short-circuited or open, the control antenna changeover switch 104 switches the antenna connected to the radio frequency circuit from the main antenna 101 to the backup antenna 102.
  • the main control system 40 can set the first charging time T1 and the second charging time T2 in a preset detection period T, where T>T2>T1; and detecting
  • the third port D of the voltage dividing circuit has a voltage value V1 corresponding to the first charging time T1 and a voltage value V2 corresponding to the second charging time T2; and determines an operating state of the main antenna 101 according to a relationship between V1 and V2.
  • V2 is greater than V1
  • the main control system 40 determines that the main antenna 101 is operating normally; otherwise, the main control system 40 determines that the main antenna 101 is in an abnormal state of operation.
  • the detection circuit 303 can be separated from the charging power source 301, and the charging power source 301 directly charges the charging circuit 20 through the charging power switch 302, and the detection circuit 303 is directly connected to the charging circuit.
  • the specific form of the detecting circuit 303 may be a voltage dividing circuit including an input voltage port B2 for inputting a voltage to the charging circuit 20 and an ADC detecting interface connected to the main control system 40, and outputting a charging voltage.
  • the main control system 40 detects that the VD is zero, it determines that the main antenna 101 is open; when the main control system 40 detects that the VD is far greater than the terminal voltage when the charging circuit 20 is normally charged, it is determined that the main antenna 101 is short-circuited; When the main control system 40 detects that the difference between the VD and the terminal voltage when the charging circuit 20 is normally charged is within a preset range, it is determined that the main antenna 101 is operating normally. In this embodiment, when the VD is at 1.15V to 1.35V, it is determined that the difference between VD and 1.25V is within a preset range. When the main control system 40 detects that the main antenna 101 is short-circuited or open, the control antenna changeover switch 104 switches the antenna connected to the radio frequency circuit from the main antenna 101 to the backup antenna 102.
  • the antenna system described in this embodiment may be a multi-antenna system. Therefore, the port of the main control system 40 can be increased to enable simultaneous detection of multiple antennas. This embodiment does not describe this.
  • the embodiment provides an antenna control circuit, which is connected to the charging circuit at the antenna connector of the main antenna, and determines whether the connection state of the main antenna is normal by detecting relevant parameters of the charging circuit during charging, and implementing antenna detection. At the same time, the current input to the antenna system is also prevented from being distributed to other components, resulting in loss of current power.
  • an antenna control method may be applied to the antenna control circuit according to any one of the foregoing embodiments.
  • the antenna control circuit comprises an antenna system, a charging circuit, a detecting circuit and a main control system; wherein the antenna system may comprise: a main antenna, a backup antenna, an antenna connector and an antenna switching switch; the charging circuit is connected to the main antenna; the detecting circuit
  • the utility model comprises a charging power source, a charging power switch and a detecting circuit; after the charging power switch is turned on, the charging power source charges the charging circuit, and the detecting circuit detects the charging parameter of the charging circuit during the charging process; the method comprises:
  • S701 the main control system instructs the charging power source to charge the charging circuit by controlling the opening of the charging power switch;
  • S702 The main control system acquires a charging parameter detected by the detection loop
  • the main control system determines, according to the charging parameter, a working state of the main antenna according to a preset determining policy
  • the main control system can acquire the charging parameters detected by the detection circuit within a preset time period, and the preset detection time period usually does not exceed the time required for the charging circuit to be charged.
  • the charging circuit can be realized by a series inductance or a resistance of a capacitive device having a large capacitance value and grounding.
  • the master control system can separately control the antenna switch and the charge power switch through a General Purpose Input/Output (GPIO) interface, and can be detected by an analog-to-digital converter (ADC, Analog-to-Digital Converter).
  • ADC Analog-to-Digital Converter
  • the interface acquires the charging parameter detected by the detection loop, and can also time the charging parameter detected by the detection circuit by the ADC detection interface.
  • the specific form of the detection circuit in the detection circuit may be a voltage dividing circuit including a first port E connected to the charging power source, a second port B inputting a voltage to the charging circuit, and an ADC with the main control system.
  • the interface connection is detected, and the third port D of the charging voltage is output.
  • the main control system acquires the charging parameter detected by the detection loop in a preset detection period, which may specifically include:
  • the main control system detects the voltage value VD at which the third port D of the voltage dividing circuit arrives at the preset detection period.
  • the main control system determines the working state of the active antenna according to the preset determination policy according to the charging parameter, which specifically includes:
  • the main control system determines the working state of the main antenna according to the voltage value VD when the third port D of the voltage dividing circuit arrives at the preset detection period.
  • the main control system determines the working state of the main antenna according to the voltage value of the third port D in the voltage dividing circuit when the preset detecting time period arrives, which may include:
  • the main control system When the main control system detects that the difference between the terminal voltage of the VD and the charging circuit is within a preset range, it determines that the main antenna works normally; wherein the open and short state of the main antenna indicate the operation of the main antenna The status is abnormal.
  • the main control system acquires the charging parameter detected by the detection loop in a preset detection period, which may specifically include:
  • the main control system sets a first charging time T1 and a second charging time T2 in a preset detection period T, where T>T2>T1;
  • the main control system detects the voltage value V1 corresponding to the voltage value V1 of the third port D of the voltage dividing circuit at the first charging time T1 and the second charging time T2;
  • the main control system determines the working state of the main antenna according to the preset determination strategy according to the charging parameter, and specifically includes: the main control system determines the working state of the main antenna according to the relationship between V1 and V2.
  • the master control system determines the working state of the active antenna according to the relationship between V1 and V2, and may include:
  • V2 is greater than V1
  • the main control system determines that the main antenna is working normally; otherwise, the main control system determines that the main antenna 101 is in an abnormal state of operation.
  • the detection circuit can be separated from the charging power source, and the charging power source directly charges the charging circuit through the charging power switch, and the detection circuit is directly connected to the charging circuit.
  • the specific form of the detecting circuit can be a voltage dividing circuit.
  • the voltage dividing circuit comprises an input voltage port B2 for inputting a voltage to the charging circuit and an output charging voltage port D2 connected to the ADC detecting interface of the main control system, and outputting a charging voltage; wherein the input voltage port B2 is connected to the capacitor of the charging circuit. The in points are connected.
  • the main control system acquires the charging parameter detected by the detection loop in a preset detection period, which may specifically include:
  • the main control system detects the voltage value of the output charging voltage port D2 in the voltage dividing circuit when it arrives at the preset detection period.
  • the main control system determines the working state of the active antenna according to the preset determination policy according to the charging parameter, which specifically includes:
  • the main control system determines the working state of the main antenna according to the voltage value VD when the output charging voltage port D2 reaches the preset detection period in the voltage dividing circuit.
  • the main control system determines the working state of the main antenna according to the voltage value VD when the output charging voltage port D2 reaches the preset detection period in the voltage dividing circuit, and may include:
  • the main control system When the main control system detects that the difference between the terminal voltage of the VD and the charging circuit is within a preset range, it determines that the main antenna works normally; wherein the open and short state of the main antenna indicate the operation of the main antenna The status is abnormal.
  • the embodiment provides an antenna control method, in which a charging circuit is connected at an antenna connector of a primary antenna, and a connection parameter of the primary antenna is determined by detecting a relevant parameter of the charging circuit during charging, and the antenna detection is implemented. At the same time, the current input to the antenna system is also prevented from being distributed to other components, resulting in loss of current power.
  • a method for controlling an antenna provided by an embodiment of the present invention is provided.
  • the method may be applied to a terminal having a primary and a backup antenna, and the method may include:
  • S802 charging the charging circuit, and detecting a charging parameter by using a detecting circuit
  • S803 Determine, according to the charging parameter, a working state of the active antenna according to a preset determining policy.
  • the detecting circuit is a voltage dividing circuit
  • the voltage dividing circuit includes a first port E connected to the charging power source, a second port B inputting a voltage to the charging circuit, and the main control system
  • the ADC detects the interface connection and outputs the third port D of the charging voltage.
  • the detecting the charging parameter by the detecting circuit comprises: detecting, during a preset detecting period, a voltage value VD when the third port D of the voltage dividing circuit arrives at a preset detecting time period;
  • the determining, according to the preset determining policy, the working state of the active antenna according to the charging parameter specifically:
  • the operating state of the primary antenna is determined according to the voltage value VD when the third port D arrives at the preset detection period in the voltage dividing circuit.
  • determining the working state of the primary antenna according to the voltage value VD when the third port D reaches the preset detection period in the voltage dividing circuit may include:
  • the detecting the charging parameter by using the detecting circuit comprises:
  • the main control system detects a voltage value V1 corresponding to the voltage value V1 of the third port D of the voltage dividing circuit at the first charging time T1 and the second charging time T2;
  • determining the working state of the active antenna according to the preset determining policy according to the charging parameter specifically: determining that the primary antenna works normally when V2 is greater than V1; otherwise, determining the primary The antenna is working abnormally.
  • the detecting circuit is a voltage dividing circuit
  • the voltage dividing circuit includes an input voltage port B2 that inputs a voltage to the charging circuit and an ADC detecting interface connected to the main control system, and outputs an output charging of the charging voltage.
  • the detecting the charging parameter by the detecting circuit comprises: detecting a voltage value of the output charging voltage port D2 in the voltage dividing circuit when the preset detecting time period arrives;
  • determining the working state of the active antenna according to the preset determining policy according to the charging parameter comprising: according to the voltage of the output charging voltage port D2 in the voltage dividing circuit when the preset detecting time period arrives The value VD determines the operating state of the primary antenna.
  • the determining determines the working state of the active antenna, which specifically includes:
  • Embodiments of the present invention also provide a storage medium.
  • the above storage medium may be configured to store program code for performing the above steps.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the processor performs the above steps according to the stored program code in the storage medium.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the embodiment of the present invention provides an antenna control circuit and method, which has the following beneficial effects: when an abnormality occurs in the connection state of the antenna, the normal communication state can still be ensured, thereby avoiding the failure of normal communication due to the antenna failure. The situation happened.

Abstract

Disclosed are an antenna control circuit and method, the circuit comprising: an antenna system, a charging circuit, a detecting circuit and a main control system, the antenna system comprising: a main antenna, a backup antenna and an antenna switching switch. The charging circuit is side-connected to the main antenna, and the detecting circuit comprises a charging power source, a charging power source switch and a detection circuit. The main control system instructs the charging power source, by controlling the charging power source switch to turn on, to charge the charging circuit, obtains a charging parameter detected by the detection circuit, determines an operating state of the main antenna according to the charging parameter and a preset determination policy, and upon determining that the operating state of the main antenna is abnormal, controls the antenna switching switch in the antenna system to switch the antenna connected to a radio frequency circuit from the main antenna to the backup antenna.

Description

一种天线控制电路和方法Antenna control circuit and method 技术领域Technical field
本发明涉及无线通信技术,尤其涉及一种天线控制电路和方法。The present invention relates to wireless communication technologies, and in particular, to an antenna control circuit and method.
背景技术Background technique
射频天线作为无线通信通道上的重要一环,是实现无线通信的基本结构。随着通信技术的发展,用户对于无线通信的数据吞吐量需求日益增加,射频天线也由原来的单天线系统发展为复杂的多发多收(MIMO,Multiple-Input Multiple-Output)天线系统。为了保障良好的通讯质量,对于复杂的天线系统,每根天线必须具备良好的辐射特性,任何一根天线的损坏或者连接异常都会影响整个通讯系统的正常运行,甚至还有可能带来对前端射频链路的损坏。As an important part of the wireless communication channel, the RF antenna is the basic structure for wireless communication. With the development of communication technology, users' demand for data throughput of wireless communication is increasing. The RF antenna has also evolved from a single-antenna system to a complex multiple-input multiple-output (MIMO) antenna system. In order to ensure good communication quality, for a complex antenna system, each antenna must have good radiation characteristics. Any damage or abnormal connection of the antenna will affect the normal operation of the entire communication system, and may even bring the front-end RF. Damage to the link.
当前为了保障诸如MIMO天线系统等复杂天线系统的正常运行,避免出现由于天线连接异常或者天线损坏导致的整个通讯系统出现通讯故障的情况,都会对天线系统进行检测,但是检测到天线系统出现故障时,会对正常的通讯进行影响。In order to ensure the normal operation of complex antenna systems such as MIMO antenna systems, and avoid communication failures in the entire communication system due to abnormal antenna connections or antenna damage, the antenna system will be detected, but when the antenna system fails. Will affect normal communication.
发明内容Summary of the invention
为解决上述技术问题,本发明实施例期望提供一种天线控制电路和方法,在天线连接状态出现异常的时候仍然能够保障正常的通讯状态,从而避免因为天线故障而导致无法正常通讯的情况发生。In order to solve the above technical problem, an embodiment of the present invention is directed to providing an antenna control circuit and method, which can still ensure a normal communication state when an abnormality occurs in an antenna connection state, thereby avoiding a situation in which communication cannot be normally performed due to an antenna failure.
本发明的技术方案是这样实现的:The technical solution of the present invention is implemented as follows:
第一方面,本发明实施例提供了一种天线控制电路,所述电路包括:天线系统,充电电路、检测电路和主控系统;其中,所述天线系统包括:主用天线、备用天线、和天线切换开关;In a first aspect, an embodiment of the present invention provides an antenna control circuit, where the circuit includes: an antenna system, a charging circuit, a detecting circuit, and a main control system; wherein the antenna system includes: a primary antenna, a backup antenna, and Antenna switch
所述充电电路旁接于所述主用天线;The charging circuit is adjacent to the main antenna;
所述检测电路包括充电电源、充电电源开关和检测回路;The detection circuit includes a charging power source, a charging power switch, and a detection circuit;
所述主控系统,设置为通过控制所述充电电源开关开启来指示所述充电电源向所述充电电路进行充电;The main control system is configured to instruct the charging power source to charge the charging circuit by controlling the charging power switch to be turned on;
以及,获取所述检测回路所检测到的充电参数;And acquiring a charging parameter detected by the detection loop;
以及,根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态;And determining, according to the charging parameter, an operating state of the primary antenna according to a preset determining policy;
以及,当确定所述主用天线的工作状态异常时,控制所述天线系统中的天线切换开关将与射频电路连接的天线由所述主用天线切换至所述备用天线。And, when it is determined that the working state of the primary antenna is abnormal, controlling an antenna switching switch in the antenna system to switch an antenna connected to the radio frequency circuit from the primary antenna to the backup antenna.
在上述方案中,所述充电电路具体通过电容值较大的电容性器件串联电感或电阻并接地来实现。In the above solution, the charging circuit is specifically implemented by a series inductance or a resistance of a capacitive device having a large capacitance value and grounding.
在上述方案中,所述主控系统通过通用输入/输出GPIO接口分别控制所述天线切换开关和所述充电电源开关,并且通过模数变换器ADC检测接口获取所述检测回路所检测到的充电参数。In the above solution, the main control system separately controls the antenna switching switch and the charging power switch through a universal input/output GPIO interface, and acquires the charging detected by the detecting circuit through an analog-digital converter ADC detecting interface. parameter.
在上述方案中,所述检测电路中检测回路的具体形式为分压电路,所述分压电路包括与所述充电电源连接的第一端口E、向所述充电电路输入电压的第二端口B以及与所述主控系统的ADC检测接口连接,输出充电电压的第三端口D。In the above solution, the specific form of the detection circuit in the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes a first port E connected to the charging power source and a second port B inputting a voltage to the charging circuit. And a third port D that is connected to the ADC detection interface of the main control system and outputs a charging voltage.
在上述方案中,所述主控系统,具体设置为:In the above solution, the main control system is specifically set as:
当检测到所述第三端口D的电压VD为零时,确定所述主用天线短路;When it is detected that the voltage VD of the third port D is zero, determining that the main antenna is short-circuited;
当检测到VD远大于所述充电电路正常充电时的端电压时,确定所述主用天线开路;Determining that the main antenna is open when it is detected that the VD is far greater than the terminal voltage when the charging circuit is normally charged;
当检测到VD与所述充电电路正常充电时的端电压的差值处于预设范围内时,确定所述主用天线正常工作。When it is detected that the difference between the VD and the terminal voltage when the charging circuit is normally charged is within a preset range, it is determined that the primary antenna operates normally.
在上述方案中,所述主控系统,具体设置为:当检测到所述主用天线短路或开路时,控制所述天线切换开关将与射频电路连接的天线由所述主 用天线切换至所述备用天线。In the above solution, the main control system is specifically configured to: when detecting that the main antenna is short-circuited or open-circuited, control the antenna switch to switch the antenna connected to the radio frequency circuit from the main antenna to the Said spare antenna.
在上述方案中,所述主控系统,具体设置为:In the above solution, the main control system is specifically set as:
在预设的检测时间段T内设置第一充电时间T1和第二充电时间T2,其中,T>T2>T1;Setting a first charging time T1 and a second charging time T2 in a preset detection period T, where T>T2>T1;
以及,检测所述第三端口D在所述第一充电时间T1对应的电压值V1和所述第二充电时间T2对应的电压值V2;And detecting, by the third port D, the voltage value V1 corresponding to the first charging time T1 and the voltage value V2 corresponding to the second charging time T2;
以及,根据V1和V2之间的关系确定主用天线的工作状态。And, the working state of the main antenna is determined according to the relationship between V1 and V2.
在上述方案中,所述主控系统,设置为:In the above solution, the main control system is set to:
当所述V2大于所述V1时,确定所述主用天线正常工作;否则,确定所述主用天线工作状态异常。When the V2 is greater than the V1, it is determined that the primary antenna works normally; otherwise, it is determined that the active state of the primary antenna is abnormal.
在上述方案中,所述检测电路中检测回路的具体形式为分压电路,所述分压电路包括:向所述充电电路输入电压的输入电压端口B2和与所述主控系统的ADC检测接口连接,输出充电电压的输出充电电压端口D2;其中,所述输入电压端口B2与所述充电电路中电容的充电接入点相连接。In the above solution, the specific form of the detection circuit in the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes: an input voltage port B2 that inputs a voltage to the charging circuit and an ADC detecting interface with the main control system. And outputting a charging voltage port D2 for outputting a charging voltage; wherein the input voltage port B2 is connected to a charging access point of the capacitor in the charging circuit.
在上述方案中,所述主控系统,设置为:In the above solution, the main control system is set to:
当检测到所述输出充电电压端口D2的电压VD为零时,确定所述主用天线开路;When it is detected that the voltage VD of the output charging voltage port D2 is zero, determining that the main antenna is open;
当检测到VD远大于所述充电电路正常充电时的端电压时,确定所述主用天线短路;When it is detected that the VD is far greater than the terminal voltage when the charging circuit is normally charged, it is determined that the primary antenna is short-circuited;
当检测到VD与所述充电电路正常充电时的端电压的差值处于预设范围内时,确定所述主用天线正常工作。When it is detected that the difference between the VD and the terminal voltage when the charging circuit is normally charged is within a preset range, it is determined that the primary antenna operates normally.
第二方面,本发明实施例提供了一种天线控制方法,所述方法应用于天线控制电路中,所述天线控制电路包括天线系统,充电电路、检测电路和主控系统;其中,所述天线系统包括:主用天线、备用天线和天线切换开关;所述充电电路旁接于所述主用天线;所述检测电路包括充电电源、充电电源开关和检测回路;所述充电电源开关开启后,所述充电电源向所 述充电电路充电,所述检测回路检测所述充电电路在充电过程中的充电参数;所述方法包括:In a second aspect, an embodiment of the present invention provides an antenna control method, where the method is applied to an antenna control circuit, where the antenna control circuit includes an antenna system, a charging circuit, a detecting circuit, and a main control system; wherein the antenna The system includes: a main antenna, a backup antenna, and an antenna switch; the charging circuit is connected to the main antenna; the detecting circuit includes a charging power source, a charging power switch, and a detecting circuit; after the charging power switch is turned on, The charging power source charges the charging circuit, and the detecting circuit detects a charging parameter of the charging circuit during charging; the method includes:
所述主控系统通过控制所述充电电源开关的开启来指示所述充电电源向所述充电电路进行充电;The main control system instructs the charging power source to charge the charging circuit by controlling the opening of the charging power switch;
所述主控系统获取所述检测回路所检测到的充电参数;The main control system acquires a charging parameter detected by the detection loop;
所述主控系统根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态;Determining, by the main control system, an operating state of the active antenna according to the preset determining policy according to the charging parameter;
当所述主控系统确定所述主用天线的工作状态异常时,所述主控系统控制所述天线系统中的天线切换开关将与射频电路连接的天线由所述主用天线切换至所述备用天线。When the main control system determines that the working state of the main antenna is abnormal, the main control system controls an antenna switching switch in the antenna system to switch an antenna connected to the radio frequency circuit from the main antenna to the Spare antenna.
在上述方案中,所述主控系统通过通用输入/输出GPIO接口分别控制天线切换开关和充电电源开关,并且通过模数变换器ADC检测接口获取检测回路所检测到的充电参数。In the above solution, the main control system controls the antenna switching switch and the charging power switch respectively through the universal input/output GPIO interface, and acquires the charging parameter detected by the detecting circuit through the analog-digital converter ADC detecting interface.
在上述方案中,所述检测电路中检测回路的具体形式为分压电路,所述分压电路包括与所述充电电源连接的第一端口E、向所述充电电路输入电压的第二端口B以及与所述主控系统的ADC检测接口连接,输出充电电压的第三端口D。In the above solution, the specific form of the detection circuit in the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes a first port E connected to the charging power source and a second port B inputting a voltage to the charging circuit. And a third port D that is connected to the ADC detection interface of the main control system and outputs a charging voltage.
在上述方案中,所述主控系统获取所述检测回路所检测到的充电参数,具体包括:In the above solution, the master control system acquires the charging parameters detected by the detection loop, and specifically includes:
所述主控系统在预设的检测时间段内检测所述分压电路中第三端口D在预设的检测时间段到达时的电压值VD。The main control system detects a voltage value VD of the third port D in the voltage dividing circuit when the preset detection period arrives within a preset detection period.
相应地,所述主控系统根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:Correspondingly, the master control system determines the working state of the active antenna according to the preset determining policy according to the charging parameter, and specifically includes:
所述主控系统根据所述分压电路中第三端口D在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态。The main control system determines an operating state of the main antenna according to a voltage value VD when the third port D of the voltage dividing circuit arrives at a preset detection period.
在上述方案中,所述主控系统根据所述分压电路中第三端口D在预设 的检测时间段到达时的电压值确定所述主用天线的工作状态,包括:In the above solution, the main control system determines the working state of the main antenna according to the voltage value of the third port D in the voltage dividing circuit when the preset detecting time period arrives, including:
当所述主控系统检测到VD为零时,确定所述主用天线短路;When the main control system detects that the VD is zero, determining that the main antenna is short-circuited;
当所述主控系统检测到VD远大于所述充电电路正常充电时的端电压时,确定所述主用天线开路;When the main control system detects that the VD is far greater than the terminal voltage when the charging circuit is normally charged, determining that the main antenna is open;
当所述主控系统检测到VD与所述充电电路正常充电时的端电压的差值处于预设范围内时,确定所述主用天线正常工作;其中,所述主用天线的开路和短路状态均表示所述主用天线的工作状态异常。When the main control system detects that the difference between the terminal voltage of the VD and the charging circuit is within a preset range, determining that the primary antenna is working normally; wherein the primary antenna is open and shorted The states all indicate that the working state of the primary antenna is abnormal.
在上述方案中,所述主控系统获取所述检测回路所检测到的充电参数,具体包括:In the above solution, the master control system acquires the charging parameters detected by the detection loop, and specifically includes:
所述主控系统在预设的检测时间段T内设置第一充电时间T1和第二充电时间T2,其中,T>T2>T1;The master control system sets a first charging time T1 and a second charging time T2 in a preset detection period T, where T>T2>T1;
所述主控系统检测所述分压电路第三端口D在所述第一充电时间T1对应的电压值V1和所述第二充电时间T2对应的电压值V2;The main control system detects a voltage value V1 corresponding to the voltage value V1 of the third port D of the voltage dividing circuit at the first charging time T1 and the second charging time T2;
相应地,所述主控系统根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:所述主控系统根据V1和V2之间的关系确定所述主用天线的工作状态。Correspondingly, the master control system determines the working state of the active antenna according to the preset determining policy according to the charging parameter, specifically: the master control system determines the primary use according to a relationship between V1 and V2. The working state of the antenna.
在上述方案中,所述主控系统根据V1和V2之间的关系确定所述主用天线的工作状态,包括:In the above solution, the main control system determines the working state of the main antenna according to the relationship between V1 and V2, including:
当V2大于V1时,所述主控系统确定所述主用天线正常工作;否则,主控系统确定所述主用天线工作状态异常。When V2 is greater than V1, the main control system determines that the primary antenna is working normally; otherwise, the main control system determines that the active state of the primary antenna is abnormal.
在上述方案中,所述检测电路中检测回路的具体形式为分压电路,所述分压电路包括向所述充电电路输入电压的输入电压端口B2和与所述主控系统的ADC检测接口连接,输出充电电压的输出充电电压端口D2;其中,所述输入电压端口B2与所述充电电路中电容的充电接入点相连接。In the above solution, the specific form of the detection circuit in the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes an input voltage port B2 for inputting a voltage to the charging circuit and an ADC detecting interface connected to the main control system. And outputting a charging voltage port D2 of the charging voltage; wherein the input voltage port B2 is connected to a charging access point of the capacitor in the charging circuit.
在上述方案中,所述主控系统获取所述检测回路所检测到的充电参数,具体包括:In the above solution, the master control system acquires the charging parameters detected by the detection loop, and specifically includes:
所述主控系统检测所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值;The main control system detects a voltage value of the output charging voltage port D2 in the voltage dividing circuit when the preset detection period arrives;
相应地,所述主控系统根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:Correspondingly, the master control system determines the working state of the active antenna according to the preset determining policy according to the charging parameter, and specifically includes:
所述主控系统根据所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态。The main control system determines an operating state of the main antenna according to a voltage value VD when the output charging voltage port D2 of the voltage dividing circuit arrives at a preset detection period.
在上述方案中,所述主控系统根据所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态,包括:In the above solution, the main control system determines the working state of the main antenna according to the voltage value VD of the output charging voltage port D2 in the voltage dividing circuit when the preset detecting time period arrives, including:
当所述主控系统检测到VD为零时,确定所述主用天线开路;When the main control system detects that the VD is zero, determining that the main antenna is open;
当所述主控系统检测到VD远大于所述充电电路正常充电时的端电压时,确定所述主用天线短路;When the main control system detects that the VD is far greater than the terminal voltage when the charging circuit is normally charged, determining that the main antenna is short-circuited;
当所述主控系统检测到VD与所述充电电路正常充电时的端电压的差值处于预设范围内时,确定所述主用天线正常工作;其中,所述主用天线的开路和短路状态均表示所述主用天线的工作状态异常。When the main control system detects that the difference between the terminal voltage of the VD and the charging circuit is within a preset range, determining that the primary antenna is working normally; wherein the primary antenna is open and shorted The states all indicate that the working state of the primary antenna is abnormal.
第三方面,本发明实施例提供了一种天线控制方法,所述方法包括:In a third aspect, an embodiment of the present invention provides an antenna control method, where the method includes:
设置旁接于主用天线的充电电路;Providing a charging circuit connected to the main antenna;
对所述充电电路进行充电,并通过检测电路检测充电参数;Charging the charging circuit and detecting a charging parameter through a detecting circuit;
根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态;Determining, according to the charging parameter, an operating state of the primary antenna according to a preset determining policy;
当所述主用天线的工作状态异常时,将与射频电路连接的天线由所述主用天线切换至备用天线。When the operating state of the primary antenna is abnormal, the antenna connected to the radio frequency circuit is switched from the primary antenna to the backup antenna.
在上述方案中,所述检测电路为分压电路,所述分压电路包括与所述充电电源连接的第一端口E、向所述充电电路输入电压的第二端口B以及与所述主控系统的ADC检测接口连接,输出充电电压的第三端口D。In the above solution, the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes a first port E connected to the charging power source, a second port B inputting a voltage to the charging circuit, and the main control The ADC detection interface of the system is connected, and the third port D of the charging voltage is output.
在上述方案中,所述通过检测电路检测充电参数,具体包括:在预设 的检测时间段内检测所述分压电路中第三端口D在预设的检测时间段到达时的电压值VD;In the above solution, the detecting the charging parameter by the detecting circuit specifically includes: detecting, during a preset detecting period, a voltage value VD when the third port D of the voltage dividing circuit arrives at a preset detecting time period;
相应地,所述根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:Correspondingly, the determining, according to the preset determining policy, the working state of the active antenna according to the charging parameter, specifically:
根据所述分压电路中第三端口D在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态。The operating state of the primary antenna is determined according to the voltage value VD when the third port D arrives at the preset detection period in the voltage dividing circuit.
在上述方案中,所述根据所述分压电路中第三端口D在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态,具体包括:In the above solution, the operating state of the primary antenna is determined according to the voltage value VD when the third port D reaches the preset detection period in the voltage dividing circuit, and specifically includes:
当检测到VD为零时,确定所述主用天线短路;When it is detected that VD is zero, it is determined that the main antenna is short-circuited;
当检测到VD远大于所述充电电路正常充电时的端电压时,确定所述主用天线开路;Determining that the main antenna is open when it is detected that the VD is far greater than the terminal voltage when the charging circuit is normally charged;
当检测到VD与所述充电电路正常充电时的端电压的差值处于预设范围内时,确定所述主用天线正常工作;其中,所述主用天线的开路和短路状态均表示所述主用天线的工作状态异常。Determining that the primary antenna works normally when detecting that a difference between a VD and a terminal voltage when the charging circuit is normally charged is within a preset range; wherein an open circuit and a short circuit state of the primary antenna indicate the The working status of the main antenna is abnormal.
在上述方案中,所述通过检测电路检测充电参数,具体包括:In the above solution, the detecting the charging parameter by using the detecting circuit comprises:
在预设的检测时间段T内设置第一充电时间T1和第二充电时间T2,其中,T>T2>T1;Setting a first charging time T1 and a second charging time T2 in a preset detection period T, where T>T2>T1;
所述主控系统检测所述分压电路第三端口D在所述第一充电时间T1对应的电压值V1和所述第二充电时间T2对应的电压值V2;The main control system detects a voltage value V1 corresponding to the voltage value V1 of the third port D of the voltage dividing circuit at the first charging time T1 and the second charging time T2;
相应地,所述根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:当V2大于V1时,确定所述主用天线正常工作;否则,确定所述主用天线工作状态异常。Correspondingly, determining the working state of the active antenna according to the preset determining policy according to the charging parameter, specifically: determining that the primary antenna works normally when V2 is greater than V1; otherwise, determining the primary The antenna is working abnormally.
在上述方案中,所述检测电路为分压电路,所述分压电路包括向所述充电电路输入电压的输入电压端口B2和与所述主控系统的ADC检测接口连接,输出充电电压的输出充电电压端口D2;其中,所述输入电压端口B2与所述充电电路中电容的充电接入点相连接。In the above solution, the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes an input voltage port B2 for inputting a voltage to the charging circuit and an ADC detecting interface connected to the main control system, and outputs an output of the charging voltage. a charging voltage port D2; wherein the input voltage port B2 is coupled to a charging access point of a capacitor in the charging circuit.
在上述方案中,所述通过检测电路检测充电参数,具体包括:检测所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值;In the above solution, the detecting the charging parameter by the detecting circuit specifically includes: detecting a voltage value when the output charging voltage port D2 of the voltage dividing circuit arrives at a preset detection time period;
相应地,根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:根据所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态。Correspondingly, determining the working state of the active antenna according to the preset determining policy according to the charging parameter, specifically, comprising: according to the voltage of the output charging voltage port D2 in the voltage dividing circuit when the preset detecting time period arrives The value VD determines the operating state of the primary antenna.
在上述方案中,所述根据所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态,具体包括:In the above solution, the operating state of the primary antenna is determined according to the voltage value VD when the output charging voltage port D2 of the voltage dividing circuit reaches the preset detection time period, and specifically includes:
当检测到VD为零时,确定所述主用天线开路;When it is detected that VD is zero, it is determined that the primary antenna is open;
当检测到VD远大于所述充电电路正常充电时的端电压时,确定所述主用天线短路;When it is detected that the VD is far greater than the terminal voltage when the charging circuit is normally charged, it is determined that the primary antenna is short-circuited;
当检测到VD与所述充电电路正常充电时的端电压的差值处于预设范围内时,确定所述主用天线正常工作;其中,所述主用天线的开路和短路状态均表示所述主用天线的工作状态异常。Determining that the primary antenna works normally when detecting that a difference between a VD and a terminal voltage when the charging circuit is normally charged is within a preset range; wherein an open circuit and a short circuit state of the primary antenna indicate the The working status of the main antenna is abnormal.
根据本发明的又一个实施例,还提供了一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行上述任一项所述的方法。According to still another embodiment of the present invention, there is also provided a storage medium comprising a stored program, wherein the program is executed to perform the method of any of the above.
根据本发明的又一个实施例,还提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行上述任一项所述的方法。According to still another embodiment of the present invention, there is also provided a processor for running a program, wherein the program is executed to perform the method of any of the above.
本发明实施例提供了一种天线控制电路和方法,通过监控充电电路上的充电参数变化过程来确定天线的连接状态是否正常,当出现天线连接状态异常的时候进行备用天线的切换以保障正常的通讯状态,从而避免因为天线故障而无法正常通讯的情况发生。The embodiment of the invention provides an antenna control circuit and method for determining whether the connection state of the antenna is normal by monitoring the charging parameter change process on the charging circuit, and performing switching of the standby antenna when the antenna connection state is abnormal to ensure normal operation. Communication status, so as to avoid normal communication due to antenna failure.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1为本发明实施例提供的一种天线控制电路示意图;FIG. 1 is a schematic diagram of an antenna control circuit according to an embodiment of the present invention;
图2为本发明实施例提供的一种充电电路的具体实现示意图;2 is a schematic diagram of a specific implementation of a charging circuit according to an embodiment of the present invention;
图3为本发明实施例提供的一种检测回路的具体实现示意图;3 is a schematic diagram of a specific implementation of a detection loop according to an embodiment of the present invention;
图4为本发明实施例提供的一种充电电路的充电过程示意图;4 is a schematic diagram of a charging process of a charging circuit according to an embodiment of the present invention;
图5为本发明实施例提供的另一种天线控制电路的示意图;FIG. 5 is a schematic diagram of another antenna control circuit according to an embodiment of the present invention; FIG.
图6为本发明实施例提供的另一种检测回路的具体实现示意图;FIG. 6 is a schematic diagram of another implementation of a detection loop according to an embodiment of the present invention;
图7为本发明实施例提供的一种天线控制方法流程示意图;FIG. 7 is a schematic flowchart of an antenna control method according to an embodiment of the present disclosure;
图8为本发明实施例提供的另一种天线控制方法流程示意图。FIG. 8 is a schematic flowchart of another antenna control method according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
本发明实施例的基本思想是:在主用天线的天线连接器处连通充电电路,通过检测充电电路在充电过程中的相关参数来确定主用天线的连接状态是否正常。基于该基本思想,提出本发明的以下实施例。The basic idea of the embodiment of the present invention is to connect the charging circuit at the antenna connector of the primary antenna, and determine whether the connection state of the primary antenna is normal by detecting relevant parameters of the charging circuit during charging. Based on this basic idea, the following embodiments of the present invention are proposed.
实施例一 Embodiment 1
参见图1,为本发明实施例提供的一种天线控制电路示意图,该电路1可以包括天线系统10;通常天线系统10可以包括:主用天线101、备用天线102、天线连接器103和天线切换开关104;FIG. 1 is a schematic diagram of an antenna control circuit according to an embodiment of the present invention. The circuit 1 may include an antenna system 10; the antenna system 10 may include: a primary antenna 101, a backup antenna 102, an antenna connector 103, and an antenna switch. Switch 104;
通常,天线切换开关104可以在主用天线101和备用天线102之间切换与射频电路的连接;天线连接器103通过与主用天线101或备用天线102 相连,形成射频通道。天线切换开关104具体可以优选为单刀双掷开关,本实施例对此不做具体限定。Generally, the antenna switch 104 can switch the connection with the radio frequency circuit between the main antenna 101 and the backup antenna 102; the antenna connector 103 is connected to the main antenna 101 or the backup antenna 102 to form a radio frequency channel. The antenna switching switch 104 may specifically be a single-pole double-throw switch, which is not specifically limited in this embodiment.
本实施例所提供的天线控制电路1还包括:充电电路20、检测电路30和主控系统40;其中,The antenna control circuit 1 provided in this embodiment further includes: a charging circuit 20, a detecting circuit 30, and a main control system 40;
充电电路20旁接于主用天线101;The charging circuit 20 is connected to the main antenna 101;
检测电路30包括充电电源301、充电电源开关302和检测回路303;充电电源开关302开启后,充电电源301向充电电路20充电,检测回路303检测充电电路20在充电过程中的充电参数,例如,检测充电电路20在充电过程中的电压值;The detecting circuit 30 includes a charging power source 301, a charging power switch 302 and a detecting circuit 303. After the charging power switch 302 is turned on, the charging power source 301 charges the charging circuit 20, and the detecting circuit 303 detects the charging parameter of the charging circuit 20 during charging, for example, Detecting a voltage value of the charging circuit 20 during charging;
主控系统40设置为通过控制充电电源开关302开启来指示充电电源301向充电电路20进行充电;The main control system 40 is configured to instruct the charging power source 301 to charge the charging circuit 20 by controlling the charging power switch 302 to be turned on;
以及,获取检测回路303所检测到的充电参数;And acquiring the charging parameter detected by the detection circuit 303;
以及,根据充电参数按照预设的确定策略确定主用天线101的工作状态;And determining, according to the charging parameter, the working state of the main antenna 101 according to a preset determining strategy;
以及,当确定主用天线101的工作状态异常时,控制天线系统10中的天线切换开关104将与射频电路连接的天线由主用天线101切换至备用天线102。And, when it is determined that the operational state of the primary antenna 101 is abnormal, the antenna switching switch 104 in the control antenna system 10 switches the antenna connected to the radio frequency circuit from the primary antenna 101 to the backup antenna 102.
可以理解地,主控系统40可以在预设的检测时间段内获取检测回路303所检测到的充电参数,其中,预设的检测时间段通常不超过充电电路20充电完成所需要的时间。It can be understood that the main control system 40 can acquire the charging parameters detected by the detection circuit 303 within a preset detection period, wherein the preset detection period generally does not exceed the time required for the charging circuit 20 to complete charging.
需要说明的是,为了对充电电路20进行保护,天线控制电路1中还需要有对应的保护电路11,可以包括直流阻隔保护部分和交流阻隔保护两部分;具体地,可以通过电容性器件以阻隔直流信号对天线系统的损坏,在直流通路上增加感值较大的电感器件或者电阻器件以阻断射频信号的分流。It should be noted that, in order to protect the charging circuit 20, a corresponding protection circuit 11 is required in the antenna control circuit 1, and may include a DC blocking protection portion and an AC blocking protection portion; specifically, it may be blocked by a capacitive device. The DC signal damages the antenna system, and an inductance device or a resistance device with a large inductance is added to the DC path to block the shunt of the RF signal.
示例性地,充电电路20具体可以通过电容值较大的电容性器件串联 电感或电阻并接地来实现,具体的实现电路如图2所示。For example, the charging circuit 20 can be realized by connecting a series of inductors or resistors with a capacitor having a large capacitance value and grounding. The specific implementation circuit is shown in FIG. 2 .
需要说明的是,电容值、电感值和电阻值的选取规则可以为:电感值或电阻值要保证可以阻断天线的射频信号对地短路,并且不对天线工作频段内的射频阻抗产生影响,并且电阻值的选取会影响充电电流的大小进而影响充电时间;电容值的选取需要根据充放电时间的长短选取合适的,但也不能对天线的谐振频率或者射频阻抗产生影响。在具体实现过程中,优选地,电容值为0.1微法μF,电感值为68nH,电阻值为100千欧kΩ,相应地,充电电路20完成充电时间T为2.62毫秒ms。It should be noted that the selection rule of the capacitance value, the inductance value and the resistance value may be: the inductance value or the resistance value is to ensure that the RF signal of the antenna can be blocked from short-circuiting to the ground, and the RF impedance in the working frequency band of the antenna is not affected, and The selection of the resistance value will affect the charging current and affect the charging time. The selection of the capacitance value needs to be selected according to the length of the charging and discharging time, but it can not affect the resonant frequency or RF impedance of the antenna. In a specific implementation process, preferably, the capacitance value is 0.1 microfarad μF, the inductance value is 68 nH, and the resistance value is 100 kΩ kΩ. Accordingly, the charging circuit 20 completes the charging time T of 2.62 milliseconds ms.
示例性地,主控系统40可以通过通用输入/输出(GPIO,General Purpose Input Output)接口分别控制天线切换开关104和充电电源开关302,并且可以通过模数变换器(ADC,Analog-to-Digital Converter)检测接口获取检测回路303所检测到的充电参数,还可以通过计时器对ADC检测接口获取检测回路303所检测到的充电参数进行计时。Exemplarily, the master control system 40 can control the antenna switch 104 and the charge power switch 302 respectively through a General Purpose Input Output (GPIO) interface, and can pass an analog-to-digital converter (ADC, Analog-to-Digital). The detection interface acquires the charging parameter detected by the detection circuit 303, and can also time the charging parameter detected by the ADC detection interface acquisition detection circuit 303 by the timer.
在第一种具体的实现过程中,结合图1所示的天线控制电路1,参见图3,检测电路30中检测回路303的具体形式可以是分压电路,该分压电路包括与充电电源301连接的第一端口E、向充电电路20输入电压的第二端口B以及与主控系统40的ADC检测接口连接,输出充电电压的第三端口D,分压电路中的电阻值以及连接形式可以根据实际情况进行设定,具体设定的规则为:主用天线101在开路状态下,第二端口B的电压VB要远大于主用天线101在正常工作状态下充电电路20充电时第三端口D的电压VD,例如,以图3中的所示的分压电路,R1=R2=45kΩ,R3=10kΩ。In the first specific implementation process, in conjunction with the antenna control circuit 1 shown in FIG. 1, referring to FIG. 3, the specific form of the detection circuit 303 in the detection circuit 30 may be a voltage dividing circuit, and the voltage dividing circuit includes a charging power source 301. The connected first port E, the second port B that inputs the voltage to the charging circuit 20, and the ADC detection interface of the main control system 40, output the third port D of the charging voltage, and the resistance value and the connection form in the voltage dividing circuit can be According to the actual situation, the specific setting rule is: when the main antenna 101 is in an open state, the voltage VB of the second port B is much larger than the third port of the main antenna 101 when the charging circuit 20 is charged under the normal working state. The voltage VD of D, for example, is a voltage dividing circuit as shown in Fig. 3, R1 = R2 = 45kΩ, and R3 = 10kΩ.
优选地,当检测回路303为图3所示的分压电路时,主控系统40可以检测分压电路中第三端口D在预设的检测时间段到达时的电压值,并根据电压值确定主用天线101的工作状态。在本实施例中,以充电完成时间为2.62ms,预设的检测时间段为1ms为例进行说明。Preferably, when the detection circuit 303 is the voltage dividing circuit shown in FIG. 3, the main control system 40 can detect the voltage value of the third port D in the voltage dividing circuit when the preset detection period arrives, and determine according to the voltage value. The operating state of the main antenna 101. In this embodiment, the charging completion time is 2.62 ms, and the preset detection time period is 1 ms.
以充电电源的电压设定成5V为例,参见图4所示的充电电路的充电 过程示意图,图中的原点至Ts点之间的区间为充电电路的充电完成区间,时长为2.62ms,充电电路的充电曲线如图所示,由此可以得知,在充电完成区间,充电曲线是递增的,并且如图4所示,主控系统40通过定时器选定预设的检测时间段T0为1ms。Taking the voltage of the charging power source as 5V as an example, refer to the charging process diagram of the charging circuit shown in FIG. 4. The interval between the origin and the Ts point in the figure is the charging completion interval of the charging circuit, and the duration is 2.62 ms, charging. The charging curve of the circuit is as shown in the figure. It can be known that the charging curve is incremented in the charging completion interval, and as shown in FIG. 4, the main control system 40 selects the preset detection time period T0 by the timer. 1ms.
需要说明的是,当T0=1ms时,对应充电电路上如图1所示A点位置的电压值为2.5V,如图1所示的B点位置电压等于A点电压,如图3所示的检测分压电路,其中,R1=R2=45kΩ,R3=10kΩ,则D点的检测电压为V2=1.25V,因此反馈给控制系统的ADC检测值即为1.25V。即把主控系统40内的计时器设定为T0=1ms,定时器结束即检测ADC电压值,检测到的电压值应为1.25V。考虑到电路上布局走线等诸多因素,根据这个理论值设定ADC实际的判定门限:1.15V-1.35V。只要ADC检测电压落在这个范围内则可以判定充电电路可以正常充电。天线连接正常情况下ADC检测系统可以检测到对应的充电电压。当天线接口处于短路的时候,充电电路不能正常被充电,B点的电压为0,则ADC对应检测到的电压也为V1=0。当天线接口处于开路的时候,同样充电电压无法到达充电电路,不能正常充电,此时B点的电压等于5V,经过分压电路的电压值VB=4.5V,则ADC检测电压值为V3=2.25V。It should be noted that when T0=1ms, the voltage value of the corresponding point on the charging circuit as shown in FIG. 1 is 2.5V, and the voltage at the point B shown in FIG. 1 is equal to the voltage at point A, as shown in FIG. The detection voltage dividing circuit, in which R1=R2=45kΩ and R3=10kΩ, the detection voltage at point D is V2=1.25V, so the ADC detection value fed back to the control system is 1.25V. That is, the timer in the main control system 40 is set to T0 = 1 ms, and the ADC voltage value is detected when the timer ends, and the detected voltage value should be 1.25V. Taking into account many factors such as layout traces on the circuit, the actual decision threshold of the ADC is set according to this theoretical value: 1.15V-1.35V. As long as the ADC detection voltage falls within this range, it can be determined that the charging circuit can be charged normally. The ADC detection system can detect the corresponding charging voltage under normal antenna connection. When the antenna interface is short-circuited, the charging circuit cannot be charged normally. The voltage at point B is 0, and the voltage corresponding to the detected ADC is also V1=0. When the antenna interface is open, the same charging voltage can not reach the charging circuit, and can not be charged normally. At this time, the voltage at point B is equal to 5V. After the voltage value of the voltage dividing circuit is VB=4.5V, the ADC detection voltage value is V3=2.25. V.
值得注意的是,分压电路的电阻值可以根据自己的硬件设计计算设定,原则是开路状态下的VB要远大于正常充电时的ADC采样值,避免出现充电电压的误判情况。ADC检测到结果后主控系统40下发指令通过GPIO接口断开充电电源开关302,从而充电电路进行放电,同时计时器打开记录放电时间,放电时间结束。It is worth noting that the resistance value of the voltage divider circuit can be calculated according to its own hardware design. The principle is that the VB in the open state is much larger than the ADC sampling value during normal charging, so as to avoid the misjudgment of the charging voltage. After the ADC detects the result, the main control system 40 issues a command to disconnect the charging power switch 302 through the GPIO interface, so that the charging circuit discharges, and the timer turns on the recording discharge time, and the discharging time ends.
以上述图2和图3分别所示的充电电路20和检测回路303为例:主用天线正常时,充电电路20在预设的检测时间段1ms到达时,分压电路第三端口D电压VD为1.25V;因此,主控系统40可以通过检测第三端口D电压VD来确定主用天线101的工作状态,具体为:当主用天线101短路时,充电电路20无法正常充电,因此,检测回路303中分压电路第三端口D电压VD为零;当主用天线101开路时,充电电压无法到达充电 电路,因此也不能正常充电,此时检测回路303中分压电路第三端口D电压VD会远大于充电电路20正常充电时的端电压,在本实施例中,远大于表示第三端口D电压VD与充电电路20正常充电时的端电压之间的差距大于预设的阈值,以图3为例,当主用天线101开路时,B点端电压VB为4.5V,而VD为2.25V,明显的大于充电电路20正常充电时的端电压1.25V。Taking the charging circuit 20 and the detecting circuit 303 shown in FIG. 2 and FIG. 3 as an example: when the main antenna is normal, the charging circuit 20 reaches the third port D voltage VD of the voltage dividing circuit when the preset detecting period reaches 1 ms. It is 1.25V; therefore, the main control system 40 can determine the operating state of the main antenna 101 by detecting the third port D voltage VD, specifically: when the main antenna 101 is short-circuited, the charging circuit 20 cannot be normally charged, therefore, the detection circuit In the 303, the third port D voltage VD of the voltage dividing circuit is zero; when the main antenna 101 is open, the charging voltage cannot reach the charging circuit, and therefore cannot be normally charged. At this time, the third port D voltage VD of the voltage dividing circuit in the detecting circuit 303 will be The terminal voltage when the charging circuit 20 is normally charged is far greater than the preset threshold when the terminal voltage of the third port D voltage VD and the charging circuit 20 is normally charged is greater than the preset threshold. For example, when the main antenna 101 is open, the voltage VB at the B point is 4.5V, and the VD is 2.25V, which is significantly larger than the terminal voltage of the charging circuit 20 when it is normally charged 1.25V.
因此,当主控系统40检测到VD为零时,确定主用天线101短路;当主控系统40检测到VD为2.25V时,确定主用天线101开路;当主控系统40检测到VD与1.25V的差值处于预设范围内时,确定主用天线101正常工作。在本实施例中,VD处于1.15V至1.35V时,确定VD与1.25V的差值处于预设范围内。当主控系统40检测到主用天线101短路或开路时,控制天线切换开关104将与射频电路连接的天线由主用天线101切换至备用天线102。Therefore, when the main control system 40 detects that the VD is zero, it determines that the main antenna 101 is short-circuited; when the main control system 40 detects that the VD is 2.25 V, it determines that the main antenna 101 is open; when the main control system 40 detects the VD and When the difference of 1.25V is within the preset range, it is determined that the main antenna 101 operates normally. In this embodiment, when the VD is at 1.15V to 1.35V, it is determined that the difference between VD and 1.25V is within a preset range. When the main control system 40 detects that the main antenna 101 is short-circuited or open, the control antenna changeover switch 104 switches the antenna connected to the radio frequency circuit from the main antenna 101 to the backup antenna 102.
优选地,当检测回路303为分压电路时,主控系统40可以在预设的检测时间段T内设置第一充电时间T1和第二充电时间T2,其中,T>T2>T1;并检测分压电路第三端口D在第一充电时间T1对应的电压值V1和第二充电时间T2对应的电压值V2;并根据V1和V2之间的关系确定主用天线101的工作状态。详细地,当V2大于V1时,主控系统40确定主用天线101正常工作;否则,主控系统40确定主用天线101工作状态异常。Preferably, when the detection circuit 303 is a voltage dividing circuit, the main control system 40 can set the first charging time T1 and the second charging time T2 in a preset detection period T, where T>T2>T1; and detecting The third port D of the voltage dividing circuit has a voltage value V1 corresponding to the first charging time T1 and a voltage value V2 corresponding to the second charging time T2; and determines an operating state of the main antenna 101 according to a relationship between V1 and V2. In detail, when V2 is greater than V1, the main control system 40 determines that the main antenna 101 is operating normally; otherwise, the main control system 40 determines that the main antenna 101 is in an abnormal state of operation.
在另一种具体实现过程中,如图5所示,可以将检测回路303与充电电源301分离,充电电源301通过充电电源开关302直接向充电电路20进行充电,将检测回路303直接与充电电路相连接,参见图6,检测回路303的具体形式可以是分压电路,该分压电路包括向充电电路20输入电压的输入电压端口B2和与主控系统40的ADC检测接口连接,输出充电电压的输出充电电压端口D2;其中,输入电压端口B2与充电电路20中电容的充电接入点相连接。In another specific implementation process, as shown in FIG. 5, the detection circuit 303 can be separated from the charging power source 301, and the charging power source 301 directly charges the charging circuit 20 through the charging power switch 302, and the detection circuit 303 is directly connected to the charging circuit. Connecting, referring to FIG. 6, the specific form of the detecting circuit 303 may be a voltage dividing circuit including an input voltage port B2 for inputting a voltage to the charging circuit 20 and an ADC detecting interface connected to the main control system 40, and outputting a charging voltage. The output charging voltage port D2; wherein the input voltage port B2 is connected to the charging access point of the capacitor in the charging circuit 20.
相应地,当主用天线端口处于开路时,如图6所示,端口A2与端口 B2断开,从而输入电压端口B2无法得到充电电压,因此ADC到输出充电电压端口D2的电压为0;当天线端口短路时,即端口A2与端口B2直接短接,跳过了检测电路的电阻R,此时充电电源301直接跳过充电电阻R对充电电容C2进行充电,其充电时间因为充电电阻变小而变短,因此在相同的充电时间T,ADC检测到输出充电电压端口D2的电压应该远大于天线正常工作时的充电电压。Correspondingly, when the main antenna port is open, as shown in FIG. 6, port A2 is disconnected from port B2, so that the input voltage port B2 cannot obtain the charging voltage, so the voltage of the ADC to the output charging voltage port D2 is 0; When the port is short-circuited, that is, the port A2 and the port B2 are directly short-circuited, and the resistance R of the detecting circuit is skipped. At this time, the charging power source 301 directly skips the charging resistor R to charge the charging capacitor C2, and the charging time is shortened because the charging resistance is small. It becomes shorter, so at the same charging time T, the ADC detects that the voltage of the output charging voltage port D2 should be much larger than the charging voltage of the antenna during normal operation.
因此,当主控系统40检测到VD为零时,确定主用天线101开路;当主控系统40检测到VD远大于充电电路20正常充电时的端电压时,确定主用天线101短路;当主控系统40检测到VD与充电电路20正常充电时的端电压的差值处于预设范围内时,确定主用天线101正常工作。在本实施例中,VD处于1.15V至1.35V时,确定VD与1.25V的差值处于预设范围内。当主控系统40检测到主用天线101短路或开路时,控制天线切换开关104将与射频电路连接的天线由主用天线101切换至备用天线102。Therefore, when the main control system 40 detects that the VD is zero, it determines that the main antenna 101 is open; when the main control system 40 detects that the VD is far greater than the terminal voltage when the charging circuit 20 is normally charged, it is determined that the main antenna 101 is short-circuited; When the main control system 40 detects that the difference between the VD and the terminal voltage when the charging circuit 20 is normally charged is within a preset range, it is determined that the main antenna 101 is operating normally. In this embodiment, when the VD is at 1.15V to 1.35V, it is determined that the difference between VD and 1.25V is within a preset range. When the main control system 40 detects that the main antenna 101 is short-circuited or open, the control antenna changeover switch 104 switches the antenna connected to the radio frequency circuit from the main antenna 101 to the backup antenna 102.
可以理解地,本实施例中所述的天线系统可以是多天线系统,因此,可以对主控系统40的端口进行增加从而能够实现同时对多根天线进行检测。本实施例对此不做赘述。It can be understood that the antenna system described in this embodiment may be a multi-antenna system. Therefore, the port of the main control system 40 can be increased to enable simultaneous detection of multiple antennas. This embodiment does not describe this.
本实施例提供了一种天线控制电路,在主用天线的天线连接器处连通充电电路,通过检测充电电路在充电过程中的相关参数来确定主用天线的连接状态是否正常,在实现天线检测的同时,还避免输入到天线系统的电流分配到其他元件,造成电流功率的损失。The embodiment provides an antenna control circuit, which is connected to the charging circuit at the antenna connector of the main antenna, and determines whether the connection state of the main antenna is normal by detecting relevant parameters of the charging circuit during charging, and implementing antenna detection. At the same time, the current input to the antenna system is also prevented from being distributed to other components, resulting in loss of current power.
实施例二Embodiment 2
基于前述实施例相同的技术构思,参见图7,其示出了本发明实施例提供的一种天线控制方法,该方法可以应用于前述实施例中任一所述的天线控制电路中,所述天线控制电路包括天线系统,充电电路、检测电路和主控系统;其中,天线系统可以包括:主用天线、备用天线、天线连接器和天线切换开关;充电电路旁接于主用天线;检测电路包括充电电源、充 电电源开关和检测回路;充电电源开关开启后,充电电源向充电电路充电,检测回路检测充电电路在充电过程中的充电参数;所述方法包括:Based on the same technical concept of the foregoing embodiment, referring to FIG. 7, an antenna control method according to an embodiment of the present invention may be applied to the antenna control circuit according to any one of the foregoing embodiments. The antenna control circuit comprises an antenna system, a charging circuit, a detecting circuit and a main control system; wherein the antenna system may comprise: a main antenna, a backup antenna, an antenna connector and an antenna switching switch; the charging circuit is connected to the main antenna; the detecting circuit The utility model comprises a charging power source, a charging power switch and a detecting circuit; after the charging power switch is turned on, the charging power source charges the charging circuit, and the detecting circuit detects the charging parameter of the charging circuit during the charging process; the method comprises:
S701:主控系统通过控制充电电源开关的开启来指示充电电源向充电电路进行充电;S701: the main control system instructs the charging power source to charge the charging circuit by controlling the opening of the charging power switch;
S702:主控系统获取检测回路所检测到的充电参数;S702: The main control system acquires a charging parameter detected by the detection loop;
S703:主控系统根据充电参数按照预设的确定策略确定主用天线的工作状态;S703: The main control system determines, according to the charging parameter, a working state of the main antenna according to a preset determining policy;
S704:当主控系统确定主用天线的工作状态异常时,主控系统控制天线系统中的天线切换开关将与射频电路连接的天线由主用天线切换至备用天线。S704: When the main control system determines that the working state of the main antenna is abnormal, the main control system controls the antenna switching switch in the antenna system to switch the antenna connected to the radio frequency circuit from the main antenna to the standby antenna.
可以理解地,主控系统可以在预设的时间段内获取检测回路所检测到的充电参数,而预设的检测时间段通常不超过充电电路充电完成所需要的时间。It can be understood that the main control system can acquire the charging parameters detected by the detection circuit within a preset time period, and the preset detection time period usually does not exceed the time required for the charging circuit to be charged.
示例性地,充电电路具体可以通过电容值较大的电容性器件串联电感或电阻并接地来实现。Illustratively, the charging circuit can be realized by a series inductance or a resistance of a capacitive device having a large capacitance value and grounding.
示例性地,主控系统可以通过通用输入/输出(GPIO,General Purpose Input Output)接口分别控制天线切换开关和充电电源开关,并且可以通过模数变换器(ADC,Analog-to-Digital Converter)检测接口获取检测回路所检测到的充电参数,还可以通过计时器对ADC检测接口获取检测回路所检测到的充电参数进行计时。Illustratively, the master control system can separately control the antenna switch and the charge power switch through a General Purpose Input/Output (GPIO) interface, and can be detected by an analog-to-digital converter (ADC, Analog-to-Digital Converter). The interface acquires the charging parameter detected by the detection loop, and can also time the charging parameter detected by the detection circuit by the ADC detection interface.
示例性地,检测电路中检测回路的具体形式可以是分压电路,该分压电路包括与充电电源连接的第一端口E、向充电电路输入电压的第二端口B以及与主控系统的ADC检测接口连接,输出充电电压的第三端口D。Illustratively, the specific form of the detection circuit in the detection circuit may be a voltage dividing circuit including a first port E connected to the charging power source, a second port B inputting a voltage to the charging circuit, and an ADC with the main control system. The interface connection is detected, and the third port D of the charging voltage is output.
优选地,主控系统在预设的检测时间段内获取检测回路所检测到的充电参数,具体可以包括:Preferably, the main control system acquires the charging parameter detected by the detection loop in a preset detection period, which may specifically include:
主控系统检测分压电路中第三端口D在预设的检测时间段到达时的 电压值VD。The main control system detects the voltage value VD at which the third port D of the voltage dividing circuit arrives at the preset detection period.
相应地,主控系统根据充电参数按照预设的确定策略确定主用天线的工作状态,具体包括:Correspondingly, the main control system determines the working state of the active antenna according to the preset determination policy according to the charging parameter, which specifically includes:
主控系统根据分压电路中第三端口D在预设的检测时间段到达时的电压值VD确定主用天线的工作状态。The main control system determines the working state of the main antenna according to the voltage value VD when the third port D of the voltage dividing circuit arrives at the preset detection period.
进一步地,主控系统根据分压电路中第三端口D在预设的检测时间段到达时的电压值确定主用天线的工作状态,可以包括:Further, the main control system determines the working state of the main antenna according to the voltage value of the third port D in the voltage dividing circuit when the preset detecting time period arrives, which may include:
当主控系统检测到VD为零时,确定主用天线短路;When the main control system detects that VD is zero, it is determined that the main antenna is short-circuited;
当主控系统检测到VD远大于充电电路正常充电时的端电压时,确定主用天线开路;When the main control system detects that the VD is far greater than the terminal voltage when the charging circuit is normally charged, it is determined that the main antenna is open;
当主控系统检测到VD与充电电路正常充电时的端电压的差值处于预设范围内时,确定主用天线正常工作;其中,主用天线的开路和短路状态均表示主用天线的工作状态异常。When the main control system detects that the difference between the terminal voltage of the VD and the charging circuit is within a preset range, it determines that the main antenna works normally; wherein the open and short state of the main antenna indicate the operation of the main antenna The status is abnormal.
优选地,主控系统在预设的检测时间段内获取检测回路所检测到的充电参数,具体可以包括:Preferably, the main control system acquires the charging parameter detected by the detection loop in a preset detection period, which may specifically include:
主控系统在预设的检测时间段T内设置第一充电时间T1和第二充电时间T2,其中,T>T2>T1;The main control system sets a first charging time T1 and a second charging time T2 in a preset detection period T, where T>T2>T1;
主控系统检测分压电路第三端口D在第一充电时间T1对应的电压值V1和第二充电时间T2对应的电压值V2;The main control system detects the voltage value V1 corresponding to the voltage value V1 of the third port D of the voltage dividing circuit at the first charging time T1 and the second charging time T2;
相应地,主控系统根据充电参数按照预设的确定策略确定主用天线的工作状态,具体包括:主控系统根据V1和V2之间的关系确定主用天线的工作状态。Correspondingly, the main control system determines the working state of the main antenna according to the preset determination strategy according to the charging parameter, and specifically includes: the main control system determines the working state of the main antenna according to the relationship between V1 and V2.
具体地,主控系统根据V1和V2之间的关系确定主用天线的工作状态,可以包括:Specifically, the master control system determines the working state of the active antenna according to the relationship between V1 and V2, and may include:
当V2大于V1时,主控系统确定主用天线正常工作;否则,主控系统确定主用天线101工作状态异常。When V2 is greater than V1, the main control system determines that the main antenna is working normally; otherwise, the main control system determines that the main antenna 101 is in an abnormal state of operation.
示例性地,可以将检测回路与充电电源分离,充电电源通过充电电源开关直接向充电电路进行充电,将检测回路直接与充电电路相连接,具体地,检测回路的具体形式可以是分压电路,该分压电路包括向充电电路输入电压的输入电压端口B2和与主控系统的ADC检测接口连接,输出充电电压的输出充电电压端口D2;其中,输入电压端口B2与充电电路中电容的充电接入点相连接。Exemplarily, the detection circuit can be separated from the charging power source, and the charging power source directly charges the charging circuit through the charging power switch, and the detection circuit is directly connected to the charging circuit. Specifically, the specific form of the detecting circuit can be a voltage dividing circuit. The voltage dividing circuit comprises an input voltage port B2 for inputting a voltage to the charging circuit and an output charging voltage port D2 connected to the ADC detecting interface of the main control system, and outputting a charging voltage; wherein the input voltage port B2 is connected to the capacitor of the charging circuit. The in points are connected.
优选地,主控系统在预设的检测时间段内获取检测回路所检测到的充电参数,具体可以包括:Preferably, the main control system acquires the charging parameter detected by the detection loop in a preset detection period, which may specifically include:
主控系统检测分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值。The main control system detects the voltage value of the output charging voltage port D2 in the voltage dividing circuit when it arrives at the preset detection period.
相应地,主控系统根据充电参数按照预设的确定策略确定主用天线的工作状态,具体包括:Correspondingly, the main control system determines the working state of the active antenna according to the preset determination policy according to the charging parameter, which specifically includes:
主控系统根据分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值VD确定主用天线的工作状态。The main control system determines the working state of the main antenna according to the voltage value VD when the output charging voltage port D2 reaches the preset detection period in the voltage dividing circuit.
进一步地,主控系统根据分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值VD确定主用天线的工作状态,可以包括:Further, the main control system determines the working state of the main antenna according to the voltage value VD when the output charging voltage port D2 reaches the preset detection period in the voltage dividing circuit, and may include:
当主控系统检测到VD为零时,确定主用天线开路;When the main control system detects that the VD is zero, it is determined that the main antenna is open;
当主控系统检测到VD远大于充电电路正常充电时的端电压时,确定主用天线短路;When the main control system detects that the VD is far greater than the terminal voltage when the charging circuit is normally charged, it is determined that the main antenna is short-circuited;
当主控系统检测到VD与充电电路正常充电时的端电压的差值处于预设范围内时,确定主用天线正常工作;其中,主用天线的开路和短路状态均表示主用天线的工作状态异常。When the main control system detects that the difference between the terminal voltage of the VD and the charging circuit is within a preset range, it determines that the main antenna works normally; wherein the open and short state of the main antenna indicate the operation of the main antenna The status is abnormal.
本实施例提供了一种天线控制方法,在主用天线的天线连接器处连通充电电路,通过检测充电电路在充电过程中的相关参数来确定主用天线的连接状态是否正常,在实现天线检测的同时,还避免输入到天线系统的电流分配到其他元件,造成电流功率的损失。The embodiment provides an antenna control method, in which a charging circuit is connected at an antenna connector of a primary antenna, and a connection parameter of the primary antenna is determined by detecting a relevant parameter of the charging circuit during charging, and the antenna detection is implemented. At the same time, the current input to the antenna system is also prevented from being distributed to other components, resulting in loss of current power.
实施例三Embodiment 3
基于前述实施例相同的技术构思,参见图8,其示出了本发明实施例提供的一种天线控制的方法,该方法可以应用于具有主、备用天线的终端,该方法可以包括:Based on the same technical concept of the foregoing embodiment, referring to FIG. 8, a method for controlling an antenna provided by an embodiment of the present invention is provided. The method may be applied to a terminal having a primary and a backup antenna, and the method may include:
S801:设置旁接于主用天线的充电电路;S801: setting a charging circuit connected to the main antenna;
S802:对所述充电电路进行充电,并通过检测电路检测充电参数;S802: charging the charging circuit, and detecting a charging parameter by using a detecting circuit;
S803:根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态;S803: Determine, according to the charging parameter, a working state of the active antenna according to a preset determining policy.
S804:当所述主用天线的工作状态异常时,将与射频电路连接的天线由所述主用天线切换至备用天线。S804: When the working state of the primary antenna is abnormal, the antenna connected to the radio frequency circuit is switched from the primary antenna to the backup antenna.
示例性地,所述检测电路为分压电路,所述分压电路包括与所述充电电源连接的第一端口E、向所述充电电路输入电压的第二端口B以及与所述主控系统的ADC检测接口连接,输出充电电压的第三端口D。Illustratively, the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes a first port E connected to the charging power source, a second port B inputting a voltage to the charging circuit, and the main control system The ADC detects the interface connection and outputs the third port D of the charging voltage.
优选地,所述通过检测电路检测充电参数,具体包括:在预设的检测时间段内检测所述分压电路中第三端口D在预设的检测时间段到达时的电压值VD;Preferably, the detecting the charging parameter by the detecting circuit comprises: detecting, during a preset detecting period, a voltage value VD when the third port D of the voltage dividing circuit arrives at a preset detecting time period;
相应地,所述根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:Correspondingly, the determining, according to the preset determining policy, the working state of the active antenna according to the charging parameter, specifically:
根据所述分压电路中第三端口D在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态。The operating state of the primary antenna is determined according to the voltage value VD when the third port D arrives at the preset detection period in the voltage dividing circuit.
具体地,所述根据所述分压电路中第三端口D在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态,可以包括:Specifically, determining the working state of the primary antenna according to the voltage value VD when the third port D reaches the preset detection period in the voltage dividing circuit may include:
当检测到VD为零时,确定所述主用天线短路;When it is detected that VD is zero, it is determined that the main antenna is short-circuited;
当检测到VD远大于所述充电电路正常充电时的端电压时,确定所述主用天线开路;Determining that the main antenna is open when it is detected that the VD is far greater than the terminal voltage when the charging circuit is normally charged;
当检测到VD与所述充电电路正常充电时的端电压的差值处于预设范 围内时,确定所述主用天线正常工作;其中,所述主用天线的开路和短路状态均表示所述主用天线的工作状态异常。Determining that the primary antenna works normally when detecting that a difference between a VD and a terminal voltage when the charging circuit is normally charged is within a preset range; wherein an open circuit and a short circuit state of the primary antenna indicate the The working status of the main antenna is abnormal.
优选地,所述通过检测电路检测充电参数,具体包括:Preferably, the detecting the charging parameter by using the detecting circuit comprises:
在预设的检测时间段T内设置第一充电时间T1和第二充电时间T2,其中,T>T2>T1;Setting a first charging time T1 and a second charging time T2 in a preset detection period T, where T>T2>T1;
所述主控系统检测所述分压电路第三端口D在所述第一充电时间T1对应的电压值V1和所述第二充电时间T2对应的电压值V2;The main control system detects a voltage value V1 corresponding to the voltage value V1 of the third port D of the voltage dividing circuit at the first charging time T1 and the second charging time T2;
相应地,所述根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:当V2大于V1时,确定所述主用天线正常工作;否则,确定所述主用天线工作状态异常。Correspondingly, determining the working state of the active antenna according to the preset determining policy according to the charging parameter, specifically: determining that the primary antenna works normally when V2 is greater than V1; otherwise, determining the primary The antenna is working abnormally.
示例性地,所述检测电路为分压电路,所述分压电路包括向所述充电电路输入电压的输入电压端口B2和与所述主控系统的ADC检测接口连接,输出充电电压的输出充电电压端口D2;其中,所述输入电压端口B2与所述充电电路中电容的充电接入点相连接。Exemplarily, the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes an input voltage port B2 that inputs a voltage to the charging circuit and an ADC detecting interface connected to the main control system, and outputs an output charging of the charging voltage. Voltage port D2; wherein the input voltage port B2 is coupled to a charging access point of a capacitor in the charging circuit.
优选地,所述通过检测电路检测充电参数,具体包括:检测所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值;Preferably, the detecting the charging parameter by the detecting circuit comprises: detecting a voltage value of the output charging voltage port D2 in the voltage dividing circuit when the preset detecting time period arrives;
相应地,根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:根据所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态。Correspondingly, determining the working state of the active antenna according to the preset determining policy according to the charging parameter, specifically, comprising: according to the voltage of the output charging voltage port D2 in the voltage dividing circuit when the preset detecting time period arrives The value VD determines the operating state of the primary antenna.
具体地,所述根据所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态,具体包括:Specifically, the determining, according to the voltage value VD when the output charging voltage port D2 of the voltage dividing circuit reaches the preset detection period, determines the working state of the active antenna, which specifically includes:
当检测到VD为零时,确定所述主用天线开路;When it is detected that VD is zero, it is determined that the primary antenna is open;
当检测到VD远大于所述充电电路正常充电时的端电压时,确定所述主用天线短路;When it is detected that the VD is far greater than the terminal voltage when the charging circuit is normally charged, it is determined that the primary antenna is short-circuited;
当检测到VD与所述充电电路正常充电时的端电压的差值处于预设范围内时,确定所述主用天线正常工作;其中,所述主用天线的开路和短路 状态均表示所述主用天线的工作状态异常。Determining that the primary antenna works normally when detecting that a difference between a VD and a terminal voltage when the charging circuit is normally charged is within a preset range; wherein an open circuit and a short circuit state of the primary antenna indicate the The working status of the main antenna is abnormal.
需要说明的是,本实施例中的技术方案可以由前述实施例中设置在终端内的天线控制电路来实现,本实施例对此不做赘述。It should be noted that the technical solution in this embodiment may be implemented by the antenna control circuit disposed in the terminal in the foregoing embodiment, which is not described in this embodiment.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以上各步骤的程序代码。Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the above storage medium may be configured to store program code for performing the above steps.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述各步骤。Optionally, in the embodiment, the processor performs the above steps according to the stored program code in the storage medium.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一 个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供了一种天线控制电路和方法,具有以下有益效果:在天线连接状态出现异常的时候仍然能够保障正常的通讯状态,从而避免因为天线故障而导致无法正常通讯的情况发生。As described above, the embodiment of the present invention provides an antenna control circuit and method, which has the following beneficial effects: when an abnormality occurs in the connection state of the antenna, the normal communication state can still be ensured, thereby avoiding the failure of normal communication due to the antenna failure. The situation happened.

Claims (29)

  1. 一种天线控制电路,包括:天线系统,充电电路、检测电路和主控系统;其中,所述天线系统可以包括:主用天线、备用天线、和天线切换开关;An antenna control circuit includes: an antenna system, a charging circuit, a detecting circuit, and a main control system; wherein the antenna system may include: a main antenna, a backup antenna, and an antenna switching switch;
    所述充电电路旁接于所述主用天线;The charging circuit is adjacent to the main antenna;
    所述检测电路包括充电电源、充电电源开关和检测回路;The detection circuit includes a charging power source, a charging power switch, and a detection circuit;
    所述主控系统,设置为通过控制所述充电电源开关开启来指示所述充电电源向所述充电电路进行充电;The main control system is configured to instruct the charging power source to charge the charging circuit by controlling the charging power switch to be turned on;
    以及,获取所述检测回路所检测到的充电参数;And acquiring a charging parameter detected by the detection loop;
    以及,根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态;And determining, according to the charging parameter, an operating state of the primary antenna according to a preset determining policy;
    以及,当确定所述主用天线的工作状态异常时,控制所述天线系统中的天线切换开关将与射频电路连接的天线由所述主用天线切换至所述备用天线。And, when it is determined that the working state of the primary antenna is abnormal, controlling an antenna switching switch in the antenna system to switch an antenna connected to the radio frequency circuit from the primary antenna to the backup antenna.
  2. 根据权利要求1所述的天线控制电路,其中,所述充电电路具体通过电容值较大的电容性器件串联电感或电阻并接地来实现。The antenna control circuit according to claim 1, wherein the charging circuit is realized by a series inductance or a resistance of a capacitive device having a large capacitance value and grounding.
  3. 根据权利要求1所述的天线控制电路,其中,所述主控系统通过通用输入/输出GPIO接口分别控制所述天线切换开关和所述充电电源开关,并且通过模数变换器ADC检测接口获取所述检测回路所检测到的充电参数。The antenna control circuit according to claim 1, wherein said main control system controls said antenna switching switch and said charging power switch respectively through a universal input/output GPIO interface, and acquires an interface through an analog-to-digital converter ADC detecting interface The charging parameters detected by the detection loop are described.
  4. 根据权利要求3所述的天线控制电路,其中,所述检测电路中检测回路的具体形式为分压电路,所述分压电路包括与所述充电电源连接的第一端口E、向所述充电电路输入电压的第二端口B以及与所述主控系统的ADC检测接口连接,输出充电电压的第三端口D。The antenna control circuit according to claim 3, wherein the specific form of the detection circuit in the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes a first port E connected to the charging power source, and the charging is performed The second port B of the circuit input voltage is connected to the ADC detection interface of the main control system, and outputs the third port D of the charging voltage.
  5. 根据权利要求4所述的天线控制电路,其中,所述主控系统,具体设置为:The antenna control circuit according to claim 4, wherein the main control system is specifically configured to:
    当检测到所述第三端口D的电压VD为零时,确定所述主用天线短路;When it is detected that the voltage VD of the third port D is zero, determining that the main antenna is short-circuited;
    当检测到VD远大于所述充电电路正常充电时的端电压时,确定所述主用天线开路;Determining that the main antenna is open when it is detected that the VD is far greater than the terminal voltage when the charging circuit is normally charged;
    当检测到VD与所述充电电路正常充电时的端电压的差值处于预设范围内时,确定所述主用天线正常工作。When it is detected that the difference between the VD and the terminal voltage when the charging circuit is normally charged is within a preset range, it is determined that the primary antenna operates normally.
  6. 根据权利要求1所述的天线控制电路,其中,所述主控系统,具体设置为:当检测到所述主用天线短路或开路时,控制所述天线切换开关将与射频电路连接的天线由所述主用天线切换至所述备用天线。The antenna control circuit according to claim 1, wherein the main control system is specifically configured to: when detecting that the main antenna is short-circuited or open-circuited, control an antenna connected to the radio frequency circuit by the antenna switching switch The primary antenna is switched to the backup antenna.
  7. 根据权利要求4所述的天线控制电路,其中,所述主控系统,具体设置为:The antenna control circuit according to claim 4, wherein the main control system is specifically configured to:
    在预设的检测时间段T内设置第一充电时间T1和第二充电时间T2,其中,T>T2>T1;Setting a first charging time T1 and a second charging time T2 in a preset detection period T, where T>T2>T1;
    以及,检测所述第三端口D在所述第一充电时间T1对应的电压值V1和所述第二充电时间T2对应的电压值V2;And detecting, by the third port D, the voltage value V1 corresponding to the first charging time T1 and the voltage value V2 corresponding to the second charging time T2;
    以及,根据V1和V2之间的关系确定主用天线的工作状态。And, the working state of the main antenna is determined according to the relationship between V1 and V2.
  8. 根据权利要求7所述的天线控制电路,其中,所述主控系统,设置为:The antenna control circuit according to claim 7, wherein the master control system is configured to:
    当所述V2大于所述V1时,确定所述主用天线正常工作;否则,确定所述主用天线工作状态异常。When the V2 is greater than the V1, it is determined that the primary antenna works normally; otherwise, it is determined that the active state of the primary antenna is abnormal.
  9. 根据权利要求3所述的天线控制电路,其中,所述检测电路中检测回路的具体形式为分压电路,所述分压电路包括:向所述充电电路输入电压的输入电压端口B2和与所述主控系统的ADC检测接口连接,输出充电电压的输出充电电压端口D2;其中,所述输入电压端口B2与所述充电电路中电容的充电接入点相连接。The antenna control circuit according to claim 3, wherein the specific form of the detection circuit in the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit comprises: an input voltage port B2 and a voltage input to the charging circuit The ADC detection interface of the main control system is connected to output an output charging voltage port D2 of the charging voltage; wherein the input voltage port B2 is connected to a charging access point of the capacitor in the charging circuit.
  10. 根据权利要求9所述的天线控制电路,其中,所述主控系统,设置为:The antenna control circuit according to claim 9, wherein said master control system is configured to:
    当检测到所述输出充电电压端口D2的电压VD为零时,确定所述主 用天线开路;When it is detected that the voltage VD of the output charging voltage port D2 is zero, it is determined that the primary antenna is open;
    当检测到VD远大于所述充电电路正常充电时的端电压时,确定所述主用天线短路;When it is detected that the VD is far greater than the terminal voltage when the charging circuit is normally charged, it is determined that the primary antenna is short-circuited;
    当检测到VD与所述充电电路正常充电时的端电压的差值处于预设范围内时,确定所述主用天线正常工作。When it is detected that the difference between the VD and the terminal voltage when the charging circuit is normally charged is within a preset range, it is determined that the primary antenna operates normally.
  11. 一种天线控制方法,所述方法应用于天线控制电路中,所述天线控制电路包括天线系统,充电电路、检测电路和主控系统;其中,所述天线系统可以包括:主用天线、备用天线和天线切换开关;所述充电电路旁接于所述主用天线;所述检测电路包括充电电源、充电电源开关和检测回路;所述充电电源开关开启后,所述充电电源向所述充电电路充电,所述检测回路检测所述充电电路在充电过程中的充电参数;所述方法包括:An antenna control method is applied to an antenna control circuit, where the antenna control circuit includes an antenna system, a charging circuit, a detecting circuit, and a main control system. The antenna system may include: a primary antenna and a backup antenna. And an antenna switching switch; the charging circuit is connected to the main antenna; the detecting circuit includes a charging power source, a charging power switch, and a detecting circuit; after the charging power switch is turned on, the charging power source is to the charging circuit Charging, the detection loop detects a charging parameter of the charging circuit during charging; the method includes:
    所述主控系统通过控制所述充电电源开关的开启来指示所述充电电源向所述充电电路进行充电;The main control system instructs the charging power source to charge the charging circuit by controlling the opening of the charging power switch;
    所述主控系统获取所述检测回路所检测到的充电参数;The main control system acquires a charging parameter detected by the detection loop;
    所述主控系统根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态;Determining, by the main control system, an operating state of the active antenna according to the preset determining policy according to the charging parameter;
    当所述主控系统确定所述主用天线的工作状态异常时,所述主控系统控制所述天线系统中的天线切换开关将与射频电路连接的天线由所述主用天线切换至所述备用天线。When the main control system determines that the working state of the main antenna is abnormal, the main control system controls an antenna switching switch in the antenna system to switch an antenna connected to the radio frequency circuit from the main antenna to the Spare antenna.
  12. 根据权利要求11所述的方法,其中,所述主控系统通过通用输入/输出GPIO接口分别控制天线切换开关和充电电源开关,并且通过模数变换器ADC检测接口获取检测回路所检测到的充电参数。The method according to claim 11, wherein the main control system controls the antenna switching switch and the charging power switch respectively through a universal input/output GPIO interface, and acquires the charging detected by the detecting circuit through the analog-digital converter ADC detecting interface. parameter.
  13. 根据权利要求12所述的方法,其中,所述检测电路中检测回路的具体形式为分压电路,所述分压电路包括与所述充电电源连接的第一端口E、向所述充电电路输入电压的第二端口B以及与所述主控系统的ADC检测接口连接,输出充电电压的第三端口D。The method according to claim 12, wherein the specific form of the detection circuit in the detecting circuit is a voltage dividing circuit, and the voltage dividing circuit includes a first port E connected to the charging power source, and inputs to the charging circuit The second port B of the voltage is connected to the ADC detection interface of the main control system, and outputs the third port D of the charging voltage.
  14. 根据权利要求13所述的方法,其中,所述主控系统获取所述检测回路所检测到的充电参数,具体包括:The method of claim 13, wherein the master control system acquires the charging parameter detected by the detection loop, and specifically includes:
    所述主控系统在预设的检测时间段内检测所述分压电路中第三端口D在预设的检测时间段到达时的电压值VD。The main control system detects a voltage value VD of the third port D in the voltage dividing circuit when the preset detection period arrives within a preset detection period.
    相应地,所述主控系统根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:Correspondingly, the master control system determines the working state of the active antenna according to the preset determining policy according to the charging parameter, and specifically includes:
    所述主控系统根据所述分压电路中第三端口D在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态。The main control system determines an operating state of the main antenna according to a voltage value VD when the third port D of the voltage dividing circuit arrives at a preset detection period.
  15. 根据权利要求14所述的方法,其中,所述主控系统根据所述分压电路中第三端口D在预设的检测时间段到达时的电压值确定所述主用天线的工作状态,包括:The method according to claim 14, wherein the main control system determines the working state of the main antenna according to the voltage value of the third port D in the voltage dividing circuit when the preset detecting period arrives, including :
    当所述主控系统检测到VD为零时,确定所述主用天线短路;When the main control system detects that the VD is zero, determining that the main antenna is short-circuited;
    当所述主控系统检测到VD远大于所述充电电路正常充电时的端电压时,确定所述主用天线开路;When the main control system detects that the VD is far greater than the terminal voltage when the charging circuit is normally charged, determining that the main antenna is open;
    当所述主控系统检测到VD与所述充电电路正常充电时的端电压的差值处于预设范围内时,确定所述主用天线正常工作;其中,所述主用天线的开路和短路状态均表示所述主用天线的工作状态异常。When the main control system detects that the difference between the terminal voltage of the VD and the charging circuit is within a preset range, determining that the primary antenna is working normally; wherein the primary antenna is open and shorted The states all indicate that the working state of the primary antenna is abnormal.
  16. 根据权利要求13所述的方法,其中,所述主控系统获取所述检测回路所检测到的充电参数,具体包括:The method of claim 13, wherein the master control system acquires the charging parameter detected by the detection loop, and specifically includes:
    所述主控系统在预设的检测时间段T内设置第一充电时间T1和第二充电时间T2,其中,T>T2>T1;The master control system sets a first charging time T1 and a second charging time T2 in a preset detection period T, where T>T2>T1;
    所述主控系统检测所述分压电路第三端口D在所述第一充电时间T1对应的电压值V1和所述第二充电时间T2对应的电压值V2;The main control system detects a voltage value V1 corresponding to the voltage value V1 of the third port D of the voltage dividing circuit at the first charging time T1 and the second charging time T2;
    相应地,所述主控系统根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:所述主控系统根据V1和V2之间的关系确定所述主用天线的工作状态。Correspondingly, the master control system determines the working state of the active antenna according to the preset determining policy according to the charging parameter, specifically: the master control system determines the primary use according to a relationship between V1 and V2. The working state of the antenna.
  17. 根据权利要求16所述的方法,其中,所述主控系统根据V1和V2之间的关系确定所述主用天线的工作状态,包括:The method according to claim 16, wherein the master control system determines the working state of the active antenna according to the relationship between V1 and V2, including:
    当V2大于V1时,所述主控系统确定所述主用天线正常工作;否则,主控系统确定所述主用天线工作状态异常。When V2 is greater than V1, the main control system determines that the primary antenna is working normally; otherwise, the main control system determines that the active state of the primary antenna is abnormal.
  18. 根据权利要求12所述的方法,其中,所述检测电路中检测回路的具体形式为分压电路,所述分压电路包括向所述充电电路输入电压的输入电压端口B2和与所述主控系统的ADC检测接口连接,输出充电电压的输出充电电压端口D2;其中,所述输入电压端口B2与所述充电电路中电容的充电接入点相连接。The method according to claim 12, wherein the specific form of the detection circuit in the detecting circuit is a voltage dividing circuit, the voltage dividing circuit includes an input voltage port B2 for inputting a voltage to the charging circuit, and the master The ADC detection interface of the system is connected to output an output charging voltage port D2 of the charging voltage; wherein the input voltage port B2 is connected to a charging access point of the capacitor in the charging circuit.
  19. 根据权利要求18所述的方法,其中,所述主控系统获取所述检测回路所检测到的充电参数,具体包括:The method of claim 18, wherein the master control system acquires the charging parameter detected by the detection loop, specifically comprising:
    所述主控系统检测所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值;The main control system detects a voltage value of the output charging voltage port D2 in the voltage dividing circuit when the preset detection period arrives;
    相应地,所述主控系统根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:Correspondingly, the master control system determines the working state of the active antenna according to the preset determining policy according to the charging parameter, and specifically includes:
    所述主控系统根据所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态。The main control system determines an operating state of the main antenna according to a voltage value VD when the output charging voltage port D2 of the voltage dividing circuit arrives at a preset detection period.
  20. 根据权利要求19所述的方法,其中,所述主控系统根据所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态,包括:The method according to claim 19, wherein said main control system determines an operating state of said main antenna according to a voltage value VD when said output charging voltage port D2 of said voltage dividing circuit arrives at a preset detection period ,include:
    当所述主控系统检测到VD为零时,确定所述主用天线开路;When the main control system detects that the VD is zero, determining that the main antenna is open;
    当所述主控系统检测到VD远大于所述充电电路正常充电时的端电压时,确定所述主用天线短路;When the main control system detects that the VD is far greater than the terminal voltage when the charging circuit is normally charged, determining that the main antenna is short-circuited;
    当所述主控系统检测到VD与所述充电电路正常充电时的端电压的差值处于预设范围内时,确定所述主用天线正常工作;其中,所述主用天线的开路和短路状态均表示所述主用天线的工作状态异常。When the main control system detects that the difference between the terminal voltage of the VD and the charging circuit is within a preset range, determining that the primary antenna is working normally; wherein the primary antenna is open and shorted The states all indicate that the working state of the primary antenna is abnormal.
  21. 一种天线控制方法,所述方法包括:An antenna control method, the method comprising:
    设置旁接于主用天线的充电电路;Providing a charging circuit connected to the main antenna;
    对所述充电电路进行充电,并通过检测电路检测充电参数;Charging the charging circuit and detecting a charging parameter through a detecting circuit;
    根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态;Determining, according to the charging parameter, an operating state of the primary antenna according to a preset determining policy;
    当所述主用天线的工作状态异常时,将与射频电路连接的天线由所述主用天线切换至备用天线。When the operating state of the primary antenna is abnormal, the antenna connected to the radio frequency circuit is switched from the primary antenna to the backup antenna.
  22. 根据权利要求21所述的方法,其中,所述检测电路为分压电路,所述分压电路包括与所述充电电源连接的第一端口E、向所述充电电路输入电压的第二端口B以及与所述主控系统的ADC检测接口连接,输出充电电压的第三端口D。The method according to claim 21, wherein said detecting circuit is a voltage dividing circuit, said voltage dividing circuit comprising a first port E connected to said charging power source, and a second port B inputting a voltage to said charging circuit And a third port D that is connected to the ADC detection interface of the main control system and outputs a charging voltage.
  23. 根据权利要求22所述的方法,其中,所述通过检测电路检测充电参数,具体包括:在预设的检测时间段内检测所述分压电路中第三端口D在预设的检测时间段到达时的电压值VD;The method according to claim 22, wherein the detecting the charging parameter by the detecting circuit comprises: detecting that the third port D of the voltage dividing circuit arrives in a preset detecting period within a preset detecting period Time voltage value VD;
    相应地,所述根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:Correspondingly, the determining, according to the preset determining policy, the working state of the active antenna according to the charging parameter, specifically:
    根据所述分压电路中第三端口D在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态。The operating state of the primary antenna is determined according to the voltage value VD when the third port D arrives at the preset detection period in the voltage dividing circuit.
  24. 根据权利要求23所述的方法,其中,所述根据所述分压电路中第三端口D在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态,具体包括:The method according to claim 23, wherein the determining the operating state of the primary antenna according to the voltage value VD when the third port D reaches the preset detection period in the voltage dividing circuit comprises:
    当检测到VD为零时,确定所述主用天线短路;When it is detected that VD is zero, it is determined that the main antenna is short-circuited;
    当检测到VD远大于所述充电电路正常充电时的端电压时,确定所述主用天线开路;Determining that the main antenna is open when it is detected that the VD is far greater than the terminal voltage when the charging circuit is normally charged;
    当检测到VD与所述充电电路正常充电时的端电压的差值处于预设范围内时,确定所述主用天线正常工作;其中,所述主用天线的开路和短路 状态均表示所述主用天线的工作状态异常。Determining that the primary antenna works normally when detecting that a difference between a VD and a terminal voltage when the charging circuit is normally charged is within a preset range; wherein an open circuit and a short circuit state of the primary antenna indicate the The working status of the main antenna is abnormal.
  25. 根据权利要求22所述的方法,其中,所述通过检测电路检测充电参数,具体包括:The method of claim 22, wherein the detecting the charging parameter by the detecting circuit comprises:
    在预设的检测时间段T内设置第一充电时间T1和第二充电时间T2,其中,T>T2>T1;Setting a first charging time T1 and a second charging time T2 in a preset detection period T, where T>T2>T1;
    所述主控系统检测所述分压电路第三端口D在所述第一充电时间T1对应的电压值V1和所述第二充电时间T2对应的电压值V2;The main control system detects a voltage value V1 corresponding to the voltage value V1 of the third port D of the voltage dividing circuit at the first charging time T1 and the second charging time T2;
    相应地,所述根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:当V2大于V1时,确定所述主用天线正常工作;否则,确定所述主用天线工作状态异常。Correspondingly, determining the working state of the active antenna according to the preset determining policy according to the charging parameter, specifically: determining that the primary antenna works normally when V2 is greater than V1; otherwise, determining the primary The antenna is working abnormally.
  26. 根据权利要求21所述的方法,其中,所述检测电路为分压电路,所述分压电路包括向所述充电电路输入电压的输入电压端口B2和与所述主控系统的ADC检测接口连接,输出充电电压的输出充电电压端口D2;其中,所述输入电压端口B2与所述充电电路中电容的充电接入点相连接。The method according to claim 21, wherein said detecting circuit is a voltage dividing circuit, said voltage dividing circuit comprising an input voltage port B2 for inputting a voltage to said charging circuit and an ADC detecting interface connected to said main control system And outputting a charging voltage port D2 of the charging voltage; wherein the input voltage port B2 is connected to a charging access point of the capacitor in the charging circuit.
  27. 根据权利要求26所述的方法,其中,所述通过检测电路检测充电参数,具体包括:检测所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值;The method according to claim 26, wherein the detecting the charging parameter by the detecting circuit comprises: detecting a voltage value when the output charging voltage port D2 of the voltage dividing circuit arrives at a preset detection period;
    相应地,根据所述充电参数按照预设的确定策略确定所述主用天线的工作状态,具体包括:根据所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态。Correspondingly, determining the working state of the active antenna according to the preset determining policy according to the charging parameter, specifically, comprising: according to the voltage of the output charging voltage port D2 in the voltage dividing circuit when the preset detecting time period arrives The value VD determines the operating state of the primary antenna.
  28. 根据权利要求27所述的方法,其中,所述根据所述分压电路中输出充电电压端口D2在预设的检测时间段到达时的电压值VD确定所述主用天线的工作状态,具体包括:The method according to claim 27, wherein the determining the operating state of the primary antenna according to the voltage value VD when the output charging voltage port D2 reaches the preset detection period in the voltage dividing circuit includes :
    当检测到VD为零时,确定所述主用天线开路;When it is detected that VD is zero, it is determined that the primary antenna is open;
    当检测到VD远大于所述充电电路正常充电时的端电压时,确定所述主用天线短路;When it is detected that the VD is far greater than the terminal voltage when the charging circuit is normally charged, it is determined that the primary antenna is short-circuited;
    当检测到VD与所述充电电路正常充电时的端电压的差值处于预设范围内时,确定所述主用天线正常工作;其中,所述主用天线的开路和短路状态均表示所述主用天线的工作状态异常。Determining that the primary antenna works normally when detecting that a difference between a VD and a terminal voltage when the charging circuit is normally charged is within a preset range; wherein an open circuit and a short circuit state of the primary antenna indicate the The working status of the main antenna is abnormal.
  29. 一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行权利要求11至28中任一项所述的方法。A storage medium, the storage medium comprising a stored program, wherein the program is executed to perform the method of any one of claims 11 to 28.
PCT/CN2017/117056 2016-10-21 2017-12-19 Antenna control circuit and method WO2018072764A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610921258.4A CN107979400B (en) 2016-10-21 2016-10-21 A kind of antenna controling circuit and method
CN201610921258.4 2016-10-21

Publications (1)

Publication Number Publication Date
WO2018072764A1 true WO2018072764A1 (en) 2018-04-26

Family

ID=62003826

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117056 WO2018072764A1 (en) 2016-10-21 2017-12-19 Antenna control circuit and method

Country Status (2)

Country Link
CN (1) CN107979400B (en)
WO (1) WO2018072764A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3567671A1 (en) * 2018-05-09 2019-11-13 Alpine Electronics, Inc. Communication apparatus and communication system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109150203B (en) * 2018-07-13 2020-10-30 合肥移瑞通信技术有限公司 Antenna switching circuit and antenna system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11251982A (en) * 1998-02-27 1999-09-17 Matsushita Electric Ind Co Ltd Emergency communication antenna
JP2011086991A (en) * 2009-10-13 2011-04-28 Ricoh Co Ltd Radio communication device
CN102611861A (en) * 2012-02-27 2012-07-25 厦门华侨电子股份有限公司 Antenna power supply device with accurate current control function on television and power supply method thereof
CN104396155A (en) * 2012-05-21 2015-03-04 高通股份有限公司 Systems, apparatus, and methods for antenna selection
CN104601195A (en) * 2014-12-17 2015-05-06 小米科技有限责任公司 Antenna control method and device
CN104993856A (en) * 2015-05-13 2015-10-21 深圳极智联合科技股份有限公司 Wireless router and method for switching master antenna and standby antenna thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013131230A1 (en) * 2012-03-05 2013-09-12 华为终端有限公司 Antenna switching circuit and wireless terminal device
CN103474968B (en) * 2012-06-08 2016-04-13 华晶科技股份有限公司 Flashing light charge protector and control method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11251982A (en) * 1998-02-27 1999-09-17 Matsushita Electric Ind Co Ltd Emergency communication antenna
JP2011086991A (en) * 2009-10-13 2011-04-28 Ricoh Co Ltd Radio communication device
CN102611861A (en) * 2012-02-27 2012-07-25 厦门华侨电子股份有限公司 Antenna power supply device with accurate current control function on television and power supply method thereof
CN104396155A (en) * 2012-05-21 2015-03-04 高通股份有限公司 Systems, apparatus, and methods for antenna selection
CN104601195A (en) * 2014-12-17 2015-05-06 小米科技有限责任公司 Antenna control method and device
CN104993856A (en) * 2015-05-13 2015-10-21 深圳极智联合科技股份有限公司 Wireless router and method for switching master antenna and standby antenna thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3567671A1 (en) * 2018-05-09 2019-11-13 Alpine Electronics, Inc. Communication apparatus and communication system
JP2019197994A (en) * 2018-05-09 2019-11-14 アルパイン株式会社 Communication device and communication system
US10594362B2 (en) 2018-05-09 2020-03-17 Alpine Electronics, Inc. Communication apparatus and communication system
JP7055698B2 (en) 2018-05-09 2022-04-18 アルパイン株式会社 Communication equipment, communication system

Also Published As

Publication number Publication date
CN107979400A (en) 2018-05-01
CN107979400B (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN105790348B (en) Overcurrent protection in battery charger
US9853467B2 (en) Overcurrent protection in a battery charger
EP3451487B1 (en) Power adapter, terminal, and method for processing impedance anomalies in charging loop
US20170040805A1 (en) Mobile Terminal, DC-Charging Power Source Adaptor, And Rapid Charging Method
US10038427B2 (en) Power path switching in an electronic device including a plurality of charging ports
US20200186038A1 (en) Troubleshooting method and apparatus for power supply device
US11169219B2 (en) Bus short-circuit detection method and circuit, storage medium and processor
WO2018072764A1 (en) Antenna control circuit and method
CN105487086A (en) Device and method for antenna automatic identification and switching
EP3254366B1 (en) Method for detecting a failing rectifier or rectifier source in a ups
CN110323739A (en) A kind of power supply unit and power supply system
US20160372976A1 (en) Power transmitting apparatus, power receiving apparatus, control methods therefor, and computer-readable storage medium
US9825472B2 (en) PRU short beacon detection
KR20160030804A (en) A wireless power receiver and a control method for the same
US9479271B2 (en) RF device and power control performed therein
CN105301512A (en) Storage battery fault early warning method and system
WO2014144524A1 (en) System with physical data authorization
JP7064392B2 (en) Battery monitoring device, battery monitoring system, and battery monitoring method
US10951048B2 (en) Charging circuit
KR102101062B1 (en) Power over data lines detection and classification scheme
CN110112805B (en) Battery charging and discharging control method and system, mobile terminal and storage medium
CN107546969A (en) Overload protection method, apparatus and system
CN110768315A (en) Protection method and system for charging interface and storage medium
US9531485B1 (en) RF device and power control performed therein
CN114097180B (en) NFC equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17861782

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17861782

Country of ref document: EP

Kind code of ref document: A1