CN102999331A - Hardware blocking layer of onboard software and onboard data communication method - Google Patents
Hardware blocking layer of onboard software and onboard data communication method Download PDFInfo
- Publication number
- CN102999331A CN102999331A CN 201210452232 CN201210452232A CN102999331A CN 102999331 A CN102999331 A CN 102999331A CN 201210452232 CN201210452232 CN 201210452232 CN 201210452232 A CN201210452232 A CN 201210452232A CN 102999331 A CN102999331 A CN 102999331A
- Authority
- CN
- China
- Prior art keywords
- telemetry
- function
- acquisition
- application software
- remote
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Selective Calling Equipment (AREA)
Abstract
The invention provides a hardware blocking layer of onboard software and an onboard data communication method, and belongs to the field of space vehicle data communication. Interface set with corresponding functions are designed targeted at the functions of hardware equipment to form the hardware blocking layer for the onboard software; the interface set comprises a standard input/output interface function, calling parameters of the interface function comprise equipment property parameters and data communication interface parameters; and the interface function can achieve a certain function and has a return value. When the onboard data communication method disclosed by the invention is used, application software only need to provide the equipment property parameters and communication interface parameters when necessary, then the interface function is called to finish the communications with the hardware equipment. The hardware blocking layer for the onboard software and the onboard data communication method disclosed by the invention are mainly applied to communications between the hardware equipment and the upper software of the space vehicle.
Description
Technical field
The invention belongs to the spacecraft data communication field.
Background technology
The present invention relates to the hardware device of spacecraft and the communication between the application software, communication system relates generally to hardware device level and software application layer on the existing spacecraft star, it is direct read/write hardware port address for the access of hardware port mostly that this type of layered mode causes application layer in the spaceborne software of spacecraft, require the Application developer will be perfectly clear to the hardware effort process so on the one hand, cause portability and the maintainability of software poor, the code that has on the other hand a lot of operational hardwares in software application layer, cause the hierarchical structure of hardware and application layer fuzzy, reliability of software is poor.
In the situation of direct read/write hardware port address not, realize applicable to hardware device of application software, and the portability and the maintainability that improve application software are the developing direction of communication system on the spacecraft star.Therefore setting up novel spacecraft On-Star system hierarchy, is problem demanding prompt solution
Summary of the invention
In view of this, the present invention proposes a kind of hardware shield layer of spaceborne software, the present invention designs specific interface function mainly for the application characteristic of spaceborne software and the function of hardware device, forms screen layer, with hardware device and application software isolation; Set up the three-decker of hardware layer-screen layer-software application layer, so that the hierarchical structure of communication system is clear on the spacecraft star.
Based on above-mentioned purpose, technical scheme of the present invention is as follows:
Beneficial effect:
One, this method is with hardware device and application software isolation, only communicate by interface function, set up on this basis the three-decker design of hardware device level, screen layer and software application layer, so that the hierarchical structure of communication system is clear on the spacecraft star, improved the portable and maintainable of software;
Two, the method is for the functional characteristics of hardware device and the demand of application software, designed the standardized interface function that meets communication interface, by each functional sequence of communication system on the star is analyzed, the design sums up necessary several functions, and for each Functional Design set of interfaces; The design adopts less interface function can contain the various functions of hardware device, and occupying system resources is few; Simultaneously, different application for identical function, the present invention has designed different functions and has realized its application, for example all passage telemetry-acquisitions enable function and the single channel telemetry-acquisition enables function, all passage telemetry function reading and single channel telemetry function reading, this design has improved the processing speed of screen layer, can realize more rationally and effectively that application software is to the shielding of hardware device.
Description of drawings
The relation of Fig. 1 hardware device and application software;
All passage Telemetry Data Acquisition flow processs of Fig. 2 (a);
(b) single channel Telemetry Data Acquisition flow process;
Fig. 3 (a) telemetry output flow process;
(b) remote measurement output interrupt service routine;
Fig. 4 remote-control data receives flow process;
Fig. 5 instruction output flow process.
Embodiment
The present invention is directed to the function of different hardware equipment, while is in conjunction with the demand of application software, designed the hardware shield layer of spaceborne software, this screen layer comprises the set of interfaces of various hardware devices, the set of interfaces of each hardware device comprises the interface that can realize specific function, total interface all realizes that by the form of interface function application software uses specific call parameters can call each interface function, and interface function has certain rreturn value.Interface function is invisible to using software.The present invention has designed the communication means of data on the star simultaneously, even use above-mentioned screen layer, realize the data communication of application software and hardware device, the method is so that application software need not direct read/write hardware port address, only the calling interface function can finish with hardware device between communicate by letter.The present invention is mainly used in spacecraft hardware device and inter-application communication.
Below in conjunction with the accompanying drawing embodiment that develops simultaneously, describe the present invention.
As shown in Figure 1, designed screen layer is arranged between application software and the hardware device in the present embodiment, comprise 4 set of interfaces, the corresponding hardware device that can realize specific function of each set of interfaces, wherein 4 interfaces are in conjunction with being respectively: telemetry-acquisition set of interfaces, the set of remote measurement output interface, remote control reception set of interfaces, the set of instruction output interface, total interface is all realized data transmission and hardware controls with interface function.The interface function that each set of interfaces comprises is specific as follows:
(1) telemetry-acquisition set of interfaces comprises: telemetry-acquisition device initialize interface, all passage telemetry-acquisitions enable interface, telemetry-acquisition forbids that interface, single channel telemetry-acquisition enable interface, all passage telemetry fetch interfaces, single channel telemetry fetch interface.
Telemetry-acquisition device initialize function returns telemetry-acquisition device attribute pointer without call parameters; Telemetry-acquisition device initialize function is to comprising in the telemetry-acquisition equipment: all passage telemetry-acquisitions enable to identify, sign is finished in telemetry-acquisition, the single channel telemetry-acquisition enables to identify, the device attribute of telemetry-acquisition state, telemetry-acquisition equipment buffer area, channel number, single channel telemetry buffer area, device attribute pointer is carried out initialization;
The call parameters that all passage telemetry-acquisitions enable function is telemetry-acquisition device attribute pointer, without rreturn value; All passage telemetry-acquisitions enable function according to telemetry-acquisition device attribute pointer, start telemetry-acquisition equipment, and telemetry-acquisition equipment begins to gather the telemetry of all passages,
The call parameters that the single channel telemetry-acquisition enables function is device attribute pointer and channel number, without rreturn value; The single channel telemetry-acquisition enables function according to telemetry-acquisition device attribute pointer, starts telemetry-acquisition equipment, and telemetry-acquisition equipment begins to gather by channel number the telemetry of special modality;
The call parameters of all passage remote measurement function reading is telemetry memory address in telemetry-acquisition device attribute pointer and the application software, returns that telemetry reads successfully sign or telemetry reads unsuccessfully sign; All passage remote measurement function reading detect judges whether sign is finished in telemetry-acquisition effective, if effectively then read all passage telemetries according to telemetry-acquisition device attribute pointer from telemetry-acquisition equipment, deposit telemetry memory address in the application software in, and return telemetry and read successfully sign; If it is invalid that sign is finished in telemetry-acquisition, then be left intact, return telemetry and read unsuccessfully sign;
The call parameters of single channel remote measurement function reading is telemetry memory address and channel number in telemetry-acquisition device attribute pointer, the application software, detect and judge whether sign is finished in telemetry-acquisition effective, if effectively then read single channel telemetry from telemetry-acquisition equipment by channel number according to telemetry-acquisition device attribute pointer, deposit telemetry memory address in the application software in, and return telemetry and read successfully sign; If it is invalid that sign is finished in telemetry-acquisition, then be left intact, return telemetry and read unsuccessfully sign;
Telemetry-acquisition forbids that the call parameters of function is telemetry-acquisition device attribute pointer, and telemetry-acquisition forbids that function control telemetry-acquisition equipment stops to gather remote measurement without rreturn value.
Shown in Fig. 2 (a), all passage telemetry-acquisition processes are as follows:
1, application software invocation facility initialization function at first, the device initialize function carries out initialization to the telemetry-acquisition device attribute, and Returning equipment attribute pointer;
2, application software is called all passage telemetry-acquisitions and is enabled function, starts telemetry-acquisition equipment and begins to gather all passage telemetries, without rreturn value;
3, application software is waiting for that telemetry-acquisition equipment has gathered all passage telemetries after the required theoretical time, propose to interrupt and enter telemetry-acquisition finishing interrupt service routine, telemetry-acquisition is finished and telemetry-acquisition is set in the interrupt service routine is finished and be designated effectively, finish interrupt service routine with the backed off after random telemetry-acquisition, call the telemetry function reading; Before all passage Telemetry Data Acquisitions are finished, telemetry-acquisition finish be designated invalid;
4, all passage telemetry function reading detect and gather whether finish sign effective, thereby whether the telemetry-acquisition process of judging telemetry-acquisition equipment is finished, if detect to gather and finish sign effectively, all passage telemetry function reading then read all passage telemetries and export to application software from telemetry-acquisition equipment, return simultaneously and read successfully sign; Sign is invalid if detection collection is finished, and then telemetry-acquisition process is not yet finished, and the telemetry function reading is returned simultaneously and read unsuccessfully sign to application software output telemetry;
If 5 application software need telemetry-acquisition equipment to stop to gather remote measurement, then call telemetry-acquisition and forbid function.
Shown in Fig. 2 (b), single channel telemetry-acquisition process is as follows:
1, application software invocation facility initialization function at first, the device initialize function carries out initialization to the telemetry-acquisition device attribute, and Returning equipment attribute pointer;
2, application software is called the single channel telemetry-acquisition and is enabled function, starts telemetry-acquisition equipment and begins to gather the single channel telemetry by channel number, without rreturn value;
3, application software is waiting for that telemetry-acquisition equipment has gathered the single channel telemetry after the required theoretical time, propose to interrupt and enter telemetry-acquisition finishing interrupt service routine, telemetry-acquisition is finished and telemetry-acquisition is set in the interrupt service routine is finished and be designated effectively, finish interrupt service routine with the backed off after random telemetry-acquisition, call the telemetry function reading; Before the single channel Telemetry Data Acquisition is finished, telemetry-acquisition finish be designated invalid;
4, single channel telemetry function reading detect to gather whether finish sign effective, thereby whether the telemetry-acquisition process of judging telemetry-acquisition equipment is finished, if detect to gather and finish sign effectively, single channel telemetry function reading then reads the single channel telemetry and exports to application software from telemetry-acquisition equipment by channel number, returns simultaneously and reads successfully sign; Sign is invalid if detection collection is finished, and then telemetry-acquisition process is not yet finished, and the telemetry function reading is returned simultaneously and read unsuccessfully sign to application software output telemetry;
If 5 application software need telemetry-acquisition equipment to stop to gather remote measurement, then call telemetry-acquisition and forbid function.
(2) remote measurement output interface set comprises: remote measurement output device initialization interface, telemetry output interface, interface when obtaining the next frame star, obtain the sync id interface, the bit rate interface is set, the coded system interface is set.
Remote measurement output device initialization function is without call parameters, Returning equipment attribute pointer; Remote measurement output device initialization function to comprise in the remote measurement output device remote measurement output device buffer area, the knowledge of buffer area full scale, sync id, buffer area output identification, buffer area more when new logo, address data output pointer, star the attribute of memory block, bit rate and coded system, bit rate and coded system switching state sign, bit rate and coded system configuration register carry out initialization;
The call parameters of telemetry output function is: telemetry memory address and byte number in remote measurement output device attribute pointer, the application software, return telemetry and export successfully sign or telemetry and export unsuccessfully and identify; The telemetry output function detects according to remote measurement output device attribute pointer whether the remote measurement output device is current free buffer area, if free buffer area is arranged, the remote measurement output function receives the telemetry of application software transmission and stores the sky buffer area into, and return telemetry to application software and export successfully sign, wherein the telemetry of application software transmission is stored in the telemetry memory address memory block pointed in the application software, and the size of the address data memory in the application software is the given byte number of call parameters; If there is not the sky buffer area, the remote measurement output function only returns telemetry to application software and exports unsuccessfully sign;
The call parameters of function is when obtaining the next frame star: memory address during star in remote measurement output device attribute pointer, the application software, without rreturn value; Function is according to remote measurement output device attribute pointer when obtaining the next frame star, when obtaining the next frame star in the memory block during star in the remote measurement output device, and when being stored in star in the application software during with star in the memory address;
The call parameters of obtaining the sync id function is remote measurement output device attribute pointer, returns that synchronizing information identifies effective Y or synchronizing information identifies invalid N; Obtain the sync id in the sync id function check remote measurement output device, if sync id is effectively, then returns synchronizing information and identify effective Y; If sync id is invalid, then returns synchronizing information and identify invalid N.
The call parameters that the bit rate function is set is remote measurement output device attribute pointer, code rate identifier, without rreturn value; Bit rate function record code rate identifier is set, and the switching code rate identifier is set for effective;
The call parameters that the coded system function is set is remote measurement output device attribute pointer, coded system sign, without rreturn value; Coded system function record coding mode is set identifies, and arrange and switch coded system and be designated effectively.
Shown in Fig. 3 (a), the telemetry read operation is as follows:
A, application software are at first called remote measurement output device initialization function, and the remote measurement output device is carried out the attribute initialization, and obtain remote measurement output device attribute pointer;
B, application software are called the telemetry output function, judge the current free buffer area that whether is in the telemetry output function, if have then receive the telemetry that application software sends and store the sky buffer area into, and return telemetry to application software and export successfully and identify.If do not have the sky buffer area then only return telemetry to application software and export unsuccessfully and identify.
C, application software are periodically called and are obtained the sync id function, whether detect sync id is effective, judge the current synchronizing information that whether has: if sync id is for effective, application software is then called the telemetry output function new telemetry is sent to the remote measurement output device, if do not have synchronizing information then application software does not deal with.Wherein call and obtain the time that the sync id period of a function is every frame telemetry frame data output.
D, application software are called function when obtaining the next frame star at every turn before organizing telemetry frame, when obtaining being organized into the star in the telemetry frame.
E, after the bit rate switching command is injected on ground, application software is called the bit rate function is set, and records new bit rate and the switching code rate identifier is set, without rreturn value.
F, after the coded system switching command is injected on ground, application software is called the coded system function is set, and records new coded system and arrange to switch the coded system sign, without rreturn value.
G, wherein every output 8 byte datas of remote measurement output device propose an interruption, enter remote measurement output interrupt service routine, will 8 bytes next time in the remote measurement output interrupt service routine write in the buffer area of remote measurement output device to wait for output.Judged whether the switching code rate identifier behind the complete frame data of the remote measurement output every output of interrupt service routine, if the code rate identifier of switching is arranged then enable new bit rate, if do not switch code rate identifier then do not deal with; Judged whether simultaneously to switch the coded system sign, if the coded system of switching sign is arranged then enable new coded system, if do not switch the coded system sign then do not deal with.
3 buffer areas of remote measurement output device design, the first two buffer area are used for the telemetry that the buffer memory application software sends, and the 3rd buffer area is the idle frame buffer area.
Under normal circumstances, telemetry in remote measurement output interrupt service routine output the first two buffer area, exported when obtaining the next frame star after the data in the buffer area, memory block when storing star into, sync id is set, the empty sign of buffer area is set, judge simultaneously whether the another one buffer area has had new telemetry to deposit in, if deposited new telemetry in then switch buffer area, export new telemetry.If the another one buffer area not yet deposits new telemetry in, then switch to the 3rd buffer area, the output idle frame.Remote measurement output interrupt service routine flow process is shown in Fig. 3 (b).
(3) the remote control reception set of interfaces comprises: remote control reception device initialize interface and remote-control data receiving interface.
Remote control reception device initialize function is without call parameters, and returns remote control reception device attribute pointer; Remote control reception device initialize function comprises that to remote control reception equipment the initialization of remote-control channel buffer area, remote-control channel finish to be identified at interior attribute and carry out initialization.
The call parameters of remote-control data receiver function is remote control reception device attribute pointer and remote-control data memory address, the remote-control data receiver function detects remote-control channel and receives the end sign, finish sign then the remote-control data of this passage is exported to application software if determine remote-control channel, and return remote-control data to application software and receives successfully and identify; Do not finish sign then do not deal with if determine remote-control channel, only return the remote-control data sign that takes defeat to application software.
As shown in Figure 4, the remote control reception process is as follows:
1, application software invocation facility initialization function carries out initialization to remote control reception equipment, and obtains the device attribute pointer;
2, application software is called the remote-control data receiver function and is obtained remote-control data.The remote-control data receiver function detects remote-control channel and receives the end sign, if determining remote-control channel finishes sign then the remote-control data of this passage is exported to application software, do not finish sign then do not deal with if determine remote-control channel, only return the remote-control data sign that takes defeat to application software.
Wherein remote-control channel receives to finish to identify and is arranged by the remote control interrupt service routine.Each 8 bytes that receive of remote control interrupt service routine store remote-control data into the remote-control channel buffer area, record the byte number that receives, and judge whether the passage reception finishes, and show that remote-control channel receives end if finish then sign is set.
(4) set of instruction output interface comprises: instruction output device initialization interface and order code transmission interface.
Instruction output device initialization function is without call parameters, and link order output device attribute pointer; Instruction output device initialization function creates the 80ms timer in the instruction output device, finish the initialization of instruction output device attribute.
The call parameters that order code sends function is instruction output device attribute pointer and order code, and order code sends function and according to instruction output device pointer order code write the port address of instruction output device, then starts the 80ms timer, without rreturn value.
As shown in Figure 5, instruction output procedure is as follows:
1, application software invocation facility initialization function carries out initialization to the instruction output device, and obtains the device attribute pointer;
2, application software call instruction code sends function, and order code is as the function parameter transmission.Order code sends function and then order code is write instruction output device port address, then starts the 80ms timer, sign on pulse output.The 80ms timer is then given the write parameters halt instruction pulse of corresponding hardware port address afterwards, i.e. instruction is sent completely.
In sum, more than be preferred embodiment of the present invention only, be not for limiting protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (2)
1. the hardware shield layer of a spaceborne software, it is characterized in that, screen layer is between application software and hardware device, comprise 4 set of interfaces, the corresponding hardware device that can realize specific function of each set of interfaces, described 4 set of interfaces are: telemetry-acquisition set of interfaces, the set of remote measurement output interface, remote control reception set of interfaces, the set of instruction output interface, and total interface is all realized with the form of interface function;
The interface function that each set of interfaces comprises is specific as follows:
(1) telemetry-acquisition set of interfaces comprises: telemetry-acquisition device initialize interface, all passage telemetry-acquisitions enable interface, telemetry-acquisition forbids that interface, single channel telemetry-acquisition enable interface, all passage telemetry fetch interfaces, single channel telemetry fetch interface;
Telemetry-acquisition device initialize function returns telemetry-acquisition device attribute pointer without call parameters; Telemetry-acquisition device initialize function carries out initialization to the device attribute in the telemetry-acquisition equipment;
The call parameters that all passage telemetry-acquisitions enable function is telemetry-acquisition device attribute pointer, without rreturn value; All passage telemetry-acquisitions enable function according to telemetry-acquisition device attribute pointer, start telemetry-acquisition equipment, and telemetry-acquisition equipment begins to gather the telemetry of all passages;
The call parameters that the single channel telemetry-acquisition enables function is device attribute pointer and channel number, without rreturn value; The single channel telemetry-acquisition enables function according to telemetry-acquisition device attribute pointer, starts telemetry-acquisition equipment, and telemetry-acquisition equipment begins to gather by channel number the telemetry of special modality;
The call parameters of all passage remote measurement function reading is telemetry memory address in telemetry-acquisition device attribute pointer and the application software, returns that telemetry reads successfully sign or telemetry reads unsuccessfully sign; All passage remote measurement function reading detect judges whether sign is finished in telemetry-acquisition effective, if effectively then read all passage telemetries according to telemetry-acquisition device attribute pointer from telemetry-acquisition equipment, deposit telemetry memory address in the application software in, and return telemetry and read successfully sign; If it is invalid that sign is finished in telemetry-acquisition, then only return telemetry to application software and read unsuccessfully sign;
The call parameters of single channel remote measurement function reading is telemetry memory address and the channel number in telemetry-acquisition device attribute pointer, the application software, returns that telemetry reads successfully sign or telemetry reads unsuccessfully sign; Single channel remote measurement function reading detects judges whether sign is finished in telemetry-acquisition effective, if effectively then read single channel telemetry from telemetry-acquisition equipment by channel number according to telemetry-acquisition device attribute pointer, deposit in the telemetry memory address in the application software, and return telemetry and read successfully sign; If it is invalid that sign is finished in telemetry-acquisition, only return telemetry to application software and read unsuccessfully sign
Telemetry-acquisition forbids that the call parameters of function is telemetry-acquisition device attribute pointer, without rreturn value; Telemetry-acquisition forbids that function control telemetry-acquisition equipment stops to gather remote measurement;
(2) remote measurement output interface set comprises: remote measurement output device initialization interface, telemetry output interface, interface when obtaining the next frame star, obtain the sync id interface, the bit rate interface is set, the coded system interface is set;
Remote measurement output device initialization function is without call parameters, Returning equipment attribute pointer; Remote measurement output device initialization function carries out initialization to the attribute in the remote measurement output device;
The call parameters of telemetry output function is: telemetry memory address and byte number in remote measurement output device attribute pointer, the application software, return telemetry and export successfully sign or telemetry and export unsuccessfully and identify; The telemetry output function detects according to remote measurement output device attribute pointer whether the remote measurement output device is current free buffer area, if free buffer area is arranged, the remote measurement output function receives the telemetry of application software transmission and stores the sky buffer area into, and return telemetry to application software and export successfully sign, wherein the telemetry of application software transmission is stored in the telemetry memory address memory block pointed in the application software, and the size of the address data memory in the application software is the given byte number of call parameters; If there is not the sky buffer area, the remote measurement output function only returns telemetry to application software and exports unsuccessfully sign;
The call parameters of function is when obtaining the next frame star: memory address during star in remote measurement output device attribute pointer, the application software, without rreturn value; Function is according to remote measurement output device attribute pointer when obtaining the next frame star, when obtaining the next frame star in the memory block during star in the remote measurement output device, and when being stored in star in the application software during with star in the memory address;
The call parameters of obtaining the sync id function is remote measurement output device attribute pointer, returns that synchronizing information identifies effective Y or synchronizing information identifies invalid N; Obtain the sync id in the sync id function check remote measurement output device, if sync id is effectively, then returns synchronizing information and identify effective Y; If sync id is invalid, then returns synchronizing information and identify invalid N;
The call parameters that the bit rate function is set is remote measurement output device attribute pointer, code rate identifier, without rreturn value; Bit rate function record code rate identifier is set, and it is effective that the switching code rate identifier is set;
The call parameters that the coded system function is set is remote measurement output device attribute pointer, coded system sign,, without rreturn value; Coded system function record coding mode is set identifies, and arrange and switch coded system and be designated effectively;
(3) the remote control reception set of interfaces comprises: remote control reception device initialize interface and remote-control data receiving interface;
Remote control reception device initialize function is without call parameters, and returns remote control reception device attribute pointer; Remote control reception device initialize function carries out initialization to the attribute of remote control reception equipment;
The call parameters of remote-control data receiver function is remote control reception device attribute pointer and remote-control data memory address, the remote-control data receiver function detects remote-control channel and receives the end sign, if determining remote-control channel finishes sign then the remote-control data of this passage is exported to application software, store in the application software in the remote-control data memory address, and return remote-control data to application software and receive successfully sign; Do not finish sign then do not deal with if determine remote-control channel, only return the remote-control data sign that takes defeat to application software;
(4) set of instruction output interface comprises: instruction output device initialization interface and order code transmission interface;
Instruction output device initialization function is without call parameters, and link order output device attribute pointer; Instruction output device initialization function creates the 80ms timer in the instruction output device, finish the initialization of instruction output device attribute;
The call parameters that order code sends function is instruction output device attribute pointer and order code, and order code sends function will write instruction output device port address with order code according to instruction output device attribute pointer, then start the 80ms timer, without rreturn value.
2. data communications method on the star of a spaceborne software is characterized in that, the hardware shield layer of a kind of spaceborne software as claimed in claim 1 is set between application software and hardware device, and data communication comprises following process on the star of spaceborne software:
All passage telemetry-acquisition processes are as follows:
1) application software invocation facility initialization function at first is without call parameters; The device initialize function carries out initialization to the device attribute in the telemetry-acquisition equipment, and Returning equipment attribute pointer;
2) application software is called all passage telemetry-acquisitions and is enabled function, and call parameters is telemetry-acquisition device attribute pointer; All passage telemetry-acquisitions enable function according to telemetry-acquisition device attribute pointer, start telemetry-acquisition equipment, and telemetry-acquisition equipment begins to gather the telemetry of all passages, without rreturn value;
3) application software is waited for certain hour, described certain hour is that telemetry-acquisition equipment has gathered the used time of all passage telemetries in theory, application software proposes to interrupt and enter telemetry-acquisition finishing interrupt service routine after telemetry-acquisition equipment has gathered all passage telemetries, telemetry-acquisition is finished and telemetry-acquisition is set in the interrupt service routine is finished and be designated effectively, finish interrupt service routine with the backed off after random telemetry-acquisition, call all passage telemetry function reading, call parameters is telemetry memory address in telemetry-acquisition device attribute pointer and the application software; Gathering before all passage telemetries finish, telemetry-acquisition finish be designated invalid;
4) all passage telemetry function reading detect and gather whether finish sign effective, thereby whether the telemetry-acquisition process of judging all passage telemetry-acquisition equipment is finished, if detect to gather and finish sign effectively, all passage telemetry function reading then read all passage telemetries and export to application software according to telemetry-acquisition device attribute pointer from telemetry-acquisition equipment, return simultaneously and read successfully sign; If detect and gather that to finish sign invalid, then telemetry-acquisition process is not yet finished, and the telemetry function reading is returned simultaneously and read unsuccessfully sign to application software output telemetry;
5) if application software needs telemetry-acquisition equipment to stop to gather remote measurement, then call telemetry-acquisition and forbid function, call parameters is telemetry-acquisition device attribute pointer, and telemetry-acquisition forbids that function control telemetry-acquisition equipment stops to gather remote measurement, without rreturn value;
Single channel telemetry-acquisition process is as follows:
1) application software invocation facility initialization function at first is without call parameters; The device initialize function carries out initialization to the device attribute in the telemetry-acquisition equipment, and Returning equipment attribute pointer;
2) application software is called the single channel telemetry-acquisition and is enabled function, and call parameters is telemetry-acquisition device attribute pointer and channel number; The single channel telemetry-acquisition enables function according to telemetry-acquisition device attribute pointer, starts telemetry-acquisition equipment, and telemetry-acquisition equipment begins to gather single pass telemetry by channel number, without rreturn value;
3) application software is waited for certain hour, described certain hour is that telemetry-acquisition equipment has gathered the used time of single channel telemetry in theory, application software proposes to interrupt and enter telemetry-acquisition finishing interrupt service routine after telemetry-acquisition equipment has gathered the single channel telemetry, telemetry-acquisition is finished and the single channel telemetry-acquisition is set in the interrupt service routine is finished and be designated effectively, finish interrupt service routine with the backed off after random telemetry-acquisition, call single channel telemetry function reading, call parameters is telemetry-acquisition device attribute pointer, telemetry memory address and channel number in the application software;
4) whether be effective to single channel telemetry function reading if detect gathering and to finish sign, thereby whether the telemetry-acquisition process of judging telemetry-acquisition equipment is finished, if detect to gather and finish sign effectively, the telemetry function reading then reads the single channel telemetry and exports to application software by channel number from telemetry-acquisition equipment according to telemetry-acquisition device attribute pointer, returns simultaneously and reads successfully sign; Sign is invalid if detection collection is finished, and then telemetry-acquisition process is not yet finished, and the telemetry function reading is returned simultaneously and read unsuccessfully sign to application software output telemetry;
5) if application software needs telemetry-acquisition equipment to stop to gather remote measurement, then call telemetry-acquisition and forbid function, call parameters is telemetry-acquisition device attribute pointer, and telemetry-acquisition forbids that function control telemetry-acquisition equipment stops to gather remote measurement, without rreturn value;
The telemetry output function is as follows:
A) application software is at first called remote measurement output device initialization function, and without call parameters, remote measurement output device initialization function carries out initialization to the attribute in the remote measurement output device, and returns remote measurement output device attribute pointer;
B) application software is called the telemetry output function, call parameters is telemetry memory address and the byte number in remote measurement output device attribute pointer, the application software, judge the current free buffer area that whether is in the telemetry output function, if have then receive the telemetry that application software sends and store the sky buffer area into, and return telemetry to application software and export successfully and identify; If do not have the sky buffer area then only return telemetry to application software and export unsuccessfully and identify;
C) application software is periodically called and is obtained the sync id function, call parameters is remote measurement output device attribute pointer, whether sync id function check sync id is effective, judge the current synchronizing information that whether has: if sync id is for effective, application software is then called the telemetry output function new telemetry is sent to the remote measurement output device, if do not have synchronizing information then application software does not deal with; Wherein call and obtain the time that the sync id period of a function is every frame telemetry frame data output, rreturn value is that synchronizing information identifies effective Y or the invalid N of sync id;
D) application software is called function when obtaining the next frame star at every turn before organizing telemetry frame, memory address when call parameters is star in remote measurement output device attribute pointer, the application software, function is according to remote measurement output device attribute pointer when obtaining the next frame star, when obtaining the next frame star in the memory block during star in the remote measurement output device, and when being stored in star in the application software during with star in the memory address, without rreturn value;
E) after the bit rate switching command was injected on ground, application software was called the bit rate function is set, and call parameters is remote measurement output device attribute pointer, code rate identifier; Bit rate function record code rate identifier is set, and the switching code rate identifier is set for effectively, without rreturn value; Described code rate identifier has recorded new bit rate;
F) after the coded system switching command is injected on ground, application software is called the coded system function is set, and call parameters is remote measurement output device attribute pointer, coded system sign, puts coded system function record coding mode and identifies, and arrange and switch coded system and be designated effectively, without rreturn value; Described coded system identification record new coded system;
G) wherein every output 8 byte datas of remote measurement output device propose an interruption, enter remote measurement output interrupt service routine, will 8 bytes next time in the remote measurement output interrupt service routine write in the buffer area of remote measurement output device and wait for output, remote measurement output interrupt service routine judges whether the switching code rate identifier is effective after having exported frame data, if switch code rate identifier effectively then enable new bit rate according to code rate identifier, if it is invalid then do not deal with to switch code rate identifier; Judge simultaneously whether the switching coded system identifies effective, enable new coded system if the switching coded system identifies effectively according to the coded system sign, if the switching coded system identifies invalid then do not deal with;
The remote control reception process is as follows:
1) application software invocation facility initialization function, without call parameters, remote control reception device initialize function carries out initialization to the attribute of remote control reception equipment, and Returning equipment attribute pointer;
2) application software is called the remote-control data receiver function and is obtained remote-control data, call parameters is remote-control data memory address in remote control reception device attribute pointer and the application software, the remote-control data receiver function detects remote-control channel and receives the end sign, if determining remote-control channel finishes to be designated effectively then the remote-control data of this passage is exported to application software, store in the application software in the remote-control data memory address, and return remote-control data to application software and receive successfully sign, finish to be designated invalid if detect remote-control channel, then only return the remote-control data sign that takes defeat to application software;
Described remote-control channel receives to finish to identify and is arranged by the remote control interrupt service routine, each 8 bytes that receive of remote control interrupt service routine, store remote-control data into the remote-control channel buffer area, the byte number that record receives, judge whether the passage reception finishes, finish to be designated effectively if finish then the remote-control channel reception is set;
The instruction output procedure is as follows:
1) application software invocation facility initialization function, without call parameters, instruction output device initialization function creates the 80ms timer in the instruction output device, finish the initialization of instruction output device attribute, and Returning equipment attribute pointer;
2) the application call order code sends function, call parameters is instruction output device attribute pointer and order code, order code sends function according to instruction output device attribute pointer, order code is write instruction output device port address, then start the 80ms timer, the write parameters halt instruction pulse of corresponding hardware port address is then given in sign on pulse output, 80ms timer afterwards, finishes instruction output.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210452232.1A CN102999331B (en) | 2012-11-13 | 2012-11-13 | Hardware blocking layer of onboard software and onboard data communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210452232.1A CN102999331B (en) | 2012-11-13 | 2012-11-13 | Hardware blocking layer of onboard software and onboard data communication method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102999331A true CN102999331A (en) | 2013-03-27 |
CN102999331B CN102999331B (en) | 2015-07-15 |
Family
ID=47927937
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210452232.1A Active CN102999331B (en) | 2012-11-13 | 2012-11-13 | Hardware blocking layer of onboard software and onboard data communication method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102999331B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105242882A (en) * | 2015-10-13 | 2016-01-13 | 东方网力科技股份有限公司 | Frame storage method and apparatus for timing data and query method and apparatus for timing data |
CN106330874A (en) * | 2016-08-17 | 2017-01-11 | 惠州市蓝微新源技术有限公司 | Method for quickly developing BMS transmission protocol |
CN106407531A (en) * | 2016-09-05 | 2017-02-15 | 北京空间飞行器总体设计部 | Incremental model-based spacecraft telemetering method |
CN108829386A (en) * | 2018-06-25 | 2018-11-16 | 北京微纳星空科技有限公司 | A kind of control system of the modularization spaceborne computer based on SCC mode |
CN109189472A (en) * | 2018-08-06 | 2019-01-11 | 北京电子工程总体研究所 | A kind of method, computer equipment and the storage medium of instruction and data interaction |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0162478A3 (en) * | 1984-05-25 | 1987-03-04 | Ntx Communications Corporation | Method and apparatus for high speed satellite communication |
CN1324476C (en) * | 2003-11-20 | 2007-07-04 | 联想(北京)有限公司 | Method of masking system hardware and system function |
CN101488796B (en) * | 2009-02-24 | 2012-09-26 | 航天东方红卫星有限公司 | Payload management system and method for satellite |
CN102074103B (en) * | 2010-11-01 | 2012-05-09 | 航天东方红卫星有限公司 | Universal remote control front end |
CN102542002B (en) * | 2011-12-08 | 2014-05-07 | 北京空间飞行器总体设计部 | Satellite telemetry data treatment system and realization method thereof |
-
2012
- 2012-11-13 CN CN201210452232.1A patent/CN102999331B/en active Active
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105242882A (en) * | 2015-10-13 | 2016-01-13 | 东方网力科技股份有限公司 | Frame storage method and apparatus for timing data and query method and apparatus for timing data |
CN105242882B (en) * | 2015-10-13 | 2018-09-21 | 东方网力科技股份有限公司 | The frame storage method and device of time series data, time series data querying method and device |
CN106330874A (en) * | 2016-08-17 | 2017-01-11 | 惠州市蓝微新源技术有限公司 | Method for quickly developing BMS transmission protocol |
CN106330874B (en) * | 2016-08-17 | 2019-08-30 | 惠州市蓝微新源技术有限公司 | A kind of method of quick exploitation BMS transport protocol |
CN106407531A (en) * | 2016-09-05 | 2017-02-15 | 北京空间飞行器总体设计部 | Incremental model-based spacecraft telemetering method |
CN106407531B (en) * | 2016-09-05 | 2019-08-09 | 北京空间飞行器总体设计部 | A kind of spacecraft method of telemetering based on quantitation model |
CN108829386A (en) * | 2018-06-25 | 2018-11-16 | 北京微纳星空科技有限公司 | A kind of control system of the modularization spaceborne computer based on SCC mode |
CN109189472A (en) * | 2018-08-06 | 2019-01-11 | 北京电子工程总体研究所 | A kind of method, computer equipment and the storage medium of instruction and data interaction |
Also Published As
Publication number | Publication date |
---|---|
CN102999331B (en) | 2015-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102999331A (en) | Hardware blocking layer of onboard software and onboard data communication method | |
CN102999716B (en) | virtual machine monitoring system and method | |
CN104380264B (en) | Run time examining report | |
CN106600105B (en) | Lean management system and method for dosage data of nuclear power plant | |
CN101211651B (en) | USB status restriction equipment and method of use thereof | |
CN101206614B (en) | Simulator for simulating register with specific function | |
CN101145113A (en) | Multi-thread access indirect register scheduling method | |
CN103888619A (en) | Message processing method and system thereof | |
CN104169888A (en) | Run-time instrumentation directed sampling | |
CN101667934A (en) | Centralized supervision device and supervision method for networking USB interface equipment | |
CN106569913B (en) | The method and device of terminal backup data | |
CN103077147A (en) | Linked list-based full-function 1553B bus IP (Internet Protocol) core | |
CN110515821A (en) | Based on the event-handling method, electronic equipment and computer storage medium buried a little | |
CN109189449A (en) | A kind of CAN bus based more FPGA remote upgrade methods | |
CN111464513A (en) | Data detection method, device, server and storage medium | |
CN109240947A (en) | Intelligent card data method of reseptance and device | |
CN105427098A (en) | Method and device for realizing information sharing among different applications | |
CN112699071A (en) | Linux system based USB port binding structure and method | |
CN104571942B (en) | Data-storage system and non-signal analysis method | |
CN106227530A (en) | A kind of configuration information pushes method and the mobile terminal of authority | |
CN103077080B (en) | Based on parallel program performance collecting method and the device of high performance platform | |
CN103839309A (en) | Community entrance guard method and system | |
CN102708032B (en) | Method and device for detecting hot plug of secure digital card | |
CN107729221A (en) | Cross-thread message monitoring method, device, computer equipment and storage medium | |
CN101860627B (en) | Business management method of access gateway and access gateway |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |