CN114356367A - Intelligent firmware batch upgrading method, system and medium for terminal equipment - Google Patents

Intelligent firmware batch upgrading method, system and medium for terminal equipment Download PDF

Info

Publication number
CN114356367A
CN114356367A CN202111574806.8A CN202111574806A CN114356367A CN 114356367 A CN114356367 A CN 114356367A CN 202111574806 A CN202111574806 A CN 202111574806A CN 114356367 A CN114356367 A CN 114356367A
Authority
CN
China
Prior art keywords
peripheral
upgrading
firmware
terminal equipment
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111574806.8A
Other languages
Chinese (zh)
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.)
Inspur Financial Information Technology Co Ltd
Original Assignee
Inspur Financial Information Technology 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 Inspur Financial Information Technology Co Ltd filed Critical Inspur Financial Information Technology Co Ltd
Priority to CN202111574806.8A priority Critical patent/CN114356367A/en
Publication of CN114356367A publication Critical patent/CN114356367A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a system and a medium for upgrading intelligent firmware in batches for terminal equipment, wherein the method comprises the following steps: executing a universal configuration operation based on the plug-in container and the peripheral type information to obtain a universal interface and a peripheral universal regulation and control toolkit; executing an upgrade file acquisition operation based on the universal interface, the peripheral universal regulation and control toolkit, the first file format and the peripheral update demand information to obtain a file to be upgraded; executing selective upgrading operation based on the universal interface, the peripheral universal regulation and control toolkit, the file to be upgraded, the reference parameter, the firmware upgrading time matching table and the process information; the invention can carry out batch version verification and upgrade on the firmware of a plurality of different types of peripheral equipment in the terminal equipment, and can selectively upgrade according to the real-time operation information of the terminal equipment, thereby not influencing the normal operation of the terminal equipment, having extremely high intelligent degree and extremely high convenience, making up the defects of the prior art and having certain application value.

Description

Intelligent firmware batch upgrading method, system and medium for terminal equipment
Technical Field
The invention relates to the technical field of firmware upgrading, in particular to an intelligent firmware batch upgrading method, system and medium for terminal equipment.
Background
In the prior art, the upgrading processing scheme for the peripherals of various types on the terminal equipment only can adopt the verification and upgrading tools provided by peripheral merchants to carry out upgrading verification operation on each peripheral on the terminal equipment one by one, and the batch integrated verification and upgrading of the peripheral firmware cannot be realized.
Disclosure of Invention
The invention mainly solves the problem that the existing method for upgrading the peripheral firmware of the terminal equipment cannot realize batch integrated verification and upgrading of the peripheral firmware, so that the maintenance and upgrading efficiency of the terminal equipment is low.
In order to solve the technical problems, the invention adopts a technical scheme that: the method for upgrading the intelligent firmware in batches for the terminal equipment comprises the following steps:
an initial configuration step:
configuring a plug-in container, and identifying peripheral type information supported by the terminal equipment; executing a universal configuration operation based on the plug-in container and the peripheral type information to obtain a universal interface and a peripheral universal regulation and control toolkit;
a file acquisition step:
setting a first file format, acquiring peripheral updating demand information of the terminal equipment, and executing an updating file acquisition operation based on the universal interface, the peripheral universal regulation and control toolkit, the first file format and the peripheral updating demand information to obtain a file to be updated;
intelligent upgrading steps:
setting a reference parameter, configuring a firmware upgrading time matching table, and acquiring process information of the terminal equipment; and executing selective upgrading operation based on the universal interface, the peripheral universal regulation and control toolkit, the file to be upgraded, the reference parameter, the firmware upgrading time matching table and the process information.
As an improved scheme, a plurality of first peripheral types are set in the peripheral type information;
the peripheral updating demand information stores a plurality of demand peripheral types;
the reference parameters include: a rate limit reference value, a first time threshold, a second time threshold, a first time period, and a second time period;
the firmware upgrading time matching table is configured with a plurality of upgrading times and a plurality of resource occupation values respectively matched with the upgrading times.
As an improved solution, the generalized configuration operation includes:
downloading a plurality of peripheral interface parameters respectively matched with the types of the first peripherals in a network data center; configuring the universal interface on the terminal equipment, and setting parameter conversion logic of the universal interface; generating a plurality of calling parameters respectively matched with the plurality of peripheral interface parameters according to the parameter conversion logic;
acquiring a plurality of SDKs respectively corresponding to a plurality of first peripheral types; respectively packaging the SDKs according to the first peripheral type and based on the calling parameters to obtain a plurality of peripheral regulation and control plug-ins; and placing a plurality of peripheral regulation and control plug-ins into the plug-in container to obtain a peripheral universal regulation and control toolkit.
As an improved solution, the upgrade file obtaining operation includes:
identifying a plurality of the required peripheral types in the peripheral updating required information; acquiring a plurality of peripheral firmware upgrading files respectively matched with a plurality of required peripheral types in a management background of the terminal equipment according to the first file format;
identifying a plurality of first peripheral regulation and control plug-ins which are respectively matched with a plurality of required peripheral types in the peripheral universal regulation and control toolkit; identifying a plurality of to-be-detected peripherals on the terminal equipment, which correspond to the types of the required peripherals respectively;
calling the universal interface to respectively acquire a plurality of pieces of first firmware version information corresponding to the plurality of to-be-detected peripherals by adopting a plurality of first peripheral regulation and control plug-ins; identifying a plurality of second firmware version information respectively corresponding to a plurality of external firmware upgrading files;
comparing the first firmware version information with the second firmware version information according to the required peripheral type; setting the required peripheral type corresponding to the first firmware version information matched with the second firmware version information as a third peripheral type;
identifying a first peripheral firmware upgrading file corresponding to the third peripheral type in the plurality of peripheral firmware upgrading files; and setting the first peripheral firmware upgrading file as the file to be upgraded.
As an improvement, the selective upgrade operation includes:
counting a first resource occupation value of the first peripheral firmware upgrading file; identifying a plurality of process numbers in the process information; identifying a plurality of communication resource occupation percentages respectively corresponding to a plurality of process numbers in the process information;
calculating the sum of the occupation percentages of a plurality of communication resources to obtain a first occupation percentage; acquiring a first bandwidth threshold of the terminal equipment; calculating a first product of the first bandwidth threshold and the first occupancy percentage to obtain a first bandwidth occupancy value;
calculating a difference value between the first bandwidth threshold value and the first bandwidth occupation value to obtain a first bandwidth redundancy value; identifying a first download rate value based on the first bandwidth redundancy value; calculating a second product of the first download rate value and the rate limit reference value to obtain a second download rate value;
calculating a quotient value of the first resource occupation value and the second download rate value to obtain a first download time; accessing the firmware upgrading time matching table, and screening out first upgrading time matched with the first resource occupation value from a plurality of upgrading times; performing a time validation step based on the first download time and the first upgrade time.
As an improvement, the time confirmation step includes:
calculating the sum of the first download time and the first upgrading time to obtain total upgrading time; comparing the total upgrade time with the first time threshold;
if the total upgrading time is not greater than the first time threshold, executing a first upgrading step;
if the total upgrading time is larger than the first time threshold, comparing the first downloading time with the second time threshold; if the first upgrading time is not greater than the second time threshold, executing a second upgrading step; and if the first upgrading time is larger than the second time threshold, executing a third upgrading step.
As an improved solution, the first upgrading step includes: firstly, calling the universal interface to download the first external firmware upgrading file by adopting a third external regulation plug-in corresponding to the third external type based on the second download rate value, and then calling the universal interface to run the downloaded first external firmware upgrading file by adopting the third external regulation plug-in;
the second upgrading step comprises: dividing a cache space in a storage area of the terminal equipment; calling the third peripheral regulation and control plug-in through the universal interface to take the cache space as a target download path, and downloading the first peripheral firmware upgrade file according to the second download rate value; calling the third peripheral regulation and control plug-in to access the cache space through the general interface in the first time period, and calling the third peripheral regulation and control plug-in to operate the first peripheral firmware upgrade file in the cache space through the general interface;
the third upgrading step comprises: performing the first upgrade step during the second time period.
As an improved scheme, the first file format comprises an XML format and a JSON format.
The invention also provides an intelligent firmware batch upgrading system for the terminal equipment, which comprises the following steps:
the system comprises an initial configuration module, a file acquisition module and an intelligent upgrading module;
the initial configuration module is used for configuring the plug-in container and identifying peripheral type information supported by the terminal equipment; the initial configuration module executes a universal configuration operation based on the plug-in container and the peripheral type information to obtain a universal interface and a peripheral universal regulation and control toolkit;
the file acquisition module is used for setting a first file format and acquiring peripheral updating demand information of the terminal equipment; the file acquisition module executes an upgrade file acquisition operation based on the universal interface, the peripheral universal regulation and control toolkit, the first file format and the peripheral update demand information to obtain a file to be upgraded;
the intelligent upgrading module is used for setting reference parameters, configuring a firmware upgrading time matching table and acquiring process information of the terminal equipment; the intelligent upgrading module executes selective upgrading operation based on the universal interface, the peripheral universal regulation and control toolkit, the file to be upgraded, the reference parameter, the firmware upgrading time matching table and the process information.
The invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the intelligent firmware batch upgrading method for the terminal equipment are realized.
The invention has the beneficial effects that:
1. the intelligent firmware batch upgrading method for the terminal equipment can realize batch version verification and upgrading of the firmware of a plurality of different types of peripheral equipment in the terminal equipment, can also selectively upgrade according to the real-time operation information of the terminal equipment, cannot influence the normal operation of the terminal equipment, has extremely high intelligent degree and convenience, makes up the defects of the prior art, and has certain application value.
2. The intelligent firmware batch upgrading system for the terminal equipment can realize batch version verification and upgrading of the firmware of a plurality of different types of peripheral equipment in the terminal equipment through the mutual cooperation of the initial configuration module, the file acquisition module and the intelligent upgrading module, can selectively upgrade according to the real-time operation information of the terminal equipment, cannot influence the normal operation of the terminal equipment, has extremely high intelligent degree and convenience, makes up the defects of the prior art, and has certain application value.
3. The computer-readable storage medium can realize the cooperation of the initial configuration module, the file acquisition module and the intelligent upgrading module, further realize the batch version verification and upgrading of the firmware of a plurality of different types of peripheral equipment in the terminal equipment, and simultaneously selectively upgrade the firmware according to the real-time operation information of the terminal equipment, so that the normal operation of the terminal equipment is not influenced, the intelligent degree is extremely high, the convenience is extremely high, the defects of the prior art are overcome, and the operability of the intelligent firmware batch upgrading method for the terminal equipment is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an intelligent firmware batch upgrading method for a terminal device according to embodiment 1 of the present invention;
fig. 2 is a schematic specific flowchart of a method for batch upgrading intelligent firmware for terminal equipment according to embodiment 1 of the present invention;
fig. 3 is an architecture diagram of an intelligent firmware batch upgrade system for a terminal device according to embodiment 2 of the present invention.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
In the description of the present invention, it should be noted that the described embodiments of the present invention are a part of the embodiments of the present invention, and not all embodiments; all other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it is to be noted that: SDK is a software development kit; JSON/XML is a file format.
Example 1
The embodiment provides a method for upgrading intelligent firmware in batch for terminal equipment, as shown in fig. 1 and fig. 2, the method includes the following steps:
the method mainly solves the problems that the method can meet the requirement of batch upgrading of a plurality of firmware in the terminal equipment, and can intelligently realize upgrading according to the requirement, so that the current service requirement is met;
s100, an initial configuration step, which specifically comprises:
s110, configuring a plug-in container, and identifying peripheral type information supported by the terminal equipment; executing a universal configuration operation based on the plug-in container and the peripheral type information to obtain a universal interface and a peripheral universal regulation and control toolkit;
specifically, the peripheral type information is provided with a first peripheral type supported by a plurality of terminal devices, for example: a contactless card reader, an image recognition device, a USB reading device, and the like;
specifically, the peripheral updating demand information is provided with a plurality of demand peripheral types; the required peripheral type is the peripheral type information required to be upgraded;
specifically, the generalized configuration operation includes:
correspondingly, downloading a plurality of peripheral interface parameters respectively matched with the types of the first peripherals in a network data center; the peripheral interface parameters comprise serial port communication format specifications, control instruction formats and the like corresponding to the peripheral; therefore, a general interface is configured on the terminal equipment, and the parameter conversion logic of the general interface is set; generating a plurality of calling parameters respectively matched with the plurality of peripheral interface parameters according to the parameter conversion logic; simultaneously, obtaining the SDK corresponding to the peripheral type from a manufacturer corresponding to the peripheral to finally obtain a plurality of SDKs; respectively packaging the SDKs again based on the calling parameters to obtain a plurality of peripheral regulation and control plug-ins; placing a plurality of peripheral regulation and control plug-ins into the plug-in container to obtain a peripheral universal regulation and control toolkit; the SDK is a software toolkit/software framework plug-in for various functions corresponding to different types of peripherals in this embodiment; correspondingly, the general interface aims at realizing the unified calling of different types of peripherals, so that the main calling logic is to convert a special control instruction for the corresponding peripherals based on a plurality of calling parameters; correspondingly, if the corresponding function of the peripheral is to be realized, the general interface needs to call the SDK of the peripheral, so the calling logic of the SDK needs to be redesigned according to the calling parameter corresponding to the peripheral, namely, the SDK is packaged again, and the corresponding peripheral regulation plug-in is generated; in the subsequent calling process, the control and function realization of the peripherals of different types can be realized only by calling the peripheral regulation and control plug-in by the universal interface.
S200, a file acquisition step, which specifically comprises:
s210, setting a first file format, acquiring peripheral updating demand information of the terminal equipment, and executing an updating file acquisition operation based on the universal interface, the peripheral universal regulation and control toolkit, the first file format and the peripheral updating demand information to obtain a file to be updated;
specifically, in this embodiment, the first file format includes, but is not limited to, JSON or XML; the limitation of the first file format is used for converting configuration files corresponding to peripherals of different peripheral types, so that the configuration file formats are unified, and subsequent batch upgrading of peripheral firmware is facilitated;
specifically, the upgrade file obtaining operation includes:
correspondingly, identifying a plurality of required peripheral types in the peripheral updating required information; at this time, the gradual verification of whether upgrading can be carried out is required; acquiring a plurality of peripheral firmware upgrading files respectively matched with a plurality of required peripheral types in a management background of the terminal equipment according to the first file format; identifying a plurality of first peripheral regulation and control plug-ins respectively matched with a plurality of required peripheral types, and identifying a plurality of to-be-detected peripherals on the terminal equipment respectively corresponding to the required peripheral types; calling the universal interface to respectively acquire a plurality of pieces of first firmware version information corresponding to the plurality of to-be-detected peripherals by adopting a plurality of first peripheral regulation and control plug-ins; identifying a plurality of second firmware version information respectively corresponding to a plurality of external firmware upgrading files; comparing the first firmware version information with the second firmware version information according to the required peripheral type; in this embodiment, the comparison between the firmware version information includes comparison of a firmware version number, comparison of a firmware performance index required by the version, and the like, and only when the data is matched, it is determined that the first firmware version information is matched with the second firmware version information, and correspondingly, the version number of the first firmware version information is smaller than the version number of the second firmware version information, which is regarded as the matching; correspondingly, the required peripheral type corresponding to the first firmware version information matched with the second firmware version information is set as a third peripheral type;
identifying a first peripheral firmware upgrading file corresponding to the third peripheral type in the plurality of peripheral firmware upgrading files; the first external firmware upgrading file is the file to be upgraded.
S300, intelligent upgrading steps, specifically comprising:
s310, setting reference parameters, configuring a firmware upgrading time matching table and acquiring process information of the terminal equipment; and executing selective upgrading operation based on the universal interface, the peripheral universal regulation and control toolkit, the file to be upgraded, the reference parameter, the firmware upgrading time matching table and the process information.
Specifically, the reference parameters include: a rate limit reference value, a first time threshold, a second time threshold, a first time period, and a second time period; in this embodiment, the rate limit reference value is 1/2, that is, the download rate is halved, which is used to ensure that the service processing of the terminal device is not affected during the upgrade process; in the embodiment, the first time threshold is set to any value within 15-20 min and is set according to the specific terminal equipment model and the running condition; the second time threshold is set to be any value within 30-45 min and is set according to the specific terminal equipment model and the running condition; the first time period is 12: 30-13: 30 in the morning of the non-business time period of the mechanism where the terminal equipment is located; the second time period is 17: 30-20: 00 in the afternoon of the non-business time period of the mechanism where the terminal equipment is located;
specifically, in this embodiment, the firmware upgrade time matching table is configured with a plurality of upgrade times and a plurality of resource occupation values respectively matched with the upgrade times; the upgrading time is integrated into the restarting time of the equipment and the installation running time of the upgrading file; correspondingly, for example, the resource occupation value is 1.5GB, the corresponding upgrading time is 15 minutes, and the larger the resource occupation value is, the longer the upgrading time is; specifically, the process information is a plurality of processes running in the terminal equipment system;
specifically, the selective upgrading operation includes:
counting a first resource occupation value of the first peripheral firmware upgrading file; the first resource occupation value is a size value of the first external firmware upgrade file, for example, 1.5 GB; identifying a plurality of process numbers in the process information; the process number includes but is not limited to a plurality of image names corresponding to a plurality of running process numbers in the terminal equipment; identifying a plurality of communication resource occupation percentages respectively corresponding to a plurality of process numbers in the process information; the occupied percentage of the communication resource is the occupied bandwidth; calculating the sum of the occupation percentages of a plurality of communication resources to obtain a first occupation percentage; acquiring a first bandwidth threshold of the terminal equipment; calculating a first product of the first bandwidth threshold and the first occupancy percentage to obtain a first bandwidth occupancy value; calculating a difference value between the first bandwidth threshold value and the first bandwidth occupation value to obtain a first bandwidth redundancy value; the first bandwidth redundancy value is an available redundancy bandwidth occupied by the process, and can be used for downloading related files; identifying a first download rate value based on the first bandwidth redundancy value; calculating a second product of the first download rate value and the rate limit reference value to obtain a second download rate value; the second download rate value is the download rate which is guaranteed not to influence the existing process of the terminal equipment; calculating a quotient value of the first resource occupation value and the second download rate value to obtain a first download time; screening out first upgrading time matched with the first resource occupation value from a firmware upgrading time matching table; performing a time validation step based on the first download time and the first upgrade time;
specifically, the time confirmation step includes:
firstly, calculating the sum of the first download time and the first upgrading time to obtain total upgrading time;
comparing the total upgrade time with the first time threshold;
if the total upgrading time is not greater than the first time threshold, the upgrading can be completed in a short time, so that the first upgrading step is directly executed;
if the total upgrading time is larger than the first time threshold, the upgrading can be completed in a short time, so that the first downloading time is compared with the second time threshold, and whether background downloading can be performed is judged; if the first upgrading time is not greater than the second time threshold, the background downloading can be carried out in a shorter time, so that a second upgrading step is executed; if the first upgrading time is larger than the second time threshold, the background downloading cannot be performed in a short time, so that the normal operation of the equipment is not influenced, and a third upgrading step is executed;
specifically, the first upgrading step includes: firstly, calling the universal interface to download the first external firmware upgrading file by adopting a third external regulation plug-in corresponding to the third external type based on the second download rate value, and then calling the universal interface to run the downloaded first external firmware upgrading file by adopting the third external regulation plug-in;
specifically, the second upgrading step includes: dividing a cache space in a storage area of the terminal equipment, calling the universal interface, adopting the third peripheral regulation and control plug-in to take the cache space as a target download path, downloading the first peripheral firmware upgrade file according to the second download speed value, and installing the upgrade file in a free time period; therefore, the universal interface is called in the first time period, the third peripheral regulation plug-in is adopted to access the cache space, and the first peripheral firmware upgrading file in the cache space is operated;
specifically, the third upgrading step includes: performing the first upgrade step during the second time period.
Example 2
The present embodiment provides an intelligent firmware batch upgrade system for a terminal device based on the same inventive concept as the intelligent firmware batch upgrade method for a terminal device described in embodiment 1, as shown in fig. 3, including: the system comprises an initial configuration module, a file acquisition module and an intelligent upgrading module;
in the intelligent firmware batch upgrading system for the terminal equipment, an initial configuration module is used for configuring a plug-in container and identifying peripheral type information supported by the terminal equipment; the initial configuration module executes a universal configuration operation based on the plug-in container and the peripheral type information to obtain a universal interface and a peripheral universal regulation and control toolkit;
specifically, the peripheral type information is provided with a plurality of first peripheral types;
specifically, the generalized configuration operation includes: the initial configuration module downloads a plurality of peripheral interface parameters respectively matched with the types of the first peripherals in a network data center; the initial configuration module configures the universal interface on the terminal equipment, and sets the parameter conversion logic of the universal interface; the initial configuration module generates a plurality of calling parameters respectively matched with the peripheral interface parameters according to the parameter conversion logic; the initial configuration module acquires a plurality of SDKs respectively corresponding to a plurality of first peripheral types; the initial configuration module respectively packages the SDKs according to the first peripheral type and based on the calling parameters to obtain a plurality of peripheral regulation and control plug-ins; and the initial configuration module is used for placing the peripheral regulation and control plug-ins into the plug-in container to obtain a peripheral universal regulation and control toolkit.
In the intelligent firmware batch upgrading system for the terminal equipment, a file acquisition module is used for setting a first file format and acquiring peripheral updating demand information of the terminal equipment; the file acquisition module executes an upgrade file acquisition operation based on the universal interface, the peripheral universal regulation and control toolkit, the first file format and the peripheral update demand information to obtain a file to be upgraded;
specifically, the peripheral updating demand information stores a plurality of demand peripheral types; the first file format comprises an XML format and a JSON format;
specifically, the upgrade file obtaining operation includes: the file acquisition module identifies a plurality of required peripheral types in the peripheral updating required information; the file acquisition module acquires a plurality of peripheral firmware upgrading files respectively matched with the required peripheral types in a management background of the terminal equipment according to the first file format; the file acquisition module identifies a plurality of first peripheral regulation and control plug-ins which are respectively matched with a plurality of required peripheral types in the peripheral universal regulation and control toolkit; the file acquisition module identifies a plurality of to-be-detected peripherals on the terminal equipment, which correspond to the types of the required peripherals respectively; the file acquisition module calls the universal interface to respectively acquire a plurality of pieces of first firmware version information corresponding to the plurality of to-be-detected peripherals by adopting a plurality of first peripheral regulation and control plug-ins; the file acquisition module identifies a plurality of second firmware version information respectively corresponding to a plurality of external firmware upgrading files; the file acquisition module compares the first firmware version information with the second firmware version information according to the required peripheral type; the file acquisition module sets the required peripheral type corresponding to the first firmware version information matched with the second firmware version information as a third peripheral type; the file acquisition module identifies a first external firmware upgrading file corresponding to the third external type in a plurality of external firmware upgrading files; the file acquisition module sets the first external firmware upgrading file as the file to be upgraded.
In the intelligent firmware batch upgrading system for the terminal equipment, an intelligent upgrading module is used for setting reference parameters, configuring a firmware upgrading time matching table and acquiring process information of the terminal equipment; the intelligent upgrading module executes selective upgrading operation based on the universal interface, the peripheral universal regulation and control toolkit, the file to be upgraded, the reference parameter, the firmware upgrading time matching table and the process information;
specifically, the reference parameters include: a rate limit reference value, a first time threshold, a second time threshold, a first time period, and a second time period; the firmware upgrading time matching table is configured with a plurality of upgrading times and a plurality of resource occupation values respectively matched with the upgrading times;
specifically, the selective upgrading operation includes: the intelligent upgrading module counts a first resource occupation value of the first external firmware upgrading file; the intelligent upgrading module identifies a plurality of process numbers in the process information; the intelligent upgrading module identifies a plurality of communication resource occupation percentages respectively corresponding to a plurality of process numbers in the process information; the intelligent upgrading module calculates the sum of the occupied percentages of the communication resources to obtain a first occupied percentage; the intelligent upgrading module acquires a first bandwidth threshold value of the terminal equipment; the intelligent upgrading module calculates a first product of the first bandwidth threshold and the first occupancy percentage to obtain a first bandwidth occupancy value; the intelligent upgrading module calculates a difference value between the first bandwidth threshold value and the first bandwidth occupation value to obtain a first bandwidth redundancy value; the intelligent upgrading module confirms a first downloading speed value based on the first bandwidth redundancy value; the intelligent upgrading module calculates a second product of the first downloading speed value and the speed limit reference value to obtain a second downloading speed value; the intelligent upgrading module calculates a quotient value of the first resource occupation value and the second downloading speed value to obtain first downloading time; the intelligent upgrading module accesses the firmware upgrading time matching table, and screens out first upgrading time matched with the first resource occupation value from a plurality of upgrading times; the intelligent upgrading module executes a time confirmation step based on the first downloading time and the first upgrading time;
specifically, the time confirmation step includes: the intelligent upgrading module calculates the sum of the first downloading time and the first upgrading time to obtain total upgrading time; the intelligent upgrading module compares the total upgrading time with the first time threshold; if the total upgrading time is not greater than the first time threshold, the intelligent upgrading module executes a first upgrading step; if the total upgrading time is larger than the first time threshold, the intelligent upgrading module compares the first downloading time with the second time threshold; if the first upgrading time is not greater than the second time threshold, the intelligent upgrading module executes a second upgrading step; if the first upgrading time is larger than the second time threshold, the intelligent upgrading module executes a third upgrading step;
specifically, the first upgrading step includes: the intelligent upgrading module firstly calls the universal interface to download the first external firmware upgrading file by adopting a third external regulation plug-in corresponding to the type of the third external equipment based on the second download rate value, and then calls the universal interface to run the downloaded first external firmware upgrading file by adopting the third external regulation plug-in;
specifically, the second upgrading step includes: the intelligent upgrading module divides a cache space in a storage area of the terminal equipment; the intelligent upgrading module calls the third peripheral regulation and control plug-in through the universal interface to take the cache space as a target downloading path and downloads the first peripheral firmware upgrading file according to the second downloading speed value; the intelligent upgrading module calls the third peripheral regulation and control plug-in to access the cache space through the universal interface in the first time period, and calls the third peripheral regulation and control plug-in to operate the first peripheral firmware upgrading file in the cache space through the universal interface;
specifically, the third upgrading step includes: and the intelligent upgrading module executes the first upgrading step in the second time period.
Example 3
The present embodiments provide a computer-readable storage medium comprising:
the storage medium is used for storing computer software instructions for implementing the intelligent firmware batch upgrading method for the terminal equipment in embodiment 1, and includes a program for executing the intelligent firmware batch upgrading method for the terminal equipment; specifically, the executable program may be embedded in the system for upgrading the terminal device in batch by using the intelligent firmware described in embodiment 2, so that the system for upgrading the terminal device in batch by using the intelligent firmware can implement the method for upgrading the terminal device in batch by using the intelligent firmware described in embodiment 1 by executing the embedded executable program.
Furthermore, the computer-readable storage medium of the present embodiments may take any combination of one or more readable storage media, where a readable storage medium includes an electronic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof.
Different from the prior art, the method, the system and the medium for the intelligent firmware batch upgrading for the terminal equipment can realize batch version verification and upgrading of the firmware of a plurality of different types of peripheral equipment in the terminal equipment through the method, can also selectively upgrade according to the real-time operation information of the terminal equipment, cannot influence the normal operation of the terminal equipment, have extremely high intelligent degree and high convenience, provide effective technical support for the method through the system, finally make up the defects of the prior art, and have certain application value.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, and a program that can be implemented by the hardware and can be instructed by the program to be executed by the relevant hardware may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic or optical disk, and the like.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An intelligent firmware batch upgrading method for terminal equipment is characterized by comprising the following steps:
an initial configuration step:
configuring a plug-in container, and identifying peripheral type information supported by the terminal equipment; executing a universal configuration operation based on the plug-in container and the peripheral type information to obtain a universal interface and a peripheral universal regulation and control toolkit;
a file acquisition step:
setting a first file format, acquiring peripheral updating demand information of the terminal equipment, and executing an updating file acquisition operation based on the universal interface, the peripheral universal regulation and control toolkit, the first file format and the peripheral updating demand information to obtain a file to be updated;
intelligent upgrading steps:
setting a reference parameter, configuring a firmware upgrading time matching table, and acquiring process information of the terminal equipment; and executing selective upgrading operation based on the universal interface, the peripheral universal regulation and control toolkit, the file to be upgraded, the reference parameter, the firmware upgrading time matching table and the process information.
2. The intelligent firmware batch upgrading method for the terminal equipment according to claim 1, characterized by comprising the following steps:
the peripheral type information is provided with a plurality of first peripheral types;
the peripheral updating demand information stores a plurality of demand peripheral types;
the reference parameters include: a rate limit reference value, a first time threshold, a second time threshold, a first time period, and a second time period;
the firmware upgrading time matching table is configured with a plurality of upgrading times and a plurality of resource occupation values respectively matched with the upgrading times.
3. The intelligent firmware batch upgrading method for the terminal equipment according to claim 2, characterized in that:
the generalized configuration operations include:
downloading a plurality of peripheral interface parameters respectively matched with the types of the first peripherals in a network data center; configuring the universal interface on the terminal equipment, and setting parameter conversion logic of the universal interface; generating a plurality of calling parameters respectively matched with the plurality of peripheral interface parameters according to the parameter conversion logic;
acquiring a plurality of SDKs respectively corresponding to a plurality of first peripheral types; respectively packaging the SDKs according to the first peripheral type and based on the calling parameters to obtain a plurality of peripheral regulation and control plug-ins; and placing a plurality of peripheral regulation and control plug-ins into the plug-in container to obtain a peripheral universal regulation and control toolkit.
4. The intelligent firmware batch upgrading method for the terminal equipment according to claim 3, wherein the method comprises the following steps:
the upgrade file acquisition operation includes:
identifying a plurality of the required peripheral types in the peripheral updating required information; acquiring a plurality of peripheral firmware upgrading files respectively matched with a plurality of required peripheral types in a management background of the terminal equipment according to the first file format;
identifying a plurality of first peripheral regulation and control plug-ins which are respectively matched with a plurality of required peripheral types in the peripheral universal regulation and control toolkit; identifying a plurality of to-be-detected peripherals on the terminal equipment, which correspond to the types of the required peripherals respectively;
calling the universal interface to respectively acquire a plurality of pieces of first firmware version information corresponding to the plurality of to-be-detected peripherals by adopting a plurality of first peripheral regulation and control plug-ins; identifying a plurality of second firmware version information respectively corresponding to a plurality of external firmware upgrading files;
comparing the first firmware version information with the second firmware version information according to the required peripheral type; setting the required peripheral type corresponding to the first firmware version information matched with the second firmware version information as a third peripheral type;
identifying a first peripheral firmware upgrading file corresponding to the third peripheral type in the plurality of peripheral firmware upgrading files; and setting the first peripheral firmware upgrading file as the file to be upgraded.
5. The intelligent firmware batch upgrading method for the terminal equipment according to claim 4, wherein the method comprises the following steps:
the selective upgrade operation includes:
counting a first resource occupation value of the first peripheral firmware upgrading file; identifying a plurality of process numbers in the process information; identifying a plurality of communication resource occupation percentages respectively corresponding to a plurality of process numbers in the process information;
calculating the sum of the occupation percentages of a plurality of communication resources to obtain a first occupation percentage; acquiring a first bandwidth threshold of the terminal equipment; calculating a first product of the first bandwidth threshold and the first occupancy percentage to obtain a first bandwidth occupancy value;
calculating a difference value between the first bandwidth threshold value and the first bandwidth occupation value to obtain a first bandwidth redundancy value; identifying a first download rate value based on the first bandwidth redundancy value; calculating a second product of the first download rate value and the rate limit reference value to obtain a second download rate value;
calculating a quotient value of the first resource occupation value and the second download rate value to obtain a first download time; accessing the firmware upgrading time matching table, and screening out first upgrading time matched with the first resource occupation value from a plurality of upgrading times; performing a time validation step based on the first download time and the first upgrade time.
6. The intelligent firmware batch upgrading method for the terminal equipment according to claim 5, wherein the method comprises the following steps:
the time confirmation step includes:
calculating the sum of the first download time and the first upgrading time to obtain total upgrading time; comparing the total upgrade time with the first time threshold;
if the total upgrading time is not greater than the first time threshold, executing a first upgrading step;
if the total upgrading time is larger than the first time threshold, comparing the first downloading time with the second time threshold; if the first upgrading time is not greater than the second time threshold, executing a second upgrading step; and if the first upgrading time is larger than the second time threshold, executing a third upgrading step.
7. The intelligent firmware batch upgrading method for the terminal equipment according to claim 6, wherein the method comprises the following steps:
the first upgrading step comprises: firstly, calling the universal interface to download the first external firmware upgrading file by adopting a third external regulation plug-in corresponding to the third external type based on the second download rate value, and then calling the universal interface to run the downloaded first external firmware upgrading file by adopting the third external regulation plug-in;
the second upgrading step comprises: dividing a cache space in a storage area of the terminal equipment; calling the third peripheral regulation and control plug-in through the universal interface to take the cache space as a target download path, and downloading the first peripheral firmware upgrade file according to the second download rate value; calling the third peripheral regulation and control plug-in to access the cache space through the general interface in the first time period, and calling the third peripheral regulation and control plug-in to operate the first peripheral firmware upgrade file in the cache space through the general interface;
the third upgrading step comprises: performing the first upgrade step during the second time period.
8. The intelligent firmware batch upgrading method for the terminal equipment according to claim 7, wherein the method comprises the following steps: the first file format includes an XML format and a JSON format.
9. The intelligent firmware batch upgrading system for the terminal equipment based on the intelligent firmware batch upgrading method for the terminal equipment as claimed in any one of claims 1 to 8, comprising: the system comprises an initial configuration module, a file acquisition module and an intelligent upgrading module;
the initial configuration module is used for configuring the plug-in container and identifying peripheral type information supported by the terminal equipment; the initial configuration module executes a universal configuration operation based on the plug-in container and the peripheral type information to obtain a universal interface and a peripheral universal regulation and control toolkit;
the file acquisition module is used for setting a first file format and acquiring peripheral updating demand information of the terminal equipment; the file acquisition module executes an upgrade file acquisition operation based on the universal interface, the peripheral universal regulation and control toolkit, the first file format and the peripheral update demand information to obtain a file to be upgraded;
the intelligent upgrading module is used for setting reference parameters, configuring a firmware upgrading time matching table and acquiring process information of the terminal equipment; the intelligent upgrading module executes selective upgrading operation based on the universal interface, the peripheral universal regulation and control toolkit, the file to be upgraded, the reference parameter, the firmware upgrading time matching table and the process information.
10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the intelligent firmware batch upgrade method for terminal equipment according to any one of claims 1 to 8.
CN202111574806.8A 2021-12-21 2021-12-21 Intelligent firmware batch upgrading method, system and medium for terminal equipment Pending CN114356367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111574806.8A CN114356367A (en) 2021-12-21 2021-12-21 Intelligent firmware batch upgrading method, system and medium for terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111574806.8A CN114356367A (en) 2021-12-21 2021-12-21 Intelligent firmware batch upgrading method, system and medium for terminal equipment

