Method for realizing V2X internal and external antenna switching based on GPS external antenna input detection

Through GPS external antenna input detection and RF switch control, automatic switching of V2X internal and external antennas is realized, which solves the problems of inconvenient replacement of internal and external antennas and limited communication performance, improves flexibility and reliability, and ensures stable communication.

CN118943735APending Publication Date: 2024-11-12浙江海康智联科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411125685.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the prior art, the equipment needs to be disassembled when replacing the internal and external antennas, which leads to inconvenience. The built-in antenna is affected by the occlusion environment and the communication performance is degraded, making it unable to compatible with antenna requirements in different scenarios.

Method used

Through GPS external antenna input detection, the AD pin and MCU_CTRL pin of the microcontroller are used to detect the plug-in status of the external antenna and control the radio frequency switch to realize automatic switching of the internal and external antennas in V2X, ensuring stronger signals are used when there is an external antenna. Receive capability, switch to the built-in antenna when the external antenna is unavailable.

Benefits of technology

Automatic switching of antennas is realized, flexibility and reliability are improved, ensuring stable positioning and communication services are provided at any time, and meeting antenna needs in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118943735A_ABST
    Figure CN118943735A_ABST
Patent Text Reader

Abstract

The invention discloses a V2X internal and external antenna switching method based on GPS external antenna input detection, and the method comprises the steps: enabling the current to be consumed when an internal amplification and filter circuit of a GPS external antenna works normally, enabling a GPS ANTAD voltage to change at the moment, enabling a pin to be input to an AD pin of a single-chip microcomputer, and enabling the AD pin to detect the voltage change, thereby indicating that the external antenna is inserted. After the insertion of the external antenna is detected, the single chip microcomputer controls the radio frequency switch to switch a GPS antenna signal and a V2X main and auxiliary antenna signal to the MINIFACRA seat through the MCU CTRL pin, so that the automatic switching of the GPS and V2X main and auxiliary antennas is realized; moreover, through the insertion detection of the GPS external antenna, the V2X internal and external antennas and the GPS internal and external antennas can be automatically switched, thereby achieving the automatic switching of the antennas, and meeting the demands of different scenes for the antennas.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of internal and external antenna switching, and more specifically, it relates to a method for implementing V2X internal and external antenna switching based on GPS external antenna input detection. Background Art

[0002] The built-in antenna is installed inside the device, which has the advantages of overall beauty, low cost, and easy installation. However, the built-in antenna also has certain limitations. Due to the influence of the obstructed environment, the communication performance of the antenna will be affected. The external antenna has better communication performance, but it is inconvenient to install and requires vehicle modification. In some specific scenarios, some devices need to be compatible with internal and external antennas. When the antenna is replaced, the device must be disassembled to replace the antenna, which brings great inconvenience. In order to solve this problem, we designed a method to automatically switch the V2X internal and external antennas by inserting the GPS antenna. Summary of the invention

[0003] The purpose of the present invention is to solve the shortcomings existing in the prior art and propose a method for switching internal and external antennas in V2X based on GPS external antenna input detection.

[0004] To achieve the above object, the present invention provides the following technical solutions:

[0005] A method for implementing V2X internal and external antenna switching based on GPS external antenna input detection includes the following steps:

[0006] S1. When the GPS external antenna is inserted and working normally, its internal amplification and filtering circuits will consume current, which will cause the voltage on the GPS_ANT_AD pin to change. Therefore, the AD pin of the microcontroller detects this voltage change.

[0007] S2. After the MCU detects the voltage change of the GPS_ANT_AD pin through the AD pin, the software logic will determine that the external antenna has been inserted and is in working state. The software logic inside the MCU will perform corresponding control operations based on this detection result.

[0008] S3, the microcontroller sends a control signal through the MCU_CTRL pin to control the state of the RF switch. The RF switch switches the GPS antenna signal and the V2X main and auxiliary antenna signals to the MINIFACRA socket according to the control signal of the MCU_CTRL pin;

