Background
Currently, the closest prior art: infrared imaging requires infrared detectors to operate at reduced refrigeration temperatures, and space infrared cameras involve multiple components such as electronics, detectors, refrigerators, and scanning mechanisms. To achieve a ground-based observation, these sets of components need to work in concert in a certain order, and the operating parameters need to be adjusted frequently to accommodate optimal operating conditions. Therefore, more instructions are needed in design, sequence control and parameter uploading are carried out, the infrared camera can be flexibly set conveniently, the best working efficiency is exerted, and a large number of instructions and uploading data blocks are set in the traditional design.
In recent years, with the development of infrared remote sensing technology, the scale of an infrared line detector is expanded sharply, parameters to be controlled are increased correspondingly, working modes are increased accordingly, the number of instructions required by normal working of an infrared camera is increased, and the requirement for quick application cannot be met.
Therefore, the satellite-borne platform is provided with an instruction chain, instructions are prestored and called circularly, but the sequence, interval, code and the like of the instructions in the instruction chain are completely determined under general conditions, only limited instruction combinations are provided, modification and programming cannot be carried out on the orbit, only a few parameters can be modified, and the flexibility of space infrared camera working mode configuration and fault processing is limited.
In summary, the problems of the prior art are as follows: the existing satellite-borne platform is provided with an instruction chain, instructions are prestored, only limited instruction combinations are called in a circulating mode, modification and programming cannot be carried out on the orbit, only a few parameters can be modified, and the flexibility of space infrared camera working mode configuration and fault processing is limited.
The significance of solving the technical problems is as follows: the method and the device realize the adjustment of the working state of the infrared camera, solve the requirements that space infrared camera test and verification need to be covered one by one and the operation needs to be simplified, and improve the convenience of operation and control.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a method and a device for reconfiguring a space infrared camera instruction chain.
The invention is realized in this way, a reconfiguration method of a space infrared camera instruction chain, the reconfiguration method of the space infrared camera instruction chain comprises the following steps:
firstly, encoding the type of an upper note instruction into an instruction of 0x02, writing the instruction of an instruction pool, and writing the programmed instruction into a preset storage address;
secondly, encoding the type of the upper note instruction into an instruction of 0x03, configuring an instruction chain, and configuring the first instruction execution time, the instruction interval and the instruction sequence number of the instruction chain area;
thirdly, encoding the type of the upper note instruction into an instruction of 0x01, immediately instructing, and solidifying the data of the instruction area;
fourthly, the data in the instruction area is released and compared;
and fifthly, according to the requirement, the type of the upper note instruction is coded into an instruction of 0x01, the execution type is absolute addressing or shortcut, and an instruction chain is called to execute corresponding actions.
Further, the spatial infrared camera instruction chain reconfiguration method receives the instructions and data of the upper notes and designs three types of instructions;
the first is an immediate execution instruction, namely a traditional instruction, the type of the instruction is coded as 0x01, the instruction is divided into a notation with parameters and an immediate instruction without parameters, a plurality of quick instructions without parameters are preset according to conditions, and the quick instructions directly correspond to 32 instruction chain areas; the remarks with parameters can be used for flexibly adjusting the execution instructions;
the second is an instruction written into the instruction pool, and the instruction type is coded as 0x 02;
the third is an instruction chain configuration and execution instruction, which is specially used for configuring the execution time, the instruction number and the interval of the first instruction in the instruction pool, and the instruction type is coded as 0x 03.
Further, the instruction pool of the space infrared camera instruction chain reconfiguration method is arranged on an on-satellite solid-state storage unit, is an EEPROM or FLASH, and is used for partition management, and the capacity of each partition can be properly divided according to the size of a memory and the length of the instruction.
Further, after receiving the command, the command receiving unit of the spatial infrared camera command chain reconfiguration method performs judgment, and if the command is executed by the command chain, the command is forwarded to the command delay execution unit; the instruction delay execution unit has two execution modes: and the absolute addressing mode and the shortcut mode are selected by the execution type code, 0x01 is the absolute addressing mode, and 0x02 is the shortcut mode.
Further, the shortcut corresponds to an immediate instruction without parameters, when the received instruction execution type code conforms to the shortcut, the corresponding instruction chain area in the instruction pool is directly read, and all the instructions in the area are sequentially read out for execution;
if the instructions are needed to be used among different instruction chain areas, an absolute addressing mode is adopted; when the received instruction type code accords with an absolute addressing format and has address parameters, addressing is carried out according to a fixed partition, the 1 st instruction partition is recorded as 00H, the second instruction partition is recorded as 01H, corresponding instructions are read out in sequence according to the address code in the instructions and executed, and the addresses of the instruction bands are not more than 64 at most.
Another object of the present invention is to provide a spatial infrared camera instruction chain reconfiguration device based on the spatial infrared camera instruction chain reconfiguration method, where the spatial infrared camera instruction chain reconfiguration device includes:
the instruction receiving unit is used for receiving an instruction of the upper note;
the instruction pool is used for storing the received instructions;
and the instruction delay execution unit is used for reading and executing the instruction according to the agreed protocol.
The invention also aims to provide an infrared detector applying the spatial infrared camera instruction chain reconfiguration method.
In summary, the advantages and positive effects of the invention are: aiming at the characteristics of various instruction types and combinations of the satellite-borne infrared camera, instructions are sent and executed in batches in an instruction chain mode, and the instructions are stored in an instruction pool and can be edited and modified; the instruction pool can be drained and read back, comparison is convenient, the interval time, the instruction codes and the number of the instructions can be set through the upper injection parameters, the instructions in the instruction pool are called through the instruction chain table of the upper level, the instruction chain is formed, the instructions are sequentially sent, the working requirement of the infrared camera can be flexibly met, and the requirements that space infrared camera test verification needs to be covered one by one, and the instructions need to be simplified when a service runs are solved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
An instruction chain is designed for the existing satellite-borne platform, instructions are prestored, only limited instruction combinations are called in a circulating mode, modification and programming cannot be carried out on the orbit, only a few parameters can be modified, and flexibility of space infrared camera working mode configuration and fault processing is limited. The invention can update the instruction in the instruction pool, and update the instruction code and the instruction interval in an upper injection mode, thereby realizing the reconfiguration of the instruction chain of the space infrared camera; the instruction pool can drain back and forth, and comparison is convenient.
The following detailed description of the principles of the invention is provided in connection with the accompanying drawings.
As shown in fig. 1, the reconfiguration device for a spatial infrared camera instruction chain according to an embodiment of the present invention includes an instruction receiving unit 1, an instruction pool 2, and an instruction delay execution unit 3, where the instruction receiving unit 1 receives an instruction of an upper note, the instruction pool 2 stores the received instruction, and the instruction delay execution unit 3 reads and executes the instruction according to an agreed protocol.
The instruction receiving unit 1 receives the instructions and data of the upper notes, and three types of instructions are designed. The first is an immediate execution instruction, i.e. a traditional instruction, the type of the instruction is coded as 0x01, and the instruction is divided into a notation with parameters and an immediate instruction without parameters, and a plurality of (for example, 32) fast instructions without parameters can be preset according to the situation, and directly correspond to 32 instruction chain areas; while the wagers with parameters may be used to flexibly adjust the execution instructions. The second is an instruction that writes to the pool of instructions, the instruction type is encoded as 0x 02. The third is an instruction chain configuration and execution instruction, which is specially used for configuring the execution time, instruction number, interval and the like of the first instruction in the instruction pool, and the instruction type is coded as 0x 03.
The instruction pool 2 is arranged on an on-satellite solid-state storage unit, is an EEPROM or FLASH, and is used for carrying out partition management, the capacity of each partition can be properly divided according to the size of a memory and the length of the instruction, for example, each instruction or a comment block is fixedly divided into 512-byte storage areas, and each storage area only stores 1 instruction or data block; each instruction storage area is divided into two parts, and the first part stores information such as the serial number of the instruction area and the time interval between the serial number and the next instruction in 16 bytes; the second part stores original codes of instructions or injection data blocks from the 17 th byte to the 512 th byte; every 32/64 instruction storage areas are divided into an instruction chain area, so that one instruction chain can carry 32/64 instructions at most, and the number of the instruction chains can be determined according to the size of the memory, such as 32;
after receiving the instruction, the instruction delay execution unit 3 determines that the instruction is to be executed by the instruction chain, and forwards the instruction to the instruction delay execution unit if the instruction is to be executed by the instruction chain. The instruction delay execution unit has two execution modes: and the absolute addressing mode and the shortcut mode are selected by the execution type code, 0x01 is the absolute addressing mode, and 0x02 is the shortcut mode. The shortcut corresponds to an immediate instruction without parameters, when the received instruction execution type code conforms to the shortcut, the corresponding instruction chain area in the instruction pool is directly read, all the instruction executions in the area are sequentially read out, and if the shortcut 1 corresponds to the instruction chain area 1, the shortcut 2 corresponds to the instruction chain area 2, and so on. Absolute addressing may be used if instructions need to be used between different instruction chain regions. When the received instruction type code accords with an absolute addressing format and has an address parameter, addressing is carried out according to the fixed partition (such as a 512-byte instruction storage area), the 1 st instruction partition is recorded as 00H, the second instruction partition is recorded as 01H, and so on, corresponding instructions are read out in sequence according to the address code in the instructions and executed, the addresses of the instruction bands do not exceed 64 at most, the mode is flexible, and the instructions can be combined randomly in an appointed address range.
As shown in fig. 2, the method for reconfiguring the instruction chain of the spatial infrared camera according to the embodiment of the present invention includes the following steps:
s201: the upper note instruction type is coded into an instruction of 0x02, namely an instruction of a write instruction pool, and the programmed instruction is written into a preset storage address;
s202: the upper note instruction type is coded as 0x03 instruction, namely instruction chain configuration instruction, and the first instruction execution time, instruction interval and instruction sequence number of the configuration instruction chain region;
s203: the type of the upper note instruction is coded into an instruction of 0x01, namely an immediate instruction, and the data of the instruction area are solidified;
s204: comparing the data in the instruction area;
s205: according to the requirement, the type of the upper note instruction is coded into an instruction (namely an immediate instruction) of 0x01, the execution type is absolute addressing or shortcut, and the call instruction chain executes the corresponding action.
The application of the principles of the present invention will now be described in further detail with reference to the accompanying drawings.
Example 1: the design steps of the reconfiguration method of the space infrared camera instruction chain provided by the embodiment of the invention are as follows.
S1, sorting the switching sequence of the infrared camera and the parameters to be injected, and compiling the sequences into instructions and injection parameters A0; arranging 3 types of working modes, and respectively compiling the working modes into A1 instructions, A2 instructions and A3 instructions;
s2, coding the type of the upper note instruction into an instruction of 0x02, namely, writing the instruction in an instruction pool, and sequentially writing the instruction compiled in S1 into predetermined 4 storage areas (instruction chain areas B0, B1, B2 and B3) by a camera main control CPU according to the sending sequence of service work, wherein the storage area is divided into 256 bytes of each instruction, and the storage space of (A0+ A1+ A2+ A3) 256 bytes is needed in total;
s3, encoding the type of the upper note instruction into an instruction of 0x03, namely an instruction chain configuration instruction, and configuring the first instruction execution time, the instruction interval and the instruction sequence number of the instruction chain area; 4 instruction chain regions, which need to send 4 configuration instructions;
s4, encoding the type of the upper note command into a command of 0x01, namely an immediate command, and solidifying the data of the command area in the EEPROM;
s5, performing ground comparison on data of the leakage instruction area through the telemetering channel;
s6, when the computer is started, the type code of the upper note instruction is an instruction (namely an immediate instruction) of 0x01, the execution type is a shortcut, and the instruction chain in the B0 area is called to execute the on-state setting; when the working mode needs to be switched, an immediate instruction is sent, the execution type is a shortcut, and a B1/B2/B3 area instruction chain is called to execute the switching of the working mode;
s7, if the period parameter is modified, repeating the steps S1-S6.
Example 2: the design steps of the reconfiguration method of the space infrared camera instruction chain provided by the embodiment of the invention are as follows.
S1, sorting the switching sequence of the infrared camera and the parameters to be injected, and compiling the sequences into instructions and injection parameters A0; arranging 5 types of working modes, and respectively compiling the working modes into A1 instructions, A2 instructions, A3 instructions, A4 instructions and A5 instructions;
s2, coding the type of the upper note instruction into an instruction of 0x02, namely an instruction of a writing instruction pool, sequentially writing the instruction coded in S1 into predetermined 4 storage areas (instruction chain areas B0, B1, B2, B3, B4 and B5) by a camera FPGA according to the sending sequence of service work, wherein the storage areas are divided into 512 bytes for each instruction, and a storage space of (A0+ A1+ A2+ A3+ A4+ A5) 512 bytes is needed in total;
s3, encoding the type of the upper note instruction into an instruction of 0x03, namely an instruction chain configuration instruction, and configuring the first instruction execution time, the instruction interval and the instruction sequence number of the instruction chain area; 6 instruction chain regions, which need to send 6 configuration instructions;
s4, encoding the type of the upper note instruction into an instruction of 0x01, namely an immediate instruction, and solidifying the data of the instruction area in the FLASH;
s5, performing ground comparison on data in the let-down instruction area through a data transmission channel;
s6, when the computer is started, the type code of the upper note instruction is an instruction (namely an immediate instruction) of 0x01, the execution type is a shortcut, and a B0 area instruction chain is called to execute the startup and state setting;
s7, when the working mode needs to be switched, the execution type is an absolute addressing mode, the instruction is edited, a plurality of instructions in an instruction chain of a B1/B2/B3/B4/B5 area are called according to the required instruction sequence, and after the instructions are sequenced, an immediate instruction is sent and sent, and the working mode switching is executed;
s8, if the period parameter is modified, repeating the steps S1-S7.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.