CN109992283B - Method and system for synchronously downloading and upgrading test firmware in batch - Google Patents
Method and system for synchronously downloading and upgrading test firmware in batch Download PDFInfo
- Publication number
- CN109992283B CN109992283B CN201910233930.4A CN201910233930A CN109992283B CN 109992283 B CN109992283 B CN 109992283B CN 201910233930 A CN201910233930 A CN 201910233930A CN 109992283 B CN109992283 B CN 109992283B
- Authority
- CN
- China
- Prior art keywords
- upgrading
- test
- version
- firmware
- configuration file
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/368—Test management for test version control, e.g. updating test cases to a new software version
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and a system for synchronously downloading and upgrading test firmware in batches, which belong to the technical field of firmware upgrading and comprise the following steps: s1: designing a configuration file and an upgrading script; s2: deploying and running an upgrade script; s3: reading the configuration file, performing project polling according to the configuration file, and simultaneously initiating another thread for capturing a test version package from the file server; s4: after the test version packet is captured, entering an upgrading flow and a testing flow; s5: and after all the projects are traversed, finishing the upgrading test work to obtain a test result. The invention adopts double thread control, enables the batch downloading and upgrading version work to be carried out synchronously, can be quicker, improves the working efficiency of the upgrading work, adopts a deployment tool to deploy upgrading and testing work, replaces manual upgrading with automation, improves the efficiency of the testing work, and is worthy of being popularized and used.
Description
Technical Field
The invention relates to the technical field of firmware upgrading, in particular to a method and a system for synchronously downloading and upgrading test firmware in batches.
Background
At present, many devices are provided with firmware, the firmware upgraded by an officer can be upgraded by loading the firmware onto the devices, so that the devices can obtain better performance, and after the equipment is upgraded, the equipment with the upgraded new firmware is generally required to be tested.
At present, the upgrading of a plurality of equipment firmware is mainly realized by a manual upgrading mode, firstly, an upgrading tool needs to be downloaded, after the downloading is finished, equipment to be upgraded is connected to a computer through a port or a serial port and the like in sequence, then, a specified firmware version package is downloaded, the version upgrading is respectively carried out by using different project version packages, and the test and verification work is carried out after the upgrading is finished.
The method has certain problems that firstly, the upgrading and the downloading of the version package are not carried out simultaneously, so that the version downloading process and the upgrading process are too time-consuming, the repeated work is too much, and the manual testing time is longer.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: how to improve the efficiency of upgrading and testing work provides a method for synchronously downloading and upgrading test firmware in batches.
The invention solves the technical problems through the following technical scheme, and comprises the following steps:
s1: designing a configuration file and an upgrading script;
s2: deploying an upgrading script and running the upgrading script;
s3: reading the configuration file, performing project polling according to the configuration file, and simultaneously initiating another thread for capturing a test version package from the file server;
s4: after the test version packet is captured, entering an upgrading flow and a testing flow;
s5: and after all the projects are traversed, finishing the upgrading test work to obtain a test result.
Preferably, the method for deploying the upgrade script in step S2 includes the following steps:
s21: triggering an entry script through a deployment tool;
s22: downloading a firmware upgrading tool with a specified version number, and decompressing to a specified folder after downloading;
s23: and copying the upgrading script to a specified firmware upgrading tool file directory.
Preferably, the upgrading process in step S4 includes the following steps:
s41: after the upgrading script is operated, starting a firmware upgrading tool;
s42: loading a test version package folder, reading a test version package through an AT instruction, and then checking whether the loading of the Lable is successful;
s43: after the Lable is loaded successfully, selecting configurations such as an upgrade port/baud rate and the like;
s44: after the configuration is selected, the upgrading process is started, and the interface Lable is detected every 1 s.
Preferably, the test procedure in step S4 includes the following steps:
s45: the equipment to be upgraded is powered on to initialize and inquire version information;
s46: after the query is successful, upgrading the version to the last version of the current latest version;
s47: after the last version is upgraded successfully, continuously upgrading the current latest version;
s48: and confirming that the current project test is finished, and ending the test flow.
Preferably, the method for capturing the test version package in step S3 includes the following steps:
s31: cycling through each item in the configuration file;
s32: automatically capturing a test version package from a file server;
s33: deploying the test version package to a specified path, and decompressing the test version package;
s34: and confirming whether the grabbing work is finished.
Preferably, the configuration file contains configuration information, and the configuration information includes an upgrade serial port, a path and a project name.
A system for batch synchronous download of upgraded test firmware, comprising:
the configuration module is used for designing a configuration file and an upgrading script;
the deployment module is used for deploying and running the upgrading script;
the file reading module is used for reading the configuration file and the script;
the information processing module is used for inquiring each project, detecting the completion state of each project and feeding back information;
the central processing module is used for sending instructions to each module to complete related actions;
the configuration module, the deployment module, the file reading module and the information processing module are all electrically connected with the central processing module.
Compared with the prior art, the invention has the following advantages: according to the method for synchronously downloading and upgrading the test firmware in batches, due to the fact that double thread control is adopted, batch downloading and upgrading version work are conducted synchronously, the work efficiency of upgrading work can be improved more quickly, the deployment tool is adopted to deploy upgrading and testing work, manual upgrading is replaced by automation, and the efficiency of testing work is improved.
Drawings
FIG. 1 is a schematic block diagram of the overall workflow of the present invention;
FIG. 2 is a schematic block diagram of a deployment upgrade script flow of the present invention;
FIG. 3 is a schematic block diagram of a version upgrade process of the present invention.
Detailed Description
The following examples are given for the detailed implementation and specific operation of the present invention, but the scope of the present invention is not limited to the following examples.
As shown in fig. 1-3, the present embodiment provides a technical solution: a method for synchronously downloading and upgrading test firmware in batches comprises the following steps:
s1: designing a configuration file and an upgrading script, wherein the configuration file comprises configuration information such as an upgrading serial port, a path, a project name and the like;
s2: deploying an upgrading script, triggering an entrance script through Jenkins software, downloading a QFlash tool with a specified version number, decompressing after downloading, copying the designed upgrading script to a specified QFlash file directory, and then running the upgrading script;
s3: after the upgrading script is operated, reading the configuration file, performing project polling according to the configuration file, and simultaneously initiating another thread for grabbing a test version package from the file server, wherein the method for grabbing the version package adopts a traversal method, and the current latest version package and the last version package of the current latest version package are obtained in a traversal manner;
the method for capturing the test version package comprises the following steps:
s31: cycling through each item in the configuration file;
s32: automatically capturing a test version package from a file server;
s33: deploying the test version package to a specified path, and decompressing the test version package;
s34: confirming whether the grabbing work is finished;
s4: and after the test version packet is captured, entering an upgrading flow and a testing flow.
In the upgrading process, firstly, a QFlash tool is started, a test version packet folder is loaded after the starting is successful, an error is reported and quit is performed if the test version packet folder is unsuccessful, the test version packet folder is loaded and a test version packet is read through an AT instruction, whether the loading of a Lable is successful or not is checked, the error is reported and quit is performed if the loading of the Lable is unsuccessful, the configuration such as an upgrading port/baud rate is selected, after the configuration is selected, a start is clicked, the upgrading process is started, an interface Lable is detected every 1s, after the upgrading is successful, a result log is recorded, and the error is reported if the upgrading is unsuccessful;
s5: and after all the projects are traversed, finishing upgrading test work, quitting the QFlash tool to obtain a test result, and feeding the result back to Jenkins software.
The embodiment further provides a system for downloading and upgrading test firmware synchronously in batch, which includes:
the configuration module is used for designing a configuration file and an upgrading script;
the deployment module is used for deploying and running the upgrading script;
the file reading module is used for reading the configuration file and the script;
the information processing module is used for inquiring each project, detecting the completion state of each project and feeding back information;
the central processing module is used for sending instructions to each module to complete related actions;
the configuration module, the deployment module, the file reading module and the information processing module are all electrically connected with the central processing module.
It should be noted that, the firmware upgrade tool may use a QFlash tool, but is not limited to the QFlash tool, jenkins is an application program that allows continuous integration and continuous delivery of items, and may handle any type of construction or continuous integration, lab is display information of a firmware upgrade tool interface, there is a prompt information that a version is not loaded successfully, and an AT command is a command applied to connection and communication between a terminal device and a PC application.
In conclusion, the method for synchronously downloading and upgrading test firmware in batches according to the real-time embodiment adopts double-thread control, so that the batch downloading and upgrading version work can be synchronously carried out, the upgrading work can be more quickly carried out, the working efficiency of the upgrading work is improved, the deployment tool is adopted to deploy the upgrading and testing work, the manual upgrading is replaced by automation, the testing work efficiency is improved, and the method is worthy of popularization and use.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (7)
1. A method for synchronously downloading and upgrading test firmware in batches is characterized by comprising the following steps:
s1: designing a configuration file and an upgrading script;
s2: deploying an upgrading script and running the upgrading script;
s3: reading the configuration file, performing project polling according to the configuration file, and simultaneously initiating another thread for capturing a test version package from the file server;
the polling of items according to the configuration file specifically includes:
cycling through each item in the configuration file;
judging whether the corresponding test version packet is completely captured or not;
and after the test version packet is captured, entering an upgrading flow and a testing flow, and after all the projects are traversed, finishing upgrading testing work to obtain a testing result.
2. The method for downloading and upgrading test firmware synchronously in batch according to claim 1, wherein the method for deploying the upgrade script in step S2 comprises the following steps:
s21: triggering an entry script through a deployment tool;
s22: downloading a firmware upgrading tool with a specified version number, and decompressing to a specified folder after downloading;
s23: and copying the upgrading script to a specified firmware upgrading tool file directory.
3. The method for batch synchronous download and upgrade of test firmware according to claim 1, wherein the upgrade process comprises the following steps:
after the upgrading script is operated, starting a firmware upgrading tool;
loading a test version package folder, reading a test version package through an AT instruction, and then checking whether the loading of the Lable is successful; wherein, the Lable is display information of a firmware upgrading tool interface, and prompt information is provided if the loading is unsuccessful;
after the Lable is loaded successfully, selecting the configuration of the upgrade port/baud rate;
after the configuration is selected, the upgrading process is started, and the interface Lable is detected every 1 s.
4. The method for batch synchronous download and upgrade of test firmware according to claim 1, wherein the test process comprises the following steps:
the equipment to be upgraded is powered on to initialize and inquire version information;
after the query is successful, upgrading the version to the last version of the current latest version;
after the last version is upgraded successfully, the current latest version is continuously upgraded;
and confirming that the current project test is finished, and ending the test flow.
5. The method for batch synchronous download and upgrade of test firmware according to claim 1, wherein the method for fetching test version package in step S3 comprises the following steps:
s31: cycling through each item in the configuration file;
s32: automatically capturing a test version package from a file server;
s33: deploying the test version package to a specified path, and decompressing the test version package;
s34: and confirming whether the grabbing work is finished.
6. The method for batch synchronous download and upgrade of test firmware as claimed in claim 1, wherein: the configuration file comprises configuration information, and the configuration information comprises an upgrading serial port, a path and a project name.
7. A system for batch synchronous download and upgrade of test firmware, comprising:
the configuration module is used for designing a configuration file and an upgrading script;
the deployment module is used for deploying and running the upgrading script;
the file reading module is used for reading the configuration file and the script;
the information processing module is used for inquiring each project, detecting the completion state of each project and feeding back information;
the central processing module is used for sending instructions to each module to complete related actions;
the configuration module, the deployment module, the file reading module and the information processing module are all electrically connected with the central processing module;
the file reading module is further used for carrying out project polling according to the configuration file and simultaneously initiating another thread for capturing a test version package from the file server;
wherein, the polling the items according to the configuration file specifically includes:
cycling through each item in the configuration file;
judging whether the corresponding test version packet is completely captured or not;
and after the test version packet is captured, entering an upgrading flow and a testing flow, and after all the items are traversed, finishing upgrading and testing work to obtain a testing result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910233930.4A CN109992283B (en) | 2019-03-26 | 2019-03-26 | Method and system for synchronously downloading and upgrading test firmware in batch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910233930.4A CN109992283B (en) | 2019-03-26 | 2019-03-26 | Method and system for synchronously downloading and upgrading test firmware in batch |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109992283A CN109992283A (en) | 2019-07-09 |
CN109992283B true CN109992283B (en) | 2023-03-14 |
Family
ID=67131490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910233930.4A Active CN109992283B (en) | 2019-03-26 | 2019-03-26 | Method and system for synchronously downloading and upgrading test firmware in batch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109992283B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110968510A (en) * | 2019-11-28 | 2020-04-07 | 深圳忆联信息系统有限公司 | SSD automatic online upgrading firmware test method and device and computer equipment |
CN111008382A (en) * | 2019-11-29 | 2020-04-14 | 深圳供电局有限公司 | Method and system for remotely upgrading virtual power plant regulation and control terminal software |
CN111522330A (en) * | 2020-05-13 | 2020-08-11 | 航天科工防御技术研究试验中心 | FPGA device testing method and system and electronic equipment |
CN112559016A (en) * | 2020-12-30 | 2021-03-26 | 杭州视洞科技有限公司 | Automatic testing method and flow for batch upgrading of cameras |
CN113721957B (en) * | 2021-08-30 | 2023-10-31 | 四川虹美智能科技有限公司 | Automatic test method, device and system for firmware deployment upgrade of embedded equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101867484A (en) * | 2010-05-18 | 2010-10-20 | 中兴通讯股份有限公司 | Method and system for upgrading equipment |
CN101984405A (en) * | 2010-10-11 | 2011-03-09 | 中兴通讯股份有限公司 | Method of software version upgrade and terminal and system |
CN102437869A (en) * | 2011-12-12 | 2012-05-02 | 深圳市国电科技通信有限公司 | Method for concurrently upgrading software of power line carrier communication modules |
CN104425001A (en) * | 2013-08-22 | 2015-03-18 | 北京卓越信通电子股份有限公司 | System for simultaneously burning multiple switches, method thereof and corresponding switches |
CN107480050A (en) * | 2017-07-17 | 2017-12-15 | 上海爱数信息技术股份有限公司 | A kind of method of testing of automatic test renewal bag |
CN108681504A (en) * | 2018-04-13 | 2018-10-19 | 深圳壹账通智能科技有限公司 | Automated testing method, test server and computer readable storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2431872A1 (en) * | 2010-09-15 | 2012-03-21 | ABB Technology AG | A low or medium voltage electric power distribution network |
CN103677876A (en) * | 2012-09-12 | 2014-03-26 | 中兴通讯股份有限公司 | Manufacturing and installing method, device and system of software installation package |
CN109426516A (en) * | 2017-06-21 | 2019-03-05 | 北京信威通信技术股份有限公司 | Software version management method and device |
CN107577469B (en) * | 2017-08-21 | 2019-12-17 | 厦门悦讯信息科技股份有限公司 | software packaging and publishing management method |
-
2019
- 2019-03-26 CN CN201910233930.4A patent/CN109992283B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101867484A (en) * | 2010-05-18 | 2010-10-20 | 中兴通讯股份有限公司 | Method and system for upgrading equipment |
CN101984405A (en) * | 2010-10-11 | 2011-03-09 | 中兴通讯股份有限公司 | Method of software version upgrade and terminal and system |
CN102437869A (en) * | 2011-12-12 | 2012-05-02 | 深圳市国电科技通信有限公司 | Method for concurrently upgrading software of power line carrier communication modules |
CN104425001A (en) * | 2013-08-22 | 2015-03-18 | 北京卓越信通电子股份有限公司 | System for simultaneously burning multiple switches, method thereof and corresponding switches |
CN107480050A (en) * | 2017-07-17 | 2017-12-15 | 上海爱数信息技术股份有限公司 | A kind of method of testing of automatic test renewal bag |
CN108681504A (en) * | 2018-04-13 | 2018-10-19 | 深圳壹账通智能科技有限公司 | Automated testing method, test server and computer readable storage medium |
Non-Patent Citations (2)
Title |
---|
C/S模式客户端应用程序自动升级研究与实现;曾祥松 等;《现代计算机》;20090930;第2009卷(第09期);全文 * |
Multi-GNSS real-time clock estimation using the dual-thread parallel method;Dai Z et al.;《ADVANCES IN SPACE RESEARCH -OXFORD-》;20180731;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109992283A (en) | 2019-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109992283B (en) | Method and system for synchronously downloading and upgrading test firmware in batch | |
CN101593121B (en) | Method, device and system for software on-line upgrade | |
WO2017198015A1 (en) | Software upgrading method and apparatus | |
WO2018076969A1 (en) | Software upgrade method, computing device, and channel control device | |
CN104850499A (en) | Automatic test method and device for base band software | |
CN111371610A (en) | Network card firmware batch refreshing method, system, terminal and storage medium | |
CN107632901A (en) | A kind of self-repair method and device of application program operation exception | |
CN111651352A (en) | Warehouse code merging method and device | |
CN112115055A (en) | Multi-machine automatic testing method and device and computer equipment | |
CN111459740A (en) | Master-slave disk serial test method and device for solid state disk and computer equipment | |
CN111193638A (en) | Linux platform based network card automatic testing method and device | |
CN114760466A (en) | Display device testing method and device and storage medium | |
JPH11143730A (en) | Method for testing computer system device | |
CN113918197A (en) | Firmware upgrading method, system, storage medium and equipment | |
CN106204031B (en) | Card application processing method and device | |
CN109446008B (en) | Fault reason detection method, fault reason detection device and terminal equipment | |
CN105808465A (en) | Method and device for upgrading camera equipment | |
CN110764789B (en) | Process control method and device, storage medium and electronic equipment | |
CN115080076A (en) | Cloud mobile phone software management method | |
CN113505076B (en) | File coverage detection method and device | |
CN104536789A (en) | Data burning method and data burning device | |
CN114879630A (en) | Vehicle fault diagnosis method, device, equipment and readable storage medium | |
CN113742186A (en) | Server performance test method, system, equipment and medium | |
CN111045689B (en) | Operation platform automatic installation and deployment system | |
CN104283846B (en) | Method, system and the server that diagnosis terminal application is tampered |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |