CN113553053A - Compiling method and device of regional controller, electronic equipment and storage medium - Google Patents
Compiling method and device of regional controller, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113553053A CN113553053A CN202110720846.2A CN202110720846A CN113553053A CN 113553053 A CN113553053 A CN 113553053A CN 202110720846 A CN202110720846 A CN 202110720846A CN 113553053 A CN113553053 A CN 113553053A
- Authority
- CN
- China
- Prior art keywords
- compiling
- source file
- file
- folder
- sending
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000003860 storage Methods 0.000 title claims abstract description 19
- 238000004140 cleaning Methods 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 9
- 238000004806 packaging method and process Methods 0.000 claims description 8
- 230000007547 defect Effects 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 238000007726 management method Methods 0.000 description 5
- 238000012790 confirmation Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a regional controller compiling method, a regional controller compiling device, electronic equipment and a storage medium, wherein the regional controller compiling method comprises the following steps: the method comprises the steps of obtaining a code to be compiled from a server, decompressing the code to be compiled to obtain a source file for compiling, and sending the source file for compiling to a first folder; acquiring a compiling configuration file from the server, and sending the compiling configuration file to the first folder so as to obtain a configured source file based on the source file for compiling and the compiling configuration data; and sending the configured source file to a second folder corresponding to the virtual machine, and sending a compiling instruction to the virtual machine so as to control the virtual machine to compile the configured source file. The compiling method of the zone controller provided by the invention can overcome the defect that the zone controller needs to participate in inputting data and codes manually in the prior art, and realizes the automatic compiling of the zone controller.
Description
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method and an apparatus for compiling a zone controller, an electronic device, and a storage medium.
Background
The CBTC (Communication Based Train Control) is a main product in the market, and comprises various products such as a vehicle-mounted ATP (automatic Train protection subsystem), a vehicle-mounted ATO (automatic Train driving subsystem), an ATS (automatic Train supervision subsystem), a ZC (zone controller), a CI (computer interlocking subsystem), a simulation test environment and the like, wherein the various products are required to be provided with matched auxiliary tools including a data configuration tool and an automatic compiling tool.
ZC is a software product, the automatic compilation of which is still imperfect at present, the data and code catalog sorting and compiling processes for compilation need to be manually entered and finished by personnel, and the automation degree is low.
Disclosure of Invention
The invention provides a compiling method and device of a region controller, electronic equipment and a storage medium, which are used for solving the defect that the region controller needs to be manually entered with data and codes in the prior art and realizing the automatic compiling of the region controller.
The invention provides a compiling method of a zone controller, which comprises the following steps:
the method comprises the steps of obtaining a code to be compiled from a server, decompressing the code to be compiled to obtain a source file for compiling, and sending the source file for compiling to a first folder;
acquiring a compiling configuration file from the server, and sending the compiling configuration file to the first folder so as to obtain a configured source file based on the source file for compiling and the compiling configuration data;
and sending the configured source file to a second folder corresponding to the virtual machine, and sending a compiling instruction to the virtual machine so as to control the virtual machine to compile the configured source file.
The compiling method of the zone controller provided by the invention further comprises the following steps:
under the condition that the configured source file is compiled, storing a compiling result file corresponding to the configured source file into the second folder;
before sending the compiling instruction to the virtual machine, sending a cleaning instruction to the virtual machine so as to control the virtual machine to clean a last compiling result file in the second folder.
According to the compiling method of the region controller provided by the present invention, the obtaining of the configured source file based on the source file for compiling and the compiling configuration data includes:
and replacing the file with the same name as the compiling configuration data in the first folder based on the compiling configuration data to obtain the configured source file.
The compiling method of the zone controller provided by the invention further comprises the following steps:
and determining that the configured source file is compiled in the case that the target machine is detected in the second folder.
The compiling method of the zone controller provided by the invention further comprises the following steps:
before sending the configured source file to the second folder, sending an emptying instruction to the virtual machine to control the virtual machine to empty the file in the second folder.
The compiling method of the zone controller provided by the invention further comprises the following steps:
bat instructions to enter a cmd mode; and the compiling instruction and the clearing instruction are both instructions in a cmd mode.
The compiling method of the zone controller provided by the invention further comprises the following steps:
under the condition that the configured source file is compiled, packaging a compiling result file corresponding to the configured source file and sending the compiling result file to a third folder;
and deleting the last compiling result file when the last compiling result file exists in the third folder.
The present invention also provides a compiling apparatus for a zone controller, including:
the device comprises a first acquisition module, a second acquisition module and a third module, wherein the first acquisition module is used for acquiring a code to be compiled from a server, decompressing the code to be compiled to obtain a source file for compiling, and sending the source file for compiling to a first folder;
a second obtaining module, configured to obtain a compilation configuration file from the server, and send the compilation configuration file to the first folder, so as to obtain a configured source file based on the source file for compilation and the compilation configuration data;
and the compiling module is used for sending the configured source file to a second folder corresponding to the virtual machine and sending a compiling instruction to the virtual machine so as to control the virtual machine to compile the configured source file.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the compiling method of the region controller.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of compiling a zone controller according to any of the above.
The compiling method, the compiling device, the electronic equipment and the storage medium of the zone controller can automatically acquire the compiling source file and the compiling configuration file, and then send the compiling source file and the compiling configuration file to the virtual machine for compiling, so that the defect that the zone controller needs to manually participate in data and code inputting in the prior art is overcome, automatic compiling of the zone controller is realized, the automatic compiling level of a zone controller software product of a Communication Based Train Control (CBTC) is greatly improved, the compiling efficiency is improved, and the production cost is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of a compiling method of a zone controller provided by the invention;
FIG. 2 is a compiling schematic diagram corresponding to the compiling method of the zone controller provided by the present invention;
FIG. 3 is a system architecture diagram corresponding to the compiling method of the zone controller provided by the present invention;
FIG. 4 is a schematic block diagram of a compiling device of the zone controller provided by the present invention;
fig. 5 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The compiling method, the compiling apparatus, the electronic device and the storage medium of the zone controller according to the present invention are described below with reference to fig. 1 to 5.
The invention provides a regional controller compiling method, which is realized based on a micro-service architecture, and as shown in figure 1, the regional controller compiling method comprises the following steps:
and 110, acquiring a code to be compiled from a server, decompressing the code to be compiled to obtain a source file for compiling, and sending the source file for compiling to a first folder.
It should be noted that, the code to be compiled is obtained from the server, and may be downloaded from the server through an SVN tool or a Git tool, where the code to be compiled is also referred to as a base code before compilation.
Further, the codes to be compiled downloaded by the SVN tool are stored in a local folder with a directory of 'source files/base codes before compiling', then the code files to be compiled in the folder are decompressed and copied into folders with a directory of 'base codes for compiling/AB machine' and a directory of 'base codes for compiling/C machine' according to file format requirements.
The directory is a folder of 'basic code for compiling/AB machine', and can store the source code for compiling corresponding to the AB machine of a zone controller (namely: ZC) product; the directory is a folder of 'basic code for compiling/C machine', and can store the source code for compiling corresponding to the ZC product.
It will be appreciated that the AB and C machines of the zone controller product are two different versions of the zone controller, with the corresponding products not functioning the same.
After the above steps are completed, files in the folder with the directory of the basic code for compiling/AB machine are copied into the folder with the directory of the source file for compiling/AB machine, and/or files in the folder with the directory of the basic code for compiling/C machine/modules are copied into the folder with the directory of the source file for compiling/C machine/modules. In this way, the path change of the source code for compilation is completed.
The first folder is a folder for storing a source file for compilation.
The number of the first folders may be one or more, that is, the first folders may include folders with a plurality of different directory paths, for example, folders with a directory of "source file for compilation/AB machine" and a directory of "source file for compilation/C machine/modules".
It is understood that, by using the SVN tool or the Git tool, the compiling configuration file is downloaded from the server, and the downloaded compiling configuration file is stored in the folder with the directory "source file for compiling/configuration data", and then the files in the folder are copied into the folder with the directory "source file for compiling/AB machine", or copied into the folder with the directory "source file for compiling/C machine/modules", so as to overwrite the previous source file for compiling.
The compiling configuration file corresponding to the AB machine is as follows:
the compiling configuration file corresponding to the machine C is as follows:
directory | Configuration data subdirectory | Containing configuration data files |
C machines/modules | I_PSR | RSSPIICfg.c |
It is understood that a virtual machine is a virtual machine that compiles a configured source file.
A compiling schematic diagram corresponding to the compiling method of the zone controller provided by the invention is shown in fig. 2, and a system architecture diagram corresponding to the compiling method of the zone controller is shown in fig. 3.
The system architecture shown in fig. 3 is a micro-service architecture, the micro-service architecture is built, the division of the components of the compiling task is completed based on the Spring Cloud + jpa compilation architecture, the task compiling process is split, and the program running logic in the task compiling is designed.
It can be understood that, for the AB machine, the configured source file is copied from the folder with the directory of "source file for compilation/AB machine/src" to the folder with the directory of "src \ work space \ ZC80_1\ src", it should be noted that the folder with the directory of "src \ work space \ ZC80_1\ src" is also the second folder, and before copying, the folder of "src \ work space \ ZC80_1\ src" is emptied.
Or for the C machine, copying files in a folder with a directory of 'source files for compiling/C machine/modules' into a folder with a directory of 'src \ works \ dtsApp \ modules', and emptying the folder with the directory of 'src \ works \ dtsApp \ modules' before copying.
It should be noted that the method for compiling a zone controller further includes: a server (a specific bit compilation server) is managed. The method comprises the functions of server information creation, server information engineering, server information modification, server information list query and the like, wherein software installed on a server comprises the following steps:
a) VxWorks cert 6.6.3.1, AB machine for compiling zone controller product.
b) VxWorks6.9, a C machine for compiling a zone controller product.
In some embodiments, the compiling method of the zone controller further comprises:
under the condition that the configured source file is compiled, storing a compiling result file corresponding to the configured source file into a second folder;
and before sending the compiling instruction to the virtual machine, sending a cleaning instruction to the virtual machine so as to control the virtual machine to clean the last compiling result file in the second folder.
In some embodiments, compiling the configuration data based on the source file for compilation and the compiled configuration data to obtain the configured source file includes:
and replacing files with the same name as the compiling configuration data in the first folder based on the compiling configuration data to obtain a configured source file.
In some embodiments, the compiling method of the zone controller further comprises:
and in the case that the target machine is detected in the second folder, determining that the configured source file is compiled completely. The target machine may be a target bin class file or a target out class file.
It can be understood that, for the AB machine, in the cmd mode, a "make all" command is sent to execute the compilation of the AB machine program of the zone controller application program, and after the compilation is completed, the compiled AB machine enters a "src \ workpace \ ZC80_1\ cert" directory to check the generated target machines ZC _ a.bin and ZC _ b.bin, and if the target machines ZC _ a.bin and ZC _ b.bin exist, the compilation is successful.
For the C machine, in a cmd mode, sending a 'make all' command to execute C machine program compilation of the regional controller application program, and after the compilation is finished, entering a 'src \ works space \ dtsApp \ SIMNTdibia _ SMP \ C \ Debug' directory to check the generated target machine C.out, if the compilation is successful, then sending the command to execute the C machine program compilation.
The file copying and compiling process is automatically controlled through the command line, and the whole compiling process is completed by using the command line operation according to different compiling steps of the AB machine and the C machine, so that manual intervention is avoided, and the labor cost is released.
In some embodiments, the compiling method of the zone controller further comprises:
and sending an emptying instruction to the virtual machine before sending the configured source file to the second folder so as to control the virtual machine to empty the file in the second folder.
It can be understood that, for the AB machine, before compiling, a command of inputting "make clean" is sent to perform engineering cleaning operation, after cleaning, whether ZC _ a.bin and ZC _ b.bin files under a directory (i.e., a second folder) of "src \ work space \ ZC80_1\ cert" do not exist is queried, and compiling continues if do not exist, so that the compiling independence of each time and each device is ensured.
For the machine C, sending a 'make clear' command to perform engineering cleaning operation before compiling, inquiring whether a C.out file under a 'src \ workspace \ dtsApp \ SIMNTdibia _ SMP \ C \ Debug' directory does not exist after cleaning is finished, and continuing compiling if the C.out file does not exist, so that the compiling independence of each time and each device is ensured.
In some embodiments, the compiling method of the zone controller further comprises:
bat instructions to enter cmd mode; the compiling instruction and the clearing instruction are both instructions in the cmd mode.
It will be appreciated that for an AB machine: entering a directory 'C: \ ZC compile initiator', and running a vxworks cert env.
For the machine C: entering a directory 'C: \ ZC compilation starting program', running vxworks6.9 env (2). bat enters a cmd mode.
In some embodiments, the compiling method of the zone controller further comprises:
and under the condition that the configured source file is compiled, packaging a compiling result file corresponding to the configured source file and sending the compiling result file to the third folder.
Furthermore, the compiling result file is stored in a directory of 'release software/xxxZCxxxVA.B.C/compiling file', the compiling result can be packaged from the directory, the name of the packaged software is 'xxxZCxVA.B.C', and then the packaged software is downloaded and output to the local for viewing the compiling result.
In the case where the last compilation result file exists in the third folder, the last compilation result file is deleted.
Further, for the AB machine, the target machines ZC _ a.bin and ZC _ b.bin are downloaded to a folder with a directory of 'release software/xxxZCxxVA.B.C/compilation file', and the corresponding original compilation result file in the environment is deleted.
For the C machine, entering a 'src \ works \ dtsApp \ SIMNTDiab _ SMP \ C \ Debug' directory, copying a C machine target machine executable program C.out to a folder with a directory of 'release software/xxxZC xxxVA.B.C/compilation file', and deleting an original compilation result file in the environment.
In addition, AB machine folders, C machine folders and DS6-80 folders in a directory of 'source files/configuration data in xxxZCxxV.B.C' downloaded by the SVN tool are also copied into 'release software/xxxZC xxxVA.B.C'.
In some embodiments, the compiling method of the zone controller provided by the invention designs a visual operation interface from the engineering data management dimension. Including the following examples:
1. an interface with a management function of a compiling server is provided, and the management function of the compiling server comprises the following steps: compiling a server management list function module, adding a server function module, and viewing the newly added server information function module after the user submits.
2. And setting an interface for filling the automatic compiling task information function of the area controller.
3. The following interfaces are provided: and after the automatic compiling task information of the area controller is filled in, checking the automatic compiling task of the area controller in a task list.
4. The following interfaces are provided: and (4) checking a task needing compiling, and clicking an automatic compiling button below the list.
5. The following interfaces are provided: a compiling process log appears below the list, and the compiling state is recorded.
6. The following interfaces are provided: for the task with successful compilation, the right-most attribute of the list is displayed as 'compilation completed', the task with failed compilation, and the right-most attribute of the list is displayed as 'compilation failed'.
7. The following interfaces are provided: and clicking a 'download file' button, popping up an information frame for confirming downloading on the interface, and automatically downloading a compilation result file compression package of a corresponding task after clicking 'confirmation', wherein the package is named as a folder name of a configuration data SVN address.
In summary, the compiling method of the zone controller provided by the invention can automatically obtain the compiling source file and the compiling configuration file, and then send the compiling source file and the compiling configuration file to the virtual machine for compiling, so that the automatic compiling level of the zone controller software product of the CBTC (Communication Based Train Control) is greatly improved, the compiling efficiency is improved, and the production cost is reduced.
In addition, the compiling method of the area controller provided by the invention also greatly improves the management capability of automatic compiling of the software product of the area controller of the CBTC, and provides a series of functions such as project management, data query, configuration data file export and the like for users in a page visualization mode.
The compiling method of the zone controller provided by the invention enables the zone controller software of the CBTC to automatically complete the file copying and compiling work, further improves the automation level and reduces the labor cost. And decomposing and packaging the compiling process of the regional controller product, and completing the compiling of the automatic compiling task by packaging a compiling module based on the micro-service architecture.
The following describes the compiling apparatus of the zone controller provided by the present invention, and the compiling apparatus of the zone controller described below and the compiling method of the zone controller described above may be referred to correspondingly.
As shown in fig. 4, the compiling apparatus 400 of the zone controller includes: a first obtaining module 410, a second obtaining module 420, and a compiling module 430.
The first obtaining module 410 is configured to obtain a code to be compiled from a server, decompress the code to be compiled to obtain a source file for compiling, and send the source file for compiling to the first folder.
The second obtaining module 420 is configured to obtain the compiling configuration file from the server, and send the compiling configuration file to the first folder, so as to obtain a configured source file based on the source file for compiling and the compiling configuration data.
The compiling module 430 is configured to send the configured source file to a second folder corresponding to the virtual machine, and send a compiling instruction to the virtual machine to control the virtual machine to compile the configured source file.
In some embodiments, the compiling apparatus 400 of the zone controller further includes: a compiling result storage module and a first cleaning module.
And the compiling result storage module is used for storing the compiling result file corresponding to the configured source file into the second folder under the condition that the configured source file is compiled.
The first cleaning module is used for sending a cleaning instruction to the virtual machine before sending the compiling instruction to the virtual machine so as to control the virtual machine to clean the last compiling result file in the second folder.
In some embodiments, the second obtaining module 420 is further configured to replace a file in the first folder with the same name as the compiled configuration data based on the compiled configuration data to obtain the configured source file.
In some embodiments, the compiling apparatus 400 of the zone controller further includes: and a compiling completion confirmation module.
And the compiling completion confirming module is used for determining that the configured source file is compiled completely under the condition that the target machine is detected in the second folder.
In some embodiments, the compiling apparatus 400 of the zone controller further includes: and a second cleaning module.
The second cleaning module is used for sending an emptying instruction to the virtual machine before sending the configured source file to the second folder so as to control the virtual machine to empty the file in the second folder.
In some embodiments, the compiling apparatus 400 of the zone controller further includes: and a mode building module.
The mode building module is used for running before sending a clearing instruction to the virtual machine; the compiling instruction and the clearing instruction are both instructions in the cmd mode.
In some embodiments, the compiling apparatus 400 of the zone controller further includes: the device comprises a packaging sending module and a third cleaning module.
And the packaging sending module is used for packaging and sending the compiling result file corresponding to the configured source file to the third folder under the condition that the configured source file is compiled completely.
The third cleaning module is used for deleting the last compiling result file under the condition that the last compiling result file exists in the third folder.
The following describes the electronic device and the storage medium provided by the present invention, and the electronic device and the storage medium described below and the compiling method of the zone controller described above may be referred to correspondingly.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)510, a communication Interface (Communications Interface)520, a memory (memory)530 and a communication bus 540, wherein the processor 510, the communication Interface 520 and the memory 530 communicate with each other via the communication bus 540. Processor 510 may call logic instructions in memory 530 to perform a regional controller compilation method comprising:
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform a method for compiling a zone controller provided by the above methods, the method comprising:
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a compilation method for performing the zone controller provided above, the method including:
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A compilation method for a zone controller, comprising:
the method comprises the steps of obtaining a code to be compiled from a server, decompressing the code to be compiled to obtain a source file for compiling, and sending the source file for compiling to a first folder;
acquiring a compiling configuration file from the server, and sending the compiling configuration file to the first folder so as to obtain a configured source file based on the source file for compiling and the compiling configuration data;
and sending the configured source file to a second folder corresponding to the virtual machine, and sending a compiling instruction to the virtual machine so as to control the virtual machine to compile the configured source file.
2. The compiling method of a zone controller according to claim 1, further comprising:
under the condition that the configured source file is compiled, storing a compiling result file corresponding to the configured source file into the second folder;
before sending the compiling instruction to the virtual machine, sending a cleaning instruction to the virtual machine so as to control the virtual machine to clean a last compiling result file in the second folder.
3. The method for compiling a zone controller according to claim 2, wherein the obtaining a configured source file based on the source file for compiling and the compilation configuration data includes:
and replacing the file with the same name as the compiling configuration data in the first folder based on the compiling configuration data to obtain the configured source file.
4. The compiling method of a zone controller according to claim 2, further comprising:
and determining that the configured source file is compiled in the case that the target machine is detected in the second folder.
5. The compiling method of a zone controller according to claim 1, further comprising:
before sending the configured source file to the second folder, sending an emptying instruction to the virtual machine to control the virtual machine to empty the file in the second folder.
6. The compiling method of a zone controller according to claim 5, further comprising:
bat instructions to enter a cmd mode; and the compiling instruction and the clearing instruction are both instructions in a cmd mode.
7. The compiling method of a zone controller according to claim 1, further comprising:
under the condition that the configured source file is compiled, packaging a compiling result file corresponding to the configured source file and sending the compiling result file to a third folder;
and deleting the last compiling result file when the last compiling result file exists in the third folder.
8. A compiling apparatus of a zone controller, characterized by comprising:
the device comprises a first acquisition module, a second acquisition module and a third module, wherein the first acquisition module is used for acquiring a code to be compiled from a server, decompressing the code to be compiled to obtain a source file for compiling, and sending the source file for compiling to a first folder;
a second obtaining module, configured to obtain a compilation configuration file from the server, and send the compilation configuration file to the first folder, so as to obtain a configured source file based on the source file for compilation and the compilation configuration data;
and the compiling module is used for sending the configured source file to a second folder corresponding to the virtual machine and sending a compiling instruction to the virtual machine so as to control the virtual machine to compile the configured source file.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method for compiling a zone controller according to any one of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the regional controller compilation method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110720846.2A CN113553053A (en) | 2021-06-28 | 2021-06-28 | Compiling method and device of regional controller, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110720846.2A CN113553053A (en) | 2021-06-28 | 2021-06-28 | Compiling method and device of regional controller, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113553053A true CN113553053A (en) | 2021-10-26 |
Family
ID=78131044
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110720846.2A Pending CN113553053A (en) | 2021-06-28 | 2021-06-28 | Compiling method and device of regional controller, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113553053A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104077217A (en) * | 2013-03-28 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Method and system for compiling and issuing code file |
CN104572237A (en) * | 2015-01-19 | 2015-04-29 | 上海动联信息技术股份有限公司 | Automatic quick generation system and method for UKey installation package |
CN110851135A (en) * | 2019-09-12 | 2020-02-28 | 中国平安财产保险股份有限公司 | Automatic application program building and uploading method and device, computer equipment and storage medium |
CN112817580A (en) * | 2021-01-27 | 2021-05-18 | 北京奇艺世纪科技有限公司 | Data processing method and device, electronic equipment and storage medium |
-
2021
- 2021-06-28 CN CN202110720846.2A patent/CN113553053A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104077217A (en) * | 2013-03-28 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Method and system for compiling and issuing code file |
CN104572237A (en) * | 2015-01-19 | 2015-04-29 | 上海动联信息技术股份有限公司 | Automatic quick generation system and method for UKey installation package |
CN110851135A (en) * | 2019-09-12 | 2020-02-28 | 中国平安财产保险股份有限公司 | Automatic application program building and uploading method and device, computer equipment and storage medium |
CN112817580A (en) * | 2021-01-27 | 2021-05-18 | 北京奇艺世纪科技有限公司 | Data processing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5745897A (en) | Method and system for compiling management information base specifications | |
US5377315A (en) | Regeneration of process control flow diagrams for programmable logic controllers | |
CN113434328B (en) | Logic configuration compiling error correction method and system for distributed control system | |
CN111399873A (en) | Model updating method and device | |
CN107864052A (en) | Method and its system based on lasting application deployment configuration automatic updating | |
CN104317618A (en) | Firmware partitioning method and device | |
CN108021415A (en) | Automatic packaging method, apparatus, computer equipment and storage medium | |
CN110083360A (en) | A kind of Compilation Method of application code, device, equipment and storage medium | |
CN110990051B (en) | Maintenance method, device, medium and equipment for software package dependency relationship | |
CN111158680A (en) | Page construction method, device, equipment and storage medium | |
JP4477531B2 (en) | Data import method and data import apparatus | |
CN106951593A (en) | A kind of method and apparatus for the configuration file for generating protection supervisory equipment | |
CN117539459B (en) | API interface configuration method, system and equipment | |
CN112527312B (en) | Test method and test device for embedded system | |
CN112035124A (en) | Application deployment method and device | |
CN111580853A (en) | Universal generation method for multi-channel software installation package | |
CN111221546A (en) | Map data and map updating method and device, terminal equipment and server | |
CN113553053A (en) | Compiling method and device of regional controller, electronic equipment and storage medium | |
CN116402325A (en) | Automatic business process processing method and device | |
CN115857959A (en) | Service module deployment method, device, equipment and storage medium of platform | |
CN112835572B (en) | Method and equipment for self-defining reference flow by means of project management tool | |
CN115061746A (en) | Jenkins-based vehicle-mounted network controller product development method and system | |
CN112256186A (en) | Item cutting and connecting method and system based on interfacing | |
CN105095513A (en) | Method and apparatus for cracking password of Oracle database account | |
CN113759859B (en) | Online configuration comparison method and system for distributed control system |
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 |