CN112558996A - Automatic curing control method - Google Patents
Automatic curing control method Download PDFInfo
- Publication number
- CN112558996A CN112558996A CN202011555272.XA CN202011555272A CN112558996A CN 112558996 A CN112558996 A CN 112558996A CN 202011555272 A CN202011555272 A CN 202011555272A CN 112558996 A CN112558996 A CN 112558996A
- Authority
- CN
- China
- Prior art keywords
- curing
- file
- command
- tool
- mode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application provides an automatic curing control method, which comprises the following steps: judging whether the automatic curing control mode is a single curing mode or a batch curing mode; if the automatic curing control mode is a single curing mode, acquiring the file name or the path of the file to be cured and a curing address; if the mode of the automatic curing control is a batch curing mode, acquiring a directory and a curing address where the file to be cured is located, wherein the directory contains all the files to be cured; and carrying out curing operation on the file to be cured according to the automatic curing control mode and the curing address.
Description
Technical Field
The invention belongs to the technical field of airborne embedded system software curing, and particularly relates to an automatic curing control method.
Background
The curing tool is the most commonly used tool in the field of airborne embedded system software, and plays a significant role in the field of airborne embedded software development. The development process of the embedded software is usually carried out at a host, an executable binary file is generated after compiling and linking, and then the executable binary file is solidified into FLASH through a solidification tool for execution. The accuracy of the curing process directly affects the performability and correctness of the system, the traditional curing tool needs to manually input a curing address, select a file to be cured and control the end of the curing process in the curing process, and the manual operation process is complicated and is easy to make mistakes.
Disclosure of Invention
The application provides an automatic solidification control method, which improves the efficiency of an embedded software development process and ensures the safety and reliability of an embedded system.
The application provides an automatic curing control method, which comprises the following steps:
judging whether the automatic curing control mode is a single curing mode or a batch curing mode;
if the automatic curing control mode is a single curing mode, acquiring the file name or the path of the file to be cured and a curing address; if the mode of the automatic curing control is a batch curing mode, acquiring a directory and a curing address where the file to be cured is located, wherein the directory contains all the files to be cured;
supporting a developer mode, and expanding a command set to be compatible with more tools;
and carrying out curing operation on the file to be cured according to the automatic curing control mode and the curing address.
Preferably, if the mode of the automatic curing control is a single curing mode, the method for acquiring the file name and the curing address of the file to be cured specifically includes:
if the file name of the file to be solidified is acquired, searching a directory of the file to be solidified;
and filling the curing address into a curing tool, and finishing curing operation according to the command set file.
Preferably, if the mode of the automatic curing control is a single curing mode, acquiring a path and a curing address of the file to be cured, specifically including:
if the path where the file to be solidified is located is judged and confirmed to be a legal path, directly controlling the solidifying tool to be switched to the path;
and filling the curing address into a curing tool, and finishing curing operation according to the command set file.
Preferably, if the mode of the automatic curing control is a batch curing mode, acquiring a directory and a curing address where the file to be cured is located, specifically including:
judging that the solidified address is a legal path;
scanning the file names of all the files to be solidified in the directory where the files to be solidified are located, and comparing the file names with preset file names in a solidified file list;
and if all the data are matched, controlling the curing tool to be switched to the directory, and finishing curing operation according to the command set file.
Preferably, the command set file, the completing the curing operation, includes:
opening a command set file, and reading a command character string;
analyzing the command character string to obtain a command identifier, wherein the command identifier comprises a command word P, a command word D, a command word S and a command word M; the command word P is a path identifier and is used for indicating that the subsequent character string is a path and indicating the directory where the curing tool is located, and the automatic curing control tool controls the starting of the curing tool from the path; the command word D represents that a character string behind the command word D is data information input into the curing tool by the automation control tool; the command word S is a sleep time identifier and represents the sleep waiting time of the main process of the automatic solidification control tool; the command word M is a combined key identifier, indicates that a combined key is pressed, and indicates a special character or a shortcut operation control command sent to a curing tool;
and finishing the curing operation according to different command identifications.
Preferably, the completing the curing operation according to different command identifiers specifically includes:
when the command identification is recognized as a command word P, a process is created and started to execute the starting of the curing tool;
when the command identification is recognized as a command word D, sending data to a controlled curing tool, wherein the data comprises command data and transmission data of the curing tool;
when the command identification is recognized as a command word S, the main process can be dormant to wait for the curing tool to perform curing operation or respond to a specific command word;
and when the command identification is recognized as the command word M, sending combined key data or a shortcut operation control command to the controlled curing tool.
Preferably, the method further comprises:
and simulating the pressing and releasing of the corresponding key according to the combined key data or the shortcut operation control command.
Preferably, according to the mode of automatic curing control and the curing address, the curing operation is performed on the file to be cured, and the method specifically includes:
outputting version information of the currently supported curing tool, and if the version of the currently supported curing tool is not in the version support list, enabling an authorized user to select to enter a developer mode;
after entering a developer mode, automatically starting a character editor, requiring a user to input an operation command set of a current curing tool, and waiting for the user to finish inputting;
after the user confirms that the command set is input completely, the exit waiting flag bit is input;
after exiting the waiting state, storing the temporary command set file in a default directory, loading and analyzing the file, and controlling a curing tool to perform curing operation;
after the solidification is finished, whether the result is correct or not is confirmed to the user, if the result is correct, the main process automatically merges the temporary command set file into the main command set file, and the version of the current solidification tool is added to the version support list; if not, the automatic control editor reopens the temporary command set file, allowing the user to re-modify the command set until the user confirms that the results are correct or abandons use of the tool.
In summary, the invention mainly aims at the defects that the file curing process is complicated and easy to make mistakes in the embedded software development process, the manual curing process is converted into automatic operation by designing the automatic curing control tool, single or large-batch uninterrupted curing operation can be realized, the design is simple to realize and is not easy to make mistakes, the safety and the reliability of the curing process are ensured, and the curing efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of the logic of an automated solidification control method provided herein;
FIG. 2 is a schematic flow chart diagram of an automated solidification control method provided herein;
fig. 3 is a role interaction diagram of an automated solidification control tool according to the present application.
Detailed Description
In order to overcome the defects of a manual operation curing tool and improve the curing efficiency, the invention designs an automatic curing control tool to replace manual operation, and completes fussy curing operation by the automatic tool, thereby simplifying the operation flow, realizing large-scale, flexible and controllable curing operation and ensuring the reliability and safety of an embedded system.
The invention provides a design scheme of an automatic curing control tool, which can realize accurate control of the curing tool by flexibly setting a command set file and realize a more rapid and stable curing process by interacting with a user.
The main design scheme comprises the following aspects:
1. supporting fuzzy search solidified file
The automatic solidification control tool integrates a quick search function and can support automatic search of files to be solidified. When the main process runs, the user is required to input part or all of the file names of the files to be solidified, after the main process obtains the character string, the main process starts to execute searching work in the file system, and after the files are searched, the main process controls the solidification tool to automatically switch to the directory and solidify the files. In addition, the automated solidification control tool also supports absolute path and relative path specification, and in order to reduce query latency, the absolute path is used as much as possible to indicate the position of the file to be solidified.
2. Support single file curing mode and batch curing mode
The automated cure control tool provides for the selection of a single cure mode (curing only one of the documents at a time) and a batch cure mode (curing all of the documents all at once). When the program is running, the host process asks the user to input the mode flag parameter (0 indicates single curing mode, 1 indicates batch curing mode), and based on the input flag parameter, the host process determines the operation to be performed. When the user enters 0, the host process asks the user to re-enter some or all of the filename (which may also be in the form of absolute or relative path + filename) of the file to be solidified. Based on the name, the host process will initiate a file search process to find the file (if the file name is entered), control the curing tool to cure the file into FLASH after finding the file, or directly control the curing tool to cure the file (if the absolute path + the cured file name is entered). When the parameter of the mode flag bit input by the user is 1, the user is indicated to carry out batch curing operation, after receiving the parameter, the main process requires the user to input a directory where the curing file is located (all the files to be cured are stored under the directory), after obtaining the path parameter, the main process controls the curing tool to switch to the directory, and controls the curing tool to cure the files to be cured into the FLASH one by sending a command to the curing tool.
3. Multi-version compatible curing tool and extensible command set file
The automatic curing control tool mainly realizes the accurate control of the curing tool by reading and analyzing the command set file, the command set file is closely connected with the curing tool, and the control adaptation of different curing tools can be realized by modifying the command set file. The solidified tool software can be upgraded and changed according to the actual use condition, and can be in the condition that a plurality of versions coexist. To be able to adapt multiple versions of a curing tool simultaneously, an automated curing control tool provides a compatible mode. When the program runs, the main process lists all versions of the curing tools which are currently supported, and the user selects the version of the curing tool which needs to be used. And when the user selects the version, the main process opens the corresponding command set file so as to control the curing tool to execute the curing operation. If the version list does not contain the curing tool to be used, the main process asks the user whether to enter a developer mode, if the entry is confirmed, the user is required to input a password to prevent unauthorized modification, after the password is correctly input, the main process starts a text editor, the user inputs an operation command set of a new version curing tool, a path of the command set file is provided for the main process, and the main process controls the curing tool to finish curing according to the command set. After the solidification is finished, if the user confirms that the result is correct, the main process automatically integrates the command set file into the main command set file, and adds the version of the solidification tool in the version list.
Fig. 2 and fig. 3 show a design diagram and a role interaction diagram of the automatic curing control tool, which visually represent the working process, and the specific implementation of the automatic curing control tool controlling the curing tool to complete the curing operation is given here:
the method comprises the following steps: double-click operation of an automatic curing control tool;
step two: the user confirms whether it is the single curing mode or the batch curing mode (0 denotes the single curing mode, 1 denotes the batch curing mode);
when the user selects the single cure mode:
the main process requires a user to input a file name (or a path where the file is located) and a curing address of the file to be cured;
and the main process executes judgment, if the file name is input by the user, searching is carried out, the curing tool is controlled to be switched to the directory after the file name is found, the curing address input by the user is filled in the curing tool, and the main process analyzes the command word and controls the curing tool to finish curing operation. If the file input by the user is not found, outputting prompt information to request the user to input the file name or path again;
and if the main process determines that the path input by the user is legal through judgment, directly controlling the curing tool to switch to the path, and controlling the curing tool to cure the file into the address specified by the user. If the user inputs an illegal path, prompt information is output, and the user is required to input the file path again.
When the user selects the batch curing mode:
the main process requires a user to input a directory where the files to be solidified are located, wherein the directory should contain all the files to be solidified;
the host process determines whether the path is legitimate. If the path is illegal, the user is required to input the path again;
and the main process scans the file names of all the files to be solidified in the directory, compares the file names with preset file names in a solidified file list, controls the solidifying tool to be switched to the directory if the file names are matched with the preset file names, and solidifies all the files into the FLASH according to the command set and the preset address. If not, outputting the unmatched information of the file to be cured, exiting the main process and failing in the curing process.
Step three: when the main process controls the curing tool to perform the curing operation, the main process outputs the version information of the currently supported curing tool and inquires whether the user performs the developer mode (0 means entering, 1 means not entering), and if the version of the currently supported curing tool is not in the version support list, the authorized user can select to enter the developer mode. And after entering a developer mode, starting the character editor by the main process, requiring a user to input an operation command set of the current curing tool, and waiting for the user to finish inputting. And after the user confirms that the input of the command set is finished, inputting an exit waiting flag bit (0 represents continuous waiting, and 1 represents exit waiting) into the main process, and after the main process exits the waiting state, automatically controlling the editing tool to store the temporary command set file in a default directory, loading and analyzing the file, and controlling the curing tool to perform curing operation. After the solidification is finished, the main process confirms whether the result is correct or not to the user, if the result is correct, the main process automatically merges the temporary command set file into the main command set file, and adds the version of the current solidification tool in the version support list; if not, the host process will control the editor to reopen the temporary command set file, allowing the user to re-modify the command set until the user confirms that the results are correct or abandons the tool.
Simulating key operation: different function keys are represented by different symbols to simulate corresponding key presses and releases when the host process reads the symbol. The correspondence between the symbols and the keys is shown in table 1 below.
TABLE 1 correspondence between symbols in command files and keyboard keys
Symbol | Corresponding key of the display |
& | Enter key |
TABLE 1
Symbol | Corresponding key of the display |
@ | Ctrl bond |
^ | Alt bond |
# | Shift key |
a-z | Corresponding to the keyboarda-z bond |
0-9 | Corresponding to keys 0-9 of keyboard |
- | Corresponding key of keyboard |
. | Key corresponding to keyboard |
Claims (8)
1. An automated cure control method, the method comprising:
judging whether the automatic curing control mode is a single curing mode or a batch curing mode;
if the automatic curing control mode is a single curing mode, acquiring the file name or the path of the file to be cured and a curing address; if the mode of the automatic curing control is a batch curing mode, acquiring a directory and a curing address where the file to be cured is located, wherein the directory contains all the files to be cured;
and carrying out curing operation on the file to be cured according to the automatic curing control mode and the curing address.
2. The method according to claim 1, wherein if the mode of the automatic curing control is a single curing mode, acquiring a file name and a curing address of the file to be cured specifically comprises:
if the file name of the file to be solidified is acquired, searching a directory of the file to be solidified;
and filling the curing address into a curing tool, and finishing curing operation according to the command set file.
3. The method according to claim 1, wherein if the mode of the automatic curing control is a single curing mode, acquiring a path and a curing address of the file to be cured, specifically comprising:
if the path where the file to be solidified is located is judged and confirmed to be a legal path, directly controlling the solidifying tool to be switched to the path;
and filling the curing address into a curing tool, and finishing curing operation according to the command set file.
4. The method according to claim 1, wherein if the mode of the automatic curing control is a batch curing mode, acquiring a directory and a curing address where the file to be cured is located, specifically comprising:
judging that the solidified address is a legal path;
scanning the file names of all the files to be solidified in the directory where the files to be solidified are located, and comparing the file names with preset file names in a solidified file list;
and if all the data are matched, controlling the curing tool to be switched to the directory, and finishing curing operation according to the command set file.
5. The method of claim 2, 3 or 4, wherein completing the curing operation according to the command set file comprises:
opening a command set file, and reading a command character string;
analyzing the command character string to obtain a command identifier, wherein the command identifier comprises a command word P, a command word D, a command word S and a command word M; the command word P is a path identifier and is used for indicating that the subsequent character string is a path and indicating the directory where the curing tool is located, and the automatic curing control tool controls the starting of the curing tool from the path; the command word D represents that a character string behind the command word D is data information input into the curing tool by the automation control tool; the command word S is a sleep time identifier and represents the sleep waiting time of the main process of the automatic solidification control tool; the command word M is a combined key identifier, indicates that a combined key is pressed, and indicates a special character or a shortcut operation control command sent to a curing tool;
and finishing the curing operation according to different command identifications.
6. The method according to claim 5, wherein the completing the curing operation according to the different command identifiers specifically comprises:
when the command identification is recognized as a command word P, a process is created and started to execute the starting of the curing tool;
when the command identification is recognized as a command word D, sending data to a controlled curing tool, wherein the data comprises command data and transmission data of the curing tool;
when the command identification is recognized as a command word S, the main process can be dormant to wait for the curing tool to perform curing operation or respond to a specific command word;
and when the command identification is recognized as the command word M, sending combined key data or a shortcut operation control command to the controlled curing tool.
7. The method of claim 6, further comprising:
and simulating the pressing and releasing of the corresponding key according to the combined key data or the shortcut operation control command.
8. The method according to claim 1, wherein the curing operation is performed on the file to be cured according to the mode of the automatic curing control and the curing address, and specifically comprises:
outputting version information of the currently supported curing tool, and if the version of the currently supported curing tool is not in the version support list, enabling an authorized user to select to enter a developer mode;
after entering a developer mode, starting a character editor, requiring a user to input an operation command set of a current curing tool, and waiting for the user to finish inputting;
after the user confirms that the command set is input completely, inputting an exit waiting flag bit to the main process;
after exiting the waiting state, storing the temporary command set file in a default directory, loading and analyzing the file, and controlling a curing tool to perform curing operation;
after the solidification is finished, whether the result is correct or not is confirmed to the user, if the result is correct, the main process automatically merges the temporary command set file into the main command set file, and the version of the current solidification tool is added to the version support list; if not, the host process will control the editor to reopen the temporary command set file, allowing the user to re-modify the command set until the user confirms that the results are correct or abandons the tool.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011555272.XA CN112558996B (en) | 2020-12-24 | 2020-12-24 | Automatic curing control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011555272.XA CN112558996B (en) | 2020-12-24 | 2020-12-24 | Automatic curing control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112558996A true CN112558996A (en) | 2021-03-26 |
CN112558996B CN112558996B (en) | 2023-08-04 |
Family
ID=75033873
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011555272.XA Active CN112558996B (en) | 2020-12-24 | 2020-12-24 | Automatic curing control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112558996B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101655802A (en) * | 2009-09-09 | 2010-02-24 | 中兴通讯股份有限公司 | System and method for downloading files in batches |
CN102368218A (en) * | 2011-10-14 | 2012-03-07 | 烽火通信科技股份有限公司 | Method for automatically programming Flash in batches |
CN103559099A (en) * | 2013-10-31 | 2014-02-05 | 惠州市蓝微电子有限公司 | Chip burning checking method |
CN103902303A (en) * | 2012-12-26 | 2014-07-02 | 中国航空工业集团公司第六三一研究所 | Program solidifying method based on configuration table |
CN110083378A (en) * | 2019-05-09 | 2019-08-02 | 中国航空工业集团公司西安航空计算技术研究所 | A kind of software automatic updating method and device based on file system |
CN110908673A (en) * | 2018-10-31 | 2020-03-24 | 研祥智能科技股份有限公司 | Digital power supply chip burning method |
-
2020
- 2020-12-24 CN CN202011555272.XA patent/CN112558996B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101655802A (en) * | 2009-09-09 | 2010-02-24 | 中兴通讯股份有限公司 | System and method for downloading files in batches |
CN102368218A (en) * | 2011-10-14 | 2012-03-07 | 烽火通信科技股份有限公司 | Method for automatically programming Flash in batches |
WO2013053262A1 (en) * | 2011-10-14 | 2013-04-18 | 烽火通信科技股份有限公司 | Method for automatically burning flash in batches |
CN103902303A (en) * | 2012-12-26 | 2014-07-02 | 中国航空工业集团公司第六三一研究所 | Program solidifying method based on configuration table |
CN103559099A (en) * | 2013-10-31 | 2014-02-05 | 惠州市蓝微电子有限公司 | Chip burning checking method |
CN110908673A (en) * | 2018-10-31 | 2020-03-24 | 研祥智能科技股份有限公司 | Digital power supply chip burning method |
CN110083378A (en) * | 2019-05-09 | 2019-08-02 | 中国航空工业集团公司西安航空计算技术研究所 | A kind of software automatic updating method and device based on file system |
Also Published As
Publication number | Publication date |
---|---|
CN112558996B (en) | 2023-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110399169B (en) | BIOS option modification method, device, equipment and readable storage medium | |
US20050005239A1 (en) | System and method for automatic insertion of cross references in a document | |
CN112558996B (en) | Automatic curing control method | |
CN100377061C (en) | Magnetic disc array setting system and method | |
US6212440B1 (en) | Numerical control system | |
CN114816491A (en) | System upgrading method and device for multi-system mobile terminal and terminal | |
KR102357029B1 (en) | The combined process registration apparatus and method using interactive program in computer numarical control machine tools | |
KR102094447B1 (en) | Apparatus for generating source code of Battery Management System software and method thereof | |
CN113608795A (en) | Universal method for starting and loading application program under VxWorks | |
CN111045991B (en) | Implementation method for quickly opening file based on command line mode | |
US20240201657A1 (en) | Numerical control device and computer-readable storage medium | |
EP0497283A2 (en) | A document processor | |
JPH06131228A (en) | Method for information processing and device therefor | |
JP2009080536A (en) | Bom editing device, editing program, editing system and editing method | |
CN103186416B (en) | Build the method for multi-task multi-branch process, state machine and the method for execution | |
KR0133411B1 (en) | Automatic generation method of command dialog box in basestation subsystem manager | |
JPS62202202A (en) | Sequence control program generating device | |
CN107331394B (en) | Voice data acquisition system based on mobile internet and mobile phone APP | |
CN115268823A (en) | Method for controlling office software through voice | |
CN116915607A (en) | Method and system for dynamically configuring intelligent equipment network access addition whole process | |
JP2720770B2 (en) | Automatic post-processing method | |
JP3135638B2 (en) | Electronic touch panel definition body creation processing device | |
JPH1069381A (en) | Program generation support device | |
JPH05282391A (en) | Drawing retrieving device | |
JP2002015272A (en) | Table document creation supporting device |
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 |