Method for correcting black body of infrared detector under mass data based on CAN (Controller Area Network) bus
By adding communication message ID filtering and handshake protocols for infrared detectors and bold on the CAN bus, the problem of loss and communication failure in infrared detectors and bold correction under massive CAN bus data is solved, and the reliability and communication efficiency of the system are improved.
Patent Information
- Application Number
- CN202411712748.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-11-27
AI Technical Summary
Under massive CAN bus data, the infrared detector and bold correction process are prone to loss of numbers and communication failures, resulting in limited system reliability and communication accuracy.
Add communication message ID filtering between infrared detector imaging software and bold on the CAN bus to filter out redundant messages, and design a communication handshake protocol between infrared detector and bold, and independently divide the correction coefficient segments according to the bold self-test capability to ensure the orderly progress of the bold power-on correction process.
Through this method, the reliability of bold-on power-on correction under massive CAN bus data is improved, and the anti-interference ability and communication efficiency of the system are enhanced.
Smart Images

Figure CN119714563A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of embedded software application of airborne communication equipment, and in particular relates to a blackbody correction method for an infrared detector under mass data based on a CAN bus. Background Art
[0002] Embedded software products have been widely used in the military industry. Embedded software transforms traditional hardware products and has high flexibility, practicality and applicability. With the continuous optimization and improvement of product specialization, in the field of embedded development, CAN bus has been widely used due to its long data transmission distance, high transmission efficiency, ID arbitration recognition, filter to achieve multi-address data frame transmission, automatic data retransmission and other characteristics. However, when used in a complex system, if there are many nodes and a large amount of data in the loop, under the impact of a large amount of data or super strong electromagnetic interference, data blocking or loss problems may occur occasionally. Therefore, in order to meet the continuously changing needs of customers, increase product reliability and communication accuracy, it is necessary to continuously improve the functions of embedded terminal equipment, increase the handshake mechanism between product subsystems, and enhance system reliability.
[0003] The traditional CAN communication method cannot avoid the problem of blockage or loss of massive data during the communication process. The present invention aims at the problems of occasional data loss and communication failure in the infrared detector and blackbody correction process under massive CAN bus data. The communication message ID filtering between the infrared detector imaging software and the blackbody is added on the CAN bus to filter out redundant messages on the CAN bus. On the basis of the CAN communication ID filtering, the communication handshake protocol between the infrared detector imaging software and the blackbody is added. A method for infrared detector blackbody correction under massive data based on the CAN bus is designed to solve the above-mentioned problems. Summary of the invention
[0004] In view of this, the present invention proposes a blackbody correction method for infrared detectors under massive data based on CAN bus, which is applied to embedded software applications of airborne communication equipment to solve the existing technical problems of occasional loss of data and communication failure in the infrared detector and blackbody correction process under massive CAN bus data.
[0005] In order to achieve the above technical objectives, the specific technical solutions adopted by the present invention are:
[0006] A method for blackbody correction of infrared detectors under massive data based on CAN bus, comprising the following steps:
[0007] S1: The infrared detector software sends a blackbody control command to the blackbody and sets a timer, timing T0. The blackbody control command includes a blackbody self-test command, a temperature setting command, a work start command, a temperature query command, and a work stop command;
[0008] S2: The blackbody receives the blackbody control command from the infrared detector software, and then the control command message is attached with the blackbody information ID, and the content is fed back to the detector software as is, and the feedback time is less than T0;
[0009] S3: If the infrared detector software receives feedback information, it completes the first handshake and continues to send other control commands;
[0010] S4: If the handshake is unsuccessful, the handshake will be repeated after T0 time, and step 1 will be continued. The number of handshakes is set to N until the handshake is successful. If the handshake is still unsuccessful after N times, the correction failure will be fed back to the main control, and the black body will be ordered to stop working.
[0011] S5: After the blackbody calibration process is completed, the infrared detector software controls the blackbody to stop working and feeds back the power-on blackbody calibration status to the main control software.
[0012] Further, in step S2, the blackbody receives a blackbody self-check command and provides feedback, and the content of the blackbody feedback includes the cooling capability of the blackbody focal plane.
[0013] Further, in step S2, the infrared detector software receives feedback on the cooling ability of the black body on the focal plane, and then compares the set black body temperature range.
[0014] Furthermore, in step S4, if the result of the comparison between the infrared detector software and the set blackbody temperature segment is equal, then collection and calculation are performed; if not, then exit, take the FLASH coefficient, and report the blackbody temperature error to the main control.
[0015] Further, in step S5, after completing the acquisition of all temperature points, the infrared detector software sends a stop working command to the black body, the main control cuts out the baffle, the baffle starts to work normally, the infrared detector software feeds back the correction status and its own status to the main control software, and the black body receives the stop working command and is in standby mode.
[0016] Further, in step S2, the black body receives the black body control command of the infrared detector software through the ID filter.
[0017] Furthermore, in step S2, the sender sends the message to all receivers in the form of broadcast. When receiving the message, the node determines whether the software needs the message based on the value of the identifier ID. If necessary, the value of the message is copied to the RAM. If not, the message is discarded without software intervention.
[0018] Furthermore, the CAN bus is provided with 6 configurable filter groups with variable bit width. For the standard frame 11-bit ID, when it is necessary to filter a specific ID, the ID mode is directly used to filter the bold and master CAN messages for the detector software to process.
[0019] Furthermore, the infrared detector software, black body and main control all work on the same CAN loop, and the communication rate is 1Mbps.
[0020] By adopting the above technical solution, the present invention can also bring the following beneficial effects:
[0021] The present invention mentions a method for correcting black bodies of infrared detectors under massive data based on a CAN bus. The method includes filtering out redundant messages on the CAN bus by adding a communication message ID filter between infrared detector imaging software and the black body on the CAN bus; adding a communication handshake protocol between the infrared detector imaging software and the black body on the basis of the CAN communication ID filter, autonomously dividing the infrared detector correction coefficient segments according to the black body self-test capability, completing the infrared detector and black body power-on correction process, greatly improving the reliability of the black body power-on correction under massive CAN bus data, and having the advantages of long transmission distance, strong anti-interference ability, fast speed and high efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 The present invention discloses a flow chart of a method for calibrating a black body of an infrared detector based on a large amount of data of a CAN bus;
[0024] Figure 2 The present invention discloses a schematic diagram of the connection relationship of system modules in a method for correcting blackbody of an infrared detector under massive data based on a CAN bus;
[0025] Figure 3 The present invention discloses a blackbody power-on multi-stage correction flow chart in a blackbody correction method for an infrared detector under massive data based on a CAN bus. DETAILED DESCRIPTION
[0026] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0027] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.
[0028] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present invention, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.
[0029] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention. The drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0030] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.
[0031] Example 1
[0032] In one embodiment of the present invention, see Figure 1 and Figure 2 This embodiment provides a method for calibrating a blackbody of an infrared detector under massive data based on a CAN bus, comprising the following steps:
[0033] 1: When the infrared detector software sends a blackbody control command to the blackbody, a timer is set, timing T0. The blackbody control command includes a blackbody self-test command, a temperature setting command, a work start command, a temperature query command, and a work stop command;
[0034] 2: The blackbody receives the blackbody control command from the infrared detector software through the ID filter;
[0035] 3: The bold control command message is attached with the bold information ID, and the content is fed back to the detector software as is, and the feedback time is less than T0.
[0036] 4: The black body will feed back the command receiving feedback status to the infrared detector software. If the infrared detector software receives it, it will complete the first handshake and continue to send other control commands; if the handshake is unsuccessful, it will cycle the handshake after T0 time and continue to step 1, setting the number of handshakes N until the handshake is successful. If it is still unsuccessful after N times, it will feedback the calibration failure to the main control and command the black body to stop working.
[0037] 5. When the blackbody calibration process is finished, the detector software controls the blackbody to stop working and feeds back the power-on blackbody calibration status to the main control software.
[0038] This process is a specific embodiment of step 1 sending a black body control command. After power-on, the infrared detector software automatically sends a black body self-test command;
[0039] The blackbody receives the blackbody self-test command and feeds back through step 3;
[0040] After the blackbody self-test is completed, the cooling capacity of the blackbody focal plane is fed back;
[0041] The infrared detector software receives the blackbody capacity feedback of the blackbody and compares it with the set blackbody temperature range;
[0042] The infrared detector software controls the black body temperature to the first point temperature of the multi-stage calibration according to the black body's cooling capacity, and starts working;
[0043] The black body receives the temperature setting command and the work start command from the infrared detector software and gives feedback through step 3;
[0044] The black body is controlled to warm and then fed back to warm state;
[0045] The infrared detector software receives the temperature status of the black body;
[0046] After the infrared detector software receives the black body temperature status, it sends a temperature query command;
[0047] The blackbody receives the temperature query command, and completes the blackbody receiving command feedback through step 3.
[0048] The blackbody feeds back the current blackbody focal plane temperature;
[0049] The infrared detector software receives the current blackbody focal plane temperature. After receiving the temperature arrival signal, it queries the current blackbody temperature and compares it with the set temperature point. If they are equal, it performs collection and calculation. If they are not equal, it exits and takes the FLASH coefficient to report the blackbody temperature arrival error to the main control, and so on, until the collection and calculation of 5 temperature points are completed;
[0050] After completing the acquisition of all temperature points, the infrared detector software sends a stop command to the black body, the main control cuts out the baffle, and starts normal operation. The infrared detector software feeds back the calibration status and its own status to the main control software;
[0051] The black body receives the stop working command and is in standby mode.
[0052] like Figure 3 The following is a flowchart of blackbody power-on multi-stage correction based on massive bus data of the CAN bus:
[0053] S100: After power-on, the infrared detector software automatically sends a black body self-test command. After the black body self-test is completed, the black body temperature is periodically controlled to be the first point temperature of the multi-stage calibration to ensure that data can be directly collected after the infrared detector is cooled, so that the detector cooling time and the black body self-test overlap with the first point temperature time;
[0054] S200: After power-on, if the infrared detector software receives a quick restart command, the software enters the quick restart mode; if the infrared detector self-checks normally within 5 minutes and receives a blackbody mode command, the software enters the stand-alone calibration mode; if the blackbody self-check is abnormal or the blackbody mode command is not received, the software enters the Flash mode. Quick restart mode / Flash mode: directly obtain the Flash coefficient;
[0055] S300: If the baffle is in place normally and the black body reaches the temperature normally, the single-machine calibration mode is performed: taking 5 temperature points and 4 coefficients as an example, the calibration temperature points are set to (-36℃, -18℃, 0℃, 18℃, 36℃); when the temperature reaches -36℃, the low-temperature original screen of coefficient 1 is collected, and the black body temperature is set to -18℃; when the temperature reaches -18℃, the high-temperature original screen of coefficient 1 is collected, the two-point coefficient of coefficient 1 is calculated, the two-point bad element of coefficient 1 is detected, the screen after correction of coefficient 1 is collected, the single-point bad element of coefficient 1 is detected, the black body temperature is set to 0℃, and coefficient 1 is stored to Flash (overlapping the black body temperature rise and coefficient storage time); when the temperature reaches 0℃, the coefficient 2 is calibrated in the same process; when the temperature reaches 18℃, the coefficient 3 is calibrated in the same process; when the temperature reaches 36℃, the coefficient 4 is calibrated in the same process (no longer setting the black body temperature), and the calibration is completed;
[0056] S400: During the single-machine calibration process, after the first point is collected, the second temperature point is sent to the blackbody, and the temperature signal is fed back after the blackbody rises to the second temperature point. After receiving the temperature signal, the current blackbody temperature is queried and compared with the set temperature point. If they are equal, collection and calculation are performed. If they are not equal, exit and take the FLASH coefficient, report the blackbody temperature error to the main control, and so on, until the collection and calculation of 5 temperature points are completed.
[0057] S500: After collecting 5 temperature points, the infrared detector component turns off the black body, the main control cuts out the baffle, and starts normal operation. The infrared detector software feeds back the calibration status and its own status to the main control software.
[0058] In summary, the present invention adds communication message ID filtering between infrared detector imaging software and black body on the CAN bus, filters out redundant messages on the CAN bus, adds communication handshake protocol between infrared detector imaging software and black body on the basis of CAN communication ID filtering, autonomously divides infrared detector correction coefficient segments according to the black body self-test capability, and completes the detector correction imaging method, thereby solving the problem of black body CAN message congestion and missed reception caused by massive CAN messages, as well as the problem of message late sending and repeated sending caused by communication cycle mismatch, and ensuring the orderly progress of the black body correction process.
[0059] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for blackbody correction of infrared detectors under massive data based on CAN bus, comprising the following steps: S1: The infrared detector software sends a blackbody control command to the blackbody and sets a timer, timing T0. The blackbody control command includes a blackbody self-test command, a temperature setting command, a work start command, a temperature query command, and a work stop command; S2: The blackbody receives the blackbody control command from the infrared detector software, and then the control command message is attached with the blackbody information ID, and the content is fed back to the detector software as is, and the feedback time is less than T0; S3: If the infrared detector software receives feedback information, it completes the first handshake and continues to send other control commands; S4: If the handshake is unsuccessful, the handshake will be repeated after T0 time, and step 1 will be continued. The number of handshakes is set to N until the handshake is successful. If the handshake is still unsuccessful after N times, the correction failure will be fed back to the main control, and the black body will be ordered to stop working. S5: After the blackbody calibration process is completed, the infrared detector software controls the blackbody to stop working and feeds back the power-on blackbody calibration status to the main control software.
2. The infrared detector blackbody correction method under the massive data based on CAN bus as claimed in claim 1, characterized in that: In step S2, the blackbody receives a blackbody self-check command and provides feedback, wherein the content of the blackbody feedback includes the cooling capability of the blackbody focal plane.
3. The infrared detector blackbody correction method under the massive data based on CAN bus as claimed in claim 2, characterized in that: In step S2, the infrared detector software receives feedback on the cooling capability of the black body on the focal plane, and then compares the set black body temperature range.
4. The infrared detector blackbody correction method under the massive data based on CAN bus as claimed in claim 3 is characterized by: In step S4, if the result of the comparison between the infrared detector software and the set black body temperature segment is equal, then the acquisition and calculation are performed; if not, then the software exits, takes the FLASH coefficient, and reports the black body temperature error to the main control.
5. The infrared detector blackbody correction method under the massive data based on CAN bus as claimed in claim 2, characterized in that: In step S5, after completing the acquisition of all temperature points, the infrared detector software sends a stop working command to the black body, the main control cuts out the baffle, the baffle starts to work normally, the infrared detector software feeds back the correction status and its own status to the main control software, and the black body receives the stop working command and is in standby mode.
6. The infrared detector blackbody correction method based on CAN bus under massive data as claimed in claim 2, characterized in that: In step S2, the black body receives the black body control command of the infrared detector software through the ID filter.
7. The infrared detector blackbody correction method under the massive data based on CAN bus as claimed in claim 1, characterized in that: In step S2, the sender sends the message to all receivers in the form of broadcast. When receiving the message, the node determines whether the software needs the message based on the value of the identifier ID. If necessary, the value of the message is copied to the RAM. If not, the message is discarded without software intervention.
8. The infrared detector blackbody correction method under the massive data based on CAN bus as claimed in claim 1, characterized in that: The CAN bus is provided with 6 configurable filter groups with variable bit width. For the standard frame 11-bit ID, when it is necessary to filter a specific ID, the ID mode is directly used to filter the bold and master CAN messages for the detector software to process.
9. The infrared detector blackbody correction method under the massive data based on CAN bus as claimed in claim 1, characterized in that: The infrared detector software, black body and main control all work on the same CAN loop, and the communication rate is 1Mbps.
Citation Information
Patent Citations
Combined-type standard testing source and method for infrared sensor
CN105784127A
Method and system for calibrating multiple temperature measurement modules in batches
CN114235169A
Calibration method, device for infrared temperature measurement, electronic apparatus and storage medium
US20210285823A1
Infrared imaging-related uncertainty gauging systems and methods
US20220187136A1