[0009] S4. Through the above control operations, automatic switching of the GPS antenna and the V2X main and secondary antennas is achieved; this switching ensures that when an external GPS antenna is available, a stronger signal reception capability can be utilized, and when the external antenna is unavailable, it can automatically switch to the internal antenna.

[0010] Preferably, the single chip microcomputer in S2 detects the GPS external antenna pin via the AD pin:

[0011] First, when the GPS external antenna is connected through an interface, this interface usually contains a pin for detecting the antenna insertion status, namely the GPS_ANT_AD pin. This pin is connected to an analog input pin of the microcontroller to detect the voltage change generated when the antenna is inserted;

[0012] Then, the MCU will initialize the AD pin, including configuring the pin to analog input mode, setting the reference voltage, and configuring the resolution and sampling rate of the AD conversion;

[0013] When the GPS external antenna is plugged in, its internal circuit will start working, which will cause the voltage on the GPS_ANT_AD pin to change. The AD pin of the microcontroller will periodically read the voltage value on the GPS_ANT_AD pin.

[0014] The software logic inside the microcontroller will compare the voltage value read with the preset threshold. If the voltage value exceeds or falls below a certain threshold, the software logic will determine that the external antenna has been inserted and is in working state;

[0015] When an external antenna is inserted, its signal quality will be further evaluated, such as through SNR and other quality indicators. When it comes to more complex signal processing and analysis, additional hardware support is usually required. Here, an RF front-end module is selected;

[0016] When the software logic confirms that the external antenna is plugged in, it will perform corresponding operations, such as controlling the RF switch to switch the antenna signal and notifying the user interface to update the display information;

[0017] If an external antenna failure is detected, the software logic triggers the fault handling procedure, which includes switching back to the internal antenna and issuing a fault alarm;

[0018] The antenna signal quality and status will be continuously monitored to ensure stable positioning and communication services at all times.

[0019] Preferably, the single chip microcomputer in S2 can effectively detect the insertion status of the GPS external antenna and perform corresponding control operations according to the detection result, thereby improving flexibility and reliability.

[0020] Preferably, the single chip microcomputer in S3 sends a control signal through the MCU_CTRL pin to control the step of the RF switch:

[0021] First, the MCU_CTRL pin is usually a digital output pin, which is connected to the control input of the RF switch through appropriate circuits. The RF switch is an electronic component that switches different antenna signal paths according to the input control signal;

[0022] The MCU will initialize the MCU_CTRL pin, including configuring the pin to digital output mode and setting the default output level.

[0023] When the MCU detects that the external GPS antenna is plugged in and is ready to switch the signal, the software logic will generate the corresponding control signal;

[0024] The MCU outputs the control signal to the RF switch through the MCU_CTRL pin. This process needs to ensure the stability and accuracy of the signal to avoid incorrect switching states.

[0025] After receiving the control signal, the RF switch will switch the internal path according to the content of the signal, thereby switching the GPS antenna signal and the V2X main and auxiliary antenna signals to the MINIFACRA socket. The response speed of the RF switch is usually very fast, completing the switching in microseconds.

[0026] After the switch is completed, the signal quality on the new signal path will be monitored to confirm whether the switch is successful. If the signal quality on the new signal path is not good, it will switch back to the original signal path;

[0027] If a signal path switching failure is detected, the fault handling procedure will be triggered, where a fault alarm is directly issued and the fault information is also recorded;

[0028] When the switch is complete, the status is updated and the user is notified through the user interface;

[0029] Continuously monitor signal paths and status to ensure stable positioning and communication services at all times.

[0030] Preferably, in S3, the step of controlling the RF switch is described so as to enable the single chip microcomputer to effectively control the RF switch and realize dynamic switching of GPS and V2X antenna signals, thereby improving flexibility and reliability.

[0031] Preferably, the process of automatic switching of the GPS antenna and the V2X primary and secondary antennas in S4 is as follows:

[0032] The insertion status of the external GPS antenna is detected through the AD pin of the microcontroller. If an external antenna is detected, it is prepared to switch to the external antenna; then, the microcontroller sends a control signal to the RF switch through the MCU_CTRL pin to control it to switch to the external GPS antenna signal path; the signal quality of the external GPS antenna is evaluated, and if the signal quality is good, the external antenna continues to be used; if an external antenna failure is detected or the signal quality decreases, it automatically switches back to the internal antenna; the antenna signal quality and status are continuously monitored to ensure that stable positioning and communication services can be provided at any time.

[0033] Preferably, during the switching process, the S4 needs to ensure the continuity and stability of the signal to avoid signal loss and interference at the moment of switching; and achieve seamless switching by gradually reducing the gain of one signal path while gradually increasing the gain of another signal path; when it is detected that switching is required, a control signal is sent in advance so that the RF switch has time to prepare for switching; the signal quality is continuously monitored during the switching process, and once a problem is found, it quickly falls back to the original signal path, thereby reducing interference and signal loss during switching.

[0034] Preferably, if the external antenna switched in S4 fails, this situation needs to be detected in time, and the internal antenna needs to be switched back in time, and the fault information should also be recorded to facilitate fault diagnosis and maintenance.

[0035] Technical effects and advantages of the present invention: Compared with the prior art, the present invention provides a method for implementing V2X internal and external antenna switching based on GPS external antenna input detection.

[0036] The present invention consumes current when the internal amplification and filtering circuit of the GPS external antenna works normally. At this time, the GPS_ANT_AD voltage changes, and this pin is input to the AD pin of the single-chip microcomputer. The voltage change is detected by the AD pin, indicating that the external antenna has been inserted. After detecting that the external antenna is inserted, the single-chip microcomputer controls the RF switch through the MCU_CTRL pin to switch the GPS antenna signal and the V2X main and auxiliary antenna signals to the MINIFACRA socket, thereby realizing the automatic switching of the GPS and V2X main and auxiliary antennas; and, through the insertion detection of the GPS external antenna, the V2X internal and external antennas and the GPS internal and external antennas can be automatically switched to achieve automatic antenna switching to meet the antenna requirements of different scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a schematic diagram of the process of the present invention;

[0038] Figure 2 A circuit diagram for inserting a MINI-FAKRA socket into the GPS external antenna of the present invention;

[0039] Figure 3 This is a circuit diagram of the GPS external antenna detection of the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0041] See also Figure 1-3

[0042] In summary, the present invention implements a method for switching between internal and external antennas of V2X based on GPS external antenna input detection, comprising the following steps:

[0043] S1. When the GPS external antenna is inserted and working normally, its internal amplification and filtering circuits will consume current, which will cause the voltage on the GPS_ANT_AD pin to change. Therefore, the AD pin of the microcontroller detects this voltage change.

[0044] S2. After the MCU detects the voltage change of the GPS_ANT_AD pin through the AD pin, the software logic will determine that the external antenna has been inserted and is in working state. The software logic inside the MCU will perform corresponding control operations based on this detection result.

[0045] S3, the microcontroller sends a control signal through the MCU_CTRL pin to control the state of the RF switch. The RF switch switches the GPS antenna signal and the V2X main and auxiliary antenna signals to the MINIFACRA socket according to the control signal of the MCU_CTRL pin;

[0046] S4. Through the above control operations, automatic switching of the GPS antenna and the V2X main and secondary antennas is achieved; this switching ensures that when an external GPS antenna is available, a stronger signal reception capability can be utilized, and when the external antenna is unavailable, it can automatically switch to the internal antenna.

[0047] Attached Figure 2 In the figure, 1, 2 and 3 are the GPS external antenna, the main external antenna and the auxiliary external antenna respectively;

[0048] The terminal device uses the built-in GPS antenna by default. When the external GPS antenna is inserted into the MINI-FAKRA socket ( Figure 3 ) when passing Figure 3 GPS antenna detection circuit.

