Flight data processing method and system, electronic equipment and storage medium
By writing trigger scripts in the ground configuration tool using scripting language and deploying compilers and executors in the airborne equipment, the problems of inconvenient management of various airborne equipment and non-common files in the prior art are solved, and efficient flight data processing is achieved.
Patent Information
- Application Number
- CN202411964494.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-05-02
AI Technical Summary
In the prior art, the trigger script loading method needs to be compiled and generated in the ground configuration tool to become an on-board executable program, resulting in inconvenient management of various types of on-board equipment, and the files generated by the configuration tool are not universal, affecting the efficiency of flight data processing.
The trigger script is written in scripting language through the ground configuration tool and sent to the trigger module, which includes a compiler and an executor, which is deployed in an on-board device. The compiler compiles the trigger script and generates a compiled file. The executor performs command execution processing on the flight data based on the compiled file, and triggers the onboard device to send messages based on the execution result.
The analysis and execution of the trigger scripting language are implemented in step by step, and are deployed across platforms in different airborne devices, improving the efficiency of flight data processing, and improving the execution efficiency of the executor through compilation and preprocessing.
Smart Images

Figure CN119917106A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a flight data processing method, system, electronic device and storage medium. Background Art
[0002] In the related art, a trigger script language is used to write trigger logic to monitor flight data. When an event such as a flight control system failure or a change in flight status is detected, actions such as message sending will be triggered. However, the trigger script loading method is to compile and generate an airborne executable program in the ground configuration tool. This requires embedding the compilation tool of the airborne device in the ground configuration tool, which makes management inconvenient when there are multiple types of airborne devices. The files generated by different configuration tools cannot be used universally, which affects the processing efficiency of flight data. In summary, the technical problems existing in the related art need to be improved. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to provide a flight data processing method, system, electronic device and storage medium, which can improve the processing efficiency of flight data.
[0004] To achieve the above objective, an embodiment of the present application provides a flight data processing method, the method comprising:
[0005] A trigger script is written in a scripting language through a ground configuration tool, and the trigger script is sent to a trigger module, wherein the trigger module includes a compiler and an executor, and the executor is deployed in an airborne device;
[0006] Compile the trigger script using the compiler to obtain a compiled file;
[0007] The executor performs command execution processing on the flight data according to the compiled file, and triggers the airborne device to send a message according to the execution result.
[0008] In some embodiments, the trigger script is written by a ground configuration tool using a scripting language, including the following steps:
[0009] The flight mode and the conversion path are defined and processed by the ground configuration tool using a scripting language to obtain an initial script;
[0010] Performing message function definition processing on the initial script to obtain an intermediate script;
[0011] The intermediate script is subjected to an execution priority definition process to obtain the triggering script.
[0012] In some embodiments, performing message function definition processing on the initial script to obtain an intermediate script includes the following steps:
[0013] Perform message activation function definition processing on the initial script according to the preset activation condition to obtain a first script;
[0014] Performing message collection group activation function definition processing on the first script to obtain a second script;
[0015] The second script is processed for message routing definition to obtain the intermediate script.
[0016] In some embodiments, compiling the trigger script by the compiler to obtain a compiled file includes the following steps:
[0017] Read the trigger script and filter the code comments to obtain the script statements;
[0018] Performing semantic recognition and grammar checking on the script statements to obtain key statements;
[0019] The key statements are compiled to obtain the compiled file.
[0020] In some embodiments, compiling the key statement to obtain the compiled file includes the following steps:
[0021] Preprocessing the key sentence to obtain a preprocessed sentence;
[0022] Extracting operation parameters and operation symbols from the preprocessed statement to obtain extraction information;
[0023] The extracted information is subjected to code conversion and storage processing to obtain the compiled file.
[0024] In some embodiments, the executing device performs command execution processing on the flight data according to the compiled file, and triggers the airborne device to send a message according to the execution result, including the following steps:
[0025] acquiring the flight data;
[0026] Perform code reading and statement type determination processing on the compiled file to obtain a determination result;
[0027] Perform parameter comparison processing on the flight data according to the judgment result to obtain a comparison result;
[0028] Command execution processing is performed according to the comparison result, and the airborne device is triggered to send a message according to the execution result.
[0029] In some embodiments, performing parameter comparison processing on the flight data according to the judgment result to obtain a comparison result includes the following steps:
[0030] Obtain a binary tree of statements according to the compiled file;
[0031] The flight data is calculated and processed according to the statement binary tree to obtain the comparison result.
[0032] To achieve the above object, another aspect of an embodiment of the present application provides a flight data processing system, the system comprising:
[0033] A ground configuration tool is used to write a trigger script using a scripting language and send the trigger script to a trigger module; the trigger module includes a compiler and an executor, and the executor is deployed in an airborne device;
[0034] The compiler is used to compile the trigger script to obtain a compiled file;
[0035] The executor is used to perform command execution processing on the flight data according to the compiled file, and trigger the airborne device to send a message according to the execution result.
[0036] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.
[0037] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0038] The embodiments of the present application include at least the following beneficial effects: The present application provides a flight data processing method, system, electronic device and storage medium. The scheme uses a scripting language to write a trigger script through a ground configuration tool, and sends the trigger script to a trigger module. The trigger module includes a compiler and an executor. The executor is deployed in an airborne device and can parse and execute the trigger script language in steps. It can be deployed in different airborne devices across platforms to improve the efficiency of flight data processing. In addition, the scheme compiles the trigger script through a compiler to obtain a compiled file, and then uses the executor to execute commands on the flight data according to the compiled file, and triggers the airborne device to send a message according to the execution result. The trigger script can be compiled and pre-processed by the compiler and sent to the executor, so that the execution efficiency of the executor is higher and the processing efficiency of flight data is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 is a flow chart of a flight data processing method provided by an embodiment of the present application;
[0040] Figure 2 is a schematic diagram of a flight mode conversion provided by an embodiment of the present application;
[0041] Figure 3 It is a schematic diagram of a compilation process of a compiler provided in an embodiment of the present application;
[0042] Figure 4 is a schematic diagram of a statement binary tree provided in an embodiment of the present application;
[0043] Figure 5 It is a schematic diagram of an execution flow of an actuator provided in an embodiment of the present application;
[0044] Figure 6 is a structural schematic diagram of a flight data processing system provided by an embodiment of the present application;
[0045] Figure 7 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0047] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0048] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0050] The aircraft status detection system monitors the aircraft status by obtaining various parameters of the onboard equipment. Compared with other monitoring methods, the air-to-ground data link method is used to combine the onboard equipment with the ground processing system to achieve real-time tracking and online monitoring of the aircraft.
[0051] The specific implementation method is to use the trigger script language to write the trigger logic to monitor the flight data. When the flight control system fails or the flight status changes, it will trigger the ACARS message sending and other actions. Compared with the programming language, the trigger script language is easier to read and more powerful. In addition to supporting conditional judgment, loop replacement, parameter assignment, four arithmetic operations and some calculation functions, it also supports special functions such as message triggering, ARI NC 429 sending, and file transfer. The existing trigger script loading method is to compile and generate it into an airborne executable program in the ground configuration tool. In this way, the compilation tool of the airborne device needs to be embedded in the ground configuration tool. If there are multiple types of airborne devices, it will be inconvenient to manage, and the files generated by the configuration tool cannot be universal.
[0052] In the related art, the trigger script is compiled and generated as an airborne executable program in the ground configuration tool, so it is necessary to embed the compilation tool of the airborne device in the ground configuration tool. If there are multiple types of airborne devices, it will be inconvenient to manage, and the files generated by the configuration tool cannot be universal. In view of this, the present invention proposes a flight data processing method, system, electronic device and storage medium. The scheme uses the script language to write the trigger script through the ground configuration tool, and sends the trigger script to the trigger module. The trigger module includes a compiler and an executor. The executor is deployed in the airborne device, and can perform the parsing and execution of the trigger script language in steps. It can be deployed in different airborne devices across platforms to improve the efficiency of flight data processing; in addition, the scheme compiles the trigger script through the compiler to obtain a compiled file, and then executes the flight data according to the compiled file through the executor, and triggers the airborne device to send a message according to the execution result. The trigger script can be compiled and pre-processed by the compiler and sent to the executor, so that the execution efficiency of the executor is higher and the processing efficiency of flight data is improved. The embodiment of the present application specifically divides the trigger into a compiler and an executor; after the compiler compiles the script, it generates a compiled file that can be used by the executor, and the compiled file can be used across platforms; at the same time, the compiler can also be embedded in the airborne device, and the airborne device compiles the trigger script. The compiled file generated after compilation is consistent with the compiled file generated by the ground configuration tool, because the compilation process has pre-processed information such as parameter names, which will make the executor execution more efficient.
[0053] A flight data processing method provided in an embodiment of the present application relates to the field of data processing technology. A flight data processing method provided in an embodiment of the present application can be applied to a terminal, can also be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements a flight data processing method, etc., but is not limited to the above forms.
[0054] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0055] Figure 1 is an optional flowchart of a flight data processing method provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S106.
[0056] Step S101, a trigger script is written in a scripting language through a ground configuration tool, and the trigger script is sent to a trigger module, wherein the trigger module includes a compiler and an executor, and the executor is deployed in an airborne device;
[0057] Step S102, compiling the trigger script by the compiler to obtain a compiled file;
[0058] Step S103, the executor performs command execution processing on the flight data according to the compiled file, and triggers the airborne device to send a message according to the execution result.
[0059] Steps S101 to S103 shown in the embodiment of the present application use a scripting language to write a trigger script through a ground configuration tool to achieve data monitoring and message event triggering, and can configure the script's priority and effective flight mode. The trigger script is then sent to the trigger module, which includes a compiler and an executor. The compiler can be embedded in the ground configuration tool to compile the trigger script and generate a compiled file that can be used by the executor; the executor is deployed in the airborne device, and performs conditional judgment or assignment operations, function execution, and other operations on the flight data according to the trigger script statement, and then triggers the airborne device to send the corresponding message according to the execution result.
[0060] In step S101 of some embodiments, the trigger script is written by using a scripting language through a ground configuration tool, including the following steps:
[0061] The flight mode and the conversion path are defined and processed by the ground configuration tool using a scripting language to obtain an initial script;
[0062] Performing message function definition processing on the initial script to obtain an intermediate script;
[0063] The intermediate script is subjected to an execution priority definition process to obtain the triggering script.
[0064] In the embodiment of the present application, the trigger script language can be used to formulate the flight mode conversion rules, such as Figure 2 As shown, a total of 13 flight modes and conversion paths are defined; among them, 0.PO is aircraft preparation, 1.ES is engine start, 2.SL is aircraft taxiing, 3.TO is aircraft takeoff, 4.IC is takeoff climb, 5.CL is aircraft climb, 6.CR is aircraft cruising, 7.DC is aircraft descent, 8.AP is aircraft approach, 9.LN is aircraft landing, 10.GA is aircraft go-around, 11.IN is aircraft approach, and 12.EN is engine shutdown; the switching between each mode must meet the corresponding conditions set by the user, such as in the 0.PO aircraft preparation stage, it can be judged that when the engine speed reaches a certain value, it will switch to the 1.ES engine start stage; the judgment conditions and conversion process are implemented by the user using the trigger script language. The embodiment of the present application can use the script language to define and process the flight mode and conversion path through the ground configuration tool, and formulate the conversion rules of each flight mode by using the trigger script language to obtain the initial script. Then, the corresponding message function is defined for the initial script to obtain the intermediate script, and the message function includes message activation, message collection group activation and message routing, and the message function is used to trigger the airborne device to send the corresponding message. Finally, by defining the corresponding priority for the intermediate script, that is, defining the execution logic of the script trigger, in the embodiment of the present application, the execution logic of the trigger script is to execute each script that is valid in the current flight mode in order of priority every second; the priority strategy of the script can protect the data dependency between the scripts. Each script can be specified to be valid in certain flight modes or all flight modes, for example: the flight mode conversion script is valid in all flight modes, and will be executed regardless of the current flight mode; the automatic position message script will only be executed in flight modes such as aircraft climbing and aircraft cruising. The embodiment of the present application uses a script language to write a trigger script through a ground configuration tool, and the script language can be written in C language, so that the parsing and execution of the trigger script language are more convenient to transplant, and the use of the trigger script language is easier to read and more powerful.
[0065] In some embodiments, performing message function definition processing on the initial script to obtain an intermediate script includes the following steps:
[0066] Perform message activation function definition processing on the initial script according to the preset activation condition to obtain a first script;
[0067] Performing message collection group activation function definition processing on the first script to obtain a second script;
[0068] The second script is processed for message routing definition to obtain the intermediate script.
[0069] In the embodiment of the present application, the core functions related to messages in the specific function functions supported by the trigger script language are message activation, message collection group activation and message routing. Among them, the first script is obtained by defining the message activation function of the initial script through the preset activation condition, and the message activation function is: activate the corresponding message when the set condition is met; for example, after the flight mode enters the "landing" stage, the trigger will obtain the aircraft sensor parameters through the ARI NC429 bus for calculation, and when the gross weight is greater than the set value or the vertical acceleration is greater than the set value, the "landing report" will be activated. Then, the first script is processed by defining the activation function of the message collection group to obtain the second script. The activation function of the message collection group is: after the message is activated, parameter data will be collected at the set time, and the collection can be divided into multiple collection groups; for example, after the "landing report" is activated, the landing message collection group 1 will be activated immediately to start recording parameter information such as GPS time, aircraft tail number, and transmitter speed. At the same time, the instantaneous vertical acceleration value (XY) between X seconds before the first wheel touches the ground and Y seconds after touching the ground and the instantaneous vertical acceleration value (TD) between the first wheel landing and all wheels landing will be obtained. After completing the XY vertical acceleration peak sampling and TD vertical acceleration peak sampling, the collection group 2 will be activated to start recording parameter information such as the maximum / minimum value of the XY vertical acceleration and the maximum / minimum value of the TD vertical acceleration, and generate a "landing report". Finally, the second script is processed for message routing definition to obtain an intermediate script. The message routing function is: after the message is generated, it is automatically or manually sent to the set destination; for example, the "landing report" can be automatically sent to the Aircraft Communication Addressing Reporting System (ACARS) link, or it can be manually sent to the Quick Access Recorder (QAR) through the Control Display Unit (CDU). The embodiment of the present application can trigger the corresponding function processing of the message by performing message function definition processing on the initial script, thereby improving the processing efficiency of flight data.
[0070] In some embodiments, compiling the trigger script by the compiler to obtain a compiled file includes the following steps:
[0071] Read the trigger script and filter the code comments to obtain the script statements;
[0072] Performing semantic recognition and grammar checking on the script statements to obtain key statements;
[0073] The key statements are compiled to obtain the compiled file.
[0074] In an embodiment of the present application, the trigger script is compiled by a compiler, and after the script is subjected to the steps of statement reading, semantic recognition, syntax checking, compilation preprocessing, parameter / symbol extraction, code conversion, information storage, etc., a binary compiled file executable by the execution unit is generated. Specifically, the trigger script is read and the code comments are filtered. Specifically, the trigger script statements are read line by line and the code comment parts are filtered; for example, characters between the "#" symbol and the newline character are filtered out as code comments to obtain script statements. Then, the script statements are semantically recognized and syntax checked to obtain key statements, specifically by identifying the grammatical keywords of the statements and entering the corresponding processing procedures, such as "if", "_setbit", etc.; and checking whether the statements meet the grammatical requirements, such as "if", "end if" must be used in pairs, and the "_setbit" statement must have corresponding operation parameters. Finally, the key statements are compiled to obtain a compiled file, and the compilation process includes the steps of compilation preprocessing, parameter / symbol extraction, code conversion, information storage, etc. Please refer to Figure 3 , the embodiment of the present application reads the script file through the compiler initialization, reads the statements of the script file, performs semantic recognition after successful reading, outputs an error message and exits the compilation when it is not recognizable, performs syntax checking when it is recognizable, outputs an error message and exits the compilation if a syntax error is found, otherwise performs compilation processing, such as preprocessing, parameter / symbol extraction, code conversion, information storage and other steps, until all statements are compiled and a compiled file is generated. The embodiment of the present application compiles the trigger script through the compiler, and the compiled file generated by the compilation can be used across platforms; when used across platforms, it only needs to transplant the executor to the corresponding platform, and the user writes the trigger script according to the project requirements and the compiled file generated by the compiler can be executed on the executor of the platform, which improves the efficiency of data processing.
[0075] In some embodiments, compiling the key statement to obtain the compiled file includes the following steps:
[0076] Preprocessing the key sentence to obtain a preprocessed sentence;
[0077] Extracting operation parameters and operation symbols from the preprocessed statement to obtain extraction information;
[0078] The extracted information is subjected to code conversion and storage processing to obtain the compiled file.
[0079] In the embodiment of the present application, the key statements are preprocessed, and macro definition replacement, symbol replacement, case conversion and other processing are performed in advance to obtain preprocessed statements, and then the operation parameters, operated parameters and operation symbols in the preprocessed statements are extracted to obtain extracted information, and then the extracted information is converted into codes to facilitate storage and execution of operations by the executor; such as parameter names are converted into parameter IDs, operation symbols are converted into operation codes, etc. Finally, the converted code information is stored in the corresponding location, and the storage location is shown in Table 1 below, which is a statement storage format table;
[0080]
[0081] Table 1
[0082] Specifically, since multi-condition judgment and complex operation expressions are difficult to process in programming languages, the embodiment of the present application uses a binary tree to decompose the formula, which ensures the operation priority and is more convenient for the compiler to store and the executor to extract. Figure 4 , the statement "A>=B and C<=D" is stored by binary tree decomposition. The embodiment of the present application compiles the key statements to obtain a compiled file, and can compile the trigger script to obtain a compiled file, so that the executor can quickly execute the compiled file, thereby improving execution efficiency.
[0083] In some embodiments, the executing device performs command execution processing on the flight data according to the compiled file, and triggers the airborne device to send a message according to the execution result, including the following steps:
[0084] acquiring the flight data;
[0085] Perform code reading and statement type determination processing on the compiled file to obtain a determination result;
[0086] Perform parameter comparison processing on the flight data according to the judgment result to obtain a comparison result;
[0087] Command execution processing is performed according to the comparison result, and the airborne device is triggered to send a message according to the execution result.
[0088] In the embodiment of the present application, the executor unit reads the execution code according to the compiled file generated by the compiler unit, determines the statement type, performs parameter comparison and command execution, thereby monitoring the corresponding flight data and triggering the airborne device to send a message by calling the corresponding function interface. Figure 5, the executor initializes and reads the compiled file, reads the code and performs statement type judgment to obtain the judgment result, wherein the statement types include control statements and functional statements, control statements can be statement pointers for jumping, and functional statements can perform parameter assignments or function calls. When the judgment result is a functional statement, the function executor processes the flight data accordingly according to the code and adds one to the statement pointer; when the judgment result is a control statement, the comparison executor performs conditional comparison on the parameters, and when the comparison fails, the statement pointer is adjusted to the judgment turning point or the judgment end, otherwise the statement pointer is added by one and returns to the code reading until the statement reading is completed and exited. The embodiment of the present application can speed up the execution speed of the executor and improve the processing efficiency of flight data by executing the compiled file pre-compiled by the compiler through the executor.
[0089] In some embodiments, performing parameter comparison processing on the flight data according to the judgment result to obtain a comparison result includes the following steps:
[0090] Obtain a binary tree of statements according to the compiled file;
[0091] The flight data is calculated and processed according to the statement binary tree to obtain the comparison result.
[0092] In the embodiment of the present application, the compiler stores statements in the script file, and performs calculations by taking out the stored binary tree data. For example, to calculate the binary tree with the statement "A>=B and C<=D", the root node will be obtained first, and the operation symbol is "and". If the left branch node of the root node is not a leaf node, the left branch node will be calculated first; the operation symbol of the left branch node is ">=", and the lower left and right branch nodes are both leaf nodes, and the comparison value can be directly calculated; then the right branch node of the root node is judged to be a leaf node, and the comparison value of the right branch node is calculated by the same method, and the comparison value obtained by the left and right branch nodes of the root node is subjected to the "and" operation to obtain the final result for judgment. Command execution can also be used for parameter assignment or function call. For example, the parameter assignment statement is "A=B*C", which is used to assign B multiplied by C to A. If the function call statement is "reportStart 101", this statement is used to start the 101 message. The embodiment of the present application uses a binary tree to decompose the formula, which can improve the operation priority, and can also make it more convenient for the compiler to perform storage processing and the executor to perform extraction processing, thereby improving the processing efficiency of the flight data.
[0093] The following is a detailed description of the embodiments of the present invention with reference to specific application examples:
[0094] The embodiment of the present application uses a scripting language to write a trigger script, which can be easily ported during trigger parsing and execution, and the executable file compiled by the trigger script language compiler can be used across platforms; when used across platforms, it is only necessary to port the executor to the corresponding platform, and the user writes the trigger script according to the project requirements and compiles the executable file generated by the compiler, which can be executed on the executor of the platform; for example, the executor is ported to both the X86 platform and the ARM platform, and the user can modify the trigger script at will, and the compiled executable file can run on both platforms, and the script file is embedded with functional functions such as ARI NC 429 data monitoring, message activation, message data collection, message routing, ARI NC 429 data broadcast sending, ACARS message sending, flight status management, etc. that are unique to aviation airborne equipment; these unique functional function libraries have been embedded in the executor, and the user only needs to call the corresponding interface when writing the trigger script.
[0095] See also Figure 6 The present application also provides a flight data processing system that can implement the above-mentioned flight data processing method. The system includes:
[0096] The ground configuration tool 601 is used to write a trigger script using a scripting language and send the trigger script to the trigger module; the trigger module 602 includes a compiler 603 and an executor 604, and the executor 604 is deployed in an airborne device;
[0097] The compiler 603 is used to compile the trigger script to obtain a compiled file;
[0098] The executor 604 is used to perform command execution processing on the flight data according to the compiled file, and trigger the airborne device to send a message according to the execution result.
[0099] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0100] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned flight data processing method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a vehicle-mounted computer, etc.
[0101] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0102] See also Figure 7 , Figure 7 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0103] The processor 701 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0104] The memory 702 may be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 702 may store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 702, and the processor 701 calls and executes a flight data processing method in the embodiment of this application;
[0105] Input / output interface 703, used to implement information input and output;
[0106] Communication interface 704, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WI FI, Bluetooth, etc.);
[0107] A bus 705 that transmits information between the various components of the device (e.g., the processor 701, the memory 702, the input / output interface 703, and the communication interface 704);
[0108] The processor 701 , the memory 702 , the input / output interface 703 and the communication interface 704 are connected to each other in communication within the device via a bus 705 .
[0109] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned flight data processing method is implemented.
[0110] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0111] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0112] The embodiments of the present application provide a flight data processing method, system, electronic device and storage medium. The scheme uses a scripting language to write a trigger script through a ground configuration tool, and sends the trigger script to a trigger module. The trigger module includes a compiler and an executor. The executor is deployed in an airborne device and can parse and execute the trigger script language in steps. It can be deployed in different airborne devices across platforms to improve the efficiency of flight data processing. In addition, the scheme compiles the trigger script through a compiler to obtain a compiled file, and then uses the executor to execute commands on the flight data according to the compiled file, and triggers the airborne device to send a message according to the execution result. The trigger script can be compiled and pre-processed by the compiler and then sent to the executor, so that the execution efficiency of the executor is higher and the processing efficiency of flight data is improved.
[0113] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0114] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0115] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0116] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0117] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0118] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0119] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0120] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0121] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0122] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0123] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A flight data processing method, characterized in that: The method comprises the following steps: A trigger script is written in a scripting language through a ground configuration tool, and the trigger script is sent to a trigger module, wherein the trigger module includes a compiler and an executor, and the executor is deployed in an airborne device; Compile the trigger script using the compiler to obtain a compiled file; The executor performs command execution processing on the flight data according to the compiled file, and triggers the airborne device to send a message according to the execution result.
2. The method according to claim 1, characterized in that The trigger script is written by using a scripting language through a ground configuration tool, including the following steps: The flight mode and the conversion path are defined and processed by the ground configuration tool using a scripting language to obtain an initial script; Performing message function definition processing on the initial script to obtain an intermediate script; The intermediate script is subjected to an execution priority definition process to obtain the triggering script.
3. The method according to claim 2, characterized in that The process of performing message function definition processing on the initial script to obtain an intermediate script comprises the following steps: Perform message activation function definition processing on the initial script according to the preset activation condition to obtain a first script; Performing message collection group activation function definition processing on the first script to obtain a second script; The second script is processed for message routing definition to obtain the intermediate script.
4. The method according to claim 1, characterized in that: The compiling the trigger script by the compiler to obtain a compiled file includes the following steps: Read the trigger script and filter the code comments to obtain the script statements; Performing semantic recognition and grammar checking on the script statements to obtain key statements; The key statements are compiled to obtain the compiled file.
5. The method according to claim 4, characterized in that The step of compiling the key statements to obtain the compiled file comprises the following steps: Preprocessing the key sentence to obtain a preprocessed sentence; Extracting operation parameters and operation symbols from the preprocessed statement to obtain extraction information; The extracted information is subjected to code conversion and storage processing to obtain the compiled file.
6. The method according to any one of claims 1 to 5, characterized in that: The executing device performs command execution processing on the flight data according to the compiled file, and triggers the airborne device to send a message according to the execution result, including the following steps: acquiring the flight data; Perform code reading and statement type determination processing on the compiled file to obtain a determination result; Perform parameter comparison processing on the flight data according to the judgment result to obtain a comparison result; Command execution processing is performed according to the comparison result, and the airborne device is triggered to send a message according to the execution result.
7. The method according to claim 6, characterized in that The step of performing parameter comparison processing on the flight data according to the judgment result to obtain a comparison result comprises the following steps: Obtain a binary tree of statements according to the compiled file; The flight data is calculated and processed according to the statement binary tree to obtain the comparison result.
8. A flight data processing system, characterized in that: The system comprises: A ground configuration tool is used to write a trigger script using a scripting language and send the trigger script to a trigger module; the trigger module includes a compiler and an executor, and the executor is deployed in an airborne device; The compiler is used to compile the trigger script to obtain a compiled file; The executor is used to perform command execution processing on the flight data according to the compiled file, and trigger the airborne device to send a message according to the execution result.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Visual engine for flight simulation based on Vulkan
CN113538705A
Script compiling method and device and electronic equipment
CN114115900A
Script-based satellite-borne distributed software task dynamic allocation method
CN115525398A