A Ground Automatic Analysis Method for Hyperspectral Imagers
Through the combination of instruction sequence batch input and telemetry analysis module, the fully automatic control of the hyperspectral imager is realized, the problem of inefficiency in the existing technology is solved, intelligent operation in multi-mode and scenarios is supported, and periodic updates and visual displays of data analysis are ensured.
Patent Information
- Application Number
- CN202211572117.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-08
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2042-12-08
AI Technical Summary
In the prior art, the control system of the hyperspectral imager requires a specific interface to achieve communication, resulting in inefficiency, and the lack of a unified and efficient control scheme in different working modes and experimental scenarios, resulting in cumbersome operation.
The instruction sequence batch input method is adopted, and the timing task generation module and the timely task work module are used to realize automated control of the hyperspectral imager, and data analysis is performed in combination with the telemetry analysis module to establish a multi-mode and high-integration working method to ensure synchronization and robustness between modules.
It realizes fully automatic control of the hyperspectral imager, improves work efficiency, supports intelligent operations in multi-modes and scenarios, and ensures periodic updates and visual displays of data analysis.
Smart Images

Figure CN116405444B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a control method for a hyperspectral imager, and in particular to a ground automatic analysis method for a hyperspectral imager. Background Art
[0002] Currently, traditional host computer communication technology, used in space service simulation systems, requires communication with slave computers via specific interfaces such as 1553B or CAN to control onboard optical equipment such as space cameras and spectral imagers. Different host computer communication solutions are required for different interfaces. Current control systems lack interface independence and typically use a one-by-one instruction method, which is inefficient.
[0003] Furthermore, control system payloads have different operating modes and experimental scenarios. For example, the operating modes of a hyperspectral imager include imaging, calibration, visible, and infrared modes, while different test scenarios include push-broom testing, thermal vacuum testing, and mechanical testing. However, there is no efficient, unified control solution for these diverse payload operating modes and experimental scenarios, resulting in cumbersome and inefficient operations. Summary of the Invention
[0004] This invention provides a method for automatic ground-based analysis of hyperspectral imagers, resolving the current issues of requiring specific host computer interfaces for communication and the inefficiency of arbitrary command transmission. This host computer-implemented method for controlling the spectral imager integrates automatic command sequence control and automatic telemetry analysis, defining a multi-mode, highly integrated operating mode for the spectral imager. Furthermore, its bus-independent implementation significantly enhances the method's versatility and practicality.
[0005] To achieve the above object, the technical solution of the present invention is as follows:
[0006] A method for automatic ground analysis of a hyperspectral imager is characterized in that it includes the following steps:
[0007] Step 1: Edit the instruction sequence in the main module and send the instruction sequence to the scheduled task generation module;
[0008] Step 2: The scheduled task generation module adds the instruction sequence to the timely task queue according to the set time requirements;
[0009] The scheduled task generation module sends the timely task queue with the added instruction sequence and the original periodic tasks, remote control instructions, and auxiliary data to the timely task working module;
[0010] Step 3: The real-time task working module adds the real-time task queue with the instruction sequence and the original periodic tasks to form a real-time task sequence according to the time requirements, and then sends the real-time task sequence to the bus interface of the hyperspectral imager. The remote-controlled hyperspectral imager executes the real-time tasks in the real-time task sequence one by one. At the same time, the real-time task working module synchronously sends the information of the real-time task sequence sent to the hyperspectral imager to the interrupt module.
[0011] Step 4: When the hyperspectral imager executes each timely task, a state change occurs, and the hyperspectral imager sends the state change to the interrupt module via a telemetry frame packet;
[0012] Step 5: The interrupt module receives the telemetry frame packet sent by the hyperspectral imager, and combines the telemetry frame packet and the information of the timely task sequence sent synchronously by the timely task working module to form the telemetry information of the current task sequence, and sends the telemetry information to the telemetry parsing module for parsing and processing;
[0013] Step 6: After the telemetry parsing module processes the telemetry information sent by the interrupt module, it sends a parsing completion signal to the interrupt module. After receiving the parsing completion signal, the interrupt module sends the telemetry information of the next task sequence to the telemetry parsing module again. At the same time, the telemetry parsing module notifies the main module to update the parsed telemetry information in the visual interactive interface.
[0014] Furthermore, the step 1 is specifically as follows:
[0015] Step 1.1, establish the instruction set for controlling each unit and subsystem of the hyperspectral imager in the main module;
[0016] Step 1.2, through keyword search or screening, to obtain a required single instruction; through multiple keyword searches, to obtain multiple single instructions;
[0017] Step 1.3, arrange all required single instructions to obtain an instruction data packet;
[0018] Step 1.4, parameterize the command data packet to obtain the command frame;
[0019] In step 1.5, multiple instruction frames are converted into an instruction sequence, and the instruction sequence is transmitted to the timing task generation module.
[0020] Furthermore, in step 2, the auxiliary data includes time auxiliary data, integral time auxiliary data, navigation auxiliary data, and attitude auxiliary data;
[0021] The attitude assistance data provides satellite attitude information for correction of corresponding image frames;
[0022] The time assistance data provides the satellite-to-ground time corresponding to the imaging moment, serving as the image timestamp and time calibration;
[0023] The integration time auxiliary data provides exposure time for the imaging spectrometer;
[0024] The navigation assistance data provides GPS positioning information;
[0025] The remote control instruction is an instruction for controlling the state of the hyperspectral imager.
[0026] Furthermore, in step 3, the bus interface between the hyperspectral imager and the timely task working module is a 1553B bus or a serial port.
[0027] Furthermore, in step 4, the telemetry frame packet includes a start code, a destination address code, a telemetry packet length, telemetry data packets 1 to telemetry data packets n, and a check code that are sequentially set;
[0028] The telemetry data packet includes a data response, a bus telemetry, an event report packet, a reception success packet, and a reception failure packet. The event report packet includes a packet ID, a packet count, a packet length, a service type, a number of events, and event 1 codes to event n codes, which are set in sequence;
[0029] The data response refers to a reply to the interrupt module within 2ms after the hyperspectral imager receives a single instruction, indicating whether the response is correct.
[0030] Furthermore, in step 5, the telemetry analysis module adopts online analysis and / or offline analysis during analysis. The online analysis adopts the method of binding the data source datatable with datagridview to realize the periodic analysis and update of data, and the offline analysis adopts the programmable method of excel+vba to graphically and intuitively analyze each segment of information.
[0031] Furthermore, in step 5, the telemetry information includes direct telemetry and bus telemetry, and the bus telemetry is divided into power-off state, compression encoder state, data communication state, power supply telemetry and AD state.
[0032] Furthermore, in step 6, both direct telemetry and bus telemetry periodically update their respective corresponding contents. When updating the contents, a double buffer is set up using a reflection mechanism to perform data update.
[0033] The reflection mechanism means that when a program is running, for any class or object, all properties and methods of this class or object can be obtained.
[0034] Furthermore, the main module is provided with a display interface, which is divided into an instruction set, parameter editing, sequence and sending time arrangement, control area, and log area.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] (1) The present invention achieves fully automatic control of the spectrometer operation by continuously inputting batches of instruction sequences. The data packets corresponding to different instructions in the present invention adopt a unified data packet format setting principle, which enables the instruction sequence to transfer data between different modules in a first-in, first-out data structure.
[0037] (2) The present invention can establish corresponding instruction sets according to different working modes or working scenarios of the hyperspectral imager, execute multiple instruction sets in sequence according to the set time in the hyperspectral imager, and realize the fusion of different instructions in the hyperspectral imager, making the operation of the hyperspectral imager more intelligent.
[0038] (3) In the present invention, multiple tasks are automatically executed in an orderly manner according to the set time intervals, and each task can be responded to in a timely manner. The modules are synchronized with each other, and robust measures for interaction between multiple modules are designed to form a high-speed and safe full-chain loop, so that multiple parallel modules can achieve pipeline-style automatic work.
[0039] (4) In the present invention, the data to be analyzed is analyzed by offline analysis and online analysis, thereby achieving periodic update of the data and intuitive analysis of each data. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 This is a flow chart of automatic control in the ground-based automatic control method for a hyperspectral imager of the present invention;
[0041] Figure 2 Schematic diagram of the instruction frame format in an embodiment of the present invention;
[0042] Figure 3 This is a schematic diagram of the instruction packet format in an embodiment of the present invention;
[0043] Figure 4 This is a schematic diagram of the telemetry frame packet format in an embodiment of the present invention;
[0044] Figure 5 Schematic diagram of the event report package format in an embodiment of the present invention; DETAILED DESCRIPTION
[0045] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.
[0046] The present invention provides a hyperspectral imager ground automatic analysis method, the automatic control process is as follows Figure 1 shown.
[0047] Step 1: Edit the instruction sequence in the main module and transfer the instruction sequence to the scheduled task generation module. The instruction series consists of many fixed-format instruction frames. The instruction frame format is as follows: Figure 2 As shown, it includes the start code, target address code, instruction data packet, bus channel and check code set in sequence, where the start code is EBH, which represents the ground detection computer; the target address codes 9BH~9EH represent the auxiliary data sending selection, 9AH represents telemetry acquisition, 99H represents instruction board 1, 98H represents instruction board 2, 97H represents instruction board 3, and 96H represents instruction board 4.
[0048] By editing, saving and loading the instruction sequence, the hyperspectral imager can achieve repeatable reproduction function in different working modes.
[0049] Step 1.1, establish an instruction set in the main module to control the hyperspectral imager corresponding to each single machine, each subsystem, each mode or each scene, such as imaging mode, calibration mode, visible working mode, infrared working mode, or push-broom test, thermal vacuum experiment, mechanical test and other scenes. The instruction set includes various single instructions for controlling at least one subsystem or at least one component of the hyperspectral imager.
[0050] Step 1.2: Search or screen by keywords to obtain the required single instruction. Multiple keyword searches can be performed to obtain multiple single instructions.
[0051] In step 1.3, all required single instructions are arranged to obtain an instruction data packet.
[0052] The format of the instruction data packet is as follows Figure 3 As shown, it includes the packet ID, packet count, packet length, service type, and a data area with a length of N set in sequence, and the packet length refers to the length N of the specified data area.
[0053] The command data packet format varies depending on the data type. For bus commands, the command data packet consists of a 4-byte instruction code. This includes commands for imaging and power-off, AD primary and backup settings, calibration and power-off, compression encoder parameter settings, imaging spectrometer exposure parameter settings, and refrigerator control. For telemetry acquisition commands, the command data includes bus telemetry information acquisition commands and direct telemetry information acquisition commands, both of which are 2-byte codes. For auxiliary data download commands, the length and content of the command data packet vary depending on the type of auxiliary data.
[0054] Step 1.4, parameterize the command data packet to obtain a command frame.
[0055] In step 1.5, multiple instruction frames are converted into an instruction sequence, and the instruction sequence is transmitted to the timing task generation module.
[0056] The main module provides command sequence editing. Edited command sequences are stored in XML format and can be loaded under the same operating environment as "commands" for automatically controlling the hyperspectral imager. Command frames are executed at user-defined intervals. For example, in infrared imaging mode, after the controller and primary / backup chillers are powered on, the chillers must operate for a specified period of time and reach the infrared detector's operating temperature before the infrared imaging circuit is powered on. After the infrared imaging circuit has operated for a specified period of time, it is powered off.
[0057] The coordinated operation of multiple command frames enables the hyperspectral imager to successfully complete corresponding commands in a multi-mode operating state. This multi-mode operation makes the spectrometer control more efficient. For example, during mechanical testing, the same set of instructions must be repeatedly executed to achieve vibrations of various mechanical magnitudes and directions. With the automation of control, more human control is freed up. This multi-mode combined with remote control method reduces human intervention and provides a better solution and working state for batch testing of hyperspectral imagers.
[0058] Step 2: The scheduled task generation module adds the instruction sequence to the real-time task queue according to the originally set interval. The scheduled task generation module sends the real-time task queue with the added instruction sequence, as well as the original periodic tasks, remote control instructions, and auxiliary data to the real-time task work module.
[0059] Auxiliary data includes four types: time assistance data, integrated time assistance data, navigation assistance data, and attitude assistance data. Auxiliary data is added to the corresponding data to form a complete data set. For example, attitude assistance data provides satellite attitude information, which can be used to correct the corresponding image frame. Time assistance data provides the satellite-to-ground time corresponding to the imaging moment, which serves as an image timestamp and time calibration. Integrated time assistance data provides the exposure time for the imaging spectrometer. Navigation assistance data provides GPS positioning information.
[0060] Remote control commands refer to commands that can control the state of the hyperspectral imager, such as power on and off, exposure time setting, calibration control, compression coding control, and frame rate control.
[0061] The original periodic tasks refer to cyclic tasks that need to be completed according to the time process within a certain period of time.
[0062] The real-time task worker module adds the instruction sequence to the real-time task queue and the existing periodic tasks, forming a unified real-time task sequence according to the time requirements. It then remotely transmits the real-time task sequence to the hyperspectral imager's bus interface, and the hyperspectral imager executes the real-time tasks in the real-time task sequence one by one. The execution of each real-time task causes the hyperspectral imager to change its state. The hyperspectral imager notifies the interrupt module of these state changes by sending telemetry frame packets, and the real-time task worker module transmits synchronization signals to the interrupt module.
[0063] The bus interface between the real-time task module and the hyperspectral imaging spectrometer can be a 1553B bus or serial port. The real-time task module synchronizes the 1553B bus or serial port, ensuring that only one type of data is available at a time. When the real-time task module sends a command to the hyperspectral imaging spectrometer, it automatically identifies the data interface type on the hyperspectral imaging spectrometer via the 1553B bus or serial port and automatically converts the data to the corresponding data type via the 1553B bus or serial port.
[0064] Step 3: The hyperspectral imager notifies the interrupt module of these status changes by sending telemetry frame packets. The format of the telemetry frame is as follows: Figure 4 As shown in the figure, it includes the start code, target address code, telemetry packet length telemetry data packet 1 to telemetry data packet n and check code. The format of telemetry data packet and command data packet is basically the same, the only difference is the starting packet ID. The length of telemetry data packet varies according to the data type, mainly including data response, bus telemetry, event report packet, reception success packet, reception failure packet and other types. Event report packet is as follows Figure 5 As shown, the event report packet includes the packet ID, packet count, packet length, service type, number of events, and event 1 code through event n code, which are set in sequence. The data response in the telemetry packet indicates whether the hyperspectral imager has responded correctly to the interrupt module within 2 milliseconds after receiving a single instruction. The interrupt module automatically receives the response.
[0065] The interrupt module processes the hyperspectral imager's response, telemetry, event report, and acceptance success or failure information, and queues these different types of information to notify the telemetry parsing module for processing.
[0066] Step 4: After the telemetry analysis module processes the telemetry information sent by the interruption module, it sends a signal to the interruption module. The interruption module sends the telemetry information to the telemetry analysis module again, and the telemetry analysis module promptly notifies the main module to update the analyzed telemetry information in the visual interactive interface, so that the visualization of the information is completed.
[0067] The telemetry parsing module's parsing process is illustrated below: For a chiller, it's necessary to count the chiller's operating hours and power-on / off cycles, control calibration time, and monitor and protect the instrument. The telemetry parsing module parses the chiller's data using both online and offline analysis. Online analysis uses a DataGridView bound to a DataTable to periodically update the data. Offline analysis uses Excel and Visual Basic (VBA) to programmatically analyze each segment of information in a graphical and intuitive manner.
[0068] Currently, hyperspectral imagers generate a large amount of telemetry information, and the update speed is relatively fast, which can cause lags when updating automatic parsing and analysis results. In this solution, telemetry information is divided into six categories: direct telemetry, power-on / off status, compression encoder status, data communication status, power supply telemetry, and AD status. The power-on / off status, compression encoder status, data communication status, power supply telemetry, and AD status are bus telemetry. After categorizing the telemetry information, direct telemetry and bus telemetry periodically update their corresponding content. During these updates, a double buffer is set up using the reflection mechanism to update the data and resolve lags. The so-called reflection mechanism refers to the ability to obtain all properties and methods of any class or object during program execution, including private properties and methods. This ability to dynamically obtain information and dynamically call object methods is called reflection. During the actual data update process, the data first enters the cache area and identifies the type of data being manipulated on the control page of the main module. If it is the same type of data, it is updated in time. If it is different type of data, it is updated when the same type of data is available or when there is no manipulation information on the control page of the main module within a certain period of time.
[0069] In addition, in order to resolve the contradiction that the telemetry analysis module affects the operation of the main interface when updating the main interface data, the delegate object is used to safely update the interface display in multiple threads and make the multi-level pipeline operation more robust.
[0070] The main module features a display interface divided into command set, parameter editing, sequence and transmission scheduler, control area, and log area. The simple interface makes it easy to quickly navigate through the complex array of commands and telemetry, while also providing convenient search functionality for timely and rapid response to user needs.
Claims
1. A hyperspectral imager ground automatic analysis method, characterized in that: The steps include: Step 1: Edit the instruction sequence in the main module and send the instruction sequence to the scheduled task generation module; Step 2: The scheduled task generation module adds the instruction sequence to the timely task queue according to the set time requirements; The scheduled task generation module sends the timely task queue with the added instruction sequence and the original periodic tasks, remote control instructions, and auxiliary data to the timely task working module; Step 3: The real-time task working module adds the real-time task queue with the instruction sequence and the original periodic tasks to form a real-time task sequence according to the time requirements, and then sends the real-time task sequence to the bus interface of the hyperspectral imager. The remote-controlled hyperspectral imager executes the real-time tasks in the real-time task sequence one by one. At the same time, the real-time task working module synchronously sends the information of the real-time task sequence sent to the hyperspectral imager to the interrupt module. Step 4: When the hyperspectral imager executes each timely task, a state change occurs, and the hyperspectral imager sends the state change to the interrupt module via a telemetry frame packet; Step 5: The interrupt module receives the telemetry frame packet sent by the hyperspectral imager, and combines the telemetry frame packet and the information of the timely task sequence sent synchronously by the timely task working module to form the telemetry information of the current task sequence, and sends the telemetry information to the telemetry parsing module for parsing and processing; Step 6: After the telemetry parsing module processes the telemetry information sent by the interrupt module, it sends a parsing completion signal to the interrupt module. After receiving the parsing completion signal, the interrupt module sends the telemetry information of the next task sequence to the telemetry parsing module again. At the same time, the telemetry parsing module notifies the main module to update the parsed telemetry information in the visual interactive interface.
2. The method for automatic ground analysis of a hyperspectral imager according to claim 1, characterized in that: The step 1 is specifically as follows: Step 1.1, establish the instruction set for controlling each unit and subsystem of the hyperspectral imager in the main module; Step 1.2, through keyword search or screening, to obtain a required single instruction; through multiple keyword searches, to obtain multiple single instructions; Step 1.3, arrange all required single instructions to obtain an instruction data packet; Step 1.4, parameterize the command data packet to obtain the command frame; In step 1.5, multiple instruction frames are converted into an instruction sequence, and the instruction sequence is transmitted to the timing task generation module.
3. A hyperspectral imager ground automatic analysis method according to claim 1 or 2, characterized in that: In step 2, the auxiliary data includes time auxiliary data, integral time auxiliary data, navigation auxiliary data, and attitude auxiliary data; The attitude assistance data provides satellite attitude information for correction of corresponding image frames; The time assistance data provides the satellite-to-ground time corresponding to the imaging moment, serving as the image timestamp and time calibration; The integration time auxiliary data provides exposure time for the imaging spectrometer; The navigation assistance data provides GPS positioning information; The remote control instruction is an instruction for controlling the state of the hyperspectral imager.
4. The method for automatic ground analysis of a hyperspectral imager according to claim 3, characterized in that: In step 3, the bus interface between the hyperspectral imager and the timely task working module is a 1553B bus or a serial port.
5. The method for automatic ground analysis of a hyperspectral imager according to claim 4, characterized in that: In step 4, the telemetry frame packet includes a start code, a destination address code, a telemetry packet length, telemetry data packets 1 to telemetry data packets n, and a check code, which are set in sequence; The telemetry data packet includes a data response, a bus telemetry, an event report packet, a reception success packet, and a reception failure packet. The event report packet includes a packet ID, a packet count, a packet length, a service type, a number of events, and event 1 codes to event n codes, which are set in sequence; The data response refers to a reply to the interrupt module within 2ms after the hyperspectral imager receives a single instruction, indicating whether the response is correct.
6. The method for automatic ground analysis of a hyperspectral imager according to claim 5, characterized in that: In step 5, the telemetry analysis module adopts online analysis and / or offline analysis during analysis. The online analysis uses the datagridview to bind the data source datatable to achieve periodic analysis and update of data, and the offline analysis uses Excel+VBA programmable method to graphically and intuitively analyze each segment of information.
7. The method for automatic ground analysis of a hyperspectral imager according to claim 6, characterized in that: In step 5, the telemetry information includes direct telemetry and bus telemetry, and the bus telemetry is divided into power-off state, compression encoder state, data communication state, power supply telemetry and AD state.
8. The method for automatic ground analysis of a hyperspectral imager according to claim 7, characterized in that: In step 6, both direct telemetry and bus telemetry periodically update their respective contents. When updating the contents, a double buffer is set up using the reflection mechanism to update the data. The reflection mechanism means that when a program is running, for any class or object, all properties and methods of this class or object can be obtained.
9. The method for automatic ground analysis of a hyperspectral imager according to claim 1, characterized in that: The main module is provided with a display interface, which is divided into an instruction set, parameter editing, sequence and sending time arrangement, control area, and log area.
Citation Information
Patent Citations
Hyperspectral imager 1553B bus communication method based on time service
CN112235032A
Device-ground state synchronization and comparison system and method
CN114492002A