An automatic monitoring method for data transmission faults in a situation information processor
By introducing a heartbeat signal mechanism into the transmission software of the situation information processor, the problem that traditional situation information processors cannot identify Beidou sub-card output interruptions or data frame errors is solved, realizing automatic fault monitoring and timely processing, and improving the real-time performance and reliability of data transmission.
Patent Information
- Application Number
- CN202211617790.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-15
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2042-12-15
AI Technical Summary
Traditional situation information processing units' data transmission software cannot promptly identify the cause of the fault when the Beidou sub-card output is interrupted or the data frame is incorrect, resulting in transmission interruption, affecting navigation function, and failing to accurately locate the fault type.
By introducing interruption heartbeat signals and frame error heartbeat signals into the transmission software, heartbeat signals are output to the upper-layer application when the Beidou sub-card output is interrupted or the data frame format is incorrect, and the transmission software is reset or restarted when it fails, ensuring that the upper-layer application can identify the fault type and cause in a timely manner.
It enables automatic monitoring of the data transmission process, timely identification of fault causes and types, improves the real-time performance and reliability of the software, and ensures the stability of the navigation function.
Smart Images

Figure CN116346192B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of embedded software data transmission technology, and specifically to an automatic monitoring method for data transmission faults in a situation information processor. Background Technology
[0002] With the rapid development of the BeiDou Navigation Satellite System, it has been widely applied in both civilian and military fields. BeiDou can provide a high-precision spatiotemporal reference, and replacing the original GPS positioning with BeiDou positioning is one of the problems that various BeiDou terminal products need to solve. The situational information processing computer data transmission software (hereinafter referred to as the transmission software) completes the reception, verification, format conversion, and NMEA0183 message output of BeiDou data. In terms of communication transmission, it completes the conversion of BeiDou to GPS communication data format, thereby realizing the BeiDou navigation function.
[0003] The transmission software resides and runs on the positioning module of the situation information processor, in the traditional working mode such as Figure 1 As shown: After the positioning module powers on and the transmission software completes initialization, it receives positioning data output from the BeiDou sub-card, converts it into the standard NMEA0183 message format, and sends it to the CPU module for upper-layer applications to read. Normally, the BeiDou sub-card outputs positioning data accurately and in real time. The transmission software receives, verifies, and converts the received positioning data in real time via interrupts. Because the channel between the BeiDou sub-card and the positioning module is unidirectional, the transmission software can only passively receive data. Once the BeiDou sub-card's output data is interrupted or the data frame is corrupted, the transmission software enters a deadlock mode, sending no messages to the upper-layer application, causing a transmission interruption and affecting the aircraft's navigation function. Simultaneously, the upper-layer application cannot determine the cause of the fault, nor can it identify whether the transmission interruption is caused by a fault at the BeiDou sub-card end or the positioning module end. Summary of the Invention
[0004] In view of this, embodiments of this application provide an automatic monitoring method for data transmission faults in a situation information processor. This method can solve the problem of transmission interruption caused by Beidou sub-card output faults or positioning module transmission software faults, and can accurately identify the cause and type of fault.
[0005] This application provides the following technical solution: an automatic monitoring method for data transmission faults in a situation information processor, comprising:
[0006] After the positioning module of the situation information processor is powered on, the transmission software completes initialization, receives the positioning data output by the Beidou sub-card, and outputs it to the upper layer application.
[0007] If the output signal of the Beidou sub-card is interrupted, the transmission software will output an interruption heartbeat signal to the upper layer after the reception interruption exceeds the set interruption time.
[0008] If the data frame format output by the Beidou sub-card is incorrect, the transmission software will discard the data frame and simultaneously apply an output frame error heartbeat signal to the upper layer at the frequency of the Beidou sub-card's input data.
[0009] If a fault occurs on the transmission software side, the upper-layer application will immediately reset or restart the positioning module transmission software after the reception process is interrupted for more than the set interruption time.
[0010] According to one embodiment of this application, when the output signal of the Beidou sub-card is restored, the transmission software stops outputting the interrupted heartbeat signal to the upper layer application, and at the same time outputs the message normally to the upper layer application.
[0011] When the Beidou sub-card outputs a data frame in the correct format, the transmission software stops applying the output frame error heartbeat signal to the upper layer and simultaneously applies the normal output message to the upper layer.
[0012] According to one embodiment of this application, the specific implementation steps for the interruption of the output signal of the Beidou sub-card are as follows:
[0013] Step 1: After power-on, the transmission software completes system initialization, maps and enables BeiDou data reception interrupt and timer interrupt, attaches the reception interrupt service routine and the timer interrupt service routine, sets the timer period to 1s, and initializes the reception buffer queue comBuf and the reception count variable rxIntNum.
[0014] Step 2: When the Beidou sub-card has data to send, the receiving interrupt of the transmission software is triggered, and the receiving interrupt service routine is executed: the received Beidou data is put into the receiving buffer queue comBuf, and the receiving count variable rxIntNum is incremented;
[0015] Step 3: Trigger a timer interrupt every 1 second and execute the timer interrupt service routine: Query the value of the receive counter variable rxIntNum. When the value of the counter variable rxIntNum is not zero, the transmission software outputs messages normally. When no data is received for the continuously set interrupt time, that is, when the value of the counter variable rxIntNum is zero, the interrupt heartbeat flag is set.
[0016] Step 4: The transmission software sends an interrupt heartbeat signal to the upper-layer application at a transmission frequency of 1 time / second; after the Beidou sub-card output is restored, the interrupt heartbeat signal is terminated, and the transmission software outputs messages normally.
[0017] According to one embodiment of this application, the data frame format errors output by the Beidou sub-card include: checksum errors and frame tail errors.
[0018] According to one embodiment of this application, the specific implementation steps for handling an error in the data frame format output by the Beidou sub-card are as follows:
[0019] Step 1: When the receive buffer queue comBuf receives a complete frame of data, it performs frame format judgment. First, it judges the frame header and frame tail. If the frame header and frame tail formats are correct, it proceeds to step 2. If the frame header or frame tail format is incorrect, it proceeds to step 3.
[0020] Step 2: Next, determine the checksum. Call the getCodeSum function to calculate the checksum of the data frame and compare it with the received checksum. If they match, it means that the data frame format is correct, and the transmission software converts and outputs the message normally. If they do not match, it means that the frame checksum format is incorrect, and proceed to step 3.
[0021] Step 3: The transmission software outputs a frame error heartbeat signal at the frequency of the Beidou sub-card's input data; when the Beidou sub-card outputs data frame format correctly, the frame error heartbeat message terminates, and the transmission software outputs messages normally.
[0022] According to one embodiment of this application, the interruption time is set to 10 seconds.
[0023] According to one embodiment of this application, the transmission software converts the received location data into the standard NMEA0183 message format and sends it to the CPU module for reading by the upper-layer application.
[0024] This invention discloses an automatic monitoring method for data transmission faults in a situational information processor. This method can promptly detect faults occurring during data transmission and accurately identify the cause and type of the fault. This method addresses the shortcomings of traditional tactical situational information processor data transmission software strategies, improving the software's real-time performance, reliability, and security. Attached Figure Description
[0025] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0026] Figure 1 This is the traditional method of transmitting software execution flow;
[0027] Figure 2 This is the transmission software execution flow of the method in the embodiment of the present invention. Detailed Implementation
[0028] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0029] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. The present invention will now be described in detail with reference to the accompanying drawings and embodiments, providing a clear and complete description of the technical solutions of the present invention. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0030] like Figure 2 As shown, this embodiment of the invention provides an automatic monitoring method for data transmission faults in a situational information processor. After the positioning module of the situational information processor is powered on, the transmission software completes initialization, receives positioning data output from the BeiDou sub-card, and outputs it to the upper-layer application; including:
[0031] Scenario 1: When the BeiDou sub-card output is interrupted, an interruption heartbeat function is set in the transmission software. After the BeiDou sub-card's output data is interrupted for 10 seconds, the transmission software outputs an interruption heartbeat signal. Upon receiving this heartbeat signal, the upper-layer application can determine that an output interruption fault has occurred at the BeiDou sub-card. When the BeiDou sub-card's output signal resumes, the interruption heartbeat signal terminates, and the transmission software outputs messages normally.
[0032] Scenario 2: When the data frame format output by the BeiDou sub-card is incorrect, a frame error heartbeat function is set up in the transmission software. When the data frame format output by the BeiDou sub-card is incorrect (e.g., checksum error, frame header error, frame tail error), the transmission software discards the frame and simultaneously outputs a frame error heartbeat signal at the frequency of the sub-card's data input. Upon receiving this heartbeat signal, the upper-layer application can determine that a data frame format error fault has occurred at the BeiDou sub-card. When the BeiDou sub-card outputs a correct data frame format, the frame error heartbeat message terminates, and the transmission software outputs messages normally.
[0033] Scenario 3: When the transmission software fails, no new message data is sent to the upper layer application. If the transmission interruption lasts for more than 10 seconds (i.e., the upper layer application does not receive any NMEA0183 message data or heartbeat message for more than 10 seconds), it can be determined that the transmission software is faulty, and the positioning module transmission software should be reset or restarted immediately.
[0034] This invention discloses an automatic monitoring method for data transmission faults in a situational information processor. The transmission software handles the reception, format conversion, and transmission of BeiDou data. In traditional operating modes, when a fault occurs at the BeiDou sub-card or positioning module, the upper-layer application software receives no data, resulting in transmission interruption, loss of navigation function, and inability to pinpoint the cause of the fault. This invention automatically monitors the data transmission process of the transmission software, promptly notifying the upper-layer application when a fault occurs. The upper-layer application then takes appropriate measures based on the fault type. Specific examples further illustrate this invention in detail.
[0035] Scenario 1: BeiDou Sub-card Output Interruption: When a fault occurs at the BeiDou sub-card, and output data is interrupted for 10 seconds, the transmission software sends an interruption heartbeat signal to the upper-layer application at a transmission frequency of 1 time / second. Once the BeiDou sub-card output resumes, the interruption heartbeat signal terminates, and the transmission software outputs messages normally. The specific implementation steps are as follows:
[0036] Step 1: After power-on, the transmission software completes system initialization, maps and enables BeiDou data reception interrupt and timer interrupt, attaches the reception interrupt service routine and the timer interrupt service routine, sets the timer period to 1s, and initializes the reception buffer queue comBuf and the reception count variable rxIntNum.
[0037] Step 2: When the Beidou sub-card has data to send, it will trigger the receive interrupt of the transmission software and execute the receive interrupt service routine: put the received Beidou data into the receive buffer queue comBuf, and increment the receive count variable rxIntNum;
[0038] Step 3: Trigger a timer interrupt every 1 second and execute the timer interrupt service routine: Query the value of the receive counter variable rxIntNum. When the value of the counter variable rxIntNum is not zero, the transmission software converts normally and outputs the message. When no data is received for 10 consecutive seconds, that is, when the value of the counter variable rxIntNum is zero, set the interrupt heartbeat flag and proceed to step 4.
[0039] Step 4: The transmission software sends an interrupt heartbeat signal to the upper-layer application at a frequency of 1 time / second: "$GN,HEART,INTERRUPT,NN,00,BD,*<checksum>" <cr> <lf>Upon receiving this message, the upper-layer application learns that the Beidou sub-card has experienced an output interruption fault. Once the Beidou sub-card output is restored, the interrupted heartbeat signal terminates, and the transmission software outputs messages normally.
[0040] Scenario 2: BeiDou daughter card output data frame format error: When a fault occurs at the BeiDou daughter card and the output data frame format is incorrect, the transmission software discards the frame and simultaneously outputs a frame error heartbeat signal at the frequency of daughter card data input. Once the BeiDou daughter card outputs a correct data frame format, the frame error heartbeat message terminates, and the transmission software outputs messages normally. The specific implementation steps are as follows:
[0041] Step 1: When the receive buffer queue comBuf receives a complete frame of data, it performs frame format judgment. First, it judges the frame header and frame trailer. If both are correct, it proceeds to step 2. If the frame header or frame trailer is incorrect, it proceeds to step 3.
[0042] Step 2: Next, determine the checksum. Call the getCodeSum function to calculate the checksum of the data frame and compare it with the received checksum. If they match, it means that the data frame format is correct, and the transmission software converts and outputs the message normally. If they do not match, it means that the frame checksum format is incorrect, and proceed to step 3.
[0043] Step 3: The transmission software outputs a frame error heartbeat signal at the frequency of the daughter card data input: "$GN,HEART,ERROR,SS,00,BD,*<checksum> <cr> <lf>Upon receiving this message, the upper-layer application learns that a data frame format error has occurred at the BeiDou sub-card. When the BeiDou sub-card outputs a correct data frame format, the frame error heartbeat message terminates, and the transmission software outputs messages normally.
[0044] Scenario 3: Transmission software failure: No new message data is sent to the upper layer application. If the transmission interruption exceeds 10 seconds (i.e., the upper layer application does not receive any NMEA0183 message data or heartbeat message for more than 10 seconds), it can be determined that the transmission software is faulty, and the positioning module transmission software should be reset or restarted immediately.
[0045] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.< / lf> < / cr> < / lf> < / cr>
Claims
1. A method for automatic monitoring of data transmission faults in a situation information processor, characterized in that, include: After the positioning module of the situation information processor is powered on, the transmission software completes initialization, receives the positioning data output by the Beidou sub-card, and outputs it to the upper layer application. If the output signal of the Beidou sub-card is interrupted, the transmission software will output an interruption heartbeat signal to the upper layer after the reception interruption exceeds the set interruption time. If the data frame format output by the Beidou sub-card is incorrect, the transmission software will discard the data frame and simultaneously apply an output frame error heartbeat signal to the upper layer at the frequency of the Beidou sub-card's input data. If a fault occurs on the transmission software side, the upper-layer application will immediately reset or restart the positioning module transmission software after the reception process is interrupted for more than the set interruption time. The specific implementation steps for handling the interruption of the output signal of the Beidou sub-card are as follows: Step 1: After power-on, the transmission software completes system initialization, maps and enables BeiDou data reception interrupt and timer interrupt, attaches the reception interrupt service routine and the timer interrupt service routine, sets the timer period to 1s, and initializes the reception buffer queue comBuf and the reception count variable rxIntNum. Step 2: When the Beidou sub-card has data to send, the receiving interrupt of the transmission software is triggered, and the receiving interrupt service routine is executed: the received Beidou data is put into the receiving buffer queue comBuf, and the receiving count variable rxIntNum is incremented; Step 3: Trigger a timer interrupt every 1 second and execute the timer interrupt service routine: Query the value of the receive counter variable rxIntNum. When the value of the counter variable rxIntNum is not zero, the transmission software outputs messages normally. When no data is received for the continuously set interrupt time, that is, when the value of the counter variable rxIntNum is zero, the interrupt heartbeat flag is set. Step 4: The transmission software sends an interrupt heartbeat signal to the upper-layer application at a transmission frequency of 1 time / second; after the Beidou sub-card output is restored, the interrupt heartbeat signal is terminated, and the transmission software outputs messages normally; The specific implementation steps for handling the case where the data frame format output by the Beidou sub-card is incorrect are as follows: Step 1: When the receive buffer queue comBuf receives a complete frame of data, it performs frame format judgment. First, it judges the frame header and frame tail. If the frame header and frame tail formats are correct, it proceeds to step 2. If the frame header or frame tail format is incorrect, it proceeds to step 3. Step 2: Next, determine the checksum. Call the getCodeSum function to calculate the checksum of the data frame and compare it with the received checksum. If they match, it means that the data frame format is correct, and the transmission software converts and outputs the message normally. If they do not match, it means that the frame checksum format is incorrect, and proceed to step 3. Step 3: The transmission software outputs a frame error heartbeat signal at the frequency of the Beidou sub-card's input data; when the Beidou sub-card outputs data frame format correctly, the frame error heartbeat message terminates, and the transmission software outputs messages normally.
2. The automatic monitoring method for data transmission faults in a situation information processor according to claim 1, characterized in that, Once the output signal of the Beidou sub-card is restored, the transmission software stops outputting interrupted heartbeat signals to the upper layer application and simultaneously outputs normal messages to the upper layer application. When the Beidou sub-card outputs a data frame in the correct format, the transmission software stops applying the output frame error heartbeat signal to the upper layer and simultaneously applies the normal output message to the upper layer.
3. The automatic monitoring method for data transmission faults in a situation information processor according to claim 1, characterized in that, The data frame format errors output by the Beidou sub-card include: checksum errors and frame tail errors.
4. The automatic monitoring method for data transmission faults in a situation information processor according to claim 1, characterized in that, The interruption time is set to 10 seconds.
5. The automatic monitoring method for data transmission faults in a situation information processor according to claim 1, characterized in that, The transmission software converts the received location data into the standard NMEA0183 message format and sends it to the CPU module for upper-layer applications to read.
Citation Information
Patent Citations
Fault real-time detection method of airborne information system
CN113360306A
Discontinuous transmission optimization algorithm in real-time data communication of industrial control PLC
CN114697267A