CN114217545B - Control software key instruction output method combining hardware condition judgment - Google Patents

Control software key instruction output method combining hardware condition judgment Download PDF

Info

Publication number
CN114217545B
CN114217545B CN202111297985.5A CN202111297985A CN114217545B CN 114217545 B CN114217545 B CN 114217545B CN 202111297985 A CN202111297985 A CN 202111297985A CN 114217545 B CN114217545 B CN 114217545B
Authority
CN
China
Prior art keywords
control software
software
hardware
condition
input condition
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
CN202111297985.5A
Other languages
Chinese (zh)
Other versions
CN114217545A (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.)
Beijing Electromechanical Engineering Research Institute
Original Assignee
Beijing Electromechanical Engineering Research Institute
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 Beijing Electromechanical Engineering Research Institute filed Critical Beijing Electromechanical Engineering Research Institute
Priority to CN202111297985.5A priority Critical patent/CN114217545B/en
Publication of CN114217545A publication Critical patent/CN114217545A/en
Application granted granted Critical
Publication of CN114217545B publication Critical patent/CN114217545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0421Multiprocessor system
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24182Redundancy

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention provides a control software key instruction output method combining hardware condition judgment, which comprises the following steps: setting hardware input conditions of control software according to key instructions of the control software; setting a software input condition of control software; the control software judges whether the hardware input condition is valid or not through the bottom switch measuring board, if the hardware input condition is invalid, the control software returns to judge whether the hardware input condition is valid or not through the bottom switch measuring board until the hardware input condition is valid; if the hardware input condition is valid, judging whether the software input condition of the control software is valid, and if the software input condition of the control software is valid, outputting a key instruction by the control software; and if the software input conditions of the control software are invalid, returning to judge whether the software input conditions of the control software are met or not until the software input conditions of the control software are met. By applying the technical scheme of the invention, the technical problem of insufficient output reliability of key instructions of control software can be solved.

Description

Control software key instruction output method combining hardware condition judgment
Technical Field
The invention relates to the technical field of embedded software design and development of aircraft application, in particular to a control software key instruction output method combining hardware condition judgment.
Background
The embedded software of the aircraft has complex execution functions, and when the key functions of the aircraft depend on the conditions calculated by the software, such as executing certain key instructions, if the data conditions calculated by the software fail, the execution of the key functions may be affected, for example, the key functions may be executed in advance when the execution is not allowed, etc. The key instruction output method of the control software in the prior art is generally as follows: after judging that the key instruction implementation condition is met, the control software sends a key instruction effective instruction to the bottom-layer switch measuring board, the bottom-layer switch measuring board operates the key instruction to be effective, and then the key signal is sent out. The method only depends on the calculation result of the internal data of the software to obtain the output of the time sequence of the key instruction, the reliability is obviously insufficient, and the effective transmission of the key instruction can not be effectively ensured.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art.
According to an aspect of the present invention, there is provided a control software key instruction output method in combination with hardware condition judgment, the control software key instruction output method in combination with hardware condition judgment including: setting hardware input conditions of control software according to key instructions of the control software; setting a software input condition of control software; the control software judges whether the hardware input condition is valid or not through the bottom switch measuring board, if the hardware input condition is invalid, the control software returns to judge whether the hardware input condition is valid or not through the bottom switch measuring board until the hardware input condition is valid; if the hardware input condition is valid, judging whether the software input condition of the control software is valid, and if the software input condition of the control software is valid, outputting a key instruction by the control software; and if the software input conditions of the control software are invalid, returning to judge whether the software input conditions of the control software are met or not until the software input conditions of the control software are met.
Further, the hardware input condition of the control software is a two-way redundancy backup setting.
Further, the hardware input conditions of the control software are related to the critical instructions and can be received by the control software before the critical instructions are output.
Further, a key data threshold is set as a software input condition of the control software.
According to another aspect of the invention there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing any of the methods as described above when executing the computer program.
By setting the hardware input condition and the software input condition of the control software, the control software key instruction output method based on the hardware input condition of the control software judges whether the software input condition is effective or not, and the control software outputs the key instruction under the condition that the software input condition is effective. The method adds a layer of hardware-based input conditions in the software input conditions, so that the output of the key instruction is not only dependent on the judgment of the software data conditions, but also overlapped with the hardware, and the reliability and the safety of the execution of the key instruction are improved. Compared with the prior art, the technical scheme of the invention can solve the technical problem of insufficient reliability of key instruction output of control software.
Drawings
The accompanying drawings, which are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention. It is evident that the drawings in the following description are only some embodiments of the present invention and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a flow chart of a method for outputting key instructions of control software in combination with hardware condition judgment according to an embodiment of the present invention.
Detailed Description
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the application, its application, or uses. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the present application. As used herein, the singular is also intended to include the plural unless the context clearly indicates otherwise, and furthermore, it is to be understood that the terms "comprises" and/or "comprising" when used in this specification are taken to specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof.
The relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless it is specifically stated otherwise. Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description. Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate. In all examples shown and discussed herein, any specific values should be construed as merely illustrative, and not a limitation. Thus, other examples of the exemplary embodiments may have different values. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
As shown in fig. 1, according to an embodiment of the present invention, there is provided a control software key instruction output method in combination with hardware condition judgment, including: setting hardware input conditions of control software according to key instructions of the control software; setting a software input condition of control software; the control software judges whether the hardware input condition is valid or not through the bottom switch measuring board, if the hardware input condition is invalid, the control software returns to judge whether the hardware input condition is valid or not through the bottom switch measuring board until the hardware input condition is valid; if the hardware input condition is valid, judging whether the software input condition of the control software is valid, and if the software input condition of the control software is valid, outputting a key instruction by the control software; and if the software input conditions of the control software are invalid, returning to judge whether the software input conditions of the control software are met or not until the software input conditions of the control software are met.
By applying the configuration mode, the control software key instruction output method combined with hardware condition judgment is provided, and the control software key instruction output method combined with hardware condition judgment judges whether the software input condition is effective or not on the basis that the hardware input condition of the control software is effective by setting the hardware input condition and the software input condition of the control software, and controls the software to output the key instruction under the condition that the software input condition is effective. The method adds a layer of hardware-based input conditions in the software input conditions, so that the output of the key instruction is not only dependent on the judgment of the software data conditions, but also overlapped with the hardware, and the reliability and the safety of the execution of the key instruction are improved. Compared with the prior art, the technical scheme of the invention can solve the technical problem of insufficient reliability of key instruction output of control software.
In order to realize the output of key instructions of control software, the invention firstly sets the hardware input condition of the control software according to the key instructions of the control software.
After determining that a certain key instruction is a key instruction of control software, setting a hardware input signal which is related to the key instruction and can be received by the control software before the key instruction is output as a locking condition. As a specific embodiment of the invention, the hardware locking condition can be set to be double-path redundancy backup, each path of input signals has an independent excitation source, and control software can read two paths of redundant input signals through a bottom layer interface. By setting the hardware locking condition of the double-path redundancy backup, the reading success rate of the hardware input condition of the control software can be improved, and the phenomenon that the key instruction output of the control software is invalid due to the fact that the hardware input condition cannot be read is avoided.
Further, in the present invention, after setting the hardware input condition of the control software, the software input condition of the control software is set. As a specific embodiment of the invention, the key data threshold value for sending the key instruction of the control software can be set as the software input condition, and the key data value and the key data threshold value are obtained by comparing the calculation of the control software to judge whether the software input condition of the control software is valid or not, so as to determine whether to execute the output of the key instruction of the control software.
In addition, after setting the software input condition of the control software, the control software judges whether the hardware input condition is valid or not through the bottom switch measuring plate, and if the hardware input condition is valid, the control software judges whether the software input condition of the control software is valid or not; if the hardware input condition is invalid, the control software returns again to judge whether the hardware input condition is valid or not through the bottom switch measuring plate until the hardware input condition is valid.
In the invention, the hardware input condition is invalid, namely, when the hardware locking condition is not released, the software instruction is not responded, and the software input condition is not required to be judged; only when the hardware input condition is valid, i.e., the hardware lock condition is released, will the software instruction be responded to. Once the hardware lock condition is released, the hardware lock condition is not judged any more and only the software instruction is responded. The invention can improve the judging efficiency of the key instruction output condition of the control software, save the flow and improve the reliability and safety of the key instruction output.
As a specific embodiment of the invention, any one of the two-way input signals in the hardware locking condition is valid, the hardware input condition is considered valid, so that the reliability of controlling the key instruction output of the software can be improved.
Further, in the invention, whether the software input condition of the control software is valid is judged, and if the software input condition of the control software is valid, the control software outputs a key instruction; and if the software input conditions of the control software are invalid, returning to judge whether the software input conditions of the control software are met or not until the software input conditions of the control software are met. In the invention, only after the hardware input condition is met, the control software calculates whether the software input condition is met or not, otherwise, calculation is not needed. And once the control software confirms that the hardware input conditions are met, the control software calculates the software input conditions without limitation, and the aircraft output instruction can be output as long as the hardware input conditions are met.
The invention provides a control software key instruction output method combining hardware condition judgment, which abandons the traditional output method of obtaining key instruction time sequence only depending on software internal data calculation result, and adds a layer of hardware-based input condition in the software condition, so that the entry condition of a branch is overlapped with hardware instead of only depending on the judgment of the software data condition, thereby improving the execution reliability of the key instruction. The method ensures that the key instruction is sent out effectively, and improves the reliability and safety of the key instruction output. The method is helpful for improving the effectiveness of judging the key instruction condition, does not depend on a single instruction, and can improve the reliability of the functions of the aircraft. The method has been generalized to a number of project applications and achieves very good results.
According to another aspect of the invention there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing any of the methods described above when executing the computer program.
For further understanding of the present invention, the following describes the key instruction output method of the control software according to the present invention in conjunction with hardware condition determination with reference to fig. 1.
As shown in fig. 1, according to an embodiment of the present invention, a method for outputting a critical instruction of control software in combination with hardware condition determination is provided, where an aircraft output instruction 1 is taken as a critical instruction, and the aircraft output instruction 1 is a switching value output signal, and is controlled by aircraft control software.
Step one, setting the aircraft input signal 1 and the aircraft input signal 2 as hardware input conditions of aircraft control software according to the aircraft output instruction 1, namely, hardware locking conditions of the output instruction 1. The aircraft input signal 1 and the aircraft input signal 2 are switching value signals, the two paths are mutually independent, and control software can identify whether the aircraft input signal 1 and the aircraft input signal 2 are valid or not through a bottom layer switching value board.
Step two, setting the software input conditions of the control software: and setting the speed of the aircraft to be larger than a first threshold value and the flight angle to be smaller than a second threshold value as a software input condition of control software.
Step three, the control software takes 5ms as a sampling period, judges whether the aircraft input signal 1 or the aircraft input signal 2 lasts for 500ms through a bottom switch measuring plate of the aircraft control machine, if so, the hardware input condition is valid, and further judges whether the software input condition of the control software is valid; if not, the hardware input condition is invalid, and the control software is returned again to judge whether the hardware input condition is valid or not through the bottom switch measuring plate until the hardware input condition is valid.
Judging whether the software input condition of the control software is valid or not: the control software takes 5ms as a sampling period, calculates whether the software input condition lasts for 200ms, if yes, meets the set software input condition, and can send out an aircraft output instruction 1 at the moment; if not, the set software input conditions are not met, and the method returns to judge whether the software input conditions of the control software are met or not until the software input conditions of the control software are met.
In summary, the present invention provides a control software key instruction output method combined with hardware condition judgment, where the control software key instruction output method combined with hardware condition judgment is to set a hardware input condition and a software input condition of control software, judge whether the software input condition is valid based on the validity of the hardware input condition of the control software, and control the software output key instruction under the condition that the software input condition is valid. The method adds a layer of hardware-based input conditions in the software input conditions, so that the output of the key instruction is not only dependent on the judgment of the software data conditions, but also overlapped with the hardware, and the reliability and the safety of the execution of the key instruction are improved. Compared with the prior art, the technical scheme of the invention can solve the technical problem of insufficient reliability of key instruction output of control software.
Spatially relative terms, such as "above … …," "above … …," "upper surface on … …," "above," and the like, may be used herein for ease of description to describe one device or feature's spatial location relative to another device or feature as illustrated in the figures. It will be understood that the spatially relative terms are intended to encompass different orientations in use or operation in addition to the orientation depicted in the figures. For example, if the device in the figures is turned over, elements described as "above" or "over" other devices or structures would then be oriented "below" or "beneath" the other devices or structures. Thus, the exemplary term "above … …" may include both orientations "above … …" and "below … …". The device may also be positioned in other different ways (rotated 90 degrees or at other orientations) and the spatially relative descriptors used herein interpreted accordingly.
In addition, the terms "first", "second", etc. are used to define the components, and are only for convenience of distinguishing the corresponding components, and the terms have no special meaning unless otherwise stated, and therefore should not be construed as limiting the scope of the present invention.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (5)

1. The control software key instruction output method combining hardware condition judgment is characterized by comprising the following steps of:
Setting hardware input conditions of control software according to key instructions of the control software;
setting a software input condition of control software; setting a key data threshold value for sending a key instruction of control software as a software input condition;
The control software judges whether the hardware input condition is valid or not through the bottom switch measuring board, if the hardware input condition is invalid, the control software returns to judge whether the hardware input condition is valid or not through the bottom switch measuring board until the hardware input condition is valid; if the hardware input condition is valid, judging whether the software input condition of the control software is valid, specifically judging whether the software input condition of the control software is valid by comparing the key data value obtained by calculation of the control software with the key data threshold value, and if the software input condition of the control software is valid, outputting a key instruction by the control software; and if the software input conditions of the control software are invalid, returning to judge whether the software input conditions of the control software are met or not until the software input conditions of the control software are met.
2. The method for outputting the control software key instructions in combination with hardware condition judgment according to claim 1, wherein the hardware input condition of the control software is a two-way redundancy backup setting.
3. The control software critical instruction output method in combination with hardware condition judgment according to claim 1 or 2, wherein the hardware input condition of the control software is related to the critical instruction and can be received by the control software before the critical instruction is output.
4. The method for outputting critical instructions of control software in combination with hardware condition judgment according to claim 1, wherein the critical data threshold is set as a software input condition of the control software.
5. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 4 when executing the computer program.
CN202111297985.5A 2021-11-04 2021-11-04 Control software key instruction output method combining hardware condition judgment Active CN114217545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111297985.5A CN114217545B (en) 2021-11-04 2021-11-04 Control software key instruction output method combining hardware condition judgment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111297985.5A CN114217545B (en) 2021-11-04 2021-11-04 Control software key instruction output method combining hardware condition judgment

Publications (2)

Publication Number Publication Date
CN114217545A CN114217545A (en) 2022-03-22
CN114217545B true CN114217545B (en) 2024-06-11

Family

ID=80696473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111297985.5A Active CN114217545B (en) 2021-11-04 2021-11-04 Control software key instruction output method combining hardware condition judgment

Country Status (1)

Country Link
CN (1) CN114217545B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607995A (en) * 2015-11-11 2016-05-25 北汽福田汽车股份有限公司 Software test system, method and apparatus
CN106326055A (en) * 2016-08-29 2017-01-11 四川九洲空管科技有限责任公司 Method for software and hardware crashing detection and resetting of airborne collision avoidance system
CN108177644A (en) * 2017-12-20 2018-06-19 西安航空制动科技有限公司 A kind of non-instruction brake suppressing method and system
CN108825032A (en) * 2018-06-14 2018-11-16 南京康尼电子科技有限公司 A kind of safety protection control method for urban rail transit vehicles door system
CN109240157A (en) * 2018-09-13 2019-01-18 华北电力科学研究院有限责任公司 SOE signal generation apparatus and SOE signal output method
CN109710291A (en) * 2018-12-27 2019-05-03 中国科学院长春光学精密机械与物理研究所 A kind of aviation O-E Payload software configuration item remote upgrade method
CN111038714A (en) * 2019-11-28 2020-04-21 中国航空工业集团公司西安航空计算技术研究所 Over-rotation detection device and method for auxiliary power device
CN111181161A (en) * 2020-02-14 2020-05-19 成都泛美视界科技有限公司 Power supply control system applied to flight simulator
CN111274581A (en) * 2018-12-04 2020-06-12 波音公司 Achieving computer system integrity through a combination of certifiable and qualified software
CN113010900A (en) * 2021-04-20 2021-06-22 西安联飞智能装备研究院有限责任公司 Application software upgrading method, device, system and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AT521713B1 (en) * 2018-10-11 2023-07-15 Avl List Gmbh Procedure for detecting security-relevant data flows

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607995A (en) * 2015-11-11 2016-05-25 北汽福田汽车股份有限公司 Software test system, method and apparatus
CN106326055A (en) * 2016-08-29 2017-01-11 四川九洲空管科技有限责任公司 Method for software and hardware crashing detection and resetting of airborne collision avoidance system
CN108177644A (en) * 2017-12-20 2018-06-19 西安航空制动科技有限公司 A kind of non-instruction brake suppressing method and system
CN108825032A (en) * 2018-06-14 2018-11-16 南京康尼电子科技有限公司 A kind of safety protection control method for urban rail transit vehicles door system
CN109240157A (en) * 2018-09-13 2019-01-18 华北电力科学研究院有限责任公司 SOE signal generation apparatus and SOE signal output method
CN111274581A (en) * 2018-12-04 2020-06-12 波音公司 Achieving computer system integrity through a combination of certifiable and qualified software
CN109710291A (en) * 2018-12-27 2019-05-03 中国科学院长春光学精密机械与物理研究所 A kind of aviation O-E Payload software configuration item remote upgrade method
CN111038714A (en) * 2019-11-28 2020-04-21 中国航空工业集团公司西安航空计算技术研究所 Over-rotation detection device and method for auxiliary power device
CN111181161A (en) * 2020-02-14 2020-05-19 成都泛美视界科技有限公司 Power supply control system applied to flight simulator
CN113010900A (en) * 2021-04-20 2021-06-22 西安联飞智能装备研究院有限责任公司 Application software upgrading method, device, system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
验证BIT测试性指标的总线级故障注入***及其设计;刘丹丹;王晓峰;;航天器环境工程;20081015(05);全文 *

Also Published As

Publication number Publication date
CN114217545A (en) 2022-03-22

Similar Documents

Publication Publication Date Title
CN103262045B (en) Microprocessor system having fault-tolerant architecture
KR102459737B1 (en) How to upgrade autonomous driving system, autonomous driving system and on-vehicle device
KR102529916B1 (en) System and method for verifying controlling of vehicle based on virtual machine
CN105477854A (en) Handle control method, device and system applied in intelligent terminal
CN101523038B (en) Method and device for monitoring a functionality of an engine controller of an internal combustion engine
US7685579B2 (en) Method and apparatus for performing adjustable precision exception handling
KR20030015238A (en) Communication handling in integrated modular avionics
US20180113732A1 (en) Back-pressure in virtual machine interface
US20050246688A1 (en) Multi-process debugger
CN114217545B (en) Control software key instruction output method combining hardware condition judgment
CA2076466C (en) Method for buffering high bandwidth data from an input device
Makrani et al. Evaluation of software-based fault-tolerant techniques on embedded OS’s components
CN109927732A (en) Fault diagnosis for fault-tolerance chassis architecture system
CN115712517A (en) Fault processing method and device of neural network processor
KR20170091641A (en) System error handling in a data processing apparatus
US20160321149A1 (en) Computer apparatus and computer mechanism
CN115233765B (en) Emergency operation control method and device
EP4386536A1 (en) Data processing method and apparatus
US20120297479A1 (en) Method for executing an application
US20240045854A1 (en) Method for checking a processing of payload data
KR20230124749A (en) Apparatus and method for calculating operating parameters
JP6302775B2 (en) Control device and control method thereof
Jammalamadaka et al. Implementing Syntax Evolution of Embedded Systems.
Flener Finished Master's thesis projects in our group
KR970013898A (en) Validation method before sending remote command for satellite control

Legal Events

Date Code Title Description
PB01 Publication
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