[0049] When the internal amplification and filtering circuit of the GPS external antenna is working normally, current is consumed. At this time, the voltage of GPS_ANT_AD changes. This pin is input to the AD pin of the microcontroller. The voltage change is detected through the AD pin, indicating that the external antenna has been inserted. After detecting that the external antenna is inserted, the microcontroller controls the RF switch through the MCU_CTRL pin to switch the GPS antenna signal and the V2X main and auxiliary antenna signals to the MINIFACRA socket ( Figure 2 ), thereby realizing automatic switching of GPS and V2X main and secondary antennas.

[0050] The microcontroller in S2 detects the GPS external antenna pin through the AD pin:

[0051] First, when the GPS external antenna is connected through an interface, this interface usually contains a pin for detecting the antenna insertion status, namely the GPS_ANT_AD pin. This pin is connected to an analog input pin of the microcontroller to detect the voltage change generated when the antenna is inserted;

[0052] Then, the MCU will initialize the AD pin, including configuring the pin to analog input mode, setting the reference voltage, and configuring the resolution and sampling rate of the AD conversion;

[0053] When the GPS external antenna is plugged in, its internal circuit will start working, which will cause the voltage on the GPS_ANT_AD pin to change. The AD pin of the microcontroller will periodically read the voltage value on the GPS_ANT_AD pin.

[0054] The software logic inside the microcontroller will compare the voltage value read with the preset threshold. If the voltage value exceeds or falls below a certain threshold, the software logic will determine that the external antenna has been inserted and is in working state;

[0055] When an external antenna is inserted, its signal quality will be further evaluated, such as through SNR and other quality indicators. When it comes to more complex signal processing and analysis, additional hardware support is usually required. Here, an RF front-end module is selected;

[0056] When the software logic confirms that the external antenna is plugged in, it will perform corresponding operations, such as controlling the RF switch to switch the antenna signal and notifying the user interface to update the display information;

[0057] If an external antenna failure is detected, the software logic triggers the fault handling procedure, which includes switching back to the internal antenna and issuing a fault alarm;

[0058] The antenna signal quality and status will be continuously monitored to ensure stable positioning and communication services at all times.

[0059] The single chip microcomputer in S2 can effectively detect the insertion status of the external GPS antenna and perform corresponding control operations according to the detection results, thereby improving flexibility and reliability.

[0060] The MCU in S3 sends a control signal through the MCU_CTRL pin to control the RF switch:

[0061] First, the MCU_CTRL pin is usually a digital output pin, which is connected to the control input of the RF switch through appropriate circuits. The RF switch is an electronic component that switches different antenna signal paths according to the input control signal;

[0062] The MCU will initialize the MCU_CTRL pin, including configuring the pin to digital output mode and setting the default output level.

[0063] When the MCU detects that the external GPS antenna is plugged in and is ready to switch the signal, the software logic will generate the corresponding control signal;

[0064] The MCU outputs the control signal to the RF switch through the MCU_CTRL pin. This process needs to ensure the stability and accuracy of the signal to avoid incorrect switching states.

[0065] After receiving the control signal, the RF switch will switch the internal path according to the content of the signal, thereby switching the GPS antenna signal and the V2X main and auxiliary antenna signals to the MINIFACRA socket. The response speed of the RF switch is usually very fast, completing the switching in microseconds.

[0066] After the switch is completed, the signal quality on the new signal path will be monitored to confirm whether the switch is successful. If the signal quality on the new signal path is not good, it will switch back to the original signal path;

[0067] If a signal path switching failure is detected, the fault handling procedure will be triggered, where a fault alarm is directly issued and the fault information is also recorded;

[0068] When the switch is complete, the status is updated and the user is notified through the user interface;

[0069] Continuously monitor signal paths and status to ensure stable positioning and communication services at all times.

[0070] In S3, the steps of controlling the RF switch are described, so that the single chip microcomputer can effectively control the RF switch and realize dynamic switching of GPS and V2X antenna signals, thereby improving flexibility and reliability.

[0071] The process of automatic switching between GPS antenna and V2X main and secondary antenna in S4:

[0072] The insertion status of the external GPS antenna is detected through the AD pin of the microcontroller. If an external antenna is detected, it is prepared to switch to the external antenna; then, the microcontroller sends a control signal to the RF switch through the MCU_CTRL pin to control it to switch to the external GPS antenna signal path; the signal quality of the external GPS antenna is evaluated, and if the signal quality is good, the external antenna continues to be used; if an external antenna failure is detected or the signal quality decreases, it automatically switches back to the internal antenna; the antenna signal quality and status are continuously monitored to ensure that stable positioning and communication services can be provided at any time.

[0073] During the switching process, S4 needs to ensure the continuity and stability of the signal to avoid signal loss and interference at the moment of switching; and gradually reduce the gain of one signal path while gradually increasing the gain of another signal path to achieve seamless switching; when it detects that switching is needed, send a control signal in advance so that the RF switch has time to prepare for switching; continuously monitor the signal quality during the switching process, and quickly fall back to the original signal path if a problem is found, thereby reducing interference and signal loss during switching.

[0074] If the external antenna fails after switching in S4, it is necessary to detect this situation in time and switch back to the internal antenna in time. The fault information should also be recorded to facilitate fault diagnosis and maintenance.

[0075] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for switching between internal and external antennas of V2X based on GPS external antenna input detection, characterized in that: The steps include: S1. When the GPS external antenna is inserted and working normally, its internal amplification and filtering circuits will consume current, which will cause the voltage on the GPS_ANT_AD pin to change. Therefore, the AD pin of the microcontroller detects this voltage change. S2. After the MCU detects the voltage change of the GPS_ANT_AD pin through the AD pin, the software logic will determine that the external antenna has been inserted and is in working state. The software logic inside the MCU will perform corresponding control operations based on this detection result. S3, the microcontroller sends a control signal through the MCU_CTRL pin to control the state of the RF switch. The RF switch switches the GPS antenna signal and the V2X main and auxiliary antenna signals to the MINIFACRA socket according to the control signal of the MCU_CTRL pin; S4. Through the above control operations, automatic switching of the GPS antenna and the V2X main and secondary antennas is achieved; this switching ensures that when an external GPS antenna is available, a stronger signal reception capability can be utilized, and when the external antenna is unavailable, it can automatically switch to the internal antenna.

2. According to claim 1, the method for implementing V2X internal and external antenna switching based on GPS external antenna input detection is characterized in that: The microcontroller in S2 detects the GPS external antenna pin through the AD pin: First, when the GPS external antenna is connected through an interface, this interface usually contains a pin for detecting the antenna insertion status, namely the GPS_ANT_AD pin. This pin is connected to an analog input pin of the microcontroller to detect the voltage change generated when the antenna is inserted; Then, the MCU will initialize the AD pin, including configuring the pin to analog input mode, setting the reference voltage, and configuring the resolution and sampling rate of the AD conversion; When the GPS external antenna is plugged in, its internal circuit will start working, which will cause the voltage on the GPS_ANT_AD pin to change. The AD pin of the microcontroller will periodically read the voltage value on the GPS_ANT_AD pin. The software logic inside the microcontroller will compare the voltage value read with the preset threshold. If the voltage value exceeds or falls below a certain threshold, the software logic will determine that the external antenna has been inserted and is in working state; When an external antenna is inserted, its signal quality will be further evaluated, such as through SNR and other quality indicators. When it comes to more complex signal processing and analysis, additional hardware support is usually required. Here, an RF front-end module is selected; When the software logic confirms that the external antenna is plugged in, it will perform corresponding operations, such as controlling the RF switch to switch the antenna signal and notifying the user interface to update the display information; If an external antenna failure is detected, the software logic triggers the fault handling procedure, which includes switching back to the internal antenna and issuing a fault alarm; The antenna signal quality and status will be continuously monitored to ensure stable positioning and communication services at all times.

