Antenna detection circuit, antenna switching circuit and electronic equipment
By using the connection module, matching circuit and target resistance in the antenna detection circuit, the antenna access status is automatically detected and the radio frequency impact is reduced, which solves the problems of limited antenna detection coverage and damaged radio frequency indicators in the existing technology, and realizes the detection of any antenna. Efficient detection and low-impact detection.
Patent Information
- Application Number
- CN202310466526.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-23
- Publication Date
- 2024-10-29
AI Technical Summary
Existing antenna detection circuits cannot effectively detect external antennas of non-specific models or components, and can easily affect the radio frequency indicators of the antenna.
An antenna detection circuit including a connection module, a matching circuit, an antenna detection module and a target resistance is designed. By detecting the on-off status of the target resistance and the connection module, it can automatically determine whether the antenna is connected and reduce the electromagnetic signal energy by setting the target resistance. Discharge to reduce the impact on the radio frequency index of the antenna.
It realizes automatic detection of any antenna, reduces the requirements for antenna models and components, expands the applicable scenarios of the detection circuit, and reduces the impact on radio frequency indicators.
Smart Images

Figure CN118858780A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of antennas, and in particular to an antenna detection circuit, an antenna switching circuit and electronic equipment. Background Art
[0002] At present, many communication terminals, such as CPE (Customer Premises Equipment), have antenna interfaces. Users can connect antennas to devices according to their needs to improve device performance. For devices, they need to detect whether the device has been connected to an antenna.
[0003] In the prior art, usually only the detection of antennas of specific models or with specific components can be realized. For example, the power supply design of active antennas is used to realize the antenna detection function. The current antenna detection schemes basically rely on customized special external antennas or active antenna power supplies as part of the detection circuit. If other antennas are replaced, the detection function cannot be realized. Therefore, the current schemes for detecting external antenna access are insufficient and have limited coverage. In addition, the design of the antenna detection circuit is likely to affect the RF indicators of the antenna. Summary of the invention
[0004] In view of this, in order to solve the above technical problems or part of the technical problems, an embodiment of the present invention provides an antenna detection circuit, an antenna switching circuit and an electronic device.
[0005] In a first aspect, an embodiment of the present invention provides an antenna detection circuit, including: a connection module, a first matching circuit, an antenna detection module and a target resistor, wherein:
[0006] The first end of the connection module is connected to the first matching circuit and the first end of the target resistor;
[0007] The second end of the connection module is connected to the antenna detection module;
[0008] The third end of the connection module is used to connect to the first antenna;
[0009] When the first antenna is connected to the third end of the connection module, the first end and the second end of the connection module are disconnected, and the first antenna is connected to the first matching circuit;
[0010] When the first antenna is not connected to the third end of the connection module, the first end and the second end of the connection module are connected;
[0011] The first matching circuit is a matching circuit for the first antenna;
[0012] The second end of the target resistor is connected to the ground end;
[0013] The antenna detection module is used to determine whether the first antenna is connected to the third end of the connection module by detecting the on-off state of the target resistor and the second end of the connection module.
[0014] In a possible implementation, the antenna detection module includes a first resistor and a second resistor;
[0015] The first end of the first resistor is connected to a power supply;
[0016] The second end of the first resistor is connected to the second end of the connection module and the first end of the second resistor;
[0017] The antenna detection module is used to determine the on-off state of the target resistor and the second end of the connection module based on the output voltage of the second end of the second resistor.
[0018] In a possible implementation, the connection module includes a radio frequency connector.
[0019] In a possible implementation manner, the first end of the connection module is connected to the first matching circuit via a capacitor.
[0020] In a possible implementation manner, the connection module is connected to the antenna detection module via inductance.
[0021] In a possible implementation manner, the first antenna is an external antenna composed of passive components.
[0022] In a second aspect, an embodiment of the present invention provides an antenna switching circuit, including: an antenna detection circuit, a switching module, a control module, and a second matching circuit;
[0023] The antenna detection circuit is the antenna detection circuit as described in the first aspect above;
[0024] The first end of the switching module is connected to the first matching circuit in the antenna detection circuit, the second end is connected to the second matching circuit, and the third end is connected to the control module;
[0025] The second matching circuit is connected to the second antenna, and the second matching circuit is a matching circuit of the second antenna;
[0026] The control module is also connected to the antenna detection module in the antenna detection circuit;
[0027] The control module is used to determine whether to execute the switching instruction; wherein the switching instruction is used to: switch the current working antenna from the first antenna to the second antenna, or switch the current working antenna from the second antenna to the first antenna; in the case of determining to execute the switching instruction, sending a control signal to the switching module, wherein the control signal is used to instruct to execute the switching instruction;
[0028] The switching module is used to execute the switching instruction when receiving the control signal.
[0029] In a possible implementation manner, the second antenna includes a built-in antenna.
[0030] In a possible implementation manner, the control module is used to:
[0031] Acquire a first performance parameter and a second performance parameter, wherein the first performance parameter is a performance parameter of the first antenna when the currently working antenna is the first antenna, and the second performance parameter is a performance parameter of the second antenna when the currently working antenna is the second antenna;
[0032] Based on the first performance parameter and the second performance parameter, it is determined whether to execute the switching instruction.
[0033] In a third aspect, an embodiment of the present invention provides an electronic device,
[0034] The electronic device comprises the antenna detection circuit as described in the first aspect above; or
[0035] The electronic device includes the antenna switching circuit as described in the second aspect above.
[0036] The antenna detection circuit provided by the embodiment of the present invention includes a connection module, a first matching circuit, an antenna detection module and a target resistor, wherein: the first end of the connection module is connected to the first end of the first matching circuit and the target resistor; the second end of the connection module is connected to the antenna detection module; the third end of the connection module is used to connect the first antenna; when the first antenna is connected to the third end of the connection module, the first end and the second end of the connection module are disconnected, and the first antenna is connected to the first matching circuit; when the first antenna is not connected to the third end of the connection module, the first end and the second end of the connection module are connected; the first matching circuit is the matching circuit of the first antenna; the second end of the target resistor is connected to the ground end; the antenna detection module is used to determine whether the first antenna is connected to the third end of the connection module by detecting the on-off state of the target resistor and the second end of the connection module. Therefore, it is possible to determine whether the first antenna is connected to the third end of the connection module by detecting the on-off state of the target resistor and the second end of the connection module. By setting the target resistor, the electromagnetic signal energy of the antenna can be reduced from being discharged to the ground end, thereby reducing the impact on the RF index of the first antenna, and reducing the requirements on the model, components and other aspects of the first antenna, and automatically detecting whether the antenna is connected. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of the structure of a first antenna detection circuit provided by an embodiment of the present invention;
[0038] Figure 2 A schematic diagram of the structure of a second antenna detection circuit provided by an embodiment of the present invention;
[0039] Figure 3 A schematic diagram of a structure in which a third end of a connection module in an antenna detection circuit provided by an embodiment of the present invention is not connected to a first antenna;
[0040] Figure 4 A schematic diagram of a structure in which a third terminal of a connection module in an antenna detection circuit provided by an embodiment of the present invention is connected to a first antenna;
[0041] Figure 5 A schematic diagram of the structure of a first antenna switching circuit provided by an embodiment of the present invention;
[0042] Figure 6 A schematic diagram of the structure of a second antenna switching circuit provided by an embodiment of the present invention;
[0043] Figure 7 A flow chart of an antenna switching method of an antenna switching circuit provided in an embodiment of the present invention;
[0044] Figure 8A schematic diagram of the structure of a first electronic device provided by an embodiment of the present invention;
[0045] Fig. 9 A schematic structural diagram of a second electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.
[0048] Figure 1 This is a schematic structural diagram of a first antenna detection circuit provided by an embodiment of the present invention. The antenna detection circuit includes a connection module 20, a first matching circuit 10, an antenna detection module 30 and a target resistor 40.
[0049] A first end of the connection module 20 is connected to the first matching circuit 10 and a first end of the target resistor 40 .
[0050] The second end of the connecting module 20 is connected to the antenna detecting module 30 .
[0051] The third end of the connecting module 20 is used to connect to the first antenna 50 .
[0052] The connection module may include three interfaces, which are respectively recorded as a first end, a second end and a third end.
[0053] The first matching circuit 10 is a matching circuit for the first antenna 50. The first matching circuit 10 can be used to ensure that the first antenna 50 works normally. For example, the first matching circuit 10 can be used to perform impedance matching so as to better adjust the radio frequency performance of the first antenna 50.
[0054] The first antenna can be any external antenna that can be connected to the connection module 20. The first antenna can be connected to the connection module 20 to be connected to the third end of the connection module; or, the first antenna can also be unplugged from the connection module 20 to be disconnected from the third end of the connection module.
[0055] Here, the first antenna 50 only needs to match the interface of the third end of the connection module 20, and no other restrictions are required.
[0056] A second end of the target resistor 40 is connected to the ground.
[0057] Optionally, the resistance of the target resistor 40 may be above several hundred ohms.
[0058] When the first antenna 50 is connected to the third end of the connection module 20, the first end and the second end of the connection module 20 are disconnected. In addition, when the first antenna 50 is connected to the third end of the connection module 20, the first antenna 50 is connected to the first end of the connection module 20, the first antenna 50 is connected to the first matching circuit 10, the first antenna 50 is disconnected from the second end of the connection module 20, and the first antenna 50 is disconnected from the antenna detection module 30.
[0059] When the first antenna 50 is not connected to the third end of the connection module 20 , the first end and the second end of the connection module 20 are connected.
[0060] The antenna detection module 30 is used to determine whether the first antenna 50 is connected to the third end of the connection module 20 by detecting the on / off state of the target resistor 40 and the second end of the connection module 20 .
[0061] In one embodiment, the antenna detection module 30 may be composed of a power supply, a voltage-dividing resistor, etc. The antenna detection module 30 and the target resistor 40 are connected in parallel to generate a detection voltage U1. When the target resistor 40 is disconnected, the antenna detection module 30 generates a detection voltage U2.
[0062] When the first antenna 50 is not connected to the third end of the connection module 20 , a detection voltage U1 is generated; when the first antenna 50 is connected to the third end of the connection module 20 , a detection voltage U2 is generated.
[0063] In addition, when the first antenna 50 is not connected to the third end of the connection module 20, the target resistor R is connected to the second end of the connection module 20; when the first antenna 50 is connected to the third end of the connection module 20, the target resistor R is disconnected from the second end of the connection module 20.
[0064] In this embodiment, the first end, the second end, and the third end are only used to distinguish different electrical connection points (such as ports) of the circuit module and do not constitute a special limitation.
[0065] In an optional solution of the embodiment of the present invention, the antenna detection module 30 includes a first resistor R1 and a second resistor R2.
[0066] A first end of the first resistor R1 is connected to a power source VPH_PWR.
[0067] The second end of the first resistor R1 is connected to the second end of the connecting module 20 and the first end of the second resistor R2.
[0068] Optionally, the first resistor R1, the second resistor R2 and the above target resistor R can be selected to have the same resistance value. That is, the resistance values of the first resistor R1 and the second resistor R2 can be more than several hundred ohms.
[0069] The antenna detection module 30 is used to determine the on / off state of the target resistor 40 and the second end of the connection module 20 based on the output voltage of the second end of the second resistor R2 .
[0070] It can be understood that in the above optional scheme, voltage is divided by the first resistor R1 and the second resistor R2, and combined with the target resistance, so that the first antenna is connected and non-connected, which corresponds to different output voltages at the second end of the second resistor R2. Therefore, the difference in the above output voltages can be used to determine whether the first antenna is connected.
[0071] Optionally, the antenna detection module 30 may include only one resistor, or the antenna detection module 30 may include three or more resistors. In addition, the resistors included in the antenna detection module 30 may be connected in series and / or in parallel, which is not limited here.
[0072] In an optional solution of the embodiment of the present invention, the connection module 20 includes a radio frequency connector.
[0073] Specifically, the first end of the RF connector is the first end of the connection module 20 ; the second end of the RF connector is the second end of the connection module 20 ; and the third end of the RF connector is the third end of the connection module 20 .
[0074] The RF connector may be, for example, a dual-channel SMA RF coaxial switch connector (SMA connector). Specifically, the dual-channel SMA RF coaxial switch connector has three RF ports: RFIN (i.e., the first end or the second end of the RF connector), RFOUT (i.e., the second end or the first end of the RF connector), and an external antenna interface (i.e., the third end of the RF connector). The RFIN and RFOUT of the SMA connector are connected by default. When the first antenna is connected, RFIN and RFOUT are disconnected.
[0075] As an example, see Figure 3 and Figure 4 , Figure 3A connection module (ie, a connection module) in an antenna detection circuit provided by an embodiment of the present invention Figure 3 The third end (also known as the SMA connector in Figure 3 In this case, the first terminal RFIN and the second terminal RFOUT of the connection module are connected. Figure 4 A connection module (ie, a connection module) in an antenna detection circuit provided by an embodiment of the present invention Figure 4 The third end (also known as the SMA connector in Figure 4 In this case, the first terminal RFIN and the second terminal RFOUT of the connection module are disconnected.
[0076] Optionally, other radio frequency connectors may be used as connection modules, which are not limited here.
[0077] It can be understood that in the above optional solution, using the RF connector as a connection module can reduce the RF signal loss of the first antenna to a greater extent.
[0078] In an optional solution of the embodiment of the present invention, the first end of the connecting module 20 is connected to the first matching circuit 10 via a capacitor C.
[0079] It can be understood that in the above optional solution, the first end of the connecting module 20 is connected to the first matching circuit 10 via the capacitor C, which can better protect the first matching circuit 10.
[0080] In an optional solution of the embodiment of the present invention, the connection module 20 is connected to the antenna detection module 30 via an inductor L.
[0081] It can be understood that in the above optional solution, the connection module 20 is connected to the antenna detection module 30 via the inductor L, which can better protect the antenna detection circuit 30.
[0082] In an optional solution of the embodiment of the present invention, the first antenna is an external antenna composed of passive components.
[0083] It can be understood that the above optional solution can be applied to the detection of passive external antennas, thereby reducing the restrictions on the composition of the antenna, and thus expanding the applicable scenarios of the antenna detection circuit.
[0084] The antenna detection circuit of this embodiment determines whether the first antenna is connected to the third end of the connection module by detecting the on-off state of the target resistance and the second end of the connection module. By setting the target resistance, the electromagnetic signal energy of the antenna can be reduced from being discharged to the ground terminal, thereby reducing the impact on the RF indicators of the first antenna. In addition, the requirements on the model, constituent components, etc. of the first antenna are reduced, and whether the antenna is connected can be automatically detected.
[0085] The internal circuit structure of the antenna detection circuit provided in this embodiment can be formed by combining at least one of the above optional solutions.
[0086] There are a variety of structural designs for the internal circuit structure of the antenna detection circuit. The specific structural design can be set according to actual needs, and this embodiment does not make any specific limitation on this.
[0087] The following will specifically introduce the combination of the above optional solutions as an example.
[0088] Reference Figure 2 FIG. 4 shows a schematic diagram of the structure of a second antenna detection circuit provided by an embodiment of the present invention. Figure 2 As shown, the antenna detection circuit includes a connection module 20 (also known as the SMA in the figure), a first matching circuit 10 (also known as the external antenna matching in the figure), an antenna detection module 30 (also known as the ADC detection in the figure) and a target resistor 40 (also known as the resistor R in the figure).
[0089] A first end of the connection module 20 is connected to the first matching circuit 10 and a first end of the target resistor 40 .
[0090] The second end of the connecting module 20 is connected to the antenna detecting module 30 .
[0091] The third end of the connecting module 20 is used to connect to the first antenna 50 .
[0092] When the first antenna 50 (ie, the external antenna in the figure) is connected to the third end of the connection module 20 , the first end and the second end of the connection module 20 are disconnected, and the first antenna 50 is connected to the first matching circuit 10 .
[0093] When the first antenna 50 is not connected to the third end of the connection module 20 , the first end and the second end of the connection module 20 are connected.
[0094] The first matching circuit 10 is a matching circuit for the first antenna 50 .
[0095] A second end of the target resistor 40 is connected to the ground.
[0096] The antenna detection module 30 is used to determine whether the first antenna 50 is connected to the third end of the connection module 20 by detecting the on / off state of the target resistor 40 and the second end of the connection module 20 .
[0097] The antenna detection module 30 includes a first resistor R1 and a second resistor R2.
[0098] A first end of the first resistor R1 is connected to a power source.
[0099] The second end of the first resistor R1 is connected to the second end of the connecting module 20 and the first end of the second resistor R2.
[0100] The antenna detection module 30 is used to determine the on / off state of the target resistor 40 and the second end of the connection module 20 based on the output voltage of the second end of the second resistor R2 .
[0101] The connection module 20 includes a radio frequency connector.
[0102] The first end of the RF connector is connected to the first matching circuit 10 and the first end of the target resistor 40 .
[0103] The second end of the RF connector is connected to the antenna detection module 30 .
[0104] The third end of the RF connector is used to connect to the first antenna 50 .
[0105] When the third end of the RF connector is not connected to the first antenna 50 , the first end of the RF connector is connected to the second end.
[0106] When the third end of the RF connector is connected to the first antenna 50 , the first end of the RF connector is disconnected from the second end, and the first antenna 50 is connected to the first matching circuit 10 .
[0107] The first end of the connection module 20 is connected to the first matching circuit 10 via a capacitor C.
[0108] The connection module 20 is connected to the antenna detection module 30 via an inductor L.
[0109] The first antenna 50 is an external antenna composed of passive components.
[0110] It should be noted that, in addition to the contents recorded above, this embodiment may also include the technical features described in the above embodiments, so as to achieve the technical effects of the antenna detection circuit shown above. Please refer to the above description for details. For the sake of brevity, it will not be repeated here.
[0111] Reference Figure 5 FIG. 4 shows a schematic diagram of the structure of a first antenna switching circuit provided by an embodiment of the present invention. Figure 5 As shown, the antenna switching circuit includes an antenna detection circuit 100 , a switching module 200 , a control module 400 and a second matching circuit 300 .
[0112] The antenna detection circuit 100 is any of the above antenna detection circuits.
[0113] Specifically, the antenna detection circuit 100 includes a connection module 20 , a first matching circuit 10 , an antenna detection module 30 and a target resistor 40 .
[0114] A first end of the connection module 20 is connected to the first matching circuit 10 and a first end of the target resistor 40 .
[0115] The second end of the connecting module 20 is connected to the antenna detecting module 30 .
[0116] The third end of the connecting module 20 is used to connect to the first antenna 50 .
[0117] The connection module may include three interfaces, which are respectively recorded as a first end, a second end and a third end.
[0118] The first matching circuit 10 is a matching circuit for the first antenna 50. The first matching circuit 10 can be used to ensure that the first antenna 50 works normally. For example, the first matching circuit 10 can be used to perform impedance matching so as to better adjust the radio frequency performance of the first antenna 50.
[0119] The first antenna may be any external antenna, and the first antenna may be connected to the connection module 20 to be connected to the third end of the connection module; or the first antenna may be unplugged from the connection module 20 to be disconnected from the third end of the connection module.
[0120] A second end of the target resistor 40 is connected to the ground.
[0121] Optionally, the resistance of the target resistor 40 may be above several hundred ohms.
[0122] When the first antenna 50 is connected to the third end of the connection module 20 , the first end and the second end of the connection module 20 are disconnected. Also, when the first antenna 50 is connected to the third end of the connection module 20 , the first antenna 50 is connected to the first matching circuit 10 .
[0123] When the first antenna 50 is not connected to the third end of the connection module 20 , the first end and the second end of the connection module 20 are connected.
[0124] The antenna detection module 30 is used to determine whether the first antenna 50 is connected to the third end of the connection module 20 by detecting the on / off state of the target resistor 40 and the second end of the connection module 20 .
[0125] The antenna detection module 30 may be composed of a power supply, a voltage-dividing resistor, etc. The antenna detection module 30 and the target resistor 40 are connected in parallel to generate a detection voltage U1. When the target resistor 40 is disconnected, the antenna detection module 30 generates a detection voltage U2.
[0126] The first end of the switching module 200 is connected to the first matching circuit 10 in the antenna detection circuit 100 , the second end is connected to the second matching circuit 300 , and the third end is connected to the control module 400 .
[0127] Here, the switching module 200 may include a radio frequency switch (RF SWITCH), which may be a two-channel or multi-channel device. For example, in the case where the radio frequency switch is a two-channel device, the two channels channel 1 and channel 2 are connected to the first antenna and the second antenna respectively. The antenna switching circuit is connected to the second antenna by default, and the antenna channel can be switched by controlling the RF SWITCH. If a multi-channel radio frequency switch is used, multiple radio frequency channels can be connected to control the switching of multiple antennas.
[0128] The RF switch can efficiently send signals in the transmission path. For example, the RF switch can be a single-pole double-throw RF switch, a single-pole multi-throw RF switch, and the like.
[0129] The second matching circuit 300 is connected to the second antenna 500 , and the second matching circuit 300 is a matching circuit for the second antenna 500 .
[0130] Here, the second matching circuit 300 can be used to ensure that the second antenna 500 works normally. For example, the second matching circuit 300 can be used to perform impedance matching so as to better adjust the radio frequency performance of the second antenna 500.
[0131] The control module 400 is also connected to the antenna detection module 30 in the antenna detection circuit 100 .
[0132] The control module 400 may include a main control CPU (Central Processing Unit) which mainly realizes functions such as detecting whether the first antenna is connected, controlling the switching module, comparing the performance of multiple antennas, and selecting the optimal antenna to work according to the comparison result.
[0133] The control module 400 is used to determine whether to execute a switching instruction.
[0134] For example, when the first antenna 50 is connected to the third terminal of the connection module 20 in the antenna detection circuit 100, the control module 400 may determine whether to execute the switching instruction. For another example, when the first antenna 50 is disconnected from the third terminal of the connection module 20 in the antenna detection circuit 100, the control module 400 may determine whether to execute the switching instruction.
[0135] The switching instruction is used to: switch the current working antenna from the first antenna 50 to the second antenna 500 , or switch the current working antenna from the second antenna 500 to the first antenna 50 .
[0136] The control module 400 is further configured to send a control signal to the switching module 200 when determining to execute the switching instruction. The control signal is used to instruct to execute the switching instruction.
[0137] The switching module 200 is configured to execute the switching instruction upon receiving the control signal.
[0138] In an optional solution of the embodiment of the present invention, the second antenna 500 includes a built-in antenna.
[0139] Among them, the above-mentioned built-in antenna can be a PCB (printed circuit board) antenna, a bracket antenna, etc.
[0140] In addition, the second matching circuit 300 may be composed of passive components such as resistors, capacitors, and inductors.
[0141] It can be understood that in the above optional solution, switching between the internal antenna and the external antenna can be achieved.
[0142] Optionally, the second antenna may also include an external antenna and a connection module (such as an SMA connector) for connecting the external antenna and the second matching circuit 300 .
[0143] In an optional solution of the embodiment of the present invention, the control module 400 is used to:
[0144] First, a first performance parameter and a second performance parameter are obtained.
[0145] The first performance parameter is a performance parameter of the first antenna when the currently working antenna is the first antenna, and the second performance parameter is a performance parameter of the second antenna when the currently working antenna is the second antenna.
[0146] The first performance parameter may include at least one of the following: RSRP (Reference Singal Receiving Power), RSRQ (Reference Signal Receiving Quality), RSSI (Reference Singal Strength Indicator), and SINR (Signal to Interference plus Noise Ratio).
[0147] The second performance parameter may include at least one of the following: RSRP, RSRQ, RSSI, and SINR.
[0148] Here, the first performance parameter corresponds to the second performance parameter. For example, when the first performance parameter includes RSRP, the second performance parameter also includes RSRP.
[0149] Afterwards, based on the first performance parameter and the second performance parameter, it is determined whether to execute the switching instruction.
[0150] As an example, by comparing the first performance parameter and the second performance parameter, if the antenna performance when the first antenna is used as a working antenna is better than the antenna performance when the second antenna is used as a working antenna, and the current working antenna is the first antenna, there is no need to execute a switching instruction; if the antenna performance when the first antenna is used as a working antenna is better than the antenna performance when the second antenna is used as a working antenna, and the current working antenna is the second antenna, it is necessary to execute a switching instruction; if the antenna performance when the second antenna is used as a working antenna is better than the antenna performance when the first antenna is used as a working antenna, and the current working antenna is the first antenna, it is necessary to execute a switching instruction; if the antenna performance when the second antenna is used as a working antenna is better than the antenna performance when the first antenna is used as a working antenna, and the current working antenna is the second antenna, there is no need to execute a switching instruction.
[0151] The antenna switching circuit of this embodiment determines whether the first antenna is connected to the third end of the connection module by detecting the on-off state of the target resistor and the second end of the connection module. By setting the target resistor, the electromagnetic signal energy of the antenna can be reduced from being discharged to the ground terminal, thereby reducing the impact on the RF indicators of the first antenna. In addition, there are no requirements for the model of the first antenna. It can automatically detect whether the antenna is connected, and then automatically determine whether the current working antenna needs to be switched, and automatically switch the antenna when switching is required.
[0152] Reference Figure 6 FIG. 4 shows a schematic diagram of the structure of a second antenna switching circuit provided by an embodiment of the present invention. Figure 6As shown, the antenna switching circuit includes an antenna detection circuit 100, a switching module 200 (also known as RFSWITCH in the figure), a control module 400 (also known as CPU in the figure) and a second matching circuit 300 (also known as built-in antenna matching in the figure).
[0153] The antenna detection circuit 100 is the above Figure 1 Any antenna detection circuit described above.
[0154] Specifically, the antenna detection circuit 100 includes a connection module 20 (also known as the SMA in the figure), a first matching circuit 10 (also known as the external antenna skin matching in the figure), an antenna detection module 30 (also known as the ADC detection in the figure) and a target resistor 40 (also known as the resistor R in the figure).
[0155] A first end of the connection module 20 is connected to the first matching circuit 10 and a first end of the target resistor 40 .
[0156] The second end of the connecting module 20 is connected to the antenna detecting module 30 .
[0157] The third end of the connecting module 20 is used to connect to the first antenna 50 (ie, the external antenna in the figure).
[0158] The connection module may include three ports, which are respectively denoted as a first end, a second end and a third end.
[0159] The first matching circuit 10 is a matching circuit for the first antenna 50. The first matching circuit 10 can be used to ensure that the first antenna 50 works normally. For example, the first matching circuit 10 can be used to perform impedance matching so as to better adjust the radio frequency performance of the first antenna 50.
[0160] The first antenna may be any external antenna, and the first antenna may be connected to the connection module 20 to be connected to the third end of the connection module; or the first antenna may be unplugged from the connection module 20 to be disconnected from the third end of the connection module.
[0161] A second end of the target resistor 40 is connected to the ground.
[0162] Optionally, the resistance of the target resistor 40 may be above several hundred ohms.
[0163] When the first antenna 50 is connected to the third end of the connection module 20 , the first end and the second end of the connection module 20 are disconnected. Also, when the first antenna 50 is connected to the third end of the connection module 20 , the first antenna 50 is connected to the first matching circuit 10 .
[0164] When the first antenna 50 is not connected to the third end of the connection module 20 , the first end and the second end of the connection module 20 are connected.
[0165] The antenna detection module 30 is used to determine whether the first antenna 50 is connected to the third end of the connection module 20 by detecting the on / off state of the target resistor 40 and the second end of the connection module 20 .
[0166] The antenna detection module 30 may be composed of a power supply, a voltage-dividing resistor, etc. The antenna detection module 30 and the target resistor 40 are connected in parallel to generate a detection voltage U1. When the target resistor 40 is disconnected, the antenna detection module 30 generates a detection voltage U2.
[0167] The first end of the switching module 200 is connected to the first matching circuit 10 in the antenna detection circuit 100 , the second end is connected to the second matching circuit 300 , and the third end is connected to the control module 400 .
[0168] The second matching circuit 300 is connected to the second antenna 500 , and the second matching circuit 300 is a matching circuit for the second antenna 500 .
[0169] The control module 400 is also connected to the antenna detection module 30 in the antenna detection circuit 100 .
[0170] The control module 400 is used to determine whether to execute a switching instruction; wherein the switching instruction is used to: switch the current working antenna from the first antenna 50 to the second antenna 500, or, switch the current working antenna from the second antenna 500 to the first antenna 50; when it is determined to execute the switching instruction, a control signal is sent to the switching module 200, wherein the control signal is used to instruct the execution of the switching instruction.
[0171] The switching module 200 is configured to execute the switching instruction upon receiving the control signal.
[0172] The second antenna 500 includes a built-in antenna.
[0173] The control module 400 is used to: obtain a first performance parameter and a second performance parameter. The first performance parameter is a performance parameter of the first antenna when the current working antenna is the first antenna, and the second performance parameter is a performance parameter of the second antenna when the current working antenna is the second antenna. Based on the first performance parameter and the second performance parameter, determine whether to execute the switching instruction.
[0174] It should be noted that, in addition to the contents recorded above, this embodiment may also include the technical features described in the above embodiments, so as to achieve the technical effects of the antenna switching circuit shown above. Please refer to the above description for details. For the sake of brevity, it will not be repeated here.
[0175] The following is an illustrative description of the embodiments of the present application, but it should be noted that the embodiments of the present application may have the features described below, but the following description does not constitute a limitation on the scope of protection of the embodiments of the present application.
[0176] like Figure 6 As shown, the antenna switching circuit includes a dual-channel SMA connector (i.e., the above-mentioned connection module 20), an ADC (analog-to-digital converter) detection circuit (i.e., the above-mentioned antenna detection module 30), a detection resistor R (i.e., the above-mentioned target resistor 40), a DC blocking capacitor C, an isolation inductor L, a radio frequency switching switch (i.e., the above-mentioned switching module 200), a built-in antenna (i.e., the above-mentioned second antenna 500) and a matching circuit (i.e., the above-mentioned second matching circuit 300), an external antenna (i.e., the above-mentioned first antenna 50) and a matching circuit (i.e., the above-mentioned first matching circuit 10), a main control CPU (i.e., the above-mentioned control module 400), etc.
[0177] Here, a dual-channel SMA connector is used, with a total of three RF ports: RFIN (i.e., the first end or the second end of the above-mentioned connection module 20), RFOUT (i.e., the second end or the first end of the above-mentioned connection module 20), and an external antenna interface (i.e., the third end of the above-mentioned connection module 20). The RFIN and RFOUT of the SMA connector are connected by default. When the external antenna is connected, RFIN and RFOUT are disconnected. RFIN is connected to the matching circuit of the external antenna, the other end of the matching circuit is connected to the RF switching switch RFSWITCH, and RFOUT is connected to the ADC detection circuit. A DC blocking capacitor C is designed in front of the RF matching circuit, and an isolation inductor L is designed in front of the ADC circuit to protect the RF matching circuit and the ADC detection circuit respectively. The RFIN and RFOUT of the SMA can also be used interchangeably.
[0178] A grounded detection resistor R is designed at the RFIN port of the SMA connector. Using a detection resistor R of more than several hundred ohms usually does not affect the RF indicators. Figure 3 and Figure 4 As shown in the figure, when the SMA connector is not connected to the external antenna, RFIN and RFOUT are connected, and the detection resistor R is connected in parallel to the ADC detection circuit to generate a detection voltage U1; when the SMA connector is connected to the external antenna, RFIN and RFOUT are disconnected, the external antenna will be connected to the DC blocking capacitor C and the external antenna matching circuit, and connected to the channel 2 of RFSWICTH. At this time, the detection resistor R is disconnected from the ADC circuit to generate another detection voltage U2.
[0179] Here, before performing antenna detection, the voltage 1 of the second end of the second resistor R2 when the external antenna is connected can be detected. And the voltage 2 of the second end of the second resistor R2 when the external antenna is not connected can be detected. Therefore, during the antenna detection process, the obtained voltage can be compared with the above voltage 1 and voltage 2 to determine whether the external antenna is currently connected.
[0180] When no external antenna is connected, RFIN and RFOUT of the SMA connector are connected, and the ADC detection circuit is incorporated into the RF path of RFIN. At this time, the RF switch RF SWITCH uses the channel1 built-in antenna to work; when the SMA is connected to the external antenna, RFIN and RFOUT are disconnected, and the ADC circuit and the RFIN RF path of the external antenna are disconnected. When the RF switch RF SWITCH switches to use the channel2 external antenna, the ADC circuit will not affect the RF indicators because it is disconnected.
[0181] In addition, the RF switch RF SWITCH can be a two-channel or multi-channel device. In this solution, RF SWITCH uses two channels, channel 1 and channel 2 are connected to the internal antenna and the external antenna respectively. The device is connected to the internal antenna by default. The antenna channel can be switched by controlling the CTRL interface of RF SWITCH. If a multi-channel RF switch is used and multiple RF channels are connected, the switching of multiple antennas can be controlled.
[0182] The built-in antenna part includes the built-in antenna and its matching network. The built-in antenna can be in any form, such as a PCB antenna, a bracket antenna, etc. Antenna matching is composed of passive components such as resistors, capacitors, and inductors.
[0183] The external antenna matching consists of passive components such as resistors, capacitors and inductors, which are used to optimize RF indicators.
[0184] The ADC detection circuit is composed of a power supply, a voltage-dividing resistor, etc. The ADC detection circuit and the detection resistor R are connected in parallel to generate a detection voltage U1. When the detection resistor R is disconnected, the ADC circuit generates a detection voltage U2. The power supply VPH_PWR, the voltage-dividing resistors R1 and R2 voltage-dividing scheme adopted in the present invention is only one implementation method, and other schemes for realizing detection by turning the detection resistor R on and off may also be adopted.
[0185] The main control CPU mainly realizes the functions of detecting the access of external antennas, controlling the switching of RF SWITCH, comparing the performance of multiple antennas, and selecting the best antenna to work according to the comparison results. The main control CPU can obtain wireless performance indicators such as RSRP, RSRQ, RSSI, SINR, etc., and compare these indicators of internal and external antennas respectively. The main control CPU can include at least ADC detection interface, GPIO (General Purpose Input Output) control interface, and CPU internal performance sampling and comparison function modules.
[0186] The GPIO control interface can be used for input and output of electrical signals in a circuit to facilitate control of circuit components.
[0187] like Figure 7 As shown in the figure, when the SMA connector is not inserted into the external antenna, the ADC circuit and the detection resistor R generate a detection voltage U1. The main control CPU detects U1 and controls the RF SWITCH switch to the internal antenna channel by default, and the device uses the internal antenna to work. When the SMA connector is inserted into the external antenna, RFIN and RFOUT are disconnected, and the main control CPU detects the detection voltage U2. The CPU reads the performance parameter A1 (such as RSRP) of the internal antenna at this time. The main control CPU controls the RF SWITCH switch to switch to the external antenna channel through GPIO, and reads the performance parameter A2 (such as RSRP) of the external antenna. The main control CPU compares the performance parameters A1 and A2: when A1>A2, the main control CPU switches the RF SWITCH switch back to the internal antenna; when A1≤A2, the main control CPU keeps the RF SWITCH switch on the external antenna. When the external antenna is inserted, the main control CPU can be set to periodically (such as 1 day) detect and compare the performance of the internal and external antennas when the service is idle, and switch to the antenna with better performance. When the device removes the external antenna, RFIN and RFOUT are connected, the main control CPU detects the detection voltage U1, and the CPU controls the RF SWITCH to switch to the internal antenna.
[0188] It should be noted that, in addition to the contents recorded above, this embodiment may also include the technical features described in the above embodiments, so as to achieve the technical effects of the antenna detection circuit shown above. Please refer to the above description for details. For the sake of brevity, it will not be repeated here.
[0189] Therefore, when the external antenna is connected, the detection circuit automatically detects the connection event and reports it to the main control CPU. The CPU controls the RF switches of the internal and external antennas to switch, and compares the performance of the internal and external antennas respectively, and automatically selects the antenna with better performance according to the comparison results. The above antenna detection scheme has no requirements for the external antenna model, and does not require the customization of a special external antenna. It can automatically detect the connection of the external antenna, and automatically compare the performance of the internal and external antennas, and automatically select the internal or external antenna with better performance, so that the device can perform better. In addition, the detection circuit is separated from the RF path and does not affect the RF indicators.
[0190] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention is shown in FIG. Figure 8 As shown, the electronic device 10000 includes any one of the above-mentioned antenna detection circuits 100 .
[0191] The above-mentioned electronic devices may be various wireless communication devices, such as CPE, routers, wireless communication devices, etc.
[0192] It should be noted that, in addition to the contents recorded above, this embodiment may also include the technical features described in the above embodiments, so as to achieve the technical effects of the antenna detection circuit shown above. Please refer to the above description for details. For the sake of brevity, it will not be repeated here.
[0193] According to the electronic device of the embodiment of the present invention, the antenna detection circuit in the above embodiment is adopted. By setting the target resistance, the electromagnetic signal energy of the antenna can be reduced from being discharged to the ground terminal, thereby reducing the impact on the RF indicators of the first antenna, and reducing the structural restrictions on the antenna, thereby expanding the applicable scenarios of the antenna detection circuit.
[0194] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention is shown in FIG. Figure 8 As shown, the electronic device 10000 includes any one of the antenna switching circuits 1000 described above.
[0195] The above-mentioned electronic devices may be various wireless communication devices, such as CPE, routers, wireless communication devices, etc.
[0196] It should be noted that, in addition to the contents recorded above, this embodiment may also include the technical features described in the above embodiments, so as to achieve the technical effects of the antenna detection circuit shown above. Please refer to the above description for details. For the sake of brevity, it will not be repeated here.
[0197] According to the electronic device of the embodiment of the present invention, the antenna detection circuit in the above embodiment is adopted. By setting the target resistance, the electromagnetic signal energy of the antenna can be reduced from being discharged to the ground terminal, thereby reducing the impact on the RF indicators of the first antenna, and reducing the structural restrictions on the antenna, thereby expanding the applicable scenarios of the antenna detection circuit.
[0198] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0199] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0200] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. An antenna detection circuit, characterized in that: The antenna detection circuit includes a connection module, a first matching circuit, an antenna detection module and a target resistor, wherein: The first end of the connection module is connected to the first matching circuit and the first end of the target resistor; The second end of the connection module is connected to the antenna detection module; The third end of the connection module is used to connect to the first antenna; When the first antenna is connected to the third end of the connection module, the first end and the second end of the connection module are disconnected, and the first antenna is connected to the first matching circuit; When the first antenna is not connected to the third end of the connection module, the first end and the second end of the connection module are connected; The first matching circuit is a matching circuit for the first antenna; The second end of the target resistor is connected to the ground end; The antenna detection module is used to determine whether the first antenna is connected to the third end of the connection module by detecting the on-off state of the target resistor and the second end of the connection module.
2. The antenna detection circuit according to claim 1, characterized in that: The antenna detection module includes a first resistor and a second resistor; The first end of the first resistor is connected to a power supply; The second end of the first resistor is connected to the second end of the connection module and the first end of the second resistor; The antenna detection module is used to determine the on-off state of the target resistor and the second end of the connection module based on the output voltage of the second end of the second resistor.
3. The antenna detection circuit according to claim 1, characterized in that: The connection module includes a radio frequency connector.
4. The antenna detection circuit according to claim 1, characterized in that: The first end of the connecting module is connected to the first matching circuit via a capacitor.
5. The antenna detection circuit according to claim 1, characterized in that: The connection module is connected to the antenna detection module via an inductor.
6. The antenna detection circuit according to any one of claims 1 to 5, characterized in that: The first antenna is an external antenna composed of passive components.
7. An antenna switching circuit, characterized in that: The antenna switching circuit includes an antenna detection circuit, a switching module, a control module and a second matching circuit; The antenna detection circuit is the antenna detection circuit as claimed in any one of claims 1 to 6; The first end of the switching module is connected to the first matching circuit in the antenna detection circuit, the second end is connected to the second matching circuit, and the third end is connected to the control module; The second matching circuit is connected to the second antenna, and the second matching circuit is a matching circuit of the second antenna; The control module is also connected to the antenna detection module in the antenna detection circuit; The control module is used to determine whether to execute the switching instruction; wherein the switching instruction is used to: switch the current working antenna from the first antenna to the second antenna, or switch the current working antenna from the second antenna to the first antenna; in the case of determining to execute the switching instruction, sending a control signal to the switching module, wherein the control signal is used to instruct to execute the switching instruction; The switching module is used to execute the switching instruction when receiving the control signal.
8. The antenna switching circuit according to claim 7, characterized in that: The second antenna includes a built-in antenna.
9. The antenna switching circuit according to claim 7 or 8, characterized in that: The control module is used for: Acquire a first performance parameter and a second performance parameter, wherein the first performance parameter is a performance parameter of the first antenna when the currently working antenna is the first antenna, and the second performance parameter is a performance parameter of the second antenna when the currently working antenna is the second antenna; Based on the first performance parameter and the second performance parameter, it is determined whether to execute the switching instruction.
10. An electronic device, characterized in that: The electronic device comprises the antenna detection circuit according to any one of claims 1 to 6; or The electronic device comprises the antenna switching circuit as claimed in any one of claims 7 to 9.
Citation Information
Cited By
Electronic equipment and system
CN120263218A
An electronic device and system
CN120263218B
