Antenna detection method and system
By monitoring the pin level status of the control unit, the antenna status can be quickly and accurately identified, solving the problem of difficult identification in existing technologies and reducing costs and resource requirements.
Patent Information
- Application Number
- CN202511796277.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-02
- Publication Date
- 2026-02-10
AI Technical Summary
Existing technologies make it difficult to quickly and accurately identify antenna status, which affects communication quality.
By connecting resistors, capacitors, and inductors to two pins of the control unit, the level status is monitored to identify the antenna status, replacing the detection method of the analog-to-digital converter (ADC).
It enables rapid and accurate identification of antenna status, reduces costs, and makes resources readily available.
Smart Images

Figure CN121508682A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communications, and more specifically, to an antenna detection method and system. Background Technology
[0002] With the rapid development of communication technology, communication products are being used more and more. These products are usually equipped with antennas, and the proper functioning of the antennas directly affects communication quality. To ensure the reliability of the product's communication functions, it is necessary to monitor the antenna status in real time. How to quickly and accurately identify the antenna status has become a challenging problem of concern to those skilled in the art. Summary of the Invention
[0003] The purpose of this invention is to provide an antenna detection method and system to improve the above-mentioned problems.
[0004] To achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows: In a first aspect, embodiments of the present invention provide an antenna detection method applied to a control unit. A first pin of the control unit is connected to one end of a first resistor, and a second pin of the control unit is connected to one end of a second resistor. The other ends of the first resistor and the second resistor are connected between a first capacitor and a first inductor. The other terminal of the first capacitor is grounded. The other end of the first inductor and an RF module are both connected between an antenna and a pull-down resistor. The other end of the pull-down resistor is grounded. The antenna detection method includes: Obtain the voltage level of the second pin when the first pin outputs a high level; Obtain the voltage level of the first pin when the second pin outputs a high level; The antenna state is determined based on the voltage levels of the first and second pins.
[0005] Optionally, the resistance of the first resistor is greater than twice the resistance of the pull-down resistor, and the resistance of the second resistor is less than half the resistance of the pull-down resistor. Determining the antenna state based on the voltage levels of the first and second pins includes: When the level of the second pin is high and the level of the first pin is high, the antenna is determined to be in an open circuit state. When the level of the second pin is low and the level of the first pin is low, the antenna is determined to be in a short-circuit state. When the level of the second pin is low and the level of the first pin is high, the antenna is determined to be in a normal state.
[0006] Optionally, the resistance of the second resistor is greater than twice the resistance of the pull-down resistor, and the resistance of the first resistor is less than half the resistance of the pull-down resistor. Determining the antenna state based on the voltage levels of the first and second pins includes: When the level of the second pin is high and the level of the first pin is high, the antenna is determined to be in an open circuit state. When the level of the second pin is low and the level of the first pin is low, the antenna is determined to be in a short-circuit state. When the level of the second pin is high and the level of the first pin is low, the antenna is determined to be in a normal state.
[0007] Optionally, when the antenna is in an abnormal state, the method further includes: sending an antenna abnormality indication to the radio frequency module so that the radio frequency module stops sending radio frequency signals to the antenna in the abnormal state.
[0008] Optionally, the radio frequency module switches the antenna when it receives an antenna malfunction indication.
[0009] Secondly, embodiments of the present invention provide an antenna detection system, the antenna detection system including a control unit, a first resistor, a second resistor, a first capacitor, a first inductor, a radio frequency module, an antenna, and a pull-down resistor; The first pin of the control unit is connected to one end of the first resistor, and the second pin of the control unit is connected to one end of the second resistor. The other end of the first resistor and the other end of the second resistor are connected between the first capacitor and the first inductor. The other end of the first capacitor is grounded. The other end of the first inductor and the radio frequency module are both connected between the antenna and the pull-down resistor. The other end of the pull-down resistor is grounded. The control unit is used to acquire the level state of the second pin when the first pin outputs a high level; acquire the level state of the first pin when the second pin outputs a high level; and determine the antenna state based on the level state of the first pin and the level state of the second pin.
[0010] Compared to existing technologies, the antenna detection method and system provided in this invention have the following features: a first pin of the control unit is connected to one end of a first resistor, a second pin of the control unit is connected to one end of a second resistor, the other ends of the first and second resistors are connected between a first capacitor and a first inductor, the other end of the first capacitor is grounded, and the other end of the first inductor and the RF module are both connected between the antenna and a pull-down resistor, the other end of the pull-down resistor is grounded. The antenna detection method includes: acquiring the level state of the second pin when the first pin outputs a high level; acquiring the level state of the first pin when the second pin outputs a high level; and determining the antenna state based on the level states of the first and second pins. Utilizing two pins for level state monitoring allows for rapid and accurate identification of the antenna state of an external antenna, which is less costly and more readily available than detection methods using an analog-to-digital converter (ADC).
[0011] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0012] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a connection diagram of the antenna detection system provided in an embodiment of the present invention.
[0014] Figure 2 This is one of the flowcharts illustrating the antenna detection method provided in an embodiment of the present invention.
[0015] Figure 3 This is a second schematic flowchart of the antenna detection method provided in an embodiment of the present invention. Detailed Implementation
[0016] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0017] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0018] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this invention, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0019] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0020] In the description of this invention, it should be noted that the terms "upper," "lower," "inner," "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship in which the product of this invention is usually placed when in use. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limiting this invention.
[0021] In the description of this invention, it should also be noted that, unless otherwise explicitly specified and limited, the terms "set" and "connection" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0022] The following detailed description of some embodiments of the present invention is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0023] This invention provides an antenna detection system, such as... Figure 1 As shown, Figure 1 This is a connection diagram of an antenna detection system provided in an embodiment of the present invention. The antenna detection system includes a control unit (not shown in the figure), a first resistor RA, a second resistor RB, a first capacitor C1, a first inductor L1, a radio frequency module (RF module), an antenna, and a pull-down resistor Rt. The first pin GPIOA of the control unit is connected to one end of the first resistor RA, and the second pin GPIOB of the control unit is connected to one end of the second resistor RB. The other end of the first resistor RA and the other end of the second resistor RB are connected between the first capacitor C1 and the first inductor L1. The other end of the first capacitor C1 is grounded. The other end of the first inductor L1 and the RF module are both connected between the antenna and the pull-down resistor Rt. The other end of the pull-down resistor Rt is grounded.
[0024] The control unit is used to perform the antenna detection method described below to determine the antenna status.
[0025] Figure 1 The antenna shown can be an external antenna. The external antenna has a pull-down resistor Rt, and the first inductor L1 and the first capacitor C1 form a low-pass filter to eliminate the influence of radio frequency signals on the antenna detection circuit. The first pin GPIOA and the second pin GPIOB are interconnected with the first resistor RA and the second resistor RB, and are connected to the antenna unit through the first inductor L1.
[0026] This invention provides an antenna detection method, which can be applied to the control unit of an antenna detection system. Please refer to... Figure 2 , Figure 2 This is a flowchart illustrating the antenna detection method provided in an embodiment of the present invention. The antenna detection method includes steps S10, S20, and S30, which are described in detail below.
[0027] S10: Obtain the level state of the second pin when the first pin outputs a high level.
[0028] It should be understood that the control unit can control the first pin to output a high level while monitoring the level state of the second pin, thereby determining the level state of the second pin when the first pin outputs a high level.
[0029] S20: Obtain the voltage level of the first pin when the second pin outputs a high level.
[0030] It should be understood that the control unit can control the second pin to output a high level while monitoring the level state of the first pin, thereby determining the level state of the first pin when the second pin outputs a high level.
[0031] S30 determines the antenna state based on the voltage levels of the first and second pins.
[0032] In the antenna detection method provided in this embodiment of the invention, two pins are used to monitor the level status in order to quickly and accurately identify the antenna status of the external antenna. Compared with the detection method using an analog-to-digital converter (ADC), this method is less expensive and the resources are easier to obtain.
[0033] In one optional implementation, the resistance of the first resistor is greater than twice the resistance of the pull-down resistor, and the resistance of the second resistor is less than half the resistance of the pull-down resistor. Based on this, regarding the content of S30, this embodiment of the invention also provides an optional implementation, please refer to the following. S30, determining the antenna state based on the level state of the first pin and the level state of the second pin, includes: S31, S32, and S33, specifically as follows.
[0034] S31, when the level of the second pin is high and the level of the first pin is high, the antenna is determined to be in an open circuit state.
[0035] S32, when the level of the second pin is low and the level of the first pin is low, the antenna is determined to be in a short-circuit state.
[0036] S33, when the level of the second pin is low and the level of the first pin is high, the antenna is determined to be in normal state.
[0037] In one optional implementation, the resistance of the second resistor is greater than twice the resistance of the pull-down resistor, and the resistance of the first resistor is less than half the resistance of the pull-down resistor. Based on this, regarding the content of S30, this embodiment of the invention also provides an optional implementation, please refer to the following. S30, determining the antenna state based on the level state of the first pin and the level state of the second pin, includes: S34, S35, and S36, specifically as follows.
[0038] S34: When the level of the second pin is high and the level of the first pin is high, the antenna is determined to be in an open circuit state.
[0039] S35, when the level of the second pin is low and the level of the first pin is low, the antenna is determined to be in a short-circuit state.
[0040] S36, when the level of the second pin is high and the level of the first pin is low, the antenna is determined to be in normal state.
[0041] Please refer to Figure 3 When the antenna is in an abnormal state (open circuit or short circuit), the antenna detection method also includes: S40, which is described in detail below.
[0042] S40 sends an antenna malfunction indication to the RF module so that the RF module stops sending RF signals to the antenna in the malfunctioning state.
[0043] When the RF module receives an antenna malfunction indication, it switches the antenna, for example, when the external antenna is malfunctioning, it switches to the internal antenna which is functioning normally.
[0044] In summary, the antenna detection method and system provided by this invention have the following steps: a first pin of the control unit is connected to one end of a first resistor, a second pin of the control unit is connected to one end of a second resistor, the other ends of the first and second resistors are connected between a first capacitor and a first inductor, the other end of the first capacitor is grounded, and the other end of the first inductor and the RF module are both connected between the antenna and a pull-down resistor, the other end of the pull-down resistor is grounded. The antenna detection method includes: acquiring the level state of the second pin when the first pin outputs a high level; acquiring the level state of the first pin when the second pin outputs a high level; and determining the antenna state based on the level states of the first and second pins. Using two pins for level state monitoring allows for quick and accurate identification of the antenna state of an external antenna, which is less costly and more readily available than detection methods using an analog-to-digital converter (ADC).
[0045] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
[0046] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the invention can be implemented in other specific forms without departing from its spirit or essential characteristics. Therefore, the embodiments should be considered in all respects as exemplary and non-limiting, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within the present invention. No reference numerals in the claims should be construed as limiting the scope of the claims.
Claims
1. An antenna detection method, characterized in that, Applied to a control unit, the first pin of the control unit is connected to one end of a first resistor, the second pin of the control unit is connected to one end of a second resistor, the other ends of the first resistor and the other ends of the second resistor are connected between a first capacitor and a first inductor, the other terminal of the first capacitor is grounded, and the other end of the first inductor and the RF module are both connected between an antenna and a pull-down resistor, the other end of the pull-down resistor is grounded, and the antenna detection method includes: Obtain the voltage level of the second pin when the first pin outputs a high level; Obtain the voltage level of the first pin when the second pin outputs a high level; The antenna state is determined based on the voltage levels of the first and second pins.
2. The antenna detection method as described in claim 1, characterized in that, The resistance of the first resistor is greater than twice the resistance of the pull-down resistor, and the resistance of the second resistor is less than half the resistance of the pull-down resistor. Determining the antenna state based on the voltage levels of the first and second pins includes: When the level of the second pin is high and the level of the first pin is high, the antenna is determined to be in an open circuit state.
3. The antenna detection method as described in claim 2, characterized in that, Determining the antenna state based on the voltage levels of the first and second pins includes: When the level of the second pin is low and the level of the first pin is low, the antenna is determined to be in a short-circuit state.
4. The antenna detection method as described in claim 2, characterized in that, Determining the antenna state based on the voltage levels of the first and second pins includes: When the level of the second pin is low and the level of the first pin is high, the antenna is determined to be in a normal state.
5. The antenna detection method as described in claim 1, characterized in that, The resistance of the second resistor is greater than twice the resistance of the pull-down resistor, and the resistance of the first resistor is less than half the resistance of the pull-down resistor. Determining the antenna state based on the voltage levels of the first and second pins includes: When the level of the second pin is high and the level of the first pin is high, the antenna is determined to be in an open circuit state.
6. The antenna detection method as described in claim 5, characterized in that, Determining the antenna state based on the voltage levels of the first and second pins includes: When the level of the second pin is low and the level of the first pin is low, the antenna is determined to be in a short-circuit state.
7. The antenna detection method as described in claim 5, characterized in that, Determining the antenna state based on the voltage levels of the first and second pins includes: When the level of the second pin is high and the level of the first pin is low, the antenna is determined to be in a normal state.
8. The antenna detection method as described in claim 1, characterized in that, When the antenna condition is abnormal, the method further includes: Send an antenna malfunction indication to the radio frequency module so that the radio frequency module stops sending radio frequency signals to the antenna in the malfunctioning state.
9. The antenna detection method as described in claim 8, characterized in that, When the radio frequency module receives an antenna malfunction indication, it performs antenna switching.
10. An antenna detection system, characterized in that, The antenna detection system includes a control unit, a first resistor, a second resistor, a first capacitor, a first inductor, an RF module, an antenna, and a pull-down resistor; The first pin of the control unit is connected to one end of the first resistor, and the second pin of the control unit is connected to one end of the second resistor. The other end of the first resistor and the other end of the second resistor are connected between the first capacitor and the first inductor. The other end of the first capacitor is grounded. The other end of the first inductor and the radio frequency module are both connected between the antenna and the pull-down resistor. The other end of the pull-down resistor is grounded. The control unit is used to acquire the level state of the second pin when the first pin outputs a high level; acquire the level state of the first pin when the second pin outputs a high level; and determine the antenna state based on the level state of the first pin and the level state of the second pin.