3. The method for implementing V2X internal and external antenna switching based on GPS external antenna input detection according to claim 2 is characterized in that: The single chip microcomputer in S2 can effectively detect the insertion status of the external GPS antenna and perform corresponding control operations according to the detection result, thereby improving flexibility and reliability.

4. The method for implementing V2X internal and external antenna switching based on GPS external antenna input detection according to claim 1 is characterized in that: The steps of controlling the RF switch by sending a control signal through the MCU_CTRL pin in S3 are as follows: First, the MCU_CTRL pin is usually a digital output pin, which is connected to the control input of the RF switch through appropriate circuits. The RF switch is an electronic component that switches different antenna signal paths according to the input control signal; The MCU will initialize the MCU_CTRL pin, including configuring the pin to digital output mode and setting the default output level. When the MCU detects that the external GPS antenna is plugged in and is ready to switch the signal, the software logic will generate the corresponding control signal; The MCU outputs the control signal to the RF switch through the MCU_CTRL pin. This process needs to ensure the stability and accuracy of the signal to avoid incorrect switching states. After receiving the control signal, the RF switch will switch the internal path according to the content of the signal, thereby switching the GPS antenna signal and the V2X main and auxiliary antenna signals to the MINIFACRA socket. The response speed of the RF switch is usually very fast, completing the switching in microseconds. After the switch is completed, the signal quality on the new signal path will be monitored to confirm whether the switch is successful. If the signal quality on the new signal path is not good, it will switch back to the original signal path; If a signal path switching failure is detected, the fault handling procedure will be triggered, where a fault alarm is directly issued and the fault information is also recorded; When the switch is complete, the status is updated and the user is notified through the user interface; Continuously monitor signal paths and status to ensure stable positioning and communication services at all times.

5. The method for implementing V2X internal and external antenna switching based on GPS external antenna input detection according to claim 4 is characterized in that: In S3, the steps of controlling the RF switch are described, so that the single chip microcomputer can effectively control the RF switch and realize dynamic switching of GPS and V2X antenna signals, thereby improving flexibility and reliability.

6. The method for implementing V2X internal and external antenna switching based on GPS external antenna input detection according to claim 1, characterized in that: The process of automatic switching between the GPS antenna and the V2X main and auxiliary antennas in S4 is as follows: The insertion status of the external GPS antenna is detected through the AD pin of the microcontroller. If an external antenna is detected, it is ready to switch to the external antenna; then, the microcontroller sends a control signal to the RF switch through the MCU_CTRL pin to control it to switch to the external GPS antenna signal path; the signal quality of the external GPS antenna is evaluated, and if the signal quality is good, the external antenna continues to be used; if the external antenna is detected to be faulty or the signal quality is degraded, it will automatically switch back to the internal antenna; The antenna signal quality and status will be continuously monitored to ensure stable positioning and communication services at all times.

7. The method for implementing V2X internal and external antenna switching based on GPS external antenna input detection according to claim 1 is characterized in that: During the switching process, the S4 needs to ensure the continuity and stability of the signal to avoid signal loss and interference at the moment of switching; and achieve seamless switching by gradually reducing the gain of one signal path while gradually increasing the gain of another signal path; When a switch is detected, a control signal is sent in advance so that the RF switch has time to prepare for the switch. During the switching process, the signal quality is continuously monitored, and if a problem is found, it quickly falls back to the original signal path, thereby reducing interference and signal loss during switching.

8. The method for implementing V2X internal and external antenna switching based on GPS external antenna input detection according to claim 1 is characterized in that: If the external antenna switched in S4 fails, it is necessary to detect this situation in time and switch back to the internal antenna in time, and the fault information should also be recorded to facilitate fault diagnosis and maintenance.