Publications (1)

Publication Number Publication Date
CN114356367A true CN114356367A (en) 2022-04-15

Family

ID=81102064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111574806.8A Pending CN114356367A (en) 2021-12-21 2021-12-21 Intelligent firmware batch upgrading method, system and medium for terminal equipment

Country Status (1)

Country Link
CN (1) CN114356367A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115712543A (en) * 2022-11-24 2023-02-24 杭州中电安科现代科技有限公司 Monitoring server
CN116360809A (en) * 2023-05-31 2023-06-30 深圳市微克科技有限公司 Remote firmware upgrading method, system and medium for embedded intelligent terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115712543A (en) * 2022-11-24 2023-02-24 杭州中电安科现代科技有限公司 Monitoring server
CN115712543B (en) * 2022-11-24 2024-04-26 杭州中电安科现代科技有限公司 Monitoring server
CN116360809A (en) * 2023-05-31 2023-06-30 深圳市微克科技有限公司 Remote firmware upgrading method, system and medium for embedded intelligent terminal
CN116360809B (en) * 2023-05-31 2023-08-22 深圳市微克科技有限公司 Remote firmware upgrading method, system and medium for embedded intelligent terminal

Similar Documents

Publication Publication Date Title
CN114356367A (en) Intelligent firmware batch upgrading method, system and medium for terminal equipment
CN110597531B (en) Distributed module upgrading method and device and storage medium
CN108228810B (en) Form linkage configuration method and system and form updating method and system
US8762977B2 (en) Mobile device software management method and apparatus
CN109068059A (en) A kind of method, mobile terminal and storage medium calling camera
CN111427596A (en) Software upgrading method and device and terminal equipment
CN111752581A (en) Distributed system upgrading method and device and computer system
CN109032623A (en) A kind of initial method and BIOS mirror image of BIOS mirror image
CN111694677A (en) Message queue management method, device, terminal and computer-readable storage medium
CN114237693A (en) Gray scale publishing method, equipment and storage medium
CN109885332A (en) Image quality chip software upgrade method, device, display equipment and storage medium
CN108255735A (en) Associated environment test method, electronic device and computer readable storage medium
EP3091435A1 (en) Resource management method and device for terminal system
US20230418585A1 (en) Method for generating update package of software
CN109032612A (en) Interface call method, device and the computer readable storage medium of mixed type application
CN112486579A (en) Self-service terminal device drive calling standardization method and related device
CN116795397A (en) Application management method, application management device, and computer-readable storage medium
US20190171431A1 (en) Method and device for creating image
CN109284128B (en) Method, device, storage medium and mobile terminal for converting data
CN110597536A (en) Software upgrading method, system and terminal equipment
CN110955455A (en) Terminal initialization configuration method and device, electronic equipment and storage medium
CN116775163B (en) Configuration file acquisition method and device, electronic equipment and storage medium
CN116483427A (en) Compatible management method, device and storage medium of electronic whiteboard conference system
CN113971096A (en) Data calling method and related product
CN115756594A (en) Dynamic cross-resource pool operator deployment method, system and storage medium

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