CN111854805B - Detection circuit and method for external antenna - Google Patents
Detection circuit and method for external antenna Download PDFInfo
- Publication number
- CN111854805B CN111854805B CN202010639494.3A CN202010639494A CN111854805B CN 111854805 B CN111854805 B CN 111854805B CN 202010639494 A CN202010639494 A CN 202010639494A CN 111854805 B CN111854805 B CN 111854805B
- Authority
- CN
- China
- Prior art keywords
- antenna
- signal
- external antenna
- power
- error rate
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 171
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000002159 abnormal effect Effects 0.000 claims abstract description 53
- 230000005540 biological transmission Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000001276 controlling effect Effects 0.000 description 3
- 230000002596 correlated effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000000875 corresponding effect Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D5/00—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
- G01D5/12—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Electromagnetism (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Physics & Mathematics (AREA)
- Transmitters (AREA)
- Transceivers (AREA)
Abstract
The present disclosure provides a detection circuit and method for an external antenna, the circuit includes: the system comprises a network receiving device NAD, a built-in antenna, an antenna falling detection unit and a switch unit; the first end of the NAD is connected with the first end of the antenna falling detection unit, the second end of the antenna falling detection unit is connected with the built-in antenna, and the third end of the antenna falling detection unit is connected with the external antenna through the switch unit. The circuit can generate a first signal with preset power according to an antenna detection instruction; sending the first signal to an external antenna through an internal antenna; receiving a second signal fed back by the external antenna; acquiring the error rates of the second signal and the first signal, and determining whether the error rate is greater than or equal to a preset error rate threshold value; if the error rate is greater than or equal to the preset error rate threshold value, whether the external antenna is in the abnormal performance state or not is determined according to the power of the first signal, and the problem that whether the external antenna is in the abnormal performance state or not cannot be detected in the prior art can be solved.
Description
Technical Field
The present disclosure relates to the field of radio frequency technologies, and in particular, to a detection circuit and a detection method for an external antenna.
Background
With the development of the car networking technology, communication between a vehicle-mounted terminal and a Telematics Service Provider (TSP) server is more and more frequent. In order to ensure that the vehicle-mounted terminal can normally communicate with the TSP server, whether an external antenna of the vehicle-mounted terminal can normally work or not needs to be detected.
In the prior art, a detection circuit of an external antenna is usually added to a vehicle-mounted terminal. Specifically, as shown in fig. 1, a pull-down resistor R4 is added to an external antenna, for example, a 4G antenna, and if the external antenna is plugged in, that is, the external antenna is not dropped, the voltage of ANT _ ADC is pulled low. If the external antenna is not inserted, that is, the external antenna is dropped, the voltage of the ANT _ ADC is pulled up. And judging whether the external antenna is inserted or not by detecting the voltage of the ANT _ ADC.
However, the detection circuit of the external antenna in the prior art can only detect whether the external antenna of the vehicle-mounted terminal is inserted, but cannot detect whether the external antenna of the vehicle-mounted terminal is in a performance abnormal state under the condition that the external antenna of the vehicle-mounted terminal is inserted.
Disclosure of Invention
The embodiment of the disclosure provides a detection circuit and a detection method for an external antenna, which can solve the problem that the detection circuit for the external antenna in the prior art cannot detect whether the external antenna of a vehicle-mounted terminal is in an abnormal performance state. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a detection circuit for an external antenna, including:
the system comprises a network receiving device NAD, a built-in antenna, an antenna falling detection unit and a switch unit; wherein,
the first end of the NAD is connected with the first end of the antenna falling detection unit, the second end of the antenna falling detection unit is connected with the built-in antenna, and the third end of the antenna falling detection unit is connected with the external antenna through the switch unit.
According to the external antenna detection circuit provided by the embodiment of the disclosure, the NAD can acquire an antenna detection instruction, control the first antenna falling detection circuit to output a first signal according to the antenna detection instruction, and send the first signal to the external antenna through the internal antenna; the method comprises the steps of receiving a second signal sent by a second antenna falling detection circuit, obtaining the error rate of the second signal and a first signal, and if the error rate is larger than or equal to a preset error rate threshold value, determining whether the external antenna is in a performance abnormal state according to the power of the first signal, so that whether the external antenna is inserted or not can be detected, and whether the external antenna is in the performance abnormal state or not can be detected under the condition that the external antenna is inserted, and the problem that whether the external antenna of the vehicle-mounted terminal is in the performance abnormal state or not can not be detected by a detection circuit of the external antenna in the prior art is solved.
In one embodiment, the switching unit includes a first switch and at least one second switch; wherein,
the first switch is a single-pole multi-throw switch, the first switch comprises a first end and at least one second end, the first end of the first switch is connected with the third end of the antenna falling detection unit, each port of the second end of the first switch is connected with one end of each second switch, and the other end of each second switch is connected with the external antenna.
Through controlling the first switch and the second switch, the NAD can control the antenna falling detection unit to be connected with the external antenna and the internal antenna, so that the internal antenna can send a first signal to the external antenna, and the antenna falling detection unit can receive a second signal fed back by the external antenna.
In one embodiment, the antenna dropout detection unit comprises a first antenna dropout detection circuit and a second antenna dropout detection circuit; wherein,
one end of the first antenna falling detection circuit is connected with the first end of the NAD, and the other end of the first antenna falling detection circuit is connected with the built-in antenna through a third switch;
one end of the second antenna falling detection circuit is connected with the second end of the NAD, and the other end of the second antenna falling detection circuit is connected with the external antenna through the switch unit.
In one embodiment, the first antenna dropout detection circuit is a Wi-Fi circuit and the second antenna dropout detection circuit is a Wi-Fi circuit.
In one embodiment, the circuit further comprises: a microcontroller;
one end of the microcontroller is connected with the third end of the NAD.
By connecting the microcontroller with the NAD, the NAD can receive the antenna detection instruction sent by the microcontroller, execute the antenna detection instruction, acquire the detection result of the external antenna and send the detection result to the microcontroller.
According to a second aspect of the embodiments of the present disclosure, there is provided a method for detecting an external antenna, which is applied to the circuit of the first aspect, the method includes:
acquiring an antenna detection instruction, and generating a first signal with preset power according to the antenna detection instruction;
executing a preset step, wherein the preset step comprises the following steps:
sending the first signal to an external antenna through an internal antenna;
receiving a second signal fed back by the external antenna;
acquiring the error rates of the second signal and the first signal, and determining whether the error rate is greater than or equal to a preset error rate threshold value;
after the presetting step is executed, if the error rate is larger than or equal to the preset error rate threshold value, whether the external antenna is in a performance abnormal state or not is determined according to the power of the first signal.
According to the detection method of the external antenna, which is provided by the embodiment of the disclosure, an antenna detection instruction can be obtained, and a first signal with preset power is generated according to the antenna detection instruction; executing a preset step, wherein the preset step comprises the following steps: sending the first signal to an external antenna through an internal antenna; receiving a second signal fed back by the external antenna; acquiring the error rates of the second signal and the first signal, and determining whether the error rate is greater than or equal to a preset error rate threshold value; after the preset step is executed, if the error rate is greater than or equal to the preset error rate threshold, whether the external antenna is in the abnormal performance state is determined according to the power of the first signal, the function of detecting whether the external antenna is in the abnormal performance state can be realized, and the problem that whether the external antenna of the vehicle-mounted terminal is in the abnormal performance state cannot be detected by a detection circuit of the external antenna in the prior art is solved.
In one embodiment, the determining whether the external antenna is in a performance abnormal state according to the power of the first signal includes:
if the power of the first signal is greater than or equal to a first power threshold, determining that the external antenna is open-circuited;
if the power of the first signal is smaller than the first power threshold and larger than or equal to a second power threshold, determining that the external antenna is in place and in a performance abnormal state, wherein the first power threshold is larger than the second power threshold;
and if the power of the first signal is smaller than the second power threshold, determining that the external antenna is in place and in a normal performance state.
By determining the power of the first signal and the magnitude relation between the first power threshold and the second power threshold, whether the external antenna is inserted or not can be detected, and whether the external antenna is in a performance abnormal state or not can be detected under the condition that the external antenna is inserted.
In one embodiment, the method further comprises:
if the error rate is smaller than a preset error rate threshold value, reducing the power of the first signal by a preset step length;
and after the power of the first signal is reduced by a preset step length, the preset step is executed again.
In one embodiment, the method further comprises:
and sending the detection result of the external antenna to a microcontroller.
By sending the detection result of the external antenna to the microcontroller, the microcontroller can send a prompt message to a user according to the detection result, and user experience is improved.
In one embodiment, the receiving the second signal fed back by the external antenna includes:
receiving at least one third signal fed back by the external antenna;
and determining a second signal with the minimum error rate with the first signal from the third signal.
By determining the second signal having the smallest error rate than the first signal from the third signals, the useful signal can be selected.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic structural diagram of a detection circuit of an external antenna provided in the prior art;
fig. 2 is a first schematic structural diagram of a detection circuit of an external antenna according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram ii of an external antenna detection circuit according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a method for detecting an external antenna according to an embodiment of the present disclosure.
Description of the reference numerals
20-detection circuit of external antenna; 21-NAD; 22-internal antenna; 23-an antenna dropout detection unit; 231-a first antenna dropout detection circuit; 232-a second antenna drop detection circuit; 24-a switching unit; 241-a first switch; 242-a second switch; 25-a microcontroller; 26-a third switch; 27-radio frequency connector.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 2 is a first schematic structural diagram of a detection circuit of an external antenna according to an embodiment of the present disclosure. As shown in fig. 2, the circuit 20 includes:
a Network Access Devices (NADs) 21, a built-in antenna 22, an antenna fall-off detection unit 23, and a switch unit 24; wherein,
the first end of the NAD 21 is connected to the first end of the antenna-off detection unit 23, the second end of the antenna-off detection unit 24 is connected to the internal antenna 22, and the third end of the antenna-off detection unit 23 is connected to the external antenna through the switch unit 22.
Illustratively, the antenna-falling-off detecting unit 23 may be a Wireless-Fidelity (Wi-Fi) module circuit, a bluetooth low energy module circuit, or the like. The built-in antenna 22 may be an LTE built-in antenna, a Wi-Fi built-in antenna, a bluetooth built-in antenna, a low power bluetooth built-in antenna, or the like. Preferably, in this embodiment, the antenna falling-off detection unit 23 is a Wi-Fi circuit, and the built-in antenna 22 is a Wi-Fi and/or bluetooth low energy built-in antenna.
Alternatively, the NAD 21 may be disposed inside the vehicle-mounted terminal, or may be disposed in other terminal equipment, that is, the detection circuit of the external antenna may be applied to the vehicle-mounted terminal, or may be applied to other terminal equipment, and this embodiment is not limited in this respect.
In this embodiment, the NAD 21 is configured to obtain an antenna detection instruction, and control the antenna-off detection unit 23 to output a first signal with preset power according to the antenna detection instruction, so that the first signal is transmitted from the antenna-off detection unit 23 to the internal antenna 22, and the first signal is sent to the external antenna through the internal antenna 22. The external antenna may be an LTE main antenna, a low power consumption bluetooth antenna, a Global Navigation Satellite System (GNSS) antenna, an LTE sub-antenna, or other antennas, and this embodiment is not limited herein.
Further, after the antenna-falling-off detection unit 23 is controlled to output the first signal with the preset power, the NAD 21 is further configured to control the switch unit 24 to be turned on, so that the antenna-falling-off detection unit 23 can receive the second signal fed back by the external antenna and send the second signal to the NAD 21.
Due to the fact that noise exists in the transmission process, the receiving capacity of the external antenna is limited, space loss exists in the first signal in the transmission process, and the like, the situation of error codes can occur after the external antenna receives the first signal. Therefore, the first signal received by the external antenna and the first signal output by the antenna-off detection unit 23 may not be identical. Here, the second signal fed back by the external antenna is used as the first signal received by the external antenna.
After receiving the second signal sent by the antenna drop detection unit 23, the NAD 21 obtains the error rate of the second signal and the first signal, and if the error rate is greater than or equal to a preset error rate threshold, determines whether the external antenna is in a performance abnormal state according to the power of the first signal.
If the NAD 21 determines that the error rate is smaller than the preset error rate threshold, the antenna falling detection unit 23 is controlled to reduce the power of the output first signal by a preset step length. After the power of the first signal is reduced by the preset step length, the second signal sent by the antenna drop detection unit 23 is received again, and whether the error rate of the second signal and the first signal is greater than or equal to the preset error rate threshold value is determined. And if the error rate is greater than or equal to a preset error rate threshold, determining whether the external antenna is in a performance abnormal state according to the power of the first signal. If the error rate is smaller than the preset error rate threshold, the steps are executed in a circulating mode until the error rate is larger than or equal to the preset error rate threshold, the steps are executed in a circulating mode, and whether the external antenna is in a performance abnormal state or not is determined according to the power of the first signal.
Illustratively, the predetermined bit error rate threshold may be 5% to 9%. Preferably, in this embodiment, the preset bit error rate threshold is 8%.
According to the external antenna detection circuit provided by the embodiment of the disclosure, the NAD can control the antenna falling detection unit to output a first signal, and the first signal is sent to the external antenna through the internal antenna; the method comprises the steps of receiving a second signal sent by an antenna falling detection unit, obtaining the error rate of the second signal and a first signal, and if the error rate is larger than or equal to a preset error rate threshold value, determining whether the external antenna is in a performance abnormal state according to the power of the first signal, so that the function of detecting whether the external antenna is in the performance abnormal state can be realized, and the problem that a detection circuit of the external antenna in the prior art cannot detect whether the external antenna of the vehicle-mounted terminal is in the performance abnormal state is solved.
The external antenna detection circuit provided in the embodiment of the present disclosure is further described in detail with reference to the embodiment of fig. 3. Fig. 3 is a schematic structural diagram ii of a detection circuit of an external antenna according to an embodiment of the present disclosure. As shown in fig. 3, the circuit 20 further includes: a microcontroller 25; wherein,
one terminal of the microcontroller 25 is connected to the third terminal of the NAD 21. Optionally, the microcontroller 25 communicates with the NAD 21 by means of a Serial Peripheral Interface (SPI) or a Universal Asynchronous Receiver/Transmitter (UART). The microcontroller 25 and the NAD 21 may also communicate with each other by other communication methods, which is not limited in this embodiment.
Exemplarily, the antenna-falling detection unit 23 includes a first antenna-falling detection circuit 231 and a second antenna-falling detection circuit 232; one end of the first antenna dropout detection circuit 231 is connected to the first end of the NAD 21, and the other end of the first antenna dropout detection circuit 231 is connected to the internal antenna 22 through the third switch 26;
one end of the second antenna falling-off detection circuit 232 is connected with the second end of the NAD 21, and the other end of the second antenna falling-off detection circuit 232 is connected with the external antenna through the switch unit 24. In the present embodiment, the first antenna fall detection circuit 231 is a Wi-Fi circuit, and the second antenna fall detection circuit 232 is a Wi-Fi circuit. For example, the NAD 21 and the first and second antenna dropout detection circuits 231 and 232 may communicate by Secure Digital Input and Output (SDIO). The NAD 21 and the first antenna dropout detection circuit 231 and the second antenna dropout detection circuit 232 may also communicate by using other communication methods, and this embodiment is not limited in this respect.
Optionally, the switching unit 24 comprises a first switch 241 and at least one second switch 242; wherein,
the first switch 241 is a single-pole multi-throw switch, the first switch 241 includes a first end and at least one second end, the first end of the first switch 241 is connected to one end of the second antenna fall-off detection circuit 232, each port of the second end of the first switch 241 is connected to one end of each second switch 242, and the other end of each second switch 242 is connected to an external antenna.
Illustratively, as shown in fig. 3, the switch unit 24 includes four second switches 242 (S1 to S4 in fig. 3), and the first switch 241 (S0 in fig. 3) includes 4 second terminals. Each of the four second terminals of the first switch 241 is connected to one end of each of the 4 second switches 242, and the other ends of the 4 second switches 242 are connected to the respective 4 external antennas through the 4 rf connectors 27. The 4 external antennas are respectively an LTE main antenna, a low-power-consumption Bluetooth antenna, a GNSS antenna and an LTE sub-antenna.
The NAD 21 can sequentially detect the states of the 4 external antennas, and the detection process of each external antenna is the same. The following description will take an LTE main antenna as an example.
The NAD 21 receives the LTE master antenna detection instruction sent by the microcontroller 25, and controls the first antenna fall-off detection circuit 231 to output a first signal of a preset power according to the LTE master antenna detection instruction. Illustratively, the predetermined power is greater than or equal to a first power threshold, which may be-50 to-55 dBm. For example, the predetermined power may be-45 dBm.
After controlling the first antenna-off detection circuit 231 to output the first signal of the preset power, the NAD 21 controls the third switch 26 (S5 in fig. 3) to be connected to the port 1 of S5, so that the first antenna-off detection circuit 231 and the internal antenna 22 are connected, and the first signal can be transmitted to the LTE main antenna through the internal antenna 22.
After the NAD 21 controls the first antenna dropout detection circuit 231 to output the first signal with the preset power, the NAD 21 further controls the second end of the S0 to be connected to the port 1, and controls the port S1 to be connected to the port 1, the second antenna dropout detection circuit 232 is connected to the LTE master antenna, and the second antenna dropout detection circuit 232 can receive at least one third signal fed back by the LTE master antenna. The second antenna drop detection circuit 232 can send at least one third signal to the NAD 21 after receiving the at least one third signal fed back by the LTE host antenna. After receiving the at least one third signal, the NAD 21 determines a second signal from the at least one third signal that is the smallest of the first signal error rates.
Due to the fact that noise exists in the transmission process, the receiving capacity of the LTE main antenna is limited, space loss exists in the first signal in the transmission process, and the like, error codes may occur after the LTE main antenna receives the first signal. Therefore, the first signal received by the LTE main antenna and the first signal output by the antenna-off detection unit 23 may not be identical. In addition, the LTE main antenna may also receive other interference signals around, and therefore, the at least one third signal fed back by the LTE main antenna includes an interference signal and a useful signal (i.e., the first signal received by the LTE main antenna), and therefore, the useful signal needs to be analyzed from the at least one third signal, where the useful signal is a second signal of the at least one third signal that is the smallest error rate with respect to the first signal.
Further, the NAD 21 obtains the error rates of the second signal and the first signal, and determines whether the error rate threshold is greater than or equal to a preset error rate threshold. If so, the NAD 21 determines that the LTE primary antenna is open-circuited and the LTE primary antenna is not inserted.
If the bit error rate threshold is smaller than the preset bit error rate threshold, the NAD 21 controls the first antenna dropout detection circuit 231 to decrease the power of the output first signal by a preset step length. After the power of the first signal is reduced by the preset step length, the second signal sent by the antenna drop detection unit 232 is received again, and whether the error rate of the second signal and the first signal is greater than or equal to the preset error rate threshold value is determined. And if the error rate is greater than or equal to a preset error rate threshold, determining whether the LTE main antenna is in a performance abnormal state according to the power of the first signal. If the error rate is smaller than the preset error rate threshold, the steps are executed in a circulating mode until the error rate is larger than or equal to the preset error rate threshold, the steps are executed in a circulating mode, and whether the LTE main antenna is in a performance abnormal state or not is determined according to the power of the first signal.
How to determine whether the LTE main antenna is in a performance abnormal state according to the power of the first signal is described as follows:
if the power of the first signal is larger than or equal to a first power threshold, determining that the LTE main antenna is open; if the power of the first signal is smaller than the first power threshold and larger than or equal to the second power threshold, determining that the LTE main antenna is in position and in a state with abnormal performance, that is, the LTE main antenna is inserted but in a state with abnormal performance; if the power of the first signal is smaller than the second power threshold, it is determined that the LTE main antenna is in place and in a normal-performance state, that is, the LTE main antenna is inserted and in a normal-performance state. Wherein the first power threshold is greater than the second power threshold.
Illustratively, the second power threshold may be-70 to-80 dBm. Preferably, in this embodiment, the second power threshold is-80 dBm.
Illustratively, the low predetermined step size is positively correlated with the power of the first signal. For example, when the power of the first signal is greater than or equal to a first power threshold, the preset step size may be 6-10 dB; when the power of the first signal is smaller than the first power threshold and larger than or equal to the second power threshold, the preset step length can be 3-5 dB; when the power of the first signal is smaller than the second power threshold, the preset step length may be 1-2 dB.
Further, after determining whether the LTE host antenna is in the performance abnormal state, the NAD 21 sends a detection result of whether the LTE host antenna is in the performance abnormal state to the microcontroller 25, so that the microcontroller 25 sends a prompt message to the user according to the detection result.
For example, if it is determined that the LTE master antenna is in place and in a performance abnormal state, the NAD 21 transmits a detection result that the LTE master antenna is in place and in a performance abnormal state to the microcontroller 25. After receiving the detection result that the LTE main antenna is in the on-position state and in the performance abnormal state, the microcontroller 25 sends a prompt message for replacing the LTE main antenna to the user. For another example, if it is determined that the LTE master antenna is open, the NAD 21 sends the detection result of the LTE master antenna open to the microcontroller 25. After receiving the detection result of the open circuit of the LTE main antenna, the microcontroller 25 sends a prompt message for inserting the LTE main antenna to the user.
The detection process of other external antennas is consistent with that of the LTE main antenna, and this embodiment is not described herein again.
In this embodiment, the external antenna detection circuit periodically and sequentially detects each external antenna in turn. That is, the microcontroller 25 periodically sends an antenna detection command to the NAD 21. Accordingly, the NAD 21 periodically executes the antenna detection command, detects the external antenna, and returns the detection result of the external antenna to the microcontroller 25. When the microcontroller 25 does not send an antenna detection instruction to the NAD 21, each component in the external antenna detection circuit performs its corresponding function.
According to the external antenna detection circuit provided by the embodiment of the disclosure, the NAD can acquire an antenna detection instruction, control the first antenna falling detection circuit to output a first signal according to the antenna detection instruction, and send the first signal to the external antenna through the internal antenna; the method comprises the steps of receiving a second signal sent by a second antenna falling detection circuit, obtaining the error rate of the second signal and a first signal, and if the error rate is larger than or equal to a preset error rate threshold value, determining whether the external antenna is in a performance abnormal state according to the power of the first signal, so that whether the external antenna is inserted or not can be detected, and whether the external antenna is in the performance abnormal state or not can be detected under the condition that the external antenna is inserted, and the problem that whether the external antenna of the vehicle-mounted terminal is in the performance abnormal state or not can not be detected by a detection circuit of the external antenna in the prior art is solved.
How the detection circuit of the external antenna provided in the embodiment of the present disclosure detects the external antenna is described below. Fig. 4 is a detection method of an external antenna according to an embodiment of the present disclosure, which is applied to the detection circuit of the external antenna provided in the embodiments of fig. 2 and fig. 3. As shown in fig. 4, the method includes:
s401, acquiring an antenna detection instruction, and generating a first signal with preset power according to the antenna detection instruction;
s402, the first signal is sent to an external antenna through the internal antenna.
For example, the external antenna may be an LTE host antenna, a low power consumption bluetooth antenna, a GNSS antenna, an LTE sub-antenna, and the like, and this implementation is not limited in this respect.
In the present embodiment, the NAD 21 receives the antenna detection command sent by the microcontroller 25, and controls the first antenna fall-off detection circuit 231 to output the first signal of the preset power according to the antenna detection command. Illustratively, the predetermined power is greater than or a first power threshold, which may be-50 to-55 dBm. For example, the predetermined power may be-45 dBm.
After controlling the first antenna-off detection circuit 231 to output the first signal of the preset power, the NAD 21 controls the third switch 26 (S5 in fig. 3) to be connected to the port 1 of the S5, so that the first antenna-off detection circuit 231 and the internal antenna 22 are connected, and the first signal can be transmitted to the external antenna through the internal antenna 22.
And S403, receiving a second signal fed back by the external antenna.
Illustratively, the NAD 21 controls the second terminal of the S0 to switch on the 1 port, and controls the S1 to switch on the 1 port, the second antenna-off detection circuit 232 is in communication with the external antenna, and the second antenna-off detection circuit 232 is capable of receiving at least one third signal fed back by the external antenna. The second antenna drop detection circuit 232 receives at least one third signal fed back from the external antenna and then sends the at least one third signal to the NAD 21. After receiving the at least one third signal, the NAD 21 determines a second signal from the at least one third signal that is the smallest of the first signal error rates.
Due to the existence of noise in the transmission process, after the external antenna receives the first signal, the situation of error codes may occur. Therefore, the first signal received by the external antenna may not be identical to the first signal output by the first antenna falling-off detection circuit 23. In addition, the external antenna may also receive other signals in the surrounding, and therefore, the second signal which is determined from the at least one third signal and has the smallest error rate with respect to the first signal is used as the first signal received by the external antenna.
Illustratively, the second power threshold may be-70 to-80 dBm. Preferably, in this embodiment, the second power threshold is-80 dBm.
S404, obtaining the error rates of the second signal and the first signal, and determining whether the error rate is greater than or equal to a preset error rate threshold value;
and S405, if so, determining whether the external antenna is in a performance abnormal state according to the power of the first signal.
In one embodiment, the NAD 21 obtains the bit error rate of the second signal and the first signal and determines whether the bit error rate threshold is greater than or equal to a preset bit error rate threshold. If so, the NAD 21 determines that the external antenna is open-circuited and the external antenna is not plugged in.
In another embodiment, if the bit error rate threshold is smaller than the preset bit error rate threshold, the NAD 21 controls the first antenna fall detection circuit 231 to decrease the power of the output first signal by a preset step size. After the power of the first signal is reduced by the preset step length, the second signal sent by the second antenna drop detection circuit 232 is received again, and whether the error rate of the second signal and the first signal is greater than or equal to the preset error rate threshold value is determined. And if the error rate threshold value is greater than or equal to a preset error rate threshold value, determining whether the external antenna is in a performance abnormal state or not according to the power of the first signal. If the error rate is smaller than the preset error rate threshold, the steps from S402 to S404 are executed in a circulating mode until the error rate is larger than or equal to the preset error rate threshold, the steps from S402 to S404 are executed in a terminating and circulating mode, and the NAD 21 detects whether the external antenna is in a performance abnormal state according to the power of the first signal.
How to determine that the external antenna is in the abnormal performance state according to the power of the first signal is described below.
If the power of the first signal is greater than or equal to the first power threshold, determining that the external antenna is open-circuited, namely that the external antenna is not inserted; if the power of the first signal is smaller than the first power threshold and larger than or equal to the second power threshold, determining that the external antenna is in place and in a performance abnormal state, namely the external antenna is inserted but in the performance abnormal state; if the power of the first signal is smaller than the second power threshold, it is determined that the external antenna is in place and in a normal-performance state, that is, the external antenna is inserted and in a normal-performance state. Wherein the first power threshold is greater than the second power threshold.
Illustratively, the predetermined bit error rate threshold may be 5% to 9%. Preferably, in this embodiment, the preset bit error rate threshold is 8%.
Illustratively, the low predetermined step size is positively correlated with the power of the first signal. For example, when the power of the first signal is greater than or equal to a first power threshold, the preset step size may be 6-10 dB; when the power of the first signal is smaller than the first power threshold and larger than or equal to the second power threshold, the preset step length can be 3-5 dB; when the power of the first signal is smaller than the second power threshold, the preset step length may be 1-2 dB.
Further, after determining whether the external antenna is in the performance abnormal state, the NAD 21 sends a detection result of whether the external antenna is in the performance abnormal state to the microcontroller 25, so that the microcontroller 25 sends a prompt message to the user according to the detection result.
For example, if it is determined that the external antenna is in place and in a performance abnormal state, the NAD 21 sends a detection result of the external antenna being in place and in a performance abnormal state to the microcontroller 25. After receiving the detection result of the external antenna in place and in the performance abnormal state, the microcontroller 25 sends a prompt message for replacing the external antenna to the user. For another example, if it is determined that the external antenna is open, the NAD 21 sends the detection result of the open of the external antenna to the microcontroller 25. After receiving the detection result of the external antenna open circuit, the microcontroller 25 sends a prompt message for inserting the external antenna to the user.
According to the detection method of the external antenna, which is provided by the embodiment of the disclosure, an antenna detection instruction can be obtained, and a first signal with preset power is generated according to the antenna detection instruction; executing a presetting step, wherein the presetting step comprises the following steps: sending the first signal to an external antenna through an internal antenna; receiving a second signal fed back by the external antenna; acquiring the error rates of the second signal and the first signal, and determining whether the error rate is greater than or equal to a preset error rate threshold value; after the preset step is executed, if the error rate is greater than or equal to the preset error rate threshold, whether the external antenna is in the abnormal performance state is determined according to the power of the first signal, the function of detecting whether the external antenna is in the abnormal performance state can be realized, and the problem that whether the external antenna of the vehicle-mounted terminal is in the abnormal performance state cannot be detected by a detection circuit for detecting the external antenna in the prior art is solved.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
Claims (9)
1. A detection circuit of an external antenna is characterized by comprising:
the system comprises a network receiving device NAD, a built-in antenna, an antenna falling detection unit and a switch unit; wherein,
the first end of the NAD is connected with the first end of the antenna falling detection unit, the second end of the antenna falling detection unit is connected with the built-in antenna, and the third end of the antenna falling detection unit is connected with the external antenna through the switch unit;
the NAD controls the antenna falling detection unit to output a first signal, and sends the first signal to the external antenna through the internal antenna; the NAD receives a second signal fed back by the external antenna, obtains the error rate of the second signal and the first signal, and determines whether the external antenna is in a performance abnormal state according to the power of the first signal if the error rate is greater than or equal to a preset error rate threshold;
the determining whether the external antenna is in a performance abnormal state according to the power of the first signal comprises:
if the power of the first signal is greater than or equal to a first power threshold, determining that the external antenna is open-circuited;
if the power of the first signal is smaller than the first power threshold and larger than or equal to a second power threshold, determining that the external antenna is in place and in a performance abnormal state, wherein the first power threshold is larger than the second power threshold;
and if the power of the first signal is smaller than the second power threshold, determining that the external antenna is in place and in a normal performance state.
2. The circuit of claim 1, wherein the switching unit comprises a first switch and at least one second switch; wherein,
the first switch is a single-pole multi-throw switch, the first switch comprises a first end and at least one second end, the first end of the first switch is connected with the third end of the antenna falling detection unit, each port of the second end of the first switch is connected with one end of each second switch, and the other end of each second switch is connected with the external antenna.
3. The circuit of claim 1, wherein the antenna-dropout detection unit comprises a first antenna-dropout detection circuit and a second antenna-dropout detection circuit; wherein,
one end of the first antenna falling detection circuit is connected with the first end of the NAD, and the other end of the first antenna falling detection circuit is connected with the built-in antenna through a third switch;
one end of the second antenna falling detection circuit is connected with the second end of the NAD, and the other end of the second antenna falling detection circuit is connected with the external antenna through the switch unit.
4. The circuit of claim 3, wherein the first antenna dropout detection circuit is a Wi-Fi circuit and the second antenna dropout detection circuit is a Wi-Fi circuit.
5. The circuit of any of claims 1 to 4, further comprising: a microcontroller;
one end of the microcontroller is connected with the third end of the NAD.
6. A method for detecting an external antenna is characterized by comprising the following steps:
acquiring an antenna detection instruction, and generating a first signal with preset power according to the antenna detection instruction;
executing a preset step, wherein the preset step comprises the following steps:
sending the first signal to an external antenna through an internal antenna;
receiving a second signal fed back by the external antenna;
acquiring the error rates of the second signal and the first signal, and determining whether the error rate is greater than or equal to a preset error rate threshold value;
after the presetting step is executed, if the error rate is greater than or equal to the preset error rate threshold value, determining whether the external antenna is in a performance abnormal state or not according to the power of the first signal;
the determining whether the external antenna is in a performance abnormal state according to the power of the first signal comprises:
if the power of the first signal is greater than or equal to a first power threshold, determining that the external antenna is open-circuited;
if the power of the first signal is smaller than the first power threshold and larger than or equal to a second power threshold, determining that the external antenna is in place and in a performance abnormal state, wherein the first power threshold is larger than the second power threshold;
and if the power of the first signal is smaller than the second power threshold, determining that the external antenna is in place and in a normal performance state.
7. The method of claim 6, further comprising:
if the error rate is smaller than the preset error rate threshold value, reducing the power of the first signal by a preset step length;
and after the power of the first signal is reduced by the preset step length, the preset step is executed again.
8. The method of claim 6, further comprising:
and sending the detection result of the external antenna to a microcontroller.
9. The method of claim 6, wherein receiving the second signal fed back by the external antenna comprises:
receiving at least one third signal fed back by the external antenna;
and determining a second signal with the minimum error rate with the first signal from the third signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010639494.3A CN111854805B (en) | 2020-07-06 | 2020-07-06 | Detection circuit and method for external antenna |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010639494.3A CN111854805B (en) | 2020-07-06 | 2020-07-06 | Detection circuit and method for external antenna |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111854805A CN111854805A (en) | 2020-10-30 |
CN111854805B true CN111854805B (en) | 2022-05-10 |
Family
ID=73152415
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010639494.3A Active CN111854805B (en) | 2020-07-06 | 2020-07-06 | Detection circuit and method for external antenna |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111854805B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112887950B (en) * | 2021-01-20 | 2023-05-23 | 维沃移动通信有限公司 | Detection circuit, near field communication NFC function control method and electronic equipment |
CN113922833B (en) * | 2021-09-10 | 2023-07-25 | 青岛海信移动通信技术有限公司 | Terminal, radio frequency front end and antenna detection method |
CN116736192A (en) * | 2023-06-19 | 2023-09-12 | 上海麦腾物联网技术有限公司 | Intelligent detection method for built-in antenna of vehicle-mounted Internet of things terminal |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1117630A (en) * | 1997-06-27 | 1999-01-22 | Nec Corp | Transmitter-receiver which antenna fault detection function |
US6114955A (en) * | 1998-06-03 | 2000-09-05 | Interactive Technologies, Inc. | System and method for antenna failure detection |
CN1913402A (en) * | 2005-08-11 | 2007-02-14 | 中兴通讯股份有限公司 | Intelligent method for detecting antenna fault |
CN1968028A (en) * | 2005-11-15 | 2007-05-23 | 宏碁股份有限公司 | Wireless electronic device design and method of use |
CN101741482A (en) * | 2009-12-07 | 2010-06-16 | 深圳市远望谷信息技术股份有限公司 | Method and circuit for detecting antenna, receiving circuit and decoding circuit |
CN105933051A (en) * | 2016-04-06 | 2016-09-07 | 广东欧珀移动通信有限公司 | Antenna system and its performance testing method and device, mobile terminal |
CN107534497A (en) * | 2016-03-31 | 2018-01-02 | 华为技术有限公司 | The fault detection method and fault test set of a kind of external antenna |
CN108965560A (en) * | 2018-07-16 | 2018-12-07 | 厦门美图移动科技有限公司 | Antenna state detection method and terminal equipment |
CN109379147A (en) * | 2018-12-24 | 2019-02-22 | 北京小米移动软件有限公司 | Antenna test method and antenna measurement device |
CN110971259A (en) * | 2019-11-22 | 2020-04-07 | 上海麦腾物联网技术有限公司 | Novel Internet of things antenna and control method thereof |
-
2020
- 2020-07-06 CN CN202010639494.3A patent/CN111854805B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1117630A (en) * | 1997-06-27 | 1999-01-22 | Nec Corp | Transmitter-receiver which antenna fault detection function |
US6114955A (en) * | 1998-06-03 | 2000-09-05 | Interactive Technologies, Inc. | System and method for antenna failure detection |
CN1913402A (en) * | 2005-08-11 | 2007-02-14 | 中兴通讯股份有限公司 | Intelligent method for detecting antenna fault |
CN1968028A (en) * | 2005-11-15 | 2007-05-23 | 宏碁股份有限公司 | Wireless electronic device design and method of use |
CN101741482A (en) * | 2009-12-07 | 2010-06-16 | 深圳市远望谷信息技术股份有限公司 | Method and circuit for detecting antenna, receiving circuit and decoding circuit |
CN107534497A (en) * | 2016-03-31 | 2018-01-02 | 华为技术有限公司 | The fault detection method and fault test set of a kind of external antenna |
CN105933051A (en) * | 2016-04-06 | 2016-09-07 | 广东欧珀移动通信有限公司 | Antenna system and its performance testing method and device, mobile terminal |
CN108965560A (en) * | 2018-07-16 | 2018-12-07 | 厦门美图移动科技有限公司 | Antenna state detection method and terminal equipment |
CN109379147A (en) * | 2018-12-24 | 2019-02-22 | 北京小米移动软件有限公司 | Antenna test method and antenna measurement device |
CN110971259A (en) * | 2019-11-22 | 2020-04-07 | 上海麦腾物联网技术有限公司 | Novel Internet of things antenna and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN111854805A (en) | 2020-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111854805B (en) | Detection circuit and method for external antenna | |
US9860772B2 (en) | Method and apparatus for determining connection relationship between an antenna feeding port of base station and an antenna port | |
EP2453586B1 (en) | Signal reception device and implementing method thereof | |
CN109067447B (en) | Beidou RDSS multi-antenna switching communication method | |
US20180062453A1 (en) | Power transmission device, power reception device, power supply system, and power transmission method | |
JP4221958B2 (en) | Wireless communication system | |
US11139900B2 (en) | Vehicle-to-X communication system | |
CN112532272B (en) | Vehicle-mounted unit antenna control system and control method thereof | |
US7327984B2 (en) | Device and method for measuring receive sensitivity of communication system including receive-only path | |
EP0213801A2 (en) | Radio receiver for carrying out self diagnosis without interference | |
KR100386595B1 (en) | communication apparatus and method for supporting to Carrier Sense Multiple Access/Collision Detection | |
US10728945B2 (en) | Method and apparatus for transmitting signals with transmitting activity detection | |
CN115442217B (en) | A satellite modem 1:1 Hot backup switching device | |
CN113922833B (en) | Terminal, radio frequency front end and antenna detection method | |
CN111131955A (en) | Communication method of wearable device and charging device, wearable device and system | |
JP3234574B2 (en) | Base station system | |
JP3371938B2 (en) | Wireless communication system | |
CN110391823B (en) | Communication circuit, control method thereof, and device having communication function | |
JP6507758B2 (en) | Communication module and communication control method | |
CN113765533A (en) | Antenna detection method and device, electronic equipment and storage medium | |
US9853710B2 (en) | Relay apparatus specifying frequency offset based on connection history and method thereof | |
CN112583454A (en) | Multi-antenna automatic selection system and method | |
KR20060049719A (en) | Apparatus and method for external antenna recognition of mobile terminal using digital multimedia broadcasting service | |
JP2020057947A (en) | In-vehicle communication device | |
JPH1141146A (en) | Radio communication equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |