CN114564230B - One-key uploading realization method and device of hong Monte-go system, electronic equipment and medium - Google Patents

One-key uploading realization method and device of hong Monte-go system, electronic equipment and medium Download PDF

Info

Publication number
CN114564230B
CN114564230B CN202210165665.2A CN202210165665A CN114564230B CN 114564230 B CN114564230 B CN 114564230B CN 202210165665 A CN202210165665 A CN 202210165665A CN 114564230 B CN114564230 B CN 114564230B
Authority
CN
China
Prior art keywords
compiling
tool
information
source code
path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210165665.2A
Other languages
Chinese (zh)
Other versions
CN114564230A (en
Inventor
张武伟
田松召
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Layout Future Technology Development Co ltd
Original Assignee
Beijing Layout Future Technology Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Layout Future Technology Development Co ltd filed Critical Beijing Layout Future Technology Development Co ltd
Priority to CN202210165665.2A priority Critical patent/CN114564230B/en
Publication of CN114564230A publication Critical patent/CN114564230A/en
Application granted granted Critical
Publication of CN114564230B publication Critical patent/CN114564230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a method, a device, electronic equipment and a medium for realizing one-key uploading of a hong Monte-cover system. The method comprises the following steps: acquiring a storage path of the source codes of the hong Mongolian system; determining a code path matched with the project from the storage path, wherein the code path represents a path of a code to be downloaded and installed in the connected embedded equipment; writing the code path into a preset product parameter file; acquiring a file storage path of at least one preset configuration file, and simultaneously acquiring at least one preset configuration item information, wherein each configuration file corresponds to each configuration item information one by one; writing the configuration item information into a corresponding configuration file according to the file storage path; accessing a preset product parameter file, and acquiring a hong and Monte system source code according to a code path; accessing a configuration file, compiling the HongMonte system source codes according to configuration item information, and generating source code compiling information after compiling; and saving and uploading the source code compiling information. The method and the device have the effect of improving the convenience of downloading the hong Monte system by the user.

Description

One-key uploading realization method and device of hong Monte-go system, electronic equipment and medium
Technical Field
The present application relates to the field of computer software, and in particular, to a method, an apparatus, an electronic device, and a medium for implementing one-key upload of a hong and Monte-cover system.
Background
The hong Mongolian system is an intelligent terminal operating system developed in China, is a distributed operating system based on microkernel and oriented to full scenes, and can be used in different devices such as mobile phones, tablets, PCs and vehicle-mounted computers.
Hong Mongolian (Harmonyos) systems may be combined with hardware in addition to developing APP, cell phones, and computers. Downloading and installing the hong Monte System onto an embedded device, such as a development board; the development board controls other hardware to realize corresponding functions. When the honest and clean system is downloaded and installed on a development board, a compiling environment is firstly required to be configured, and various compilers, tool kits and other plug-in tools are manually downloaded and installed; secondly, compiling the Hong Meng Jitong source code in a compiling environment; and burning the source code of the HongMong system after compiling to a development board to finish the downloading and installation of the HongMong system.
However, when configuring a compiling environment, installation of various plug-in tools is complicated, and problems are likely to occur in the downloading and installation process.
Disclosure of Invention
In order to improve the convenience of installing the hong system for users, the application provides a one-key uploading implementation method, a device, electronic equipment and a medium of the hong system.
In a first aspect, the present application provides a method for implementing one-key upload of a hong Mongolian system, which adopts the following technical scheme:
a one-key uploading implementation method of a hong Monte-gate system comprises the following steps:
when an uploading instruction is detected, acquiring a storage path of the hong Mongolian system source code;
determining a code path from the storage path, wherein the code path characterizes a path of a code corresponding to an embedded device function;
writing the code path into a preset product parameter file;
acquiring a file storage path of at least one preset configuration file, and simultaneously acquiring at least one preset configuration item information, wherein each configuration file corresponds to each configuration item information one by one;
writing the configuration item information into a corresponding configuration file according to the file storage path;
accessing the preset product parameter file, and acquiring a hong and Monte system source code according to the code path;
accessing the configuration file, compiling the HongMonte system source code according to the configuration item information, and generating source code compiling information after compiling;
And storing and uploading the source code compiling information to the embedded equipment.
By adopting the technical scheme, after receiving the uploading instruction, the storage path of the HongMonte system source code is automatically acquired, the code path which is specifically required to be downloaded and installed by the current embedded equipment is determined, the code path is automatically written into the product parameter file, and the product parameter file is automatically accessed during compiling to acquire the code path so as to acquire the HongMonte system source code; meanwhile, preset configuration item information is written into the configuration file, and when the HongMong system source codes are compiled, the preset configuration item information is automatically accessed to compile the HongMong system source codes, and after compiling, the source code compiling information is automatically uploaded to the embedded equipment, so that the operation of manually building a compiling environment by a user is reduced, and the convenience of installing and uploading the HongMong system source codes by the user is improved.
In one possible implementation, the configuration files include script configuration files and tool configuration files, and the configuration item information includes compiling tool information and script environment information;
writing the configuration item information into a corresponding configuration file according to the file storage path, wherein the writing comprises the following steps:
Acquiring a tool storage path of at least one compiling tool;
setting parameters of a compiling tool, and generating tool parameter information, wherein the compiling tool information comprises the tool storage path and the tool parameter information;
writing the compiling tool information into a preset tool configuration file based on a file storage path of the preset tool configuration file;
acquiring a script storage path of a preset script environment, and generating script environment information;
writing the script environment information into a preset script configuration file based on a file storage path of the preset script configuration file.
By adopting the technical scheme, parameters of the compiling tool and the tool storage path of the compiling tool are automatically written into the tool configuration file, and simultaneously, the script storage path of the script environment is automatically written into the preset script configuration file, so that the configuration of the compiling tool and the script environment is automatically completed, and the manual configuration of a user is reduced.
In one possible implementation, the accessing the configuration file, compiling the buddha source code according to the configuration item information, includes:
accessing the tool configuration file to acquire tool parameter information;
According to the tool storage path, a compiling tool is started to compile the hong Mongolian system source code;
and accessing the script configuration file to acquire script environment information, wherein the script environment is used for providing a language environment of a script when the script program is run in the compiling process.
By adopting the technical scheme, the compiling tool is automatically accessed by the set path in the compiling process so as to compile the honest and Monte system source code, and the language environment of the script program is provided through the configured script environment information when the script program needs to be started in the compiling process, so that the compiling is automatically operated, and the convenience of uploading and installing the honest and Monte system source code by a user is improved.
In one possible implementation, the compilation tools include gn tools, gcc tools, ninja tools, and tool msys tools,
and starting a compiling tool according to the tool storage path to compile the hong Monte system source code, wherein the compiling tool comprises:
starting the gn tool according to the storage path of the gn tool, and generating a construction file based on the gn tool at the same time;
starting a ninja tool according to the storage path of the ninja tool, and constructing a compiling system based on the ninja tool;
Starting a tool_msys tool according to the storage path of the tool_msys tool, and simulating a UNIX environment in a windows environment based on the tool_msys tool;
and starting the gcc tool according to the storage path of the gcc tool, and compiling the hong system source code in the UNIX environment based on the gcc tool.
By adopting the technical scheme, the compiling system is built by using four compiling tools so as to complete the compiling of the honest system source code, and meanwhile, the ninja building system is adopted, so that the building speed in compiling is improved, and the time for waiting for downloading and uploading the honest system by a user is reduced.
In one possible implementation manner, the accessing the preset product parameter file, obtaining the hong system source code according to the code path, and before further includes:
acquiring a storage path of a pre-stored compiler, wherein the compiler is used for automatically accessing the configuration file and the product parameter file when being started;
assigning the storage path of the compiler to a preset compiling instruction;
and running the compiling instruction and automatically executing the compiling program.
By adopting the technical scheme, the storage path of the compiler carried by the hong Mongolian system is assigned to the compiling instruction, after the compiling environment is built, the compiling instruction is automatically operated, the compiling program is started, the source codes of the hong Mongolian system are obtained and compiled, the source code compiling work is automatically completed, and the compiling convenience of a user in uploading the hong Mongolian system is improved.
In one possible implementation manner, the storing and uploading the source code compiled information to the embedded device further includes:
the method comprises the steps of obtaining a storage path of a pre-stored programming program, wherein the programming program is used for automatically obtaining source code compiling information when being started and uploading the source code compiling information;
assigning a storage path of the programming program to a preset programming instruction;
identifying an access port connected with the serial port, and setting parameters of the connected serial port;
the burning instruction is operated, and a storage path of the burning program is automatically accessed;
and starting a burning program, automatically acquiring the source code compiling information, and uploading the source code compiling information to the embedded equipment through the connection serial port.
By adopting the technical scheme, the connection serial port of the embedded equipment and the electronic equipment is identified, and parameters of the connection serial port are automatically set; after compiling is completed, the programming instruction is automatically operated, the programming program is further started, compiled source code compiling information is automatically uploaded to the embedded equipment connected with the electronic equipment through the connection serial port, the function of automatically setting the connection serial port parameters when a user uploads the source code compiling information is reduced, and convenience is improved.
In one possible implementation manner, the storing and uploading the source code compiled information to the embedded device further includes:
obtaining an uploading result;
judging whether the uploading is successful or not based on the uploading result;
if yes, outputting a first prompt message of successful uploading;
if not, generating a second prompt message of failed uploading;
and feeding the first prompt information or the second prompt information back to a display device for display.
By adopting the technical scheme, after uploading, the uploading result is fed back to the display equipment connected with the electronic equipment, so that a user is prompted that the downloading and installing result of the honest system is successful or failed.
In a second aspect, the present application provides a device for implementing one-key upload of a hong Monte-go system, which adopts the following technical scheme:
a key uploading implementation device of Hongmon system comprises:
the source code acquisition module is used for acquiring a storage path of the hong system source code after the uploading instruction is detected;
the source code acquisition module is further used for determining a code path from the storage path, wherein the code path represents a path of a code corresponding to the function of the embedded equipment;
the environment construction module is used for writing the code path into a preset product parameter file;
The environment setting up module is further used for acquiring a file storage path of at least one preset configuration file and acquiring preset configuration item information at the same time, wherein each configuration file corresponds to each configuration item information one by one;
the environment setting-up module is also used for writing the configuration item information into the corresponding configuration file according to the file storage path;
the source code compiling module is used for accessing the preset product parameter file and acquiring the hong Mongolian system source code according to the code path;
the source code compiling module is also used for accessing the configuration file, compiling the hong system source code according to the configuration item information, and generating source code compiling information after compiling;
and the uploading module is used for storing and uploading the source code compiling information to the embedded equipment.
By adopting the technical scheme, after the embedded equipment of the user is connected with the electronic equipment, firstly, a source code acquisition module is utilized to acquire prestored hong system source codes, and then an environment construction module is utilized to construct a compiling environment, wherein when the compiling environment is constructed, the environment construction module automatically writes a code path under a product parameter file, simultaneously automatically writes a required configuration item into a corresponding preset configuration file, then, the source code compiling module automatically acquires the hong system source codes according to the product parameter file, automatically compiles source codes of the hong system according to information of the configuration item which is called by the preset configuration file, and stores compiled source code compiling information under the preset compiling path; after compiling is completed, the uploading module is utilized to automatically call the compiled executable program according to a preset compiling path and upload the executable program into the embedded equipment; therefore, the steps of complicated tool downloading during building the compiling environment when a user spontaneously downloads and installs the compiling environment are reduced in the three processes of environment building, compiling and uploading, and the convenience of downloading and installing the hong Mongolian system by the user is improved.
One possible implementation manner of the embodiment of the present application, the configuration file includes a script configuration file and a tool configuration file, and the configuration item information includes compiling tool information and script environment information;
the environment construction module is specifically configured to, when writing the configuration item information into a corresponding configuration file according to the file storage path:
acquiring a tool storage path of at least one compiling tool;
setting parameters of a compiling tool, and generating tool parameter information, wherein the compiling tool information comprises the tool storage path and the tool parameter information;
writing the compiling tool information into a preset tool configuration file based on a file storage path of the preset tool configuration file;
acquiring a script storage path of a preset script environment, and generating script environment information;
writing the script environment information into a preset script configuration file based on a file storage path of the preset script configuration file.
In one possible implementation manner of this embodiment of the present application, when the source code compiling module accesses the configuration file and compiles the hong system source code according to the configuration item information, the source code compiling module is specifically configured to:
Accessing the tool configuration file to acquire tool parameter information;
according to the tool storage path, a compiling tool is started to compile the hong Mongolian system source code;
and accessing the script configuration file to acquire script environment information, wherein the script environment is used for providing a language environment of a script when the script program is run in the compiling process.
One possible implementation of the embodiment of the present application, the compiling tools include gn tool, gcc tool, ninja tool and tool_msys tool,
the source code compiling module is specifically configured to, when a compiling tool is started according to the tool storage path to compile the hong system source code:
starting the gn tool according to the storage path of the gn tool, and generating a construction file based on the gn tool at the same time;
starting a ninja tool according to the storage path of the ninja tool, and constructing a compiling system based on the ninja tool;
starting a tool_msys tool according to the storage path of the tool_msys tool, and simulating a UNIX environment in a windows environment based on the tool_msys tool;
starting gcc tool according to the storing path of gcc tool, and compiling the hong system source code in the UNIX environment based on gcc tool
In one possible implementation manner of the embodiment of the present application, the apparatus further includes:
the compiler acquisition module is used for acquiring a pre-stored storage path of a compiler, and the compiler is used for automatically accessing the configuration file and the product parameter file when being started;
assigning the storage path of the compiler to a compiling instruction;
and the compiler running module is used for running the compiling instruction and automatically executing the compiler.
In one possible implementation manner of the embodiment of the present application, the apparatus further includes:
the burning program acquisition module is used for acquiring a storage path of a prestored burning program, and the burning program is used for automatically acquiring the source code compiling information when being started and uploading the source code compiling information;
the recording program acquisition module is also used for assigning a storage path of the recording program to a preset recording instruction;
the serial port setting module is used for identifying an access port connected with the serial port and setting parameters connected with the serial port;
the programming program running module is used for running programming instructions and automatically accessing the storage path of the programming program;
the programming program operation module is also used for starting the programming program, automatically acquiring the source code compiling information and uploading the source code compiling information to the embedded equipment through the connecting serial port.
In one possible implementation manner of the embodiment of the application, the device further includes a result feedback module;
the result feedback module is used for acquiring an uploading result;
judging whether the uploading is successful or not based on the uploading result;
if yes, outputting a first prompt message of successful uploading;
if not, generating a second prompt message of failed uploading;
and feeding the first prompt information or the second prompt information back to a display device for display. In a third aspect, the present application provides an electronic device, which adopts the following technical scheme:
an electronic device, the electronic device comprising:
at least one processor;
a memory;
at least one application program, wherein the at least one application program is stored in the memory and configured to be executed by the at least one processor, the at least one application program configured to: and executing the method for realizing the one-key uploading of the hong Monte system.
In a fourth aspect, the present application provides a computer readable storage medium, which adopts the following technical scheme:
a computer-readable storage medium, comprising: a computer program capable of being loaded by a processor and executing the one-touch upload implementation method of the above-mentioned hong system is stored.
In summary, the present application includes the following beneficial technical effects:
after receiving the uploading instruction, automatically writing a preset configuration item into a configuration file, and compiling source codes of the hong Menu system after building a compiling environment; the configuration file is automatically accessed during compiling to obtain the configuration items pre-stored in the configuration file, compiling is performed based on the configuration items, and the compiled executable program is stored through a preset compiling path and automatically uploaded to connected equipment, so that the operation that a user manually builds a compiling environment is reduced, and the convenience of downloading and installing the source codes of the honest and Mongolian system is improved.
Accessing an attribute configuration file during compiling, acquiring a path of the component source code to be compiled, and compiling the source code to be compiled by utilizing a compiling tool; the script environment is preconfigured to provide a corresponding environment when script commands are used at the time of compiling. When the compiling environment is built, the three configuration items are respectively written into the corresponding configuration files, and the configuration items can be automatically called during compiling, so that the probability of compiling failure caused by writing errors when a user is unfamiliar with operation is reduced, and the accuracy of downloading and installing the hong Monte system is improved.
Drawings
FIG. 1 is a flow chart of a method for implementing one-key upload of the hong Mongolian system according to an embodiment of the present application;
FIG. 2 is a block diagram of a device for implementing one-touch upload of the hong Monte System according to an embodiment of the present application;
fig. 3 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present application is described in further detail below in conjunction with figures 1-3.
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides a method for realizing one-key uploading of a hong Monte-cover system, referring to fig. 1, the method is executed by an electronic device and comprises the following steps:
step S101, after an uploading instruction is detected, a storage path of the hong Mongolian system source code is obtained.
Specifically, the user connects the embedded device of the hong Monte system to the electronic device through the com port, wherein the electronic device can be a computer, and the computer is taken as an example for illustration; the embedded device may be a development board of various models, such as a development board of model Hi 3861.
When the upload hong Monte system is installed, a user enters a software download platform, clicks an upload button in the software download platform, and the electronic equipment detects an upload instruction.
The system functions of the hong Monte system are expanded step by step according to the system-subsystem-component; the component is a functional unit with the smallest system, multiplexing, configuration and clipping, and can be independently developed in parallel, independently compiled and independently tested; the subsystem includes components.
The HongMong system source code downloads the release edition of OpenHarmony from the DevEco Marketplace website in advance, stores the release edition in a corresponding folder, downloads and installs all required components and related compiling tool chains locally through a manager command line tool, and automatically stores the downloaded components in an ohos_bundles folder under an engineering catalog. When a user downloads and installs the hong Mongolian system, components can be added or deleted on the basis of the OpenHarmony release according to the functional requirements of the equipment.
The source code to be compiled, namely the hong Mongolian system source code, is stored under the directory corresponding to the ohos_bundles folder in a folder mode; for example: the kernel subsystem is stored under a kernel directory, the compiler and the tool chain subsystem are stored under a pre-build directory, the compiling script file is stored under a build.py directory, and the basic software service subsystem set and the hardware service subsystem set are stored under a base directory.
When the download platform provided by the embodiment of the application carries out download compiling and uploading of the hong Mongolian system, downloading the hong Mongolian system source code from the website in advance and storing the hong Mongolian system source code into a corresponding local directory; and the corresponding system source codes are acquired and compiled by the platform according to the storage catalogue of the system source codes during compiling.
Therefore, after the upload instruction is detected, the storage path of the hong system source code is acquired in advance so as to compile the hong system source code.
And step S102, determining a code path from the storage path, wherein the code path characterizes the path of the code corresponding to the embedded equipment function.
Step S103, writing the code path into a preset product parameter file.
Specifically, the components in the hong system are reusable, configurable and tailorable functional units, can be independently developed in parallel and independently compiled in the hong system, and support each device to be deployed according to the needs when the hong system is actually developed and applied, namely, a user can select the needed components for downloading according to the form and the needs of hardware, and can also select the configuration of the function set in the components for downloading and installing according to the resource condition and the function needs of the hardware.
When the HongMonte system source codes are downloaded and installed on the embedded equipment, different components can be selected for downloading and uploading according to the functional requirements of the equipment, and the HongMonte system source codes in the storage path are stored. And determining a partial code path corresponding to the functional requirement of the device, compiling partial codes when the partial codes are subsequently compiled and uploaded, and uploading the partial codes to the embedded device.
Further, when building the compiling environment for the hong-Mongolian system source code, each configuration needs to be set, for example, each configuration such as a component source code path and a compiling tool path, and each configuration needs to be written into a specific corresponding file during setting, and meanwhile, each configuration needs to be defined according to rules, for example: the component source code path naming rule is: { field }/{ subsystem }/{ component }, and the attribute of the component should be defined in the json file of the corresponding subsystem, otherwise verification fails, but before the verification, the user mostly manually performs the setting of definition and each configuration, each configuration is tedious, the user may fail the whole uploading result due to misoperation, and the error rate is high.
The product parameter file is a config. Json file, is a pre-stored file, and is automatically configured according to a setting rule by automatically setting the naming of a code path, so that when the HongMono system source code is required to be acquired for compiling in the subsequent compiling process, the HongMono system source code to be compiled can be automatically acquired by accessing the product parameter file.
Step S104, acquiring a file storage path of at least one preset configuration file, and simultaneously acquiring at least one preset configuration item information, wherein each configuration file corresponds to each configuration item information one by one.
Step 105, writing the configuration item information into the corresponding configuration file according to the file storage path.
Specifically, when the compiling environment is built, besides the path of the hong Mongolian system source code needs to be set, other configurations needed by compiling also need to be set according to rules, such as: the compiling tool needs to be configured according to preset rules.
The configuration files are pre-stored files, and the corresponding configuration item information is required to be written into the corresponding configuration files; the configuration item information is also preset configuration, and is described in the example, the configuration item information includes compiling tool information, the configuration file includes a tool configuration file (packages. Json file), the compiling tool is downloaded to the electronic device in advance, and a storage path of the compiling tool is written into the tool configuration file (packages. Json file).
And S106, accessing a preset product parameter file, and acquiring the hong Mongolian system source code according to the code path.
And S107, accessing a configuration file, compiling the HongMonte system source codes according to the configuration item information, and generating source code compiling information after compiling.
Specifically, after the compiling environment is built, the electronic equipment starts compiling the HongMong system source codes and generates source code compiling information; the HongMong system source code is a program code of a high-level language which cannot be directly identified by a machine; therefore, before uploading, the honest system source code needs to be compiled first to be an executable program which can be identified by a machine. And the HongMong system source code is obtained by accessing the product parameter file, and the compiling of the HongMong system source code depends on and configures item information.
When compiling system source codes, (1) calling a compiling tool, and building a compiling and constructing system; (2) Accessing a product parameter file to obtain a hong Mongolian system source code; (3) The compiling tool is called again to compile and construct, and the HongMong system source codes are compiled; (4) And packaging the compiled source code compiling information into a file system mirror image, completing compiling, and storing the file system mirror image into a preset folder.
And step S108, the source code compiling information is stored and uploaded to the embedded equipment.
Specifically, the compiled source code compiling information is an executable program, and the electronic equipment stores the executable program under a preset compiling path during compiling; the electronic equipment acquires an executable program through a preset compiling path, and uploads the executable program to an embedded device connected with the electronic equipment.
The embodiment of the application provides a one-key uploading implementation method of a hong-Monte system, which comprises the steps of firstly building a compiling environment after an embedded device of a user is connected with electronic equipment, automatically writing required configuration item information into a corresponding preset configuration file when the environment is built, automatically writing a hong-Monte system source code path into a corresponding product parameter file according to a preset rule, and compiling the hong-Monte system source code; acquiring the HongMonte system source codes automatically according to the product parameter files in the compiling process, retrieving the information of the configuration items automatically according to the preset configuration files to compile the HongMonte system source codes, and storing the compiled executable program, namely source code compiling information, under a preset compiling path; after compiling is completed, the electronic equipment automatically invokes the compiled executable program according to a preset compiling path and uploads the executable program to the embedded equipment; the method has the advantages that the writing file path and the compiling path of the configuration items are not needed to be selected by a user in the three processes of environment construction, compiling and uploading, the configuration items are automatically written into the corresponding configuration files when the compiling environment is constructed, the step that complicated tool downloading is needed when the compiling environment is constructed when the user spontaneously downloads and installs is reduced, the convenience of downloading and installing the honest system by the user is improved, and meanwhile the probability of downloading failure caused by misoperation is reduced when the user downloads and installs.
In one possible implementation manner of the embodiment of the present application, the configuration file includes a script configuration file and a tool configuration file, and the configuration item information includes compiling tool information and script environment information;
in step S105, the configuration item information is written into the corresponding configuration file according to the file storage path, including step S51 (not shown in the figure), step S52 (not shown in the figure), step S53 (not shown in the figure), step S54 (not shown in the figure), and step S55 (not shown in the figure):
step S51 (not shown), acquiring a tool storage path of at least one compiling tool;
step S52 (not shown), setting parameters of the compiling tool, and generating tool parameter information including a tool storage path and tool parameter information;
step S53 (not shown), writing the compiling tool information into the preset tool configuration file based on the file storage path of the preset tool configuration file;
step S54 (not shown in the figure), acquiring a script storage path of a preset script environment, and generating script environment information;
step S55 (not shown in the figure) writes the script environment information into the preset script configuration file based on the file storing path of the preset script configuration file.
Specifically, the script environment is used for executing corresponding high-level language scripts in the compiling process; for example, in the compiling process, the corresponding configuration needs to be called, the compiling command is executed, and when the compiling command is called and executed, the script needs to be used for calling and executing, so that the environment corresponding to the scripting language needs to be configured in advance; when configuring a scripting environment, a scripting storage path of the scripting environment needs to be written into a pyvenv.cfg file, which is a scripting configuration file pre-stored in the electronic device.
The compiling tool is used for generating a compiling and constructing system, compiling system source codes in the compiling and constructing system, and writing a storage path of the compiling tool into a packages.
Therefore, when the compiling environment is built, compiling tool information and script environment information are automatically written into the corresponding configuration files, the operations of writing, setting and the like of the configuration files are manually performed by a user in the process of building the environment, and the success rate and the compiling degree of the environment building are improved.
In a possible implementation manner of the embodiment of the present application, in step S107, a configuration file is accessed, and a hong system source code is compiled according to configuration item information, including:
Step S71 (not shown), accessing a tool configuration file to acquire tool parameter information;
step S72 (not shown), starting a compiling tool according to the tool storage path to compile the hong Mongolian system source code;
step S73 (not shown in the figure), accessing the script configuration file, obtaining script environment information, the script environment being used to provide a language environment of the script when the script program is run in the compiling process.
Specifically, in the compiling process, the set path access tool configuration file and the script configuration file automatically start the compiling tool to compile the hong system source code, and when the script program needs to be started in the compiling operation process, the script configuration file is automatically accessed, the corresponding script language environment is started, and the running of the compiling program is performed under the corresponding language environment.
Each configuration is automatically accessed in the compiling process, and the HongMonte system source codes are compiled, so that the convenience of uploading and installing the HongMonte system source codes by a user is improved.
One possible implementation of the embodiment of the present application, the compiling tools include gn tool, gcc tool, ninja tool and tool msys tool,
in step S71 (not shown), a compiling tool is started according to the tool storage path to compile the hong system source code, which includes:
Starting the gn tool according to the storage path of the gn tool, and generating a construction file based on the gn tool;
starting the ninja tool according to the storage path of the ninja tool, and constructing a compiling system based on the ninja tool;
starting the tool_msys tool according to the storage path of the tool_msys tool, and simulating a UNIX environment in a windows environment based on the tool_msys tool;
the gcc tool is started according to its storage path, while the hong system source code is compiled in a UNIX environment based on the gcc tool.
Specifically, ninja is a building system for determining how to complete a program of a final target building using commands, and, at compile time, the ninja invokes a compilation tool chain (GCC) to compile the code according to a compilation rule.
GN (Generate ninja) is a meta-build system for generating a ninja build file for compiling components using GN tools.
GCC (GNU Compiler Collection) is a programming language compiler developed by GNU; compiling operation can be performed by means of gcc tools under the construction system of ninja; at compile time, the gcc tool is used to pre-process and compile source files.
tool_msys is a small-sized GNU (GNU's Not Unix) environment and is used for simulating a UNIX environment to provide a compiling environment, and source code compiling is carried out under the UNIX environment; the development environment of the hong Mongolian source code can be a Windows environment or a Linux environment, but the compiling environment of hong Meng Yuanma is a UNIX environment; that is, the source code of the hong system needs to be compiled in a UNIX environment and cannot be compiled in a Windows environment, so that the source code of the hong system needs to be compiled in a Windows environment to simulate a tool of the UNIX environment, namely a tool_msys tool.
When the Ninja tool is used for compiling, compiling tasks are organized in parallel, so that the speed of compiling and constructing can be improved, and the waiting time of a user is shortened.
In a possible implementation manner of the embodiment of the present application, in step S106, a preset product parameter file is accessed, and a hong system source code is obtained according to a code path, which further includes:
step S061 (not shown in the figure), obtaining a pre-stored storage path of a compiler, wherein the compiler is used for automatically accessing a configuration file and a product parameter file when being started;
step 062 (not shown in the figure), assigning a storage path of the compiler to a preset compiling instruction;
step S063 (not shown), executing the compiling instruction, and automatically executing the compiling program.
Specifically, the compiler is an official compiler of the simmons system, the official compiler is stored in the electronic device in advance, the electronic device assigns a storage path of the compiler to the compiling instruction in a parameter form to obtain a complete compiling instruction in the compiling process, and when the compiling instruction is operated, the compiler can be found according to the storage path of the compiler in the compiling instruction, so that the compiler is automatically started.
After the compiling program is started, the product parameter file and the configuration file are automatically accessed, the hong Mongolian system source code is obtained and compiled, meanwhile, the compiled executable program is automatically stored according to a preset storage path, the operation steps of a user are reduced, and the convenience of the user is improved.
In one possible implementation manner of the embodiment of the present application, in step S108, the storing and uploading the source code compiled information to the embedded device further includes:
step S081 (not shown in the figure), the storage path of a pre-stored programming is obtained, the programming is used for automatically obtaining source code compiling information when starting, and the source code compiling information is uploaded;
step S082 (not shown), assigning a storage path of the programming program to a preset programming instruction;
step S083 (not shown in the figure), identifying an access port connected with the serial port, and setting parameters of the connected serial port;
step S084 (not shown), running a burning command, and automatically accessing a storage path of a burning program;
step S085 (not shown), starting a burning program, automatically acquiring source code compiling information, and uploading the source code compiling information to the embedded device through the connection serial port.
Specifically, the connection serial port is a port for serial communication between the electronic equipment and the outside, namely a COM port, and the embedded equipment is connected with the electronic equipment through the connection serial port; the electronic equipment identifies an access port connected with the serial port, and simultaneously sets parameters such as the baud rate, the character string command and the like of the connected serial port.
The programming program is a programming tool of the authorities of the hong Mongolian system, is downloaded in advance and stored in the electronic equipment, acquires a storage path of the programming program, and formats and writes the storage path of the programming program into the programming instruction in a parameter mode.
The burning instruction is started, the burning program can be automatically searched and started according to the storage path of the burning program, further compiled source code compiling information is automatically called according to a preset compiling path, the source code compiling information is automatically uploaded to the embedded equipment, and the using convenience of a user is improved to a certain extent.
In one possible implementation manner of the embodiment of the present application, in step S108, the source code compiled information is saved and uploaded to the embedded device, and then further includes:
step S091 (not shown), obtaining an uploading result;
step S092 (not shown), judging whether the uploading is successful based on the uploading result;
step S093 (not shown), if yes, outputting a first prompt message of successful uploading;
if not, generating a second prompt message of failed uploading;
and feeding back the first prompt information or the second prompt information to the display equipment for display.
Specifically, the uploading result is the result of uploading the hong Monte system to the development board, including uploading success and uploading failure; the electronic equipment is connected with the display equipment, and prompt information generated by the electronic equipment is fed back to the display equipment and displayed on the display equipment. When the uploading is successful, displaying prompt information of the successful uploading on the display equipment, and prompting the user to finish the uploading operation; when the uploading fails, displaying prompt information of the uploading failure on a display device, prompting a user of the uploading failure, and checking; the convenience of downloading and uploading the hong Monte system by the user is improved.
The above embodiment describes a method for implementing one-key upload of a hong-and-Monte system from the viewpoint of a method flow, and the following embodiment describes an apparatus for implementing one-key upload of a hong-and Monte system from the viewpoint of a virtual module or a virtual unit, and referring to FIG. 2, the following embodiment is described in detail.
The one-touch upload implementing apparatus 100 of the hong Monte-go system comprises:
the source code obtaining module 1001 is configured to obtain a storage path of the hong Mongolian system source code after detecting the upload instruction;
the source code obtaining module 1001 is further configured to determine a code path from the storage path, where the code path characterizes a path of a code corresponding to the embedded device function;
the environment setting up module 1002 is configured to write the code path into a preset product parameter file;
the environment setting up module 1002 is further configured to obtain a file storage path of at least one preset configuration file, and obtain preset at least one configuration item information at the same time, where each configuration file corresponds to each configuration item information one by one;
the environment setting up module 1002 is further configured to write the configuration item information into a corresponding configuration file according to the file storage path;
the source code compiling module 1003 is configured to access a preset product parameter file, and obtain the hong Mongolian system source code according to a code path;
The source code compiling module 1003 is further configured to access a configuration file, compile the HongMonte system source code according to the configuration item information, and generate source code compiling information after compiling;
and the uploading module 1004 is configured to store and upload the source code compiling information to the embedded device.
By adopting the technical scheme, after the embedded equipment of the user is connected with the electronic equipment, firstly, a source code acquisition module 1001 is utilized to acquire prestored hong system source codes, and then an environment construction module 1002 is utilized to construct a compiling environment, wherein when the compiling environment is constructed, the environment construction module 1002 automatically writes a code path under a product parameter file, simultaneously automatically writes a required configuration item into a corresponding preset configuration file, then a source code compiling module 1003 automatically acquires the hong system source codes according to the product parameter file, automatically compiles source codes of the hong system according to information of the configuration item which is called by the preset configuration file, and stores compiled source code compiling information under the preset compiling path; after compiling is completed, the uploading module 1004 is utilized to automatically call the compiled executable program according to a preset compiling path and upload the executable program into the embedded equipment; therefore, the steps of complicated tool downloading during building the compiling environment when a user spontaneously downloads and installs the compiling environment are reduced in the three processes of environment building, compiling and uploading, and the convenience of downloading and installing the hong Mongolian system by the user is improved.
In one possible implementation manner of the embodiment of the present application, the configuration file includes a script configuration file and a tool configuration file, and the configuration item information includes compiling tool information and script environment information;
when the environment construction module 1002 writes the configuration item information into the corresponding configuration file according to the file storage path, the environment construction module is specifically configured to:
acquiring a tool storage path of at least one compiling tool;
setting parameters of a compiling tool, and generating tool parameter information, wherein the compiling tool information comprises a tool storage path and tool parameter information;
writing the compiling tool information into a preset tool configuration file based on a file storage path of the preset tool configuration file;
acquiring a script storage path of a preset script environment, and generating script environment information;
writing the script environment information into the preset script configuration file based on the file storage path of the preset script configuration file.
In one possible implementation manner of this embodiment of the present application, when the source code compiling module 1003 accesses a configuration file and compiles the hong system source code according to configuration item information, the source code compiling module is specifically configured to:
accessing a tool configuration file to acquire tool parameter information;
According to the tool storage path, a compiling tool is started to compile the hong Mongolian system source code;
and accessing the script configuration file, and acquiring script environment information, wherein the script environment is used for providing a language environment of a script when the script program is run in the compiling process.
One possible implementation of the embodiment of the present application, the compiling tools include gn tool, gcc tool, ninja tool and tool msys tool,
the source code compiling module 1003 is specifically configured to, when a compiling tool is started according to a tool storage path to compile the hong system source code:
starting the gn tool according to the storage path of the gn tool, and generating a construction file based on the gn tool;
starting the ninja tool according to the storage path of the ninja tool, and constructing a compiling system based on the ninja tool;
starting the tool_msys tool according to the storage path of the tool_msys tool, and simulating a UNIX environment in a windows environment based on the tool_msys tool;
according to the storage path of the gcc tool, the gcc tool is started, and the HongMong system source codes are compiled in a UNIX environment based on the gcc tool
In one possible implementation manner of the embodiment of the present application, the apparatus further includes:
the compiler acquisition module is used for acquiring a pre-stored storage path of a compiler, and the compiler is used for automatically accessing the configuration file and the product parameter file when being started;
Assigning a storage path of the compiler to the compiling instruction;
and the compiler running module is used for running the compiling instruction and automatically executing the compiler.
In one possible implementation manner of the embodiment of the present application, the apparatus further includes:
the burning program acquisition module is used for acquiring a storage path of a prestored burning program, and the burning program is used for automatically acquiring source code compiling information when being started and uploading the source code compiling information;
the recording program acquisition module is also used for assigning a storage path of the recording program to a preset recording instruction;
the serial port setting module is used for identifying an access port connected with the serial port and setting parameters connected with the serial port;
the programming program running module is used for running programming instructions and automatically accessing the storage path of the programming program;
the programming program operation module is also used for starting the programming program, automatically acquiring the source code compiling information and uploading the source code compiling information to the embedded equipment through the connecting serial port.
In one possible implementation manner of the embodiment of the application, the device further includes a result feedback module;
the result feedback module is used for acquiring an uploading result;
judging whether the uploading is successful or not based on the uploading result;
if yes, outputting a first prompt message of successful uploading;
If not, generating a second prompt message of failed uploading;
and feeding back the first prompt information or the second prompt information to the display equipment for display. It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
The embodiment of the application also describes an electronic device from the perspective of the entity apparatus, as shown in fig. 3, the electronic device 1100 shown in fig. 3 includes: a processor 1101 and a memory 1103. The processor 1101 is coupled to a memory 1103, such as via a bus 1102. Optionally, the electronic device 1100 may also include a transceiver 1104. It should be noted that, in practical applications, the transceiver 1104 is not limited to one, and the structure of the electronic device 1100 is not limited to the embodiments of the present application.
The processor 1101 may be a CPU (Central Processing Unit ), general purpose processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. The processor 1101 may also be a combination that performs computing functions, such as a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 1102 may include a path that communicates information between the components. Bus 1102 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect Standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. Bus 1102 may be divided into address bus, data bus, control bus, and the like. For ease of illustration, only one thick line is shown in fig. 3, but not only one bus or one type of bus.
The Memory 1103 may be, but is not limited to, a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory ), a CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 1103 is used for storing application program codes for executing the present application and is controlled to be executed by the processor 1101. The processor 1101 is configured to execute application code stored in the memory 1103 to implement what is shown in the foregoing method embodiment.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present application and it should be noted that, for a person skilled in the art, several improvements and modifications can be made without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (8)

1. A one-key uploading implementation method of a hong Monte-gate system is characterized by comprising the following steps:
when an uploading instruction is detected, a compiling environment is built, and a storage path of the hong Mongolian system source code is automatically acquired;
determining a code path from the storage path, wherein the code path characterizes a path of a code corresponding to an embedded device function;
automatically writing the code path into a preset product parameter file config.
Acquiring a file storage path of at least one preset configuration file, and simultaneously acquiring at least one preset configuration item information, wherein each configuration file corresponds to each configuration item information one by one, and the configuration items comprise various configurations required for building a compiling environment;
writing the configuration item information into a corresponding configuration file according to the file storage path;
when compiling, automatically accessing the preset product parameter file, and acquiring the HongMonte system source code according to the code path;
automatically accessing the configuration file, compiling the HongMonte system source code according to the configuration item information, and generating source code compiling information after compiling;
after compiling, the source code compiling information is stored and automatically uploaded to the embedded equipment;
The automatic access to the preset product parameter file, the obtaining of the hong Mongolian system source code according to the code path, the automatic access further comprises: acquiring a storage path of a pre-stored compiler, wherein the compiler is used for automatically accessing the configuration file and the product parameter file when being started; assigning the storage path of the compiler to a preset compiling instruction; running the compiling instruction and automatically executing the compiling program;
the method for storing and automatically uploading the source code compiling information to the embedded equipment comprises the following steps: the method comprises the steps of obtaining a storage path of a pre-stored programming program, wherein the programming program is used for automatically obtaining source code compiling information when being started and uploading the source code compiling information; assigning a storage path of the programming program to a preset programming instruction; identifying an access port connected with the serial port, and setting parameters of the connected serial port; running a burning instruction and automatically accessing a storage path of a burning program; starting a burning program, automatically acquiring the source code compiling information, and uploading the source code compiling information to the embedded equipment through the connection serial port;
the method has the advantages that the writing file path and the compiling path of the configuration items are not required to be selected by a user in the three processes of environment construction, compiling and uploading, the configuration items are automatically written into the corresponding configuration files when the compiling environment is constructed, and the step that complicated tool downloading is required to be carried out when the compiling environment is constructed when the user spontaneously downloads and installs the configuration items is reduced.
2. The method for implementing one-touch upload of a hong and Monte system according to claim 1, wherein the configuration files comprise script configuration files and tool configuration files, and the configuration item information comprises compiling tool information and script environment information;
writing the configuration item information into a corresponding configuration file according to the file storage path, wherein the writing comprises the following steps:
acquiring a tool storage path of at least one compiling tool;
setting parameters of a compiling tool, and generating tool parameter information, wherein the compiling tool information comprises the tool storage path and the tool parameter information;
writing the compiling tool information into a preset tool configuration file based on a file storage path of the preset tool configuration file;
acquiring a script storage path of a preset script environment, and generating script environment information;
writing the script environment information into a preset script configuration file based on a file storage path of the preset script configuration file.
3. The method for implementing one-key upload of a hong system according to claim 2, wherein said accessing said configuration file and compiling said hong system source code according to said configuration item information comprises:
Accessing the tool configuration file to acquire tool parameter information;
according to the tool storage path, a compiling tool is started to compile the hong Mongolian system source code;
and accessing the script configuration file to acquire script environment information, wherein the script environment is used for providing a language environment of a script when the script program is run in the compiling process.
4. The method for implementing one-touch upload of a hong Monte-go system of claim 3 wherein said compilation tool comprises gn tool, gcc tool, ninja tool and tool_msys tool,
and starting a compiling tool according to the tool storage path to compile the hong Monte system source code, wherein the compiling tool comprises:
starting the gn tool according to the storage path of the gn tool, and generating a construction file based on the gn tool at the same time;
starting a ninja tool according to the storage path of the ninja tool, and constructing a compiling system based on the ninja tool;
starting a tool_msys tool according to the storage path of the tool_msys tool, and simulating a UNIX environment in a windows environment based on the tool_msys tool;
and starting the gcc tool according to the storage path of the gcc tool, and compiling the hong system source code in the UNIX environment based on the gcc tool.
5. The method of claim 1, wherein the saving and uploading the source code compilation information into an embedded device further comprises:
obtaining an uploading result;
judging whether the uploading is successful or not based on the uploading result;
if yes, outputting a first prompt message of successful uploading;
if not, generating a second prompt message of failed uploading;
and feeding the first prompt information or the second prompt information back to a display device for display.
6. A device for implementing one-key upload of a hong-Monte system, comprising:
the source code acquisition module is used for building a compiling environment after the uploading instruction is detected, and automatically acquiring a storage path of the hong Mongolian system source code;
the source code acquisition module is further used for determining a code path from the storage path, wherein the code path represents a path of a code corresponding to the function of the embedded equipment;
the environment construction module is used for automatically writing the code path into a preset product parameter file config. Json;
the environment construction module is further used for acquiring a file storage path of at least one preset configuration file and acquiring information of at least one preset configuration item, wherein each configuration file corresponds to each configuration item information one by one, and the configuration items comprise various configurations needed for constructing a compiling environment;
The environment setting-up module is also used for writing the configuration item information into the corresponding configuration file according to the file storage path;
the source code compiling module is used for automatically accessing the preset product parameter file during compiling and acquiring the HongMonte system source code according to the code path;
the source code compiling module is also used for automatically accessing the configuration file, compiling the HongMonte system source code according to the configuration item information, and generating source code compiling information after compiling;
the uploading module is used for storing the source code compiling information and automatically uploading the source code compiling information to the embedded equipment after compiling;
the automatic access to the preset product parameter file, the obtaining of the hong Mongolian system source code according to the code path, the automatic access further comprises: acquiring a storage path of a pre-stored compiler, wherein the compiler is used for automatically accessing the configuration file and the product parameter file when being started; assigning the storage path of the compiler to a preset compiling instruction; running the compiling instruction and automatically executing the compiling program;
the method for storing and automatically uploading the source code compiling information to the embedded equipment comprises the following steps: the method comprises the steps of obtaining a storage path of a pre-stored programming program, wherein the programming program is used for automatically obtaining source code compiling information when being started and uploading the source code compiling information; assigning a storage path of the programming program to a preset programming instruction; identifying an access port connected with the serial port, and setting parameters of the connected serial port; running a burning instruction and automatically accessing a storage path of a burning program; starting a burning program, automatically acquiring the source code compiling information, and uploading the source code compiling information to the embedded equipment through the connection serial port;
The method has the advantages that the writing file path and the compiling path of the configuration items are not required to be selected by a user in the three processes of environment construction, compiling and uploading, the configuration items are automatically written into the corresponding configuration files when the compiling environment is constructed, and the step that complicated tool downloading is required to be carried out when the compiling environment is constructed when the user spontaneously downloads and installs the configuration items is reduced.
7. An electronic device, comprising:
at least one processor;
a memory;
at least one application program, wherein the at least one application program is stored in the memory and configured to be executed by the at least one processor, the at least one application program configured to: performing the method of any one of claims 1-5.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer is caused to perform the method according to any one of claims 1-5 when the computer program is executed in the computer.
CN202210165665.2A 2022-02-23 2022-02-23 One-key uploading realization method and device of hong Monte-go system, electronic equipment and medium Active CN114564230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210165665.2A CN114564230B (en) 2022-02-23 2022-02-23 One-key uploading realization method and device of hong Monte-go system, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210165665.2A CN114564230B (en) 2022-02-23 2022-02-23 One-key uploading realization method and device of hong Monte-go system, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN114564230A CN114564230A (en) 2022-05-31
CN114564230B true CN114564230B (en) 2024-01-16

Family

ID=81713723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210165665.2A Active CN114564230B (en) 2022-02-23 2022-02-23 One-key uploading realization method and device of hong Monte-go system, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114564230B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776266A (en) * 2015-11-25 2017-05-31 腾讯科技(深圳)有限公司 The collocation method and terminal device of testing tool
CN108399083A (en) * 2017-02-07 2018-08-14 北京京东尚科信息技术有限公司 A kind of system deployment method, apparatus, electronic equipment and storage medium
CN108418717A (en) * 2018-03-02 2018-08-17 平安科技(深圳)有限公司 Android application is packaged method for uploading, device, computer equipment and storage medium
CN110532029A (en) * 2019-09-04 2019-12-03 深圳前海微众银行股份有限公司 Small routine generation method, device, equipment and computer readable storage medium
CN110659031A (en) * 2019-09-24 2020-01-07 深圳传音控股股份有限公司 Compiling method and device of application program, electronic equipment and storage medium
CN112099797A (en) * 2020-08-19 2020-12-18 珠海格力电器股份有限公司 Industrial control screen based function setting method and device and industrial control screen
CN112506518A (en) * 2020-12-01 2021-03-16 东软睿驰汽车技术(沈阳)有限公司 Compiling method and device based on configuration file

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776266A (en) * 2015-11-25 2017-05-31 腾讯科技(深圳)有限公司 The collocation method and terminal device of testing tool
CN108399083A (en) * 2017-02-07 2018-08-14 北京京东尚科信息技术有限公司 A kind of system deployment method, apparatus, electronic equipment and storage medium
CN108418717A (en) * 2018-03-02 2018-08-17 平安科技(深圳)有限公司 Android application is packaged method for uploading, device, computer equipment and storage medium
CN110532029A (en) * 2019-09-04 2019-12-03 深圳前海微众银行股份有限公司 Small routine generation method, device, equipment and computer readable storage medium
CN110659031A (en) * 2019-09-24 2020-01-07 深圳传音控股股份有限公司 Compiling method and device of application program, electronic equipment and storage medium
CN112099797A (en) * 2020-08-19 2020-12-18 珠海格力电器股份有限公司 Industrial control screen based function setting method and device and industrial control screen
CN112506518A (en) * 2020-12-01 2021-03-16 东软睿驰汽车技术(沈阳)有限公司 Compiling method and device based on configuration file

Also Published As

Publication number Publication date
CN114564230A (en) 2022-05-31

Similar Documents

Publication Publication Date Title
CN107704238B (en) Method and device for packaging items
CN109902005B (en) Automatic testing method and system
CN111026403A (en) Packing deployment method and device, computer equipment and storage medium
CN107832059B (en) Code static analysis method and device based on Makefile
CN109508178A (en) A kind of program developing method and device
CN111399840A (en) Module development method and device
CN115658529A (en) Automatic testing method for user page and related equipment
US20130080751A1 (en) Method and device for updating bios program for computer system
CN114461182A (en) Method and device for pipeline construction, electronic equipment and computer readable storage medium
CN110704113B (en) Starting method and system based on FPGA platform and development board device
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN114185786A (en) Method and device for testing end-to-end system, computer equipment and storage medium
CN114546819A (en) Code processing method and device, electronic equipment and readable medium
CN114564230B (en) One-key uploading realization method and device of hong Monte-go system, electronic equipment and medium
CN113032104A (en) Method and device for deploying k8s container application
CN116643761A (en) Customized mirror image manufacturing and deploying method, device, terminal and medium
CN116991381A (en) Application cross compiling method and device, computing equipment and storage medium
CN115599618B (en) Register dynamic change-allocation verification method and device, storage medium and processor
CN110806891A (en) Method and device for generating software version of embedded equipment
CN115658069A (en) Project packaging and online compiling method for release platform
CN115857999A (en) Method and system for obtaining micro front-end system architecture based on vue system architecture transformation
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN114492266A (en) Chip verification method and device, electronic equipment and storage medium
CN113886008A (en) Virtual machine management method, system, device and medium
CN111913720A (en) Program deployment method and 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
CB02 Change of applicant information

Address after: 806, floor 8, No. 6, Haidian middle street, Haidian District, Beijing 100089

Applicant after: Beijing Layout Future Technology Development Co.,Ltd.

Address before: 806, floor 8, No. 6, Haidian middle street, Haidian District, Beijing 100089

Applicant before: Beijing layout Future Education Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant