Detailed Description
The present invention will be further described with reference to the accompanying drawings and specific embodiments, and it should be noted that, in the premise of no conflict, the following described embodiments or technical features may be arbitrarily combined to form a new embodiment:
referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a method for self-checking a station of a GNSS receiver of the present invention, and the method for self-checking a station of a GNSS receiver of the present invention is described in detail with reference to fig. 1.
S1: and the reference station enters a self-checking mode, whether the serial port communication of the radio station module is normal is detected, if so, S2 is executed, and if not, S3 is executed.
When the self-checking is carried out on the radio station module, the reference station enters a self-checking mode, and after the self-checking mode is entered, the processor of the reference station sends a test instruction to the radio station module corresponding to the reference station, and judges whether the serial port communication of the radio station module is normal or not according to whether response information returned by the radio station module is received or not. If the processor can receive the returned response information, the serial port communication of the radio station module is determined to be normal, and if the serial port communication of the radio station module is not normal, the serial port communication of the radio station module is determined to be abnormal.
In this embodiment, in order to implement mutual detection of the radio station modules between the reference station and the mobile station, when the reference station enters the self-detection mode, the mobile station also enters the self-detection mode, and detects serial port communication of the radio station modules, and a detection mode adopted by the mobile station is the same as that of the reference station, which is not described herein again.
In this embodiment, the reference station and the mobile station are both GNSS receivers, and in order to ensure the accuracy of the detection result, the reference station and the mobile station are disposed at the same position.
In this embodiment, the number of the reference stations is one, and the radio station module corresponding to the reference station belongs to a broadcast data mode. The number of mobile stations performing mutual self-check with the reference station may be 1, or may be multiple, and the reference station only needs to be capable of realizing information transmission with the mobile stations, and is not limited herein.
In this embodiment, the radio module is built in the reference station and the mobile station, and the processor of the reference station and the processor of the mobile station are respectively connected with the corresponding radio module through serial interfaces, in other embodiments, the radio module may be externally installed on the reference station and the mobile station, or the radio module may be connected with the processor of the reference station and the processor of the mobile station through parallel interfaces, wireless transmission, and the like to transmit information, which is not limited herein.
S2: and opening the WiFi hotspot to connect with the mobile station with normal serial communication to establish an information transmission channel.
After the reference station and the mobile station respectively determine that serial port communication of the corresponding radio station modules is normal, the reference station starts a WiFi AP (Wireless Access Point) function to create a WiFi hotspot, sets the name of the WiFi hotspot as a preset name, and the mobile station starts a WiFi client function, searches for the WiFi hotspot with the name of the preset name, determines the WiFi with the name of the preset name as the WiFi hotspot of the reference station, and connects the WiFi hotspot.
In this embodiment, the preset name is "basecycle", and the authentication type of the WiFi hotspot is a no-password type. In other embodiments, the name of the WiFi hotspot may also be another name, and the authentication type may also be a password type, and only the mobile station needs to be able to search for the WiFi hotspot of the reference station and connect to the WiFi hotspot, which is not limited herein.
In other embodiments, the reference station and the mobile station may be connected by bluetooth, infrared, NFC, or other methods, and the connection between the reference station and the mobile station and the intelligent terminal is not affected by the connection method, so that the human-computer interaction between the receiver and the measurement personnel can be realized, which is not limited herein.
After the mobile station is connected with the reference station through the WiFi hotspot, the mobile station actively initiates a TCP/IP connection request to the reference station, the reference station receives the request, and a TCP/IP channel is established between the reference station and the mobile station according to the request.
In this embodiment, because the distance between the reference station and the mobile station is small, the WiFi connection can be automatically completed within 2 seconds after the reference station and the mobile station enter the self-test mode when being powered on and verify that the serial port communication of the radio station module is normal respectively. Then the mobile station will actively initiate TCP/IP connection and establish TCP/IP channel with the base station.
In this embodiment, after the processor of the reference station sends the test instruction, if the processor does not receive the response information returned by the radio station module, the processor determines that the serial communication of the radio station module is abnormal, controls the reference station to exit the self-checking mode, and controls the reference station to send a prompt message that the radio station module is abnormal to the user.
S3: and the reference station judges whether the performance data of the radio station module is normal or not according to the result signal fed back by the mobile station.
In this embodiment, the preset transmission power includes at least one of a maximum power and a minimum power of the radio station module, where the transmission performance data of the reference station is detected when the signal is transmitted at the maximum power, and the reception performance data of the mobile station is detected when the signal is transmitted at the minimum power.
In the present embodiment, the result signal fed back by the mobile station includes any one of signal strength and performance data of the station module. When the result signal is performance data, the mobile station acquires the signal intensity of the signal sent by the reference station, compares the signal intensity with a preset value to judge whether the signal intensity is larger than the preset value, sends the judgment result as the result signal to the reference station, and the reference station judges whether the performance data of the radio station module is normal according to the judgment result.
In other embodiments, when the result signal is the performance data, the mobile station obtains the signal strength of the signal sent by the reference station, or the mobile station compares the signal strength with a preset value, determines whether the performance data of the radio station module is normal according to the comparison result, and sends the determination result of whether the performance data of the radio station module is normal to the reference station. And the reference station acquires a judgment result whether the performance data of the radio station module is normal or not through the mobile station.
Because the transmission power of different reference stations is different and the judgment standard of the mobile station is often different from that of the reference station, a better detection result is obtained. In a preferred embodiment, the reference station makes a determination based on its own index, so that the mobile station transmits the first signal strength and the second signal strength to the reference station via a TCP/IP channel, and the reference station determines whether the transmission performance and the reception performance are normal based on the signal strength, and transmits the determination result to the mobile station via an information transmission channel when the reception performance is normal.
In the embodiment, the reference station transmits a first signal to the mobile station at the maximum power, and judges whether the transmission performance of the reference station is normal or not according to the strength of the first signal transmitted by the mobile station; the reference station transmits a second signal to the mobile station with minimum power, and judges whether the receiving performance of the mobile station is normal according to the strength of the second signal transmitted by the mobile station.
In this embodiment, the reference station first sends the first signal to perform transmission performance detection, and then sends the second signal to perform reception performance detection, in other embodiments, the second signal may also be sent first to perform reception performance detection, and the user may set the second signal according to his own needs, which is not described herein.
In the embodiment, before the reference station sends the first signal and the second signal to the mobile station, the reference station sends instructions for entering the transmission performance detection mode and entering the receiving performance detection mode to the mobile station through the TCP/IP channel according to the content to be detected, wherein the instructions sent by the reference station correspond to the content to be detected.
In this embodiment, when performing transmission performance detection of the reference station, the reference station sends a notification of entering a transmission performance detection mode to the mobile station through a TCP/IP channel, automatically adjusts the transmission power of the corresponding radio station module to the maximum power, and sends a first signal with a time length of a first preset time length to the mobile station; the mobile station receives the first signal, acquires the first signal intensity of the first signal and sends the first signal intensity to the reference station; and the reference station judges whether the first signal strength is greater than a first preset value, if so, the transmitting performance of the reference station is determined to be normal, and if not, the transmitting performance of the reference station is determined to be abnormal.
In this embodiment, when detecting the reception performance of the mobile station, the reference station sends a notification of entering the reception performance detection mode to the mobile station through the TCP/IP channel, automatically adjusts the power of the corresponding radio module to the minimum power, and sends a second signal with a time length of a second preset time length to the mobile station; the mobile station receives the second signal, acquires the second signal strength of the second signal and sends the second signal strength to the reference station; and the reference station judges whether the second signal strength is greater than a second preset value, if so, the receiving performance of the mobile station is determined to be normal, and if not, the receiving performance of the mobile station is determined to be abnormal.
In this embodiment, the first preset time length is 10 seconds, in other embodiments, the first preset time length may also be 12, 13, 20 or other lengths, and the second preset time length may be equal to or different from the first preset time length, and it is only necessary that the reference station and the mobile station can complete the transmission performance detection and the reception performance detection, which is not limited herein.
In this embodiment, an RF (Radio Frequency) chip in a station module of the mobile station detects the strength of the first signal and the second signal transmitted by the reference station in real time, so as to obtain the strength of the first signal and the strength of the second signal.
In this embodiment, after the transmission performance detection and the reception performance detection are completed, the reference station that determines the transmission performance detection result exits from the self-checking mode, and prompts the transmission performance determination result to the user and provides information on whether the radio station module is normal, where if the transmission performance is normal, the radio station module is normal, and if the transmission performance is abnormal, the radio station module is abnormal.
In this embodiment, after the transmission performance detection and the reception performance detection are completed, the mobile station that determines the reception performance determination result exits the self-checking mode, and prompts the reception performance determination result to the user, and gives information on whether the radio station module is normal, where if the reception performance is normal, the radio station module is normal, and if the reception performance is abnormal, the radio station module is abnormal.
In the above embodiment, the reference station and the mobile station are respectively connected to the intelligent terminal of the user through bluetooth, and transmit the prompt information indicating whether the radio station module is normal to the user through bluetooth.
In other embodiments, the reference station and the mobile station may also be connected to the intelligent terminal of the user through internet, data line, network cable, etc., and only the prompt information indicating whether the radio station module is normal needs to be transmitted to the user, which is not limited herein.
Compared with the prior art, the invention has the beneficial effects that:
after the reference station and the mobile station enter a self-checking mode, the reference station starts a WiFi hotspot, connection is established with the mobile station through the WiFi hotspot, the reference station sends a signal to the mobile station with preset transmitting power after the connection is established, and performance data of a radio station module is judged according to a result signal fed back by the mobile station.
Based on the same inventive concept, the present invention further provides a self-checking method for a radio station of a GNSS receiver, please refer to fig. 2, fig. 1 is a flowchart of another embodiment of the self-checking method for a radio station of a GNSS receiver of the present invention, and the self-checking method for a radio station of a GNSS receiver of the present invention is described in detail with reference to fig. 2.
S11: and when the mobile station enters the self-checking mode, detecting whether the serial port communication of the radio station module is normal or not, executing S12, otherwise, controlling the mobile station to exit the self-checking mode, and prompting the radio station module to be abnormal.
When the self-checking is carried out on the radio station module, the mobile station enters a self-checking mode, and after the mobile station enters the self-checking mode, a processor of the mobile station sends a test instruction to the radio station module corresponding to the mobile station, and judges whether the serial port communication of the radio station module is normal or not according to whether response information returned by the radio station module is received or not. If the processor can receive the returned response information, the serial port communication of the radio station module is determined to be normal, and if the serial port communication of the radio station module is not normal, the serial port communication of the radio station module is determined to be abnormal.
In this embodiment, in order to implement mutual detection of the radio station modules between the reference station and the mobile station, when the mobile station enters the self-detection mode, the reference station also enters the self-detection mode, and detects serial port communication of the radio station modules, and a detection mode adopted by the reference station is the same as that of the mobile station, which is not described herein again.
In this embodiment, the reference station and the mobile station are both GNSS receivers, and in order to ensure the accuracy of the detection result, the reference station and the mobile station are disposed at the same position.
In this embodiment, the number of the reference stations is one, and the radio station module corresponding to the reference station belongs to a broadcast data mode. The number of mobile stations performing mutual self-check with the reference station may be 1, or may be multiple, and the reference station only needs to be capable of realizing information transmission with the mobile stations, and is not limited herein.
In this embodiment, the radio module is built in the reference station and the mobile station, and the processor of the reference station and the processor of the mobile station are respectively connected with the corresponding radio module through serial interfaces, in other embodiments, the radio module may be externally installed on the reference station and the mobile station, or the radio module may be connected with the processor of the reference station and the processor of the mobile station through parallel interfaces, wireless transmission, and the like to transmit information, which is not limited herein.
S12: and connecting with a WiFi hotspot of a reference station with normal serial communication to establish an information transmission channel.
After the reference station and the mobile station respectively determine that serial port communication of the corresponding radio station modules is normal, the reference station starts a WiFi AP (Wireless Access Point) function to create a WiFi hotspot, sets the name of the WiFi hotspot as a preset name, and the mobile station starts a WiFi client function, searches for the WiFi hotspot with the name of the preset name, determines the WiFi with the name of the preset name as the WiFi hotspot of the reference station, and sends a WiFi connection request to connect the WiFi hotspot.
In this embodiment, the preset name is "basecycle", and the authentication type of the WiFi hotspot is a no-password type. In other embodiments, the name of the WiFi hotspot may also be another name, and the authentication type may also be a password type, and only the mobile station needs to be able to search for the WiFi hotspot of the reference station and connect to the WiFi hotspot, which is not limited herein.
In other embodiments, the reference station and the mobile station may be connected by bluetooth, infrared, NFC, or other methods, and the connection between the reference station and the mobile station and the intelligent terminal is not affected by the connection method, so that the human-computer interaction between the receiver and the measurement personnel can be realized, which is not limited herein.
After the mobile station is connected with the reference station through the WiFi hotspot, the mobile station actively initiates a TCP/IP connection request to the reference station, the reference station receives the request, and a TCP/IP channel is established between the reference station and the mobile station according to the request.
In this embodiment, because the distance between the reference station and the mobile station is small, the WiFi connection can be automatically completed within 2 seconds after the reference station and the mobile station enter the self-test mode when being powered on and verify that the serial port communication of the radio station module is normal respectively. Then the mobile station will actively initiate TCP/IP connection and establish TCP/IP channel with the base station.
After the processor of the mobile station sends a test instruction, if the processor does not receive response information returned by the radio station module, the processor determines that the serial port communication of the radio station module is abnormal, controls the mobile station to exit from the self-checking mode, and controls the mobile station to send prompt information of the radio station module abnormality to a user.
S13: and receiving data sent by the reference station at preset transmitting power, calculating the strength of the carrier signal to obtain a result signal, and feeding the result signal back to the reference station.
In this embodiment, the preset transmission power includes at least one of a maximum power and a minimum power of the radio station module, the data sent by the reference station is a carrier signal, and the mobile station calculates the strength of the carrier signal to obtain the signal strength for determining the performance data of the radio station module. Wherein the signal transmitted at the maximum power is used for detecting transmission performance data of the reference station, and the signal transmitted at the minimum power is used for detecting reception performance data of the mobile station.
In the present embodiment, the result signal fed back by the mobile station includes any one of signal strength and performance data of the station module. When the result signal is performance data, the mobile station acquires the signal intensity of the signal sent by the reference station, compares the signal intensity with a preset value to judge whether the signal intensity is larger than the preset value, determines the performance data of the radio station module according to the judgment result, sends the performance data of the radio station module to the reference station as the result signal, and judges whether the performance data of the radio station module is normal or not according to the result signal by the reference station.
In other embodiments, after the mobile station obtains the signal strength of the signal transmitted by the reference station, the mobile station may compare the signal strength with a preset value, and transmit the determination result to the reference station. And the reference station determines whether the radio station module is normal according to the judgment result.
Because the transmission power of different reference stations is different and the judgment standard of the mobile station is often different from that of the reference station, a better detection result is obtained. In a preferred embodiment, the reference station makes a determination based on its own index, so that the mobile station transmits the first signal strength and the second signal strength to the reference station via a TCP/IP channel, and the reference station determines whether the transmission performance and the reception performance are normal based on the signal strength, and transmits the determination result to the mobile station via an information transmission channel when the reception performance is normal.
In the embodiment, the reference station transmits a first signal to the mobile station at the maximum power, and judges whether the transmission performance of the reference station is normal or not according to the strength of the first signal transmitted by the mobile station; the reference station transmits a second signal to the mobile station with minimum power, and judges whether the receiving performance of the mobile station is normal according to the strength of the second signal transmitted by the mobile station.
In this embodiment, the reference station first sends the first signal to perform transmission performance detection, and then sends the second signal to perform reception performance detection, in other embodiments, the second signal may also be sent first to perform reception performance detection, and the user may set the second signal according to his own needs, which is not described herein.
In the embodiment, before the reference station sends the first signal and the second signal to the mobile station, the reference station sends instructions for entering the transmission performance detection mode and entering the receiving performance detection mode to the mobile station through the TCP/IP channel according to the content to be detected, wherein the instructions sent by the reference station correspond to the content to be detected.
In this embodiment, when performing transmission performance detection of the reference station, the reference station sends a notification of entering a transmission performance detection mode to the mobile station through a TCP/IP channel, automatically adjusts the transmission power of the corresponding radio station module to the maximum power, and sends a first signal with a time length of a first preset time length to the mobile station; the mobile station receives the first signal, acquires the first signal intensity of the first signal and sends the first signal intensity to the reference station; and the reference station judges whether the first signal strength is greater than a first preset value, if so, the transmitting performance of the reference station is determined to be normal, and if not, the transmitting performance of the reference station is determined to be abnormal.
In this embodiment, when detecting the reception performance of the mobile station, the reference station sends a notification of entering the reception performance detection mode to the mobile station through the TCP/IP channel, automatically adjusts the power of the corresponding radio module to the minimum power, and sends a second signal with a time length of a second preset time length to the mobile station; the mobile station receives the second signal, acquires the second signal strength of the second signal and sends the second signal strength to the reference station; and the reference station judges whether the second signal strength is greater than a second preset value, if so, the receiving performance of the mobile station is determined to be normal, and if not, the receiving performance of the mobile station is determined to be abnormal.
In this embodiment, the first preset time length is 10 seconds, in other embodiments, the first preset time length may also be 12, 13, 20 or other lengths, and the second preset time length may be equal to or different from the first preset time length, and it is only necessary that the reference station and the mobile station can complete the transmission performance detection and the reception performance detection, which is not limited herein.
In this embodiment, an RF (Radio Frequency) chip in a station module of the mobile station detects the strength of the first signal and the second signal transmitted by the reference station in real time, so as to obtain the strength of the first signal and the strength of the second signal.
In this embodiment, after completing the transmission performance detection and the reception performance detection, the mobile station receives the reception performance judgment result of the mobile station sent by the reference station, determines that the mobile station receiving the performance judgment result exits from the self-checking mode, and prompts the reception performance judgment result to the user, and gives information on whether the radio station module is normal, where if the reception performance is normal, the radio station module is normal, and if the reception performance is abnormal, the radio station module is abnormal.
In this embodiment, after the transmission performance detection and the reception performance detection are completed, the reference station that determines the transmission performance detection result exits from the self-checking mode, and prompts the transmission performance determination result to the user and provides information on whether the radio station module is normal, where if the transmission performance is normal, the radio station module is normal, and if the transmission performance is abnormal, the radio station module is abnormal.
In the above embodiment, the reference station and the mobile station are respectively connected to the intelligent terminal of the user through bluetooth, and transmit the prompt information indicating whether the radio station module is normal to the user through bluetooth.
In other embodiments, the reference station and the mobile station may also be connected to the intelligent terminal of the user through internet, data line, network cable, etc., and only the prompt information indicating whether the radio station module is normal needs to be transmitted to the user, which is not limited herein.
Compared with the prior art, the invention has the beneficial effects that:
after the reference station and the mobile station enter a self-checking mode, the reference station starts a WiFi hotspot, connection is established with the mobile station through the WiFi hotspot, the reference station sends a signal to the mobile station with preset transmitting power after the connection is established, and performance data of a radio station module is judged according to a result signal fed back by the mobile station.
Based on the same inventive concept, the present invention further provides a storage device with a storage function, please refer to fig. 3, fig. 3 is a schematic structural diagram of an embodiment of the storage device with a storage function according to the present application, the storage device stores program data, and the stored program data is used for implementing the self-checking method of the GNSS receiver station when being executed by a processor, and will not be described in detail herein.
The device with a storage function may be a portable storage medium such as a usb disk, an optical disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or other various media capable of storing program codes, and may also be a terminal, a server, or other media.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
Various other modifications and changes may be made by those skilled in the art based on the above-described technical solutions and concepts, and all such modifications and changes should fall within the scope of the claims of the present invention.