CN106855835B - XML technology-based power-on self-detection method for flight control system - Google Patents

XML technology-based power-on self-detection method for flight control system Download PDF

Info

Publication number
CN106855835B
CN106855835B CN201510894318.3A CN201510894318A CN106855835B CN 106855835 B CN106855835 B CN 106855835B CN 201510894318 A CN201510894318 A CN 201510894318A CN 106855835 B CN106855835 B CN 106855835B
Authority
CN
China
Prior art keywords
xml
control system
flight control
file
power
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.)
Active
Application number
CN201510894318.3A
Other languages
Chinese (zh)
Other versions
CN106855835A (en
Inventor
刘羽
武方方
张向虎
冯博
陈皓
侯明
董康
张玉博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
No 618 Research Institute of China Aviation Industry
Original Assignee
No 618 Research Institute of China Aviation Industry
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by No 618 Research Institute of China Aviation Industry filed Critical No 618 Research Institute of China Aviation Industry
Priority to CN201510894318.3A priority Critical patent/CN106855835B/en
Publication of CN106855835A publication Critical patent/CN106855835A/en
Application granted granted Critical
Publication of CN106855835B publication Critical patent/CN106855835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2284Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention relates to a method for automatically detecting the power-on starting of a flight control system, in particular to a method for automatically detecting the power-on starting of the flight control system based on an XML technology. The method mainly integrates detection item codes required by the PUBIT of the flight control system into a standard library, manages and calls the required PUBIT detection items through an XML technology, generates a target code XML control file according to the called PUBIT detection items, and generates a target code matched with the flight control system based on the target code XML control file. Compared with the prior manual coding mode, when the power-on starting self-detection function of the novel machine type is designed, the method manages and calls the code module through the XML technology, improves the software reusability, saves the software development time and the verification time, and improves the development efficiency.

Description

XML technology-based power-on self-detection method for flight control system
Technical Field
The invention relates to a method for automatically detecting the power-on starting of a flight control system, in particular to a method for automatically detecting the power-on starting of the flight control system based on an XML technology.
Background
The self-test in the power-on starter (PUBIT, hereinafter abbreviated to replace the self-test in the power-on starter) in the fly-by-wire flight control system is a self-test mode aiming at detecting the integrity of the hardware of a flight control computer in the power-on process, and plays an important role in the take-off safety of an airplane. In the past, PUBIT was developed and designed mainly around the demand function, and since the demand functions are not exactly the same for different airplane models, a new manual encoding is required for each model. Even for the same requirement, different designers have different software codes due to different code styles, and finally the test and verification cost is increased.
Disclosure of Invention
The technical problem solved by the invention is as follows: the method for automatically detecting the power-on starting of the flight control system based on the XML technology is efficient.
The technical scheme of the invention is as follows: the method mainly integrates detection item codes required by the PUBIT of the flight control system into a standard library, manages and calls the required PUBIT detection items through an XML technology, generates a target code XML control file according to the called PUBIT detection items, and generates a target code matched with the flight control system based on the target code XML control file.
As an improvement of the present technical solution, the method comprises the following steps:
step one, collecting detection item codes required by a flight control system PUBIT into a standard library, and establishing an XML file crosslinked with the standard library;
extracting corresponding detection item contents from the standard library according to the requirement of power-on self-detection of the flight control system to generate an object code XML control file;
and thirdly, generating a target code matched with the flight control system based on the target code XML control file.
As an improvement of the technical scheme, the XML file content crosslinked with the standard library file comprises a function name, a file storage path and a file name, a module calling mode, a module description, a test fault code and a macro definition of a related address and data.
As an improvement of the technical scheme, when corresponding detection item content is extracted from the standard library, the needed PUBIT test items are manually selected in an interface interaction mode, and the parameters of each test item can be configured and changed according to requirements.
As an improvement of the technical scheme, the content of the target code XML control file comprises a calling function body, a calling method, a function declaration method, a fault code and configuration information specific to the test item.
And step three, as an improvement of the technical scheme, the target code matched with the flight control system is obtained by mainly classifying and outputting the content of the XML control file to a header file and a c file.
The invention has the beneficial effects that: first, development efficiency is high. When the power-on starting self-detection function of a new machine type is designed, compared with the traditional manual coding mode, the method manages and calls the code module through the XML technology, improves the software reusability, saves the software development time and the verification time, and improves the development efficiency;
secondly, the applicability is strong. The standard library content involved in the method is mostly general test content, and the method can be widely applied to various types of unmanned aerial vehicles, manned machines and the like;
and finally, the expansibility is strong. By adopting the XML-based technology, the test module in the code base can be expanded at any time so as to be suitable for more requirement designs.
Drawings
FIG. 1 is a diagram: a flow chart of the detection method.
Detailed Description
The technical solution is further explained in detail with reference to the drawings.
The method mainly integrates detection item codes required by the PUBIT of the flight control system into a standard library, manages and calls the required PUBIT detection items through an XML technology, generates a target code XML control file according to the called PUBIT detection items, and generates a target code matched with the flight control system based on the target code XML control file.
The overall architecture of the present invention is shown in fig. 1, and the contents thereof mainly include: the method comprises the steps of a standard library of a PUBIT detection module, an XML file crosslinked with the library, selection and module configuration of a test module, generation of an XML control file of a target code and generation of the target code.
Establishing a standard library of a PUBIT detection module and an XML file crosslinked with the library:
selecting a universal module in a PUBIT design case, wherein the universal module comprises the following components: the system comprises a PUBIT initialization module, a fault declaring module and a PUBIT detection module (a CPU test, an RAM test, an NVRAM test, an ROM test, a power supply test, a CCDL test, a software version number test, a channel number test, a timer interrupt test and a watchdog test), wherein functions corresponding to the modules are respectively stored in a file c. For the convenience of reference, the file name is consistent with the function name of the module, and the module content saved by the file can be directly known through the file name (for example, the CPU detects that the function name is s _ bit _ CpuTst, and the file name saved by the function name is pubt _ cpu.c).
And after the corresponding detection module in the library file is determined, establishing an XML file corresponding to the library file. And storing a function declaration method, a corresponding function saving path, a function description, a fault code, a calling mode, a fault bit definition and other related contents in the XML file for each module.
Figure GDA0002362560940000041
Taking the RAM test as an example, the storage contents in the XML file are as follows:
Figure GDA0002362560940000042
Figure GDA0002362560940000051
2. test module selection and module configuration
In practical applications, different PUBIT design requirements may be required for different aircraft models. Aiming at conventional test contents, based on the established PUBIT standard library and a man-machine interaction tool, the selection of the required modules can be quickly completed, and related parameters (fault codes, test addresses and the like) in each module are configured.
In the PUBIT design case, the designed tool based on the human-computer interaction interface can read the XML file content corresponding to the PUBIT standard library. After the user selects the corresponding test content on the tool, the interface displays all the contents stored in the XML file by the corresponding test item, including function statement, function body, fault code, fault bit definition and other macro definitions. According to the actual requirements of airplane design, a designer can directly change and store the parameter configuration on the interface.
3. Object code XML control file generation
For each PUBIT test item selected by the user, after parameter configuration is changed, the tool writes the related content into an XML file corresponding to the target code. The XML file contains the test module function body, the function calling method, the function declaration, the fault code definition, the fault bit definition and other definitions of the test item (such as the related address, the global variable definition, etc.). The generated XML file is mainly used for final code generation.
The XML file format corresponding to the object code is as follows:
Figure GDA0002362560940000061
every time the user determines that the configuration completes one test content, the related content is automatically written into the XML file through the tool. After the module selection configuration is finished, the XML file is completely and automatically generated, and a user does not need to make other changes.
4. Object code generation
Analyzing the XML file corresponding to the target code, and outputting the contents of all the test items according to the categories: respectively clustering the contents of fault codes, address definitions, global variable statements, function statements and the like of all test items in the file and writing the contents into a header file; outputting the test module function body to a C file; and outputting the calling codes of the modules to a main scheduling function of the C file according to a certain sequence. And finally generating a header file and a C file to obtain a self-detection target code in the electric starter on the flight control system meeting the actual requirement, wherein the code can be directly used for testing and verifying the flight control system.

Claims (5)

1. A method for automatically detecting the power-on starting of a flight control system based on an XML technology is characterized by comprising the following steps: the method mainly integrates detection item codes required by the PUBIT of the flight control system into a standard library, manages and calls the required PUBIT detection items through an XML technology, generates a target code XML control file from the called PUBIT detection items, and generates a target code matched with the flight control system based on the control file, and the method comprises the following steps:
step one, collecting detection item codes required by a flight control system PUBIT into a standard library, and establishing an XML file crosslinked with the standard library;
extracting corresponding detection item contents from the standard library according to the requirement of power-on self-detection of the flight control system to generate an object code XML control file;
and thirdly, generating a target code matched with the flight control system based on the target code XML control file.
2. The power-on self-detection method for the flight control system based on the XML technology as claimed in claim 1, wherein the power-on self-detection method comprises the following steps: the XML file content cross-linked with the standard library comprises function names, file storage paths and file names, module calling modes, module descriptions, test fault codes and relevant addresses, and macro definitions of data.
3. The power-on self-detection method for the flight control system based on the XML technology as claimed in claim 1, wherein the power-on self-detection method comprises the following steps: when corresponding detection item contents are extracted from the standard library, the needed PUBIT test items are manually selected in an interface interaction mode, and the parameters of each test item can be configured and changed according to requirements.
4. The power-on self-detection method for the flight control system based on the XML technology as claimed in claim 1, wherein the power-on self-detection method comprises the following steps: the content of the target code XML control file comprises a calling function body, a calling method, a function declaration method, a fault code and configuration information specific to the test item of the test item.
5. The power-on self-detection method for the flight control system based on the XML technology as claimed in claim 1, wherein the power-on self-detection method comprises the following steps: and step three, the target code matched with the flight control system is obtained by classifying and outputting the content of the XML control file to a header file and a file c.
CN201510894318.3A 2015-12-08 2015-12-08 XML technology-based power-on self-detection method for flight control system Active CN106855835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510894318.3A CN106855835B (en) 2015-12-08 2015-12-08 XML technology-based power-on self-detection method for flight control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510894318.3A CN106855835B (en) 2015-12-08 2015-12-08 XML technology-based power-on self-detection method for flight control system

Publications (2)

Publication Number Publication Date
CN106855835A CN106855835A (en) 2017-06-16
CN106855835B true CN106855835B (en) 2020-04-07

Family

ID=59131602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510894318.3A Active CN106855835B (en) 2015-12-08 2015-12-08 XML technology-based power-on self-detection method for flight control system

Country Status (1)

Country Link
CN (1) CN106855835B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990282B (en) * 2019-12-04 2023-07-21 中国直升机设计研究所 Automatic unit testing method
CN112363481B (en) * 2020-10-26 2022-02-22 中国商用飞机有限责任公司 Post-flight self-inspection control device and control method of fly-by-wire flight control system
CN113075492A (en) * 2021-04-27 2021-07-06 亿航智能设备(广州)有限公司 Power-on management system and power-on management method of aircraft
CN113759873B (en) * 2021-09-01 2023-05-23 中国航空工业集团公司西安飞行自动控制研究所 Method for handling self-detection faults in motor of flight control system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950269B (en) * 2010-08-30 2012-09-05 清华大学 Automatic test method for software members
CN102609811A (en) * 2012-01-19 2012-07-25 贵州航天风华精密设备有限公司 General defining system and general defining method for indexes of test items of spacecraft
CN103914370B (en) * 2012-12-31 2017-05-10 百度国际科技(深圳)有限公司 XML (Extensive Markup Language) configuration file based test method and device
US9635089B2 (en) * 2014-12-31 2017-04-25 Verizon Patent And Licensing Inc. Auto suggestion in search with additional properties

Also Published As

Publication number Publication date
CN106855835A (en) 2017-06-16

Similar Documents

Publication Publication Date Title
CN106855835B (en) XML technology-based power-on self-detection method for flight control system
US9661109B2 (en) Systems and methods for data migration
CN103064403B (en) A kind of ECU hardware-in-loop simulation automated testing method and system
CN107092554B (en) Method and device for confirming fault code of application program
CN110008455A (en) Table edit method, apparatus, computer equipment and storage medium
CN111176996A (en) Test case generation method and device, computer equipment and storage medium
CN103123605B (en) A kind of Android platform automatic integration test method and device
CN105404680A (en) Searching recommendation method and apparatus
CN110287098A (en) Automatically create test script method, server and computer readable storage medium
CN112328250B (en) User interface generation method and device, computer equipment and storage medium
CN109712271A (en) A kind of Unmanned Aerial Vehicle Data processing method, device, equipment and storage medium
CN104715497A (en) Data replacement method and system
EP2407902A2 (en) System and method for configuring a simulation model utilizing a tool for automatic input/output assignment
CN106021101A (en) Method and device for testing mobile terminal
CN112652302A (en) Voice control method, device, terminal and storage medium
CN110782232A (en) Business process visual configuration method and device, electronic equipment and storage medium
CN107329756B (en) Program file generation method and device, storage medium, processor and terminal
US20180239342A1 (en) Method and apparatus for registering virtual equipment for virtual production system
CN109214043B (en) Artificial intelligence writing method for digital aircraft dynamics environment information transmission source code
CN102750167B (en) Application program launching method, device and computer system
CN112052040A (en) Processing method, processing device, computer equipment and storage medium
CN112004080B (en) Fault detection method, device, storage medium and device of automobile display device
CN105188154B (en) A kind of method, apparatus and system being automatically brought into operation smart machine
CN113779918A (en) SoC simulation method, device, computing equipment and computer storage medium
KR102389103B1 (en) Method and apparatus for registering virtual equipment for virtual production system

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant