GPS antenna power switching method and system
By automatically detecting and switching GPS antenna power supply, the problems of poor reliability and high maintenance costs caused by single power supply voltage of GPS antenna circuit in the prior art are solved, voltage matching and stable power supply are achieved, and the reliability and ease of use of the system are improved.
Patent Information
- Application Number
- CN202111613111.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2041-12-27
AI Technical Summary
In the prior art, the GPS antenna circuit has a single power supply voltage, resulting in poor reliability and high on-site maintenance costs, especially when active GPS antennas are replaced, it is prone to functional abnormalities and permanent damage.
A GPS antenna power switching method is provided. By automatically detecting the access status of the active GPS antenna, at least two power supply power supplies are used to match voltages, including open circuit detection, NMEA information analysis and CPU-controlled DC-DC power switching, ensuring that the GPS module is successfully positioned and switched to the matching power supply power supply.
It realizes automatic adaptation of the power supply voltage of the active GPS antenna, reducing daily maintenance costs, improving system reliability and ease of use, and reducing the probability of failure.
Smart Images

Figure CN114355399B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power supply, and in particular to a GPS antenna power switching method and system. Background Art
[0002] With the rapid development of communication technology, GPS (Global Positioning System) has been widely used in many fields such as military, wireless communications, automotive electronics and consumer electronics. The power supply for active GPS antennas is usually directly supplied through the antenna feeder. The source of power supply for active GPS antennas is generally the hardware board that carries the GPS module.
[0003] Most existing hardware boards are designed with a single active antenna supply voltage. When an active GPS antenna needs to be replaced on-site, if the supply voltage of the active GPS antenna does not match the voltage supplied by the hardware board, reliability issues such as GPS malfunction, hardware board malfunction, and permanent damage to the active GPS antenna will occur, significantly increasing on-site maintenance costs.
[0004] Therefore, in order to solve the above problems in powering the active GPS antenna, a new GPS antenna power management method needs to be proposed. Summary of the Invention
[0005] The present invention provides a GPS antenna power switching method and system, which are used to solve the defects of the prior art GPS antenna circuit, such as single power supply voltage, poor reliability and high on-site maintenance cost.
[0006] In a first aspect, the present invention provides a GPS antenna power switching method, comprising:
[0007] Make sure to turn on the current power supply, perform antenna open circuit detection, and obtain the open circuit detection result;
[0008] Based on the open circuit detection result, the central processing unit CPU waits for the GPS module to perform positioning and obtains the GPS module positioning result;
[0009] The power supply is switched according to the positioning result of the GPS module.
[0010] According to a GPS antenna power switching method provided by the present invention, the power supply switching operation is implemented according to the positioning result of the GPS module, and then further includes:
[0011] The CPU repeatedly waits for the GPS module to perform positioning until the GPS module acquires at least one satellite signal.
[0012] According to a GPS antenna power switching method provided by the present invention, the determining to turn on the current power supply, performing antenna open circuit detection, and obtaining the open circuit detection result includes:
[0013] Turning on a first power supply, where the first power supply is a minimum power supply among at least two power supplies;
[0014] If the output of the voltage comparator is a preset high level, it is determined that the active GPS antenna is not connected or is open, the power supply voltage is turned off, and the fault indicator light is turned on;
[0015] If it is determined that the output of the voltage comparator is a preset low level, it is determined that the active GPS antenna has been connected, and NMEA information analysis is performed.
[0016] According to a GPS antenna power switching method provided by the present invention, the NMEA information parsing includes:
[0017] The GPS module sends NMEA messages to the CPU via a universal asynchronous receiver / transmitter (UART) interface;
[0018] The CPU obtains the number of GPS locked satellites according to the current satellite information GSA type message in the NMEA message;
[0019] Based on the number of GPS locked satellites, the CPU determines whether the GPS module is locked.
[0020] According to a GPS antenna power switching method provided by the present invention, based on the open circuit detection result, the central processing unit CPU waits for the GPS module to perform positioning and obtains the GPS module positioning result, including:
[0021] Determine the first positioning time of the GPS module;
[0022] The CPU parses the NMEA information and ends the process if it detects that the GPS module is locked within a preset time;
[0023] Otherwise, it is determined that the supply voltage of the first power supply does not match.
[0024] According to a GPS antenna power switching method provided by the present invention, the power supply switching operation is implemented according to the positioning result of the GPS module, including:
[0025] The CPU controls the output of the DC-DC power supply to switch to the second power supply.
[0026] In a second aspect, the present invention further provides a GPS antenna power switching system, comprising:
[0027] An acquisition module is used to determine whether to turn on the current power supply, perform antenna open circuit detection, and obtain the open circuit detection result;
[0028] A positioning module, configured to wait for a GPS module to perform positioning based on the open circuit detection result, and obtain a positioning result of the GPS module;
[0029] The switching module is used to implement the switching operation of the power supply according to the positioning result of the GPS module.
[0030] In a third aspect, the present invention further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the above-described GPS antenna power switching methods are implemented.
[0031] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described GPS antenna power switching methods.
[0032] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned GPS antenna power switching methods.
[0033] The GPS antenna power switching method and system provided by the present invention automatically detect whether an antenna is connected and automatically switch the power supply voltage to adapt to the active GPS antenna. This eliminates the need for operators to pay attention to the power supply voltage of the active GPS antenna to adapt to the active GPS antenna, thereby reducing daily maintenance costs and increasing reliability and ease of use. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 It is a flowchart of the GPS antenna power switching method provided by the present invention;
[0036] Figure 2 This is a functional block diagram of the automatic switching of antenna power supply provided by the present invention;
[0037] Figure 3 This is a schematic diagram of the open circuit detection circuit structure provided by the present invention;
[0038] Figure 4 This is a schematic diagram of the automatic switching structure of the power supply provided by the present invention;
[0039] Figure 5 It is a structural diagram of the GPS antenna power switching system provided by the present invention;
[0040] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0041] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0042] Aiming at the problems of single power supply voltage, poor reliability and high on-site maintenance cost of GPS antenna circuit in the prior art, the present invention proposes a new GPS antenna power switching method. Figure 1 FIG. 1 is a flow chart of a method for switching a GPS antenna power supply provided by the present invention, as shown in FIG. Figure 1 Shown, including:
[0043] Step S1, determine to turn on the current power supply, perform antenna open circuit detection, and obtain the open circuit detection result;
[0044] Step S2: Based on the open circuit detection result, the central processing unit CPU waits for the GPS module to perform positioning and obtains the GPS module positioning result;
[0045] Step S3: switching the power supply according to the positioning result of the GPS module.
[0046] It should be noted that the present invention adds at least one power supply on the basis of the existing technology, ensuring that there are at least two power supplies available for selection in the system.
[0047] First, one power supply is turned on, and the system performs an antenna open circuit test to determine whether an antenna is connected. If an antenna is connected, NMEA (National Marine Electronics Association, the National Marine Electronics Association of the United States, now the unified RTCM standard protocol for GPS navigation equipment) information is parsed. If no antenna is connected, the power supply voltage to the active GPS antenna is turned off.
[0048] Then, based on the result of the above antenna open circuit detection, the CPU waits for the GPS module to perform positioning, determines whether the GPS module is locked, and obtains the GPS module positioning result.
[0049] Finally, based on the above positioning results, it is determined whether the power supply needs to be switched.
[0050] The present invention automatically detects whether an antenna is connected through the system, and automatically switches the power supply voltage to adapt to the active GPS antenna, so that the operator does not need to pay attention to the power supply voltage of the active GPS antenna to adapt to the active GPS antenna, reducing daily maintenance costs and increasing reliability and ease of use.
[0051] Based on the above embodiment, step S3 further includes:
[0052] The CPU repeatedly waits for the GPS module to perform positioning until the GPS module acquires at least one satellite signal.
[0053] Specifically, after determining whether the system needs to switch the power supply, the system will repeat the process of the CPU waiting for the GPS module to locate the position. At this time, the GPS module will continue to search for satellite signals until the signal of at least one satellite is found.
[0054] After the CPU determines that the GPS module obtains a stable power supply, the present invention enables the GPS module to continuously search for satellite signals, so that the active GPS antenna can continuously and stably work.
[0055] Based on any of the above embodiments, step S1 includes:
[0056] Turning on a first power supply, where the first power supply is a minimum power supply among at least two power supplies;
[0057] If the output of the voltage comparator is a preset high level, it is determined that the active GPS antenna is not connected or is open, the power supply voltage is turned off, and the fault indicator light is turned on;
[0058] If it is determined that the output of the voltage comparator is a preset low level, it is determined that the active GPS antenna has been connected, and NMEA information analysis is performed.
[0059] The NMEA information parsing includes:
[0060] The GPS module sends NMEA messages to the CPU via a universal asynchronous receiver / transmitter (UART) interface;
[0061] The CPU obtains the number of GPS locked satellites according to the current satellite information GSA type message in the NMEA message;
[0062] Based on the number of GPS locked satellites, the CPU determines whether the GPS module is locked.
[0063] Specifically, a first power supply is turned on, where the first power supply is the smallest power supply among two or more power supplies provided to the active GPS antenna.
[0064] like Figure 2 As shown in the figure, the GPS module and the CPU are interconnected via UART (Universal Asynchronous Receiver / Transmitter). The UART carries the NMEA protocol, and the antenna power supply voltage is provided by the DC-DC circuit. The CPU adjusts the DC-DC feedback voltage ( Figure 2 FB in) to switch the antenna power supply voltage, and the CPU controls the DC-DC enable pin ( Figure 2 The CPU determines whether the power supply voltage of the active antenna needs to be switched based on the result of the open circuit detection and the NMEA information.
[0065] By providing two or more power supplies, the present invention is compatible with more types of active GPS antennas, reduces the probability of failure when replacing the active GPS antenna on site, improves system reliability, and reduces maintenance costs.
[0066] Based on any of the above embodiments, step S2 includes:
[0067] Determine the first positioning duration of the GPS module;
[0068] The CPU parses the NMEA information and ends the process if it detects that the GPS module is locked within a preset time;
[0069] Otherwise, it is determined that the supply voltage of the first power supply does not match.
[0070] Specifically, after determining the first power supply, the system starts antenna open circuit detection to determine whether there is an antenna connected, and handles the following two situations:
[0071] When an antenna is connected, NMEA information is parsed;
[0072] When there is no antenna connected, the power supply voltage to the active GPS antenna is turned off and the active GPS antenna fault indicator light is on.
[0073] The CPU then waits for the GPS module to locate the first position. The first positioning time of the GPS module is generally set to about 30 seconds. The CPU parses the NMEA information and ends the process if it detects GPS lock within 1 minute. If GPS lock is not found within 1 minute, it is considered that the power supply voltage provided to the active GPS antenna does not match.
[0074] like Figure 3 In the open circuit detection circuit schematic shown, Vant represents the power supply voltage of the active antenna, which is provided by Vrf through the series resistor R3; R_control represents the signal output by the CPU; Vop represents the power supply voltage of the voltage comparator; Vopen_detect represents the result signal of the open circuit detection, where a high level indicates an open circuit and a low level indicates that the antenna is connected.
[0075] exist Figure 3 In the open circuit detection, it is used to detect whether there is an active GPS antenna connected, and it is achieved by detecting the current of the active GPS antenna.
[0076] When the circuit is open, the current flowing through R3 is almost zero. The + terminal of voltage comparator U1 can be considered as Vrf voltage. The voltage at the - terminal of comparator U1 is the voltage divided by R1 and R2. At this time, the voltage at U1's + terminal is greater than the voltage at its - terminal, and U1 outputs a high level. When an active GPS antenna is connected, the current flowing through R3 increases. When the current reaches a certain value, the + terminal of comparator U1 is lower than the - terminal, and U1 outputs a low level. The supply current of an active GPS antenna is generally 10-50mA. The open circuit detection threshold current flowing through the antenna feed line can be calculated using the following formula:
[0077] I=[R1 / (R1+R2)]*Vrf / R3
[0078] Since the open circuit detection threshold current is related to the Vrf voltage, Vref is the voltage output by the DC-DC power supply. By turning on Q1, R1 and R4 are connected in parallel, thereby reducing the value of R1, so that the detection threshold current remains almost unchanged when Vrf increases. By setting the appropriate values of R1, R2, R3, and R4, when the current of the active GPS antenna is greater than 5mA, U1 outputs a low level.
[0079] The CPU detects the active GPS antenna by detecting the output of U1. If Vopen_detect is high, the active GPS antenna is considered disconnected or open. If Vopen_detect is low, the active GPS antenna is considered connected.
[0080] In addition, NMEA information parsing is done by the CPU on the hardware board parsing the NMEA information output by the GPS module. Figure 2As shown in the figure, the CPU determines whether the GPS module is locked by parsing NMEA messages. The GPS module and CPU are connected via a UART interface. After power-on, the GPS module continuously sends NMEA messages. GSA (GPS DOP and Active Satellites) messages indicate the number of GPS satellites locked. The CPU determines whether the GPS module is locked based on the number of locked satellites. If locked, it indicates that the power supply voltage of the active GPS antenna matches the active GPS antenna.
[0081] The present invention realizes open-circuit detection of the GPS antenna and NMEA message detection through a comparator and a very small number of resistance circuits, and can accurately determine whether the active GPS antenna and the power supply match, thereby providing a reference basis for whether the power supply switching is needed later.
[0082] Based on any of the above embodiments, step S3 includes:
[0083] The CPU controls the output of the DC-DC power supply to switch to the second power supply.
[0084] Specifically, when it is detected that the power supply needs to be switched, the CPU automatically controls the output of the DC-DC power supply to switch to the second power supply.
[0085] Figure 4 This is a schematic diagram of automatic power supply switching. The CPU controls the opening and closing of the MOS tube to adjust the DC-DC feedback voltage, thereby achieving control of the DC-DC output voltage.
[0086] Here, power supply voltage switching primarily provides two or more supply voltages for the active GPS antenna. This is achieved by changing the feedback voltage of the DC-DC buck power supply chip. The DC-DC power supply's output is proportional to the feedback voltage, and the voltage divider value of R5 and R6 determines the output voltage. When the CPU detects a mismatch between the output power and the active antenna's supply voltage, it turns on MOS transistor Q2, connecting R6 and R7 in parallel. This effectively reduces the length of R6, lowering the feedback voltage and thus adjusting the output power.
[0087] The present invention adjusts the feedback voltage of the DC-DC power supply by turning on and off the MOS tube, and can automatically switch between two or more antenna power supplies, thus having strong universality.
[0088] The GPS antenna power switching system provided by the present invention is described below. The GPS antenna power switching system described below and the GPS antenna power switching method described above can be referenced to each other.
[0089] Figure 5This is a schematic diagram of the structure of the GPS antenna power switching system provided by the present invention. Figure 5 As shown, it includes: an acquisition module 51, a positioning module 52 and a switching module 53, wherein:
[0090] The acquisition module 51 is used to determine whether to turn on the current power supply, perform antenna open circuit detection, and obtain the open circuit detection result; the positioning module 52 is used to wait for the GPS module to perform positioning based on the open circuit detection result, and obtain the GPS module positioning result; the switching module 53 is used to implement the power supply switching operation according to the GPS module positioning result.
[0091] The present invention automatically detects whether an antenna is connected through the system, and automatically switches the power supply voltage to adapt to the active GPS antenna, so that the operator does not need to pay attention to the power supply voltage of the active GPS antenna to adapt to the active GPS antenna, reducing daily maintenance costs and increasing reliability and ease of use.
[0092] Based on the above embodiment, a search module 54 is further included. The search module 54 is configured to repeat the CPU waiting for the GPS module to perform positioning until the GPS module acquires at least one satellite signal.
[0093] After the CPU determines that the GPS module obtains a stable power supply, the present invention enables the GPS module to continuously search for satellite signals, so that the active GPS antenna can continuously and stably work.
[0094] Based on any of the above embodiments, the acquisition module 51 is specifically used to: turn on the first power supply, which is the minimum power supply among at least two power supplies; if it is determined that the output of the voltage comparator is a preset high level, it is determined that the active GPS antenna is not connected or is open, the power supply voltage is turned off, and the fault indicator light is lit; if it is determined that the output of the voltage comparator is a preset low level, it is determined that the active GPS antenna is connected, and NMEA information parsing is performed.
[0095] The NMEA information parsing includes:
[0096] The GPS module sends NMEA messages to the CPU via a universal asynchronous receiver / transmitter (UART) interface;
[0097] The CPU obtains the number of GPS locked satellites according to the current satellite information GSA type message in the NMEA message;
[0098] Based on the number of GPS locked satellites, the CPU determines whether the GPS module is locked.
[0099] By providing two or more power supplies, the present invention is compatible with more types of active GPS antennas, reduces the probability of failure when replacing the active GPS antenna on site, improves system reliability, and reduces maintenance costs.
[0100] Based on any of the above embodiments, the positioning module 52 is specifically configured to:
[0101] Determine the first positioning time of the GPS module; the CPU parses the NMEA information and ends the process if it detects that the GPS module is locked within a preset time; otherwise, determine that the power supply voltage of the first power supply does not match.
[0102] The present invention realizes open-circuit detection of the GPS antenna and NMEA message detection through a comparator and a very small number of resistance circuits, and can accurately determine whether the active GPS antenna and the power supply match, thereby providing a reference basis for whether the power supply switching is needed later.
[0103] Based on any of the above embodiments, the switching module 53 is specifically configured to:
[0104] The CPU controls the output of the DC-DC power supply to switch to the second power supply.
[0105] The present invention adjusts the feedback voltage of the DC-DC power supply by turning on and off the MOS tube, and can automatically switch between two or more antenna power supplies, thus having strong universality.
[0106] Figure 6 An example of a physical structure diagram of an electronic device is shown below. Figure 6 As shown, the electronic device may include: a processor 610, a communications interface 620, a memory 630, and a communications bus 640, wherein the processor 610, the communications interface 620, and the memory 630 communicate with each other via the communications bus 640. The processor 610 may call logic instructions in the memory 630 to execute a GPS antenna power switching method, which includes: determining to turn on the current power supply, performing an antenna open circuit detection, and obtaining an open circuit detection result; based on the open circuit detection result, the central processing unit (CPU) waits for the GPS module to perform positioning and obtains a GPS module positioning result; and according to the GPS module positioning result, implementing a power supply switching operation.
[0107] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0108] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the GPS antenna power switching method provided by the above methods, which includes: determining to turn on the current power supply, performing antenna open circuit detection, and obtaining an open circuit detection result; based on the open circuit detection result, the central processing unit CPU waits for the GPS module to perform positioning and obtains the GPS module positioning result; and according to the GPS module positioning result, the power supply switching operation is implemented.
[0109] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the GPS antenna power switching method provided by the above methods, the method including: determining to turn on the current power supply, performing an antenna open circuit detection, and obtaining an open circuit detection result; based on the open circuit detection result, the central processing unit CPU waits for the GPS module to perform positioning and obtains the GPS module positioning result; and according to the GPS module positioning result, the power supply switching operation is implemented.
[0110] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0111] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A GPS antenna power switching method, characterized in that: include: Make sure to turn on the current power supply, perform antenna open circuit detection, and obtain the open circuit detection result; The determining to turn on the current power supply, performing antenna open circuit detection, and obtaining the open circuit detection result includes: turning on a first power supply, where the first power supply is the minimum power supply of at least two power supplies; if it is determined that the output of the voltage comparator is a preset high level, determining that the active GPS antenna is not connected or is open circuit, turning off the power supply voltage, and lighting a fault indicator light; if it is determined that the output of the voltage comparator is a preset low level, determining that the active GPS antenna is connected, and performing NMEA information parsing; Based on the open circuit detection result, the central processing unit CPU waits for the GPS module to perform positioning and obtains the GPS module positioning result; based on the open circuit detection result, the central processing unit CPU waits for the GPS module to perform positioning and obtains the GPS module positioning result, including: determining the first positioning time of the GPS module; the CPU parses the NMEA information, and if it is detected that the GPS module is locked within a preset time, the process ends; otherwise, it is determined that the supply voltage of the first power supply does not match; The power supply is switched according to the positioning result of the GPS module.
2. The GPS antenna power switching method according to claim 1, wherein: The method further includes switching the power supply according to the positioning result of the GPS module: The CPU repeatedly waits for the GPS module to perform positioning until the GPS module acquires at least one satellite signal.
3. The GPS antenna power switching method according to claim 1, wherein: The NMEA information parsing includes: The GPS module sends NMEA messages to the CPU via a universal asynchronous receiver / transmitter (UART) interface; The CPU obtains the number of GPS locked satellites according to the current satellite information GSA type message in the NMEA message; Based on the number of GPS locked satellites, the CPU determines whether the GPS module is locked.
4. The GPS antenna power switching method according to claim 1, wherein: The switching operation of the power supply is realized according to the positioning result of the GPS module, including: The CPU controls the output of the DC-DC power supply to switch to the second power supply.
5. A GPS antenna power switching system, characterized in that: include: An acquisition module is configured to determine whether to enable the current power supply, perform an antenna open circuit detection, and obtain an open circuit detection result. The acquisition module specifically includes: enabling a first power supply, which is the minimum power supply of at least two power supplies; if the output of the voltage comparator is determined to be a preset high level, determining that the active GPS antenna is not connected or is open circuit, turning off the power supply voltage, and lighting a fault indicator light; if the output of the voltage comparator is determined to be a preset low level, determining that the active GPS antenna is connected, and performing NMEA information parsing. A positioning module, configured to, based on the open circuit detection result, cause a central processing unit (CPU) to wait for the GPS module to perform positioning and obtain a positioning result of the GPS module; the central processing unit (CPU) to wait for the GPS module to perform positioning and obtain a positioning result of the GPS module based on the open circuit detection result, including: determining a first positioning duration of the GPS module; the CPU parsing NMEA information, and terminating the process if the GPS module is detected to be locked within a preset time; otherwise, determining that the supply voltage of the first power supply does not match; The switching module is used to implement the switching operation of the power supply according to the positioning result of the GPS module.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the GPS antenna power switching method according to any one of claims 1 to 4 are implemented.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the GPS antenna power switching method according to any one of claims 1 to 4 are implemented.
8. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the GPS antenna power switching method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Receiver and its control method
JP2009118077A
Active antenna and GPS unit
JP2010139391A