CN103678108A - Satellite-borne software all-digital simulation testing device and system based on 8051 single-chip microcomputer - Google Patents
Satellite-borne software all-digital simulation testing device and system based on 8051 single-chip microcomputer Download PDFInfo
- Publication number
- CN103678108A CN103678108A CN201210358410.4A CN201210358410A CN103678108A CN 103678108 A CN103678108 A CN 103678108A CN 201210358410 A CN201210358410 A CN 201210358410A CN 103678108 A CN103678108 A CN 103678108A
- Authority
- CN
- China
- Prior art keywords
- bus communication
- emulation module
- module
- data
- spaceborne software
- 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.)
- Pending
Links
Images
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention provides a satellite-borne software all-digital simulation testing device and system based on an 8051 single-chip microcomputer. The device comprises an interrupt simulation module, an AD data acquisition simulation module and a CAN bus communication simulation module. The interrupt simulation module responds to an interrupt request which comes from the 8051 micro-chip microcomputer and is generated by operation of satellite-borne software, generates an interrupt response on the basis of the interrupt request, and sends the interrupt response to the 8051 micro-chip microcomputer. The AD data acquisition simulation module is provided with telemeasuring data required by the satellite-borne software and sends the telemeasuring data to the satellite-borne software according to acquisition instructions from the satellite-borne software. The CAN bus communication simulation module is provided with data required by the satellite-borne software, receives data sending instructions of the 8051 micro-chip microcomputer during operation of the satellite-borne software so as to send the data to the satellite-borne software, and further receives data receiving instructions generated by the 8051 micro-chip microcomputer during operation of the satellite-borne software so as to receive data of the satellite-borne software. The satellite-borne software all-digital simulation testing device and system based on the 8051 single-chip microcomputer have low dependence on hardware equipment.
Description
Technical field
The present invention relates to software testing technology, relate in particular to the software emulation proving installation based on 8051 single-chip microcomputers.
Background technology
A satellite often comprises a plurality of spaceborne software, realizes relatively independent function, and software size is generally small-sized or medium-sized, and majority is to adopt 8051 Single Chip C Languages to write.Spaceborne running software is under space environment complicated and changeable, and spaceborne software need to possess high security, high reliability, therefore generally all will carry out strict integration test.
Traditional way of spaceborne software test is to adopt all-real object or semi-physical system to carry out running software, carries out dynamic test work.These two kinds of method of testings all depend on hardware environment substantially, have a lot of problems, such as: hardware resource extendability flexibility limit causes content measurement insufficient; The waste of the costliness of hardware resource, time that easily conflict property causes, manpower, financial resources.
Summary of the invention
The problem that the present invention solves is the problem of the emulation testing hardware-dependent of existing spaceborne software.
For addressing the above problem, the invention provides a kind of spaceborne software Digital Simulation Test device, for emulation testing, load on the spaceborne software in 8051 single-chip microcomputers, this device comprises interrupt emulate module, AD data acquisition emulation module and CAN bus communication emulation module, wherein, described interrupt emulate module responds is moved spaceborne software from 8051 single-chip microcomputers and the interrupt request that produces, based on this interrupt request, produces interrupt response, sends interrupt response to described 8051 single-chip microcomputers; Described AD data acquisition emulation module is set with the required telemetry of spaceborne software, according to the acquisition instructions from spaceborne software, to spaceborne software, sends described telemetry; Described CAN bus communication emulation module is set with the required data of spaceborne software, receive data that 8051 single-chip microcomputers move spaceborne software and send instruction and send data to spaceborne software, also receive that 8051 single-chip microcomputers move spaceborne software and the data receiver instruction that produces and receive the data of spaceborne software.
Alternatively, described CAN bus communication emulation module comprises a CAN bus communication emulation module and the 2nd CAN bus communication emulation module, by affiliated interrupt emulate module controls, between a CAN bus communication emulation module and the 2nd CAN bus communication module, is switched.
Alternatively, described interrupt emulate module, AD data acquisition emulation module and CAN bus communication emulation module are all scripts of writing under Keil environment.
Alternatively, described CAN bus communication emulation module is reset initialization according to this reset instruction and again, and this reset instruction is not produced when receiving for a long time the data of CAN bus communication emulation module by single-chip microcomputer.
The present invention also provides a kind of spaceborne software Digital Simulation Test system, this system comprises 8051 single-chip microcomputers, interrupt emulate module, AD data acquisition emulation module and CAN bus communication emulation module, wherein, the spaceborne software of loading in described 8051 single-chip microcomputers, moves this spaceborne software and sends interrupt request, to described AD data acquisition emulation module, sends acquisition instructions and send instruction and data reception instruction to described CAN bus communication emulation module transmission data to described interrupt emulate module; Described interrupt emulate module responds, from the interrupt request of spaceborne software, produces interrupt response based on this interrupt request, sends interrupt response to described 8051 single-chip microcomputers; Described AD data acquisition emulation module is set with the required telemetry of spaceborne software, according to the acquisition instructions from spaceborne software, to described 8051 single-chip microcomputers, sends described telemetry; Described CAN bus communication emulation module is set with the required data of spaceborne software, according to 8051 single-chip microcomputers, move data that spaceborne software produces and send instruction and send data to spaceborne software, also according to 8051 single-chip microcomputers, move the data that data receiver instruction that spaceborne software produces receives spaceborne software.
Alternatively, described CAN bus communication emulation module comprises a CAN bus communication emulation module and the 2nd CAN bus communication emulation module, by affiliated interrupt emulate module controls, between a CAN bus communication emulation module and the 2nd CAN bus communication module, is switched.
Alternatively, described interrupt emulate module, AD data acquisition emulation module and CAN bus communication emulation module are all scripts of writing under Keil environment, in Keil together with spaceborne software compilation run.
Alternatively, described 8051 single-chip microcomputers produce reset instruction when not receiving for a long time the data of CAN bus communication emulation module, and CAN bus communication emulation module is reset initialization according to this reset instruction and again.
Compared with prior art, the present invention has the following advantages:
Because spaceborne software Digital Simulation Test device of the present invention comprises interrupt emulate module, AD data acquisition module and CAN bus communication emulation module, so, when the spaceborne software of emulation testing, except work PC without any need for hardware resources such as other units, thereby, dependence to hardware device is low, can avoid that hardware resource extendability flexibility limit causes that content measurement is insufficient, the problems such as waste of the costliness of hardware resource and time that easily conflict property causes, manpower, financial resources, simplified the complexity of test.
Accompanying drawing explanation
Fig. 1 is the structural representation that the present invention is based on the spaceborne software Digital Simulation Test device of 8051 series monolithics.
Embodiment
By describing technology contents of the present invention, structural attitude in detail, being reached object and effect, below in conjunction with embodiment and coordinate accompanying drawing to be described in detail.
Refer to Fig. 1, spaceborne software Digital Simulation Test device of the present invention comprises AD data acquisition emulation module 1, interrupt emulate module 2 and CAN bus communication emulation module 3.Described AD data acquisition emulation module 1 is set with the required telemetry of spaceborne software, according to the acquisition instructions from spaceborne software, to spaceborne software, send described telemetry, by compile script under Keil environment, realize, detailed process is as follows: according to the content of spaceborne software protocol regulation, carry out the setting of data, and the telemetry of setting is delivered to corresponding AD interface for the spaceborne software collection of 8051 single-chip microcomputers, in script, handle is set in complete deposit data DaoRAM district, set the collection to AD Interface realization AD data data reading successively of a suitable time interval.2 responses of described interrupt emulate module move spaceborne software from 8051 single-chip microcomputers and the interrupt request that produces, based on this interrupt request, produce interrupt response, send interrupt response to described 8051 single-chip microcomputers, by compile script under Keil environment, realize, the interrupt response of interrupt emulate module 2 produces specifically: by internal register height byte value is set, be respectively 0xFF, the external pin P3.2 of 8051 single-chip microcomputers be set or the low and high level of P3.3 triggers inside, external interrupt.In needs, as long as move this script, in software, can produce at once corresponding internal interrupt and external interrupt.Described CAN bus communication emulation module 3 is set with the required data of spaceborne software, receiving data that 8051 single-chip microcomputers move spaceborne software sends instruction and sends data to spaceborne software, also receive that 8051 single-chip microcomputers move spaceborne software and the data receiver instruction that produces and receive the data of spaceborne software, by compile script under Keil environment, realize, take by 3 emulation of CAN bus communication emulation module count the spaceborne software that loads in pipe computing machine and 8051 single-chip microcomputers as the course of work of example explanation CAN bus communication emulation module 3 as follows: number pipe computing machines need to be with the data setting of spaceborne software communication in CAN bus communication emulation module 3, during communication, in script, press communication protocol framing, for sending to the spaceborne software loading in 8051 single-chip microcomputers, prepare, the data placement of framing sends buffer zone to the reception of CAN bus communication emulation module 3, then 8051 single-chip microcomputers are had no progeny in receiving and will be processed receiving the data reading sending in buffer zone, 8051 single-chip microcomputer collections need to return to the data of CAN bus communication emulation module 3, and first framing being cached to receive to send in buffer zone, CAN command register is set and puts and send request, and this Frame will be sent back to CAN bus communication emulation module 3.In other embodiment, described CAN bus communication emulation module 3 comprises a CAN bus communication emulation module and the 2nd CAN bus communication emulation module, the one CAN bus communication emulation module and the 2nd CAN bus communication emulation module are controlled and selection the one CAN bus communication emulation module or the 2nd CAN bus communication module and 8051 single chip communications by described interrupt emulate module 2, thereby, can a CAN bus communication emulation module and the 2nd CAN bus communication module between switch, concrete, interrupt emulate module 2 produces interrupts specifically in script, the first address of CAN bus being reset, when this first address is the first address of a CAN bus communication module, 8051 single-chip microcomputers and a CAN bus communication module communication, when this first address is the first address of the 2nd CAN bus communication emulation module, 8051 single-chip microcomputers and the 2nd CAN bus communication module communication, like this, realize the emulation testing of switching Redundancy Design.In the present invention, when 8051 single-chip microcomputers do not receive the data that CAN bus communication emulation module 3 is beamed back for a long time, namely overtime in the situation that, 8051 single-chip microcomputers can produce reset instruction, CAN bus communication emulation module 3 is reset initialization according to this reset instruction and again, thereby, realize the reset of CAN bus.
Take above-mentioned digital proving installation as basis, and the present invention also provides a kind of spaceborne software digital test macro, and this test macro comprises 8051 single-chip microcomputers, interrupt emulate module, AD data acquisition emulation module and CAN bus communication emulation module.Described interrupt emulate module, AD data acquisition emulation module and CAN bus communication emulation module are all scripts of writing under Keil environment, in Keil together with spaceborne software compilation run.The course of work of interrupt emulate module, AD data acquisition emulation module and CAN bus communication emulation module as previously mentioned, does not repeat them here.
In sum, because spaceborne software Digital Simulation Test device of the present invention comprises interrupt emulate module, AD data acquisition module and CAN bus communication emulation module, so, when the spaceborne software of emulation testing, except work PC without any need for hardware resources such as other units, thereby, dependence to hardware device is low, can avoid that hardware resource extendability flexibility limit causes that content measurement is insufficient, the problems such as waste of the costliness of hardware resource and time that easily conflict property causes, manpower, financial resources, simplified the complexity of test.
Claims (8)
1. the spaceborne software Digital Simulation Test device based on 8051 single-chip microcomputers, for emulation testing, load on the spaceborne software in 8051 single-chip microcomputers, it is characterized in that: this device comprises interrupt emulate module, AD data acquisition emulation module and CAN bus communication emulation module, wherein
Described interrupt emulate module responds is moved spaceborne software from 8051 single-chip microcomputers and the interrupt request that produces, based on this interrupt request, produces interrupt response, sends interrupt response to described 8051 single-chip microcomputers;
Described AD data acquisition emulation module is set with the required telemetry of spaceborne software, according to the acquisition instructions from spaceborne software, to spaceborne software, sends described telemetry;
Described CAN bus communication emulation module is set with the required data of spaceborne software, receive data that 8051 single-chip microcomputers move spaceborne software and send instruction and send data to spaceborne software, also receive that 8051 single-chip microcomputers move spaceborne software and the data receiver instruction that produces and receive the data of spaceborne software.
2. spaceborne software Digital Simulation Test device as claimed in claim 1, it is characterized in that: described CAN bus communication emulation module comprises a CAN bus communication emulation module and the 2nd CAN bus communication emulation module, by affiliated interrupt emulate module controls, between a CAN bus communication emulation module and the 2nd CAN bus communication module, is switched.
3. spaceborne software Digital Simulation Test device as claimed in claim 1, is characterized in that: described interrupt emulate module, AD data acquisition emulation module and CAN bus communication emulation module are all scripts of writing under Keil environment.
4. spaceborne software Digital Simulation Test device as claimed in claim 1, it is characterized in that: described CAN bus communication emulation module is reset initialization according to this reset instruction and again, this reset instruction is not produced when receiving for a long time the data of CAN bus communication emulation module by single-chip microcomputer.
5. spaceborne software Digital Simulation Test system, is characterized in that: this system comprises 8051 single-chip microcomputers, interrupt emulate module, AD data acquisition emulation module and CAN bus communication emulation module, wherein,
The spaceborne software of loading in described 8051 single-chip microcomputers, moves this spaceborne software and sends interrupt request, to described AD data acquisition emulation module, sends acquisition instructions and send instruction and data reception instruction to described CAN bus communication emulation module transmission data to described interrupt emulate module;
Described interrupt emulate module responds, from the interrupt request of spaceborne software, produces interrupt response based on this interrupt request, sends interrupt response to described 8051 single-chip microcomputers;
Described AD data acquisition emulation module is set with the required telemetry of spaceborne software, according to the acquisition instructions from spaceborne software, to described 8051 single-chip microcomputers, sends described telemetry;
Described CAN bus communication emulation module is set with the required data of spaceborne software, according to 8051 single-chip microcomputers, move data that spaceborne software produces and send instruction and send data to spaceborne software, also according to 8051 single-chip microcomputers, move the data that data receiver instruction that spaceborne software produces receives spaceborne software.
6. spaceborne software Digital Simulation Test system as claimed in claim 5, it is characterized in that: described CAN bus communication emulation module comprises a CAN bus communication emulation module and the 2nd CAN bus communication emulation module, by affiliated interrupt emulate module controls, between a CAN bus communication emulation module and the 2nd CAN bus communication emulation module, is switched.
7. spaceborne software Digital Simulation Test system as claimed in claim 5, it is characterized in that: described interrupt emulate module, AD data acquisition emulation module and CAN bus communication emulation module are all scripts of writing under Keil environment, in Keil together with spaceborne software compilation run.
8. spaceborne software Digital Simulation Test system as claimed in claim 5, it is characterized in that: described 8051 single-chip microcomputers produce reset instruction when not receiving for a long time the data of CAN bus communication emulation module, CAN bus communication emulation module is reset initialization according to this reset instruction and again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210358410.4A CN103678108A (en) | 2012-09-25 | 2012-09-25 | Satellite-borne software all-digital simulation testing device and system based on 8051 single-chip microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210358410.4A CN103678108A (en) | 2012-09-25 | 2012-09-25 | Satellite-borne software all-digital simulation testing device and system based on 8051 single-chip microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103678108A true CN103678108A (en) | 2014-03-26 |
Family
ID=50315748
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210358410.4A Pending CN103678108A (en) | 2012-09-25 | 2012-09-25 | Satellite-borne software all-digital simulation testing device and system based on 8051 single-chip microcomputer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103678108A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105137807A (en) * | 2015-08-12 | 2015-12-09 | 上海卫星工程研究所 | Universal full-digital housekeeping simulation platform |
CN108287537A (en) * | 2018-01-19 | 2018-07-17 | 航天科工防御技术研究试验中心 | A kind of CAN bus protocol controller test method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1258043A (en) * | 1999-12-29 | 2000-06-28 | 中国科学院上海冶金研究所 | Tester and test method for single-particle inversion fault-tolerant capability of software for satellite carried computer |
US20070142062A1 (en) * | 2003-12-12 | 2007-06-21 | Sung-Ki Cho | Satellite simulation model system based on interface standard model |
CN102354123A (en) * | 2011-07-18 | 2012-02-15 | 北京航空航天大学 | Cross-platform extendible satellite dynamic simulation test system |
-
2012
- 2012-09-25 CN CN201210358410.4A patent/CN103678108A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1258043A (en) * | 1999-12-29 | 2000-06-28 | 中国科学院上海冶金研究所 | Tester and test method for single-particle inversion fault-tolerant capability of software for satellite carried computer |
US20070142062A1 (en) * | 2003-12-12 | 2007-06-21 | Sung-Ki Cho | Satellite simulation model system based on interface standard model |
CN102354123A (en) * | 2011-07-18 | 2012-02-15 | 北京航空航天大学 | Cross-platform extendible satellite dynamic simulation test system |
Non-Patent Citations (2)
Title |
---|
王永孟,马利东: "嵌入式软件目标码测试分析", 《科技经济市场》 * |
秦嘉萍: "卫星星载计算机软件测试平台", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105137807A (en) * | 2015-08-12 | 2015-12-09 | 上海卫星工程研究所 | Universal full-digital housekeeping simulation platform |
CN105137807B (en) * | 2015-08-12 | 2017-11-24 | 上海卫星工程研究所 | General digital Star Service emulation platform |
CN108287537A (en) * | 2018-01-19 | 2018-07-17 | 航天科工防御技术研究试验中心 | A kind of CAN bus protocol controller test method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103198042A (en) | PCI (programmable communications interface) aviation serial bus board and dynamic data loading processing method | |
CN102609298B (en) | Based on network interface card virtualization system and the method thereof of hardware queue expansion | |
CN102609215A (en) | Data processing method and device | |
CN103309830A (en) | Driver of CPCI bus CAN communicating module under VxWorks operating system and driving method | |
US11048845B1 (en) | FPGA chip-based handler simulation test system and a test method | |
CN103150238A (en) | Service request processing method, simulation performance test method and simulation performance test device | |
CN105159731A (en) | Field programmable gate array (FPGA) configuration file remote upgrading device | |
CN105786736A (en) | Method, chip and device for multi-chip cascading | |
KR100654428B1 (en) | System for improving transaction rate of java program and method thereof | |
CN104320317A (en) | Method and device for transmitting state of Ethernet physical layer chip | |
CN104219003A (en) | Communication device, test system and test method thereof | |
CN114707236A (en) | Model-based virtual-real combined simulation test method | |
CN103378994A (en) | Method and terminal for testing communication equipment | |
CN102799510B (en) | PLC simulator based on reconfigurable components | |
CN103678108A (en) | Satellite-borne software all-digital simulation testing device and system based on 8051 single-chip microcomputer | |
CN110968352A (en) | PCIE equipment resetting system and server system | |
CN102664836B (en) | A kind of Prototype Verification Platform for broadband wireless communications digital baseband processor | |
CN103149909A (en) | Field programmable gate array (FPGA)-based controller area network (CAN) simulation node system | |
CN101415065A (en) | Technology for expanding single serial of set-top box | |
CN207339992U (en) | Stationary nodes automated test device | |
CN110399255A (en) | A kind of debugging system of FPGA system and FPGA system | |
CN108259842A (en) | Image transmitting and acquisition verification system based on Zynq | |
US20150113176A1 (en) | Method for Emulating Communication Standards of Transceiver Modules for Native Host Devices | |
CN113609052A (en) | Chip simulation system based on FPGA and microprocessor and implementation method | |
CN110971696B (en) | System and method for realizing virtual electronic card communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140326 |