[go: up one dir, main page]

CN118708232A - A firmware version control method, device, computer equipment and storage medium - Google Patents

A firmware version control method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN118708232A
CN118708232A CN202410860612.1A CN202410860612A CN118708232A CN 118708232 A CN118708232 A CN 118708232A CN 202410860612 A CN202410860612 A CN 202410860612A CN 118708232 A CN118708232 A CN 118708232A
Authority
CN
China
Prior art keywords
firmware
list
target
product
firmware version
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
CN202410860612.1A
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.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent 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 Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202410860612.1A priority Critical patent/CN118708232A/en
Publication of CN118708232A publication Critical patent/CN118708232A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

本申请涉及一种固件版本管控方法、装置、计算机设备和存储介质。所述方法包括:将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,所述产品的第一固件清单包括与所述产品相匹配的所有适配固件版本;响应于目标订单上线,确认目标产品;基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单;执行所述第一刷新清单,完成所述目标订单的固件导入及刷新。采用本方法能够通过将固件版本库与产品匹配,创建和维护每款产品的第一固件清单,结合订单需求生成第一刷新清单并执行,实现了产品固件版本的统一管理。

The present application relates to a firmware version control method, device, computer equipment and storage medium. The method includes: matching each product with a pre-created firmware version library, creating a first firmware list for each product based on the matching results, wherein the first firmware list of the product includes all compatible firmware versions that match the product; in response to the target order going online, confirming the target product; determining a target firmware version set that matches the target order based on the first firmware list of the target product, and creating a first refresh list for the target order based on the target firmware version set; executing the first refresh list to complete the firmware import and refresh of the target order. This method can achieve unified management of product firmware versions by matching the firmware version library with the product, creating and maintaining the first firmware list for each product, generating and executing the first refresh list in combination with order requirements.

Description

一种固件版本管控方法、装置、计算机设备和存储介质A firmware version control method, device, computer equipment and storage medium

技术领域Technical Field

本申请涉及固件管理技术领域,特别是涉及一种固件版本管控方法、装置、计算机设备和存储介质。The present application relates to the field of firmware management technology, and in particular to a firmware version management method, apparatus, computer equipment and storage medium.

背景技术Background Art

服务器作为数据中心的中枢,承载着关键的运算与数据管理任务。随着技术迭代,固件升级成为了提升服务器性能、确保数据安全的重要途径,能够植入创新算法、优化代码,实现更高速的处理与更大的数据吞吐能力。As the hub of the data center, the server carries critical computing and data management tasks. With the iteration of technology, firmware upgrades have become an important way to improve server performance and ensure data security. They can implant innovative algorithms, optimize codes, and achieve faster processing and greater data throughput.

然而,伴随产品多样化发展及用户对高性能追求的提升,固件定制化需求日益增长,现有的固件版本管理方法中存在较多缺陷:1)订单固件种类较多,产线难以区分各固件版本之间的区别,有的固件版本属于通用版本,需要随通用版本升级,有的订单固件版本属于客户定制版本,需要客户验证后才可升级,固件版本替代关系不清晰;2)固件更新频繁,由于固件开发平台的成熟度不一样,为解决bug更新频率也会有差异,部分国产平台每个月都会更新一次固件版本,对生产排产干扰较大;3)每次固件版本更新时,都需要人为排查对订单影响,判断哪些订单需要更新刷新指令并维护,无法实现指令的自动升级;4)订单固件的来源比较分散,有客户需求、定制化指令、ECN发布等,没有产品统一的固件版本管理方法。However, with the development of product diversification and the improvement of users' pursuit of high performance, the demand for firmware customization is growing. There are many defects in the existing firmware version management methods: 1) There are many types of order firmware, and it is difficult for the production line to distinguish the differences between the firmware versions. Some firmware versions are general versions and need to be upgraded with the general version. Some order firmware versions are customer-customized versions and can only be upgraded after customer verification. The firmware version replacement relationship is unclear; 2) Firmware updates are frequent. Due to the different maturity of firmware development platforms, the update frequency to solve bugs will also vary. Some domestic platforms update the firmware version once a month, which has a great impact on production scheduling; 3) Every time the firmware version is updated, it is necessary to manually check the impact on the order to determine which orders need to update the refresh instructions and maintain them, and it is impossible to achieve automatic upgrade of the instructions; 4) The sources of order firmware are relatively scattered, including customer needs, customized instructions, ECN releases, etc. There is no unified firmware version management method for the product.

因此,如何提供一种能够统一发布路径的固件版本管控方法是亟需解决的问题。Therefore, how to provide a firmware version control method that can unify the release path is an urgent problem to be solved.

发明内容Summary of the invention

基于此,有必要针对上述技术问题,提供一种能够对不同类型的固件版本进行统一发布和管理的固件版本管控方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a firmware version control method, device, computer equipment and storage medium that can uniformly release and manage different types of firmware versions in order to address the above technical problems.

一方面,提供一种固件版本管控方法,所述方法包括:In one aspect, a firmware version control method is provided, the method comprising:

将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,所述产品的第一固件清单包括与所述产品相匹配的所有适配固件版本;Matching each product with a pre-created firmware version library respectively, and creating a first firmware list for each product according to the matching result, wherein the first firmware list of the product includes all compatible firmware versions matching the product;

响应于目标订单上线,根据所述目标订单确认目标产品;In response to the target order being online, confirming the target product according to the target order;

基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单;Determine a target firmware version set matching the target order based on the first firmware list of the target product, and create a first refresh list of the target order according to the target firmware version set;

执行所述第一刷新清单,完成所述目标订单的固件导入及刷新。Execute the first refresh list to complete the firmware import and refresh of the target order.

在其中一个实施例中,还包括:所述将各产品分别与预先创建的固件版本库进行匹配之前,还包括:In one embodiment, the process further includes: before matching each product with a pre-created firmware version library, the process further includes:

创建固件版本,并按照预设命名规则为所述固件版本命名;Creating a firmware version and naming the firmware version according to a preset naming rule;

通过工程变更通知发布所述固件版本,并记录固件版本信息,所述固件版本信息包括固件名称、固件类型、适用产品范围及版本信息;Release the firmware version through an engineering change notification and record the firmware version information, wherein the firmware version information includes the firmware name, firmware type, applicable product range and version information;

基于所述固件版本信息创建所述固件版本库。The firmware version library is created based on the firmware version information.

在其中一个实施例中,所述将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,包括:In one embodiment, matching each product with a pre-created firmware version library and creating a first firmware list for each product according to the matching result includes:

将所述产品与所述固件版本库中各固件版本的适用产品范围进行匹配;Matching the product with the applicable product range of each firmware version in the firmware version library;

从所述固件版本库中获取与所述产品相匹配的所有适配固件版本及其固件版本信息;Obtaining all compatible firmware versions and firmware version information matching the product from the firmware version library;

基于所述固件版本信息对所述适配固件版本进行分类排序,创建所述产品的第一固件清单。The adapted firmware versions are classified and sorted based on the firmware version information to create a first firmware list for the product.

在其中一个实施例中,所述方法还包括:In one embodiment, the method further comprises:

为所述产品创建固件编码,并建立所述固件编码与所述产品的第一固件清单的关联关系;Creating a firmware code for the product, and establishing an association relationship between the firmware code and a first firmware list of the product;

响应于发布新固件版本,判断所述产品与所述新固件版本的适用产品范围是否匹配;In response to the release of a new firmware version, determining whether the product matches the applicable product range of the new firmware version;

若是,则根据所述新固件版本及所述产品的固件编码对所述产品的第一固件清单进行更新。If so, the first firmware list of the product is updated according to the new firmware version and the firmware code of the product.

在其中一个实施例中,所述基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单,包括:In one embodiment, determining a target firmware version set matching the target order based on the first firmware list of the target product, and creating a first refresh list of the target order according to the target firmware version set includes:

根据所述目标产品的第一固件清单,确认与所述目标产品相匹配的所有适配固件版本,其中所述固件版本分别具有不同的固件类型;According to the first firmware list of the target product, confirm all adapted firmware versions matching the target product, wherein the firmware versions have different firmware types respectively;

根据所述目标订单的订单信息,从所述目标产品的第一固件清单中获取每一固件类型对应的目标固件版本;According to the order information of the target order, obtaining a target firmware version corresponding to each firmware type from the first firmware list of the target product;

根据各固件类型对应的目标固件版本创建所述目标订单的第一刷新清单。A first refresh list of the target order is created according to the target firmware versions corresponding to the firmware types.

在其中一个实施例中,所述根据所述目标订单的订单信息,从所述目标产品的第一固件清单中获取每一固件类型对应的目标固件版本,包括:In one embodiment, obtaining the target firmware version corresponding to each firmware type from the first firmware list of the target product according to the order information of the target order includes:

将所述订单信息与所述第一固件清单中目标固件类型对应的固件版本进行匹配,判断所述第一固件清单中是否存在与所述订单信息相匹配的客户定制固件版本;Matching the order information with the firmware version corresponding to the target firmware type in the first firmware list, and determining whether there is a customer customized firmware version matching the order information in the first firmware list;

若存在,则将所述客户定制固件版本作为所述目标固件类型对应的目标固件版本;If it exists, the customer customized firmware version is used as the target firmware version corresponding to the target firmware type;

若不存在,则获取所述目标固件类型对应的通用固件版本,并检查所述通用固件版本是否为唯一;If not, obtaining the universal firmware version corresponding to the target firmware type, and checking whether the universal firmware version is unique;

若不唯一,则获取所述通用固件版本的固件版本信息,并根据所述固件版本信息确认所述通用固件版本中的最新固件版本,将所述最新固件版本作为所述目标固件类型对应的目标固件版本。If it is not unique, the firmware version information of the general firmware version is obtained, and the latest firmware version in the general firmware version is confirmed according to the firmware version information, and the latest firmware version is used as the target firmware version corresponding to the target firmware type.

在其中一个实施例中,所述方法还包括:In one embodiment, the method further comprises:

响应于所述目标订单中首台产品上线,确认所述首台产品的第一固件清单及第一刷新清单;In response to the first product in the target order being launched, confirming a first firmware list and a first refresh list of the first product;

响应于所述目标订单中第N台产品上线,确认所述第N台产品的第二固件清单,其中N为大于等于2的正整数;In response to the Nth product in the target order being launched, confirming a second firmware list for the Nth product, where N is a positive integer greater than or equal to 2;

将所述第二固件清单与所述第一固件清单进行比较,得到第一比较结果;Compare the second firmware list with the first firmware list to obtain a first comparison result;

若所述第一比较结果为一致,则执行第一刷新清单,完成订单;If the first comparison result is consistent, the first refresh list is executed to complete the order;

若所述第一比较结果为不一致,则根据所述第二固件清单确定与所述第N台产品相匹配的目标固件版本集合,生成第二刷新清单;If the first comparison result is inconsistent, determining a target firmware version set matching the Nth product according to the second firmware list, and generating a second refresh list;

将所述第二刷新清单与所述第一刷新清单进行比较,得到第二比较结果;comparing the second refresh list with the first refresh list to obtain a second comparison result;

若所述第二比较结果为一致,则将所述第一固件清单更新为第二固件清单,并执行所述第一刷新清单,完成所述目标订单;If the second comparison result is consistent, updating the first firmware list to the second firmware list, and executing the first refresh list to complete the target order;

若所述第二比较结果为不一致,则根据所述第二比较结果判断所述第二刷新清单是否需要更新,得到判断结果;If the second comparison result is inconsistent, determining whether the second refresh list needs to be updated according to the second comparison result to obtain a determination result;

若所述判断结果为是,则将所述第一固件清单及第一刷新清单更新为第二固件清单及第二刷新清单,并执行所述第二刷新清单,完成所述目标订单。If the judgment result is yes, the first firmware list and the first refresh list are updated to the second firmware list and the second refresh list, and the second refresh list is executed to complete the target order.

另一方面,提供了一种固件版本管控装置,所述装置包括:On the other hand, a firmware version control device is provided, the device comprising:

第一创建模块,用于将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,所述产品的第一固件清单包括与所述产品相匹配的所有适配固件版本;A first creation module, used to match each product with a pre-created firmware version library, and create a first firmware list for each product according to the matching result, wherein the first firmware list of the product includes all compatible firmware versions matching the product;

确认模块,用于响应于目标订单上线,根据所述目标订单确认目标产品;A confirmation module, configured to respond to a target order being placed online and confirm a target product according to the target order;

第二创建模块,用于基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单;A second creation module is used to determine a target firmware version set matching the target order based on the first firmware list of the target product, and create a first refresh list of the target order according to the target firmware version set;

执行模块,用于执行所述第一刷新清单,完成所述目标订单的固件导入及刷新。An execution module is used to execute the first refresh list to complete the firmware import and refresh of the target order.

再一方面,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,所述产品的第一固件清单包括与所述产品相匹配的所有适配固件版本;Matching each product with a pre-created firmware version library respectively, and creating a first firmware list for each product according to the matching result, wherein the first firmware list of the product includes all compatible firmware versions matching the product;

响应于目标订单上线,根据所述目标订单确认目标产品;In response to the target order being online, confirming the target product according to the target order;

基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单;Determine a target firmware version set matching the target order based on the first firmware list of the target product, and create a first refresh list of the target order according to the target firmware version set;

执行所述第一刷新清单,完成所述目标订单的固件导入及刷新。Execute the first refresh list to complete the firmware import and refresh of the target order.

又一方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,所述产品的第一固件清单包括与所述产品相匹配的所有适配固件版本;Matching each product with a pre-created firmware version library respectively, and creating a first firmware list for each product according to the matching result, wherein the first firmware list of the product includes all compatible firmware versions matching the product;

响应于目标订单上线,根据所述目标订单确认目标产品;In response to the target order being online, confirming the target product according to the target order;

基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单;Determine a target firmware version set matching the target order based on the first firmware list of the target product, and create a first refresh list of the target order according to the target firmware version set;

执行所述第一刷新清单,完成所述目标订单的固件导入及刷新。Execute the first refresh list to complete the firmware import and refresh of the target order.

上述固件版本管控方法、装置、计算机设备和存储介质,将不同来源、不同类型的固件版本通过统一发布路径至固件版本库中,实现对固件版本的创建、发布、版本更新和应用的统一管理,进而通过将固件版本库与产品匹配,创建和维护每款产品的第一固件清单,结合订单需求生成第一刷新清单并执行,实现了产品固件版本的统一管理,提升了固件版本的管控能力和导入执行效率。The above-mentioned firmware version management method, device, computer equipment and storage medium send firmware versions of different sources and types to the firmware version library through a unified release path, thereby realizing unified management of firmware version creation, release, version update and application. Furthermore, by matching the firmware version library with the product, creating and maintaining the first firmware list for each product, and generating and executing the first refresh list in combination with order requirements, unified management of product firmware versions is realized, and the firmware version management capability and import execution efficiency are improved.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为一个实施例中固件版本管控方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a firmware version control method in one embodiment;

图2为一个实施例中创建固件版本库步骤的流程示意图;FIG2 is a schematic diagram of a flow chart of steps for creating a firmware version library in one embodiment;

图3为一个实施例中更新第一固件清单步骤的流程示意图;FIG3 is a schematic diagram of a flow chart of a step of updating a first firmware list in one embodiment;

图4为一个实施例中订单执行步骤的流程示意图;FIG4 is a schematic flow chart of order execution steps in one embodiment;

图5为一个实施例中固件版本管控装置的结构框图;FIG5 is a structural block diagram of a firmware version control device in one embodiment;

图6为一个实施例中计算机设备的内部结构图。FIG. 6 is a diagram showing the internal structure of a computer device in one embodiment.

具体实施方式DETAILED DESCRIPTION

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

服务器固件是运行在服务器硬件上的基础软件程序,每个服务器产品在出厂之前都需要刷新与之硬件相适配的固件版本才能维持服务器产品的正常功能运转。随着硬件产品的不断更新迭代,固件版本也需要持续更新才能维持产品的性能提升,其次项目端基于解决各类已知的bug、适配客户需求等原因,在项目各阶段也会持续的开发新的固件代码,这些固件版本更新包括但不限于BIOS、BMC、CPLD等固件类型,这些开发更新内容测试通过后合并代码进行工程化,产生成新的固件版本。Server firmware is a basic software program that runs on server hardware. Each server product needs to be refreshed with a firmware version that matches the hardware before it leaves the factory to maintain the normal functioning of the server product. With the continuous update and iteration of hardware products, the firmware version also needs to be continuously updated to maintain the performance improvement of the product. Secondly, the project side will continue to develop new firmware codes at various stages of the project based on solving various known bugs and adapting to customer needs. These firmware version updates include but are not limited to BIOS, BMC, CPLD and other firmware types. After these development and update content are tested, the code is merged for engineering to generate a new firmware version.

在一个实施例中,如图1-4所示,提供了一种固件版本管控方法,包括以下步骤:In one embodiment, as shown in FIGS. 1-4 , a firmware version control method is provided, including the following steps:

步骤S1,将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,所述产品的第一固件清单包括与所述产品相匹配的所有固件版本。Step S1, matching each product with a pre-created firmware version library respectively, and creating a first firmware list for each product according to the matching result, wherein the first firmware list for the product includes all firmware versions matching the product.

在一可选的实施方式中,所述将各产品分别与预先创建的固件版本库进行匹配之前,还包括:创建固件版本,并按照预设命名规则为所述固件版本命名;通过工程变更通知发布所述固件版本,并记录固件版本信息,所述固件版本信息包括固件名称、固件类型、适用产品范围及版本信息;基于所述固件版本信息创建所述固件版本库。In an optional embodiment, before matching each product with a pre-created firmware version library, it also includes: creating a firmware version and naming the firmware version according to a preset naming rule; publishing the firmware version through an engineering change notification, and recording firmware version information, the firmware version information including firmware name, firmware type, applicable product range and version information; creating the firmware version library based on the firmware version information.

示例性地,当前固件版本的命名规则及格式为AAAA.BB.CC.DD.XXXXX.date,如表1所示。其中,AAAA表示固件类型,如BIOS、BMC、CPLD等;BB表示发布类型,以数字表示,例如01代表研发测试版本,02代表板卡厂离线烧录版本,03代表量产订单出货版本等;CC.DD代表固件的版本信息,CC表示固件大版本,DD表示固件小版本,均通过数字依次递增来表示,每个固件版本的迭代都是在前一个固件版本的基础上开发完成,在解决版本固有bug而更新时,只升级小版本,大版本维持不变,而如果是由新需求、新功能加入而更新固件版本时,则需要升级大版本,当大版本升级时,小版本则重新重置为01;XXXXX代表版本类型,以英文单词或字母缩写命名,如standard代表通用版本,当订单无客户指定需求时,默认刷新该范围的固件版本,其它如aa\bb\cc等代表对应的客户定制固件版本,如订单客户信息包含定制客户代码,则优先刷新客户定制固件版本;date代表固件版本的生成日期,以年.月.日的格式表示。Exemplarily, the naming rule and format of the current firmware version is AAAA.BB.CC.DD.XXXXX.date, as shown in Table 1. Among them, AAAA represents the firmware type, such as BIOS, BMC, CPLD, etc.; BB represents the release type, which is represented by numbers, for example, 01 represents the R&D test version, 02 represents the offline burning version of the board factory, and 03 represents the mass production order shipping version, etc.; CC.DD represents the firmware version information, CC represents the major version of the firmware, and DD represents the minor version of the firmware, both of which are represented by numbers in ascending order. Each iteration of the firmware version is developed on the basis of the previous firmware version. When updating to solve the inherent bugs of the version, only the minor version is upgraded, and the major version remains unchanged. If the firmware version is updated due to new requirements or new functions, the major version needs to be upgraded. When the major version is upgraded, the minor version is reset to 01; XXXXX represents the version type, named with English words or abbreviations, such as standard represents the general version. When there is no customer-specified requirement in the order, the firmware version in this range is refreshed by default. Others such as aa\bb\cc represent the corresponding customer-customized firmware versions. If the order customer information contains customized customer codes, the customer-customized firmware version is refreshed first; date represents the generation date of the firmware version, expressed in the format of year.month.day.

表1Table 1

每个固件版本在生效使用前,都需要通过工程变更流程评审发布,ECN(Engineering Change Note,工程变更通知)发布后,将不同机型、不同类型的固件版本信息进行集中化管理,记录至PLM系统(Product Lifecycle Management,产品生命周期管理系统),汇总形成ECN固件版本库,作为通用知识库用于固件版本信息的记录、调用、查询的数据来源,实现固件变更记录的统一管理。其中,固件版本库中的固件版本信息包括ECN编号、适用产品范围、版本信息、发布日期、链接固件刷新文件、导入方式等内容。Each firmware version needs to be reviewed and released through the engineering change process before it can be used. After the ECN (Engineering Change Note) is released, the firmware version information of different models and types will be centrally managed and recorded in the PLM system (Product Lifecycle Management). The ECN firmware version library is aggregated to form a data source for recording, calling, and querying firmware version information as a general knowledge base, so as to achieve unified management of firmware change records. Among them, the firmware version information in the firmware version library includes ECN number, applicable product range, version information, release date, linked firmware refresh file, import method, etc.

上述固件版本管控方法中,通过定义固件版本的命名规则,可以制定固件版本的管理规则,对固件版本的发布范围、适用产品范围、替代关系等进行管理和更新。通过将不同来源、不同类型的固件版本统一发布路径记录至固件版本库,可得到一个储存所有固件版本信息的载体,固件版本的首次发布和更新都可以在固件版本库内检索查询,并且打通固件版本库接口也可以为下游系统获取最新固件版本提供相关渠道。In the above firmware version control method, by defining the naming rules of the firmware version, the management rules of the firmware version can be formulated to manage and update the release scope, applicable product scope, substitution relationship, etc. of the firmware version. By recording the unified release path of firmware versions of different sources and types to the firmware version library, a carrier for storing all firmware version information can be obtained. The first release and update of the firmware version can be retrieved and queried in the firmware version library, and opening the firmware version library interface can also provide relevant channels for downstream systems to obtain the latest firmware version.

对服务器产品来说,一个机型会有十几种类型的固件,有的固件版本更新比较频繁,会因外部或内部又会区分客户定制版本及通用版本,每种固件类型的固件版本在订单执行过程中都可能会面临升级更新的场景,如果都按照ECN直接通知的导入方式部署维护,产线需要对接大量的ECN的输入,不仅效率低下,还会影响订单的生产。因此本实施例中建立每个机型产品的固件清单,由固件清单统一管理固件的导入和实施规则,订单在生产时只按照固件清单执行。For server products, a model may have more than a dozen types of firmware. Some firmware versions are updated frequently, and they may be divided into customer-customized versions and general versions due to external or internal reasons. Each firmware type may face upgrade and update scenarios during the order execution process. If they are all deployed and maintained in the import mode of direct notification by ECN, the production line needs to connect to a large number of ECN inputs, which is not only inefficient, but also affects the production of orders. Therefore, in this embodiment, a firmware list for each model product is established, and the firmware list uniformly manages the import and implementation rules of the firmware. Orders are only executed according to the firmware list during production.

在一可选的实施方式中,所述将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,包括:将所述产品分别与所述固件版本库中各固件版本的适用产品范围进行匹配;从所述固件版本库中获取与所述产品相匹配的所有固件版本及其固件版本信息;基于所述固件版本信息对所述固件版本进行分类排序,创建所述产品的第一固件清单。In an optional implementation, matching each product with a pre-created firmware version library, and creating a first firmware list for each product based on the matching results, includes: matching the product with an applicable product range of each firmware version in the firmware version library; obtaining all firmware versions and firmware version information that match the product from the firmware version library; and classifying and sorting the firmware versions based on the firmware version information to create a first firmware list for the product.

具体地,在创建固件版本时定义适用产品范围,明确范围后从固件版本库中调取适配该产品的所有固件版本信息,然后依次按照固件类型、发布类型、版本信息等规则对获得的固件版本信息进行分类排序,写入固件清单中,形成初版数据。在目标产品的固件清单发布时,记录系统发布时间作为固件清单版本信息,当后续有新的固件版本发布时,固件清单同步更新并生成新的版本信息,并将该工程变更通知的导入方式记录为此固件版本的导入方式。Specifically, when creating a firmware version, define the applicable product range. After the range is clarified, retrieve all firmware version information that is adapted to the product from the firmware version library. Then, sort and categorize the obtained firmware version information according to the rules such as firmware type, release type, and version information, and write it into the firmware list to form the initial version data. When the firmware list of the target product is released, record the system release time as the firmware list version information. When a new firmware version is released later, the firmware list is updated synchronously and generates new version information, and the import method of the engineering change notification is recorded as the import method of this firmware version.

上述固件版本管控方法中,通过为每个产品维护一个固件清单,将该产品机型所使用的所有会需要在线导入、刷新的固件类型维护至固件清单内,对固件版本的记录、传递、调用和更新进行统一管理,可以实现该产品固件版本信息的快速准确查询,降低ECN对订单生产的影响。In the above firmware version control method, by maintaining a firmware list for each product, all firmware types used by the product model that need to be imported and refreshed online are maintained in the firmware list, and the recording, transmission, calling and updating of firmware versions are uniformly managed, so that the firmware version information of the product can be queried quickly and accurately, reducing the impact of ECN on order production.

在一可选的实施方式中,所述方法还包括:为所述产品创建固件编码,并建立所述固件编码与所述产品的第一固件清单的关联关系;响应于发布新固件版本,判断所述产品与所述新固件版本的适用产品范围是否匹配;若是,则根据所述新固件版本及所述产品的固件编码对所述产品的第一固件清单进行更新。In an optional embodiment, the method further includes: creating a firmware code for the product, and establishing an association between the firmware code and a first firmware list of the product; in response to the release of a new firmware version, determining whether the product matches the applicable product range of the new firmware version; if so, updating the first firmware list of the product according to the new firmware version and the firmware code of the product.

具体地,在PLM系统内创建固件编码作为第一固件清单传递的载体,通过将固件编码作为虚拟部件添加至物料清单内的方式,完成第一固件清单由PLM系统到订单系统的数据传递。第一固件清单随物料清单发布至ERP及MES系统内,使得每个订单在执行环节都能及时读取到该产品机型的第一固件清单信息。Specifically, a firmware code is created in the PLM system as a carrier for the first firmware list. The firmware code is added to the bill of materials as a virtual component to complete the data transfer of the first firmware list from the PLM system to the order system. The first firmware list is published to the ERP and MES systems along with the bill of materials, so that each order can read the first firmware list information of the product model in a timely manner during the execution phase.

示例性地,以NFxxx产品为例,首先为NFxxx申请固件编码A0*01,在该固件编码下创建固件清单,初始版本号为A01,固件清单有后附history、BIOS、BMC、cpld等相关界面,其中history页面记录固件清单变更记录信息,BIOS、BMC、cpld页面记录对应固件类型的固件版本信息,随固件版本库更新。首版固件清单创建时随固件编码发布,发布后将固件编码添加至NFxxx产品BOM物料清单随订单流转,当有新固件版本需要发布时,发布人发起ECN并选择固件版本的适用范围,当固件版本的适用范围选择为NFxxx时,系统则自动将A0*01识别为此变更受影响对象,触发A0*01版本更新、固件发布后固件清单将此固件版本信息记录至清单内并进行固件版本升级。For example, taking the NFxxx product as an example, first apply for the firmware code A0*01 for NFxxx, create a firmware list under the firmware code, the initial version number is A01, and the firmware list has the history, BIOS, BMC, cpld and other related interfaces attached, where the history page records the firmware list change record information, and the BIOS, BMC, and cpld pages record the firmware version information of the corresponding firmware type, which is updated with the firmware version library. When the first version of the firmware list is created, it is released with the firmware code. After the release, the firmware code is added to the NFxxx product BOM material list and circulated with the order. When a new firmware version needs to be released, the publisher initiates ECN and selects the scope of application of the firmware version. When the scope of application of the firmware version is selected as NFxxx, the system automatically identifies A0*01 as the affected object of this change, triggering the A0*01 version update. After the firmware is released, the firmware list records this firmware version information in the list and performs a firmware version upgrade.

上述固件版本管控方法中,通过打通固件版本库与固件清单之间的数据接口,使固件清单能实时与固件版本库进行数据的读取和更新,当有新的固件版本发布更新时,更新内容可以通过固件版本发布流程—固件版本库—固件清单—订单执行系统这一条数据链及时获取固件版本的更新信息。In the above firmware version control method, by opening up the data interface between the firmware version library and the firmware list, the firmware list can read and update data with the firmware version library in real time. When a new firmware version is released and updated, the update content can obtain the firmware version update information in time through the data chain of firmware version release process - firmware version library - firmware list - order execution system.

步骤S2,响应于目标订单上线,根据所述目标订单确认目标产品。Step S2, in response to the target order being online, confirming the target product according to the target order.

具体地,订单上线时,生产订单执行系统先导入订单信息、BOM(Bill ofMaterial,物料清单)信息,其中订单信息包括客户信息和订单要求等,例如需求的产品机型以及对应的固件类型版本信息等。Specifically, when an order goes online, the production order execution system first imports order information and BOM (Bill of Material) information, where the order information includes customer information and order requirements, such as the required product model and the corresponding firmware type and version information.

步骤S3,基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单。Step S3: determining a target firmware version set matching the target order based on the first firmware list of the target product, and creating a first refresh list of the target order according to the target firmware version set.

应说明的是,订单执行过程中,除了需要按照工艺要求组装产品的硬件部分之外,还需要刷新相适配的最新固件版本以达到产品的性能需求。当前产品的各类固件版本来源有多方面,有的随板卡生产打板时预烧录在板卡芯片,有的随工程变更通知发布后部署执行的通用刷新指令,还有随订单流转部署的定制化刷新指令。通过匹配固件版本库创建的第一固件清单相当于完整的产品固件包,其包含适配所有订单的固件版本,因此需要进一步与订单要求做适配,形成刷新清单。It should be noted that during the order execution process, in addition to assembling the hardware part of the product according to the process requirements, it is also necessary to refresh the latest firmware version to meet the performance requirements of the product. The various firmware versions of current products come from many sources. Some are pre-burned into the board chip when the board is produced, some are general refresh instructions deployed and executed after the engineering change notice is issued, and there are customized refresh instructions deployed with the order flow. The first firmware list created by matching the firmware version library is equivalent to a complete product firmware package, which contains firmware versions that are suitable for all orders, so it needs to be further adapted to the order requirements to form a refresh list.

适配过程中主要包括如下两种场景,一个是当订单执行过程中,第一固件清单中的固件版本没有发生变更时,则将首次解析得到的第一刷新清单作为目标订单的刷新内容,执行至订单结束,如果订单执行过程中有固件版本发生变更,则更新第一固件清单,并按照更新后的内容重新解析刷新清单。The adaptation process mainly includes the following two scenarios. One is that when the firmware version in the first firmware list has not changed during the execution of an order, the first refresh list obtained by the first parsing will be used as the refresh content of the target order and executed until the end of the order. If the firmware version changes during the execution of the order, the first firmware list will be updated and the refresh list will be re-parsed according to the updated content.

在一可选的实施方式中,所述基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单,包括:根据所述目标产品的第一固件清单,确认与所述目标产品相匹配的所有适配固件版本,其中所述适配固件版本分别具有不同的固件类型;根据所述目标订单的订单信息,从所述目标产品的第一固件清单中获取每一固件类型对应的目标固件版本;根据各固件类型对应的目标固件版本创建所述目标订单的第一刷新清单。In an optional embodiment, determining a target firmware version set matching the target order based on the first firmware list of the target product, and creating a first refresh list of the target order based on the target firmware version set, includes: confirming all adapted firmware versions matching the target product based on the first firmware list of the target product, wherein the adapted firmware versions respectively have different firmware types; obtaining a target firmware version corresponding to each firmware type from the first firmware list of the target product based on order information of the target order; and creating a first refresh list of the target order based on the target firmware versions corresponding to each firmware type.

具体地,通过固件编码提取目标产品的第一固件清单信息,生产订单执行系统根据客户、订单、产品需求解析第一固件清单,提取出最适配此订单需求的固件搭配方案,生成目标产品的第一刷新清单。Specifically, the first firmware list information of the target product is extracted through firmware coding, and the production order execution system parses the first firmware list according to customer, order, and product requirements, extracts the firmware matching solution that best meets the order requirements, and generates a first refresh list of the target product.

在一可选的实施方式中,所述根据所述目标订单的订单信息,从所述目标产品的第一固件清单中获取每一固件类型对应的目标固件版本,包括:将所述订单信息与所述第一固件清单中目标固件类型对应的固件版本进行匹配,判断所述第一固件清单中是否存在与所述订单信息相匹配的客户定制固件版本;若存在,则将所述客户定制固件版本作为所述目标固件类型对应的目标固件版本;若不存在,则获取所述目标固件类型的通用固件版本,并检查所述通用固件版本是否为唯一;若不唯一,则获取所述通用固件版本的固件版本信息,并根据所述固件版本信息确认所述通用固件版本中的最新固件版本,将所述最新固件版本作为所述目标固件类型对应的目标固件版本。In an optional embodiment, the target firmware version corresponding to each firmware type is obtained from the first firmware list of the target product based on the order information of the target order, including: matching the order information with the firmware version corresponding to the target firmware type in the first firmware list, and determining whether there is a customer-customized firmware version matching the order information in the first firmware list; if so, using the customer-customized firmware version as the target firmware version corresponding to the target firmware type; if not, obtaining a general firmware version of the target firmware type, and checking whether the general firmware version is unique; if not, obtaining firmware version information of the general firmware version, and confirming the latest firmware version in the general firmware version based on the firmware version information, and using the latest firmware version as the target firmware version corresponding to the target firmware type.

示例性地,以BIOS固件类型为例,通过读取第一固件清单,获得所有适用于目标产品的BIOS版本,其固件版本名称包括BIOS.BB.CC.DD.XXXXX.date1-10。读取订单信息中的客户信息如AL,并与固件版本名称中的版本类型XXXXX字段进行匹配,如BIOS的固件版本中存在AL版本,则保留该版本;如没有则保留standard版本数据,此时检查数据行是否唯一,如不唯一,则进一步校验固件版本名称中的版本信息CC.DD字段,先按数值大小对CC字段排序,保留最大数值并检查数据行是否唯一,如不唯一,则继续按数值大小对DD字段进行排序取舍,保留数值最大的固件版本,作为BIOS对应的最新固件版本。同理,执行BMC、CPLD、FRU等固件类型的固件版本筛查,直到确定所有固件类型对应的唯一固件版本,组成目标订单的第一刷新清单。按照第一刷新清单执行目标订单的刷新,并将第一固件订单和第一刷新清单的信息记录到系统内。Exemplarily, taking the BIOS firmware type as an example, by reading the first firmware list, all BIOS versions applicable to the target product are obtained, and the firmware version names include BIOS.BB.CC.DD.XXXXX.date1-10. Read the customer information in the order information, such as AL, and match it with the version type XXXXX field in the firmware version name. If there is an AL version in the firmware version of the BIOS, then keep the version; if not, keep the standard version data. At this time, check whether the data row is unique. If not, further check the version information CC.DD field in the firmware version name, first sort the CC field by numerical value, keep the maximum value and check whether the data row is unique. If not, continue to sort and select the DD field by numerical value, and keep the firmware version with the largest value as the latest firmware version corresponding to the BIOS. Similarly, perform firmware version screening of firmware types such as BMC, CPLD, and FRU until the unique firmware version corresponding to all firmware types is determined to form the first refresh list of the target order. Perform the refresh of the target order according to the first refresh list, and record the information of the first firmware order and the first refresh list into the system.

应理解的是,确认目标固件版本的方法并不局限于通过版本类型和版本信息来筛查,还可以根据其他特定规则或客户需求灵活调整,例如,可以考虑固件版本的兼容性报告、稳定性指标或是特定功能的有无来进一步筛选最合适的固件版本。在一些情况下,可能还需结合产品的预期应用场景、已知问题的修复记录或性能优化的需求,进行综合评估,以确定最终的目标固件版本。It should be understood that the method of confirming the target firmware version is not limited to screening by version type and version information, but can also be flexibly adjusted according to other specific rules or customer needs. For example, the compatibility report of the firmware version, stability indicators, or the presence or absence of specific functions can be considered to further screen the most suitable firmware version. In some cases, it may be necessary to conduct a comprehensive evaluation based on the expected application scenarios of the product, the repair records of known problems, or the needs of performance optimization to determine the final target firmware version.

具体地,可以根据预设策略确定第一固件清单中每一适配固件版本的优先级,根据优先级从所有适配固件版本中确定目标固件版本,所述预设策略包括固件版本的版本信息、兼容性信息或稳定性信息中的至少一种;Specifically, the priority of each adapted firmware version in the first firmware list may be determined according to a preset strategy, and the target firmware version may be determined from all adapted firmware versions according to the priority, wherein the preset strategy includes at least one of version information, compatibility information, or stability information of the firmware version;

获取所述版本信息对应的第一分值、兼容性信息对应的第二分值以及稳定性信息对应的第三分值;Obtaining a first score corresponding to the version information, a second score corresponding to the compatibility information, and a third score corresponding to the stability information;

根据所述第一分值的大小排序确定每一适配固件版本的优先级;Determine the priority of each adapted firmware version according to the order of the first scores;

或,根据所述第二分值的大小排序确定每一适配固件版本的优先级;Or, determining the priority of each adapted firmware version according to the order of the second scores;

或,根据所述第三分值的大小排序确定每一适配固件版本的优先级;Or, determining the priority of each adapted firmware version according to the size of the third score;

或,根据第一分值、第二分值、第三分值的加权求和确定优先级总值,根据所述优先级总值的大小排序确定每一固件版本的优先级。Alternatively, a total priority value is determined according to a weighted sum of the first score, the second score, and the third score, and the priority of each firmware version is determined according to the order of the total priority value.

上述固件版本管控方法中,通过固件版本的命名规则和发布规则,结合订单、客户需求来自动识别判断最适配订单需求的固件版本,进而指导生产系统自动执行固件版本刷新。In the above firmware version control method, the naming rules and release rules of the firmware version are combined with orders and customer needs to automatically identify and determine the firmware version that best meets the order requirements, thereby guiding the production system to automatically execute firmware version refresh.

步骤S4,执行所述第一刷新清单,完成所述目标订单的固件导入及刷新。Step S4, executing the first refresh list to complete the firmware import and refresh of the target order.

在一可选的实施方式中,响应于所述目标订单中首台目标产品上线,确认所述首台目标产品的第一固件清单及第一刷新清单;响应于所述目标订单中第N台目标产品上线,确认所述第N台目标产品的第二固件清单,其中N为大于等于2的正整数;将所述第二固件清单与所述第一固件清单进行比较,得到第一比较结果;若所述第一比较结果为一致,则执行第一刷新清单,完成订单;若所述第一比较结果为不一致,则根据所述第二固件订单确定与所述第N台目标产品相匹配的目标固件版本集合,并生成第二刷新清单;将所述第二刷新清单与所述第一刷新清单进行比较,得到第二比较结果;若所述第二比较结果为一致,则将所述第一固件清单更新为第二固件清单,并执行所述第一刷新清单,完成所述目标订单;若若所述第二比较结果为不一致,则根据所述第二比较结果判断所述第二刷新清单是否需要更新,得到判断结果;若所述判断结果为是,则将所述第一固件清单及第一刷新清单更新为第二固件清单及第二刷新清单,并执行所述第二刷新清单,完成所述目标订单。In an optional implementation, in response to the first target product in the target order being launched, the first firmware list and the first refresh list of the first target product are confirmed; in response to the Nth target product in the target order being launched, the second firmware list of the Nth target product is confirmed, where N is a positive integer greater than or equal to 2; the second firmware list is compared with the first firmware list to obtain a first comparison result; if the first comparison result is consistent, the first refresh list is executed to complete the order; if the first comparison result is inconsistent, the target firmware version set matching the Nth target product is determined according to the second firmware order, and a second refresh list is generated; the second refresh list is compared with the first refresh list to obtain a second comparison result; if the second comparison result is consistent, the first firmware list is updated to the second firmware list, and the first refresh list is executed to complete the target order; if the second comparison result is inconsistent, whether the second refresh list needs to be updated is determined according to the second comparison result to obtain a judgment result; if the judgment result is yes, the first firmware list and the first refresh list are updated to the second firmware list and the second refresh list, and the second refresh list is executed to complete the target order.

为了确保目标订单执行的一致性和准确性,每台产品上线时,系统会自动验证当前固件清单和首台产品的第一固件清单内容是否一致,如果一致,则继续按照原定的第一刷新清单执行订单;如果不一致,则视为有固件版本更新,此时系统会根据上述方案步骤重新生成第二刷新清单,并与第一刷新清单进行对比是否存在差异项,如有差异,则需要根据差异项进行判断是否需要更新至第二刷新清单,并执行相应的固件刷新,以确保订单内产品固件版本的统一和最新。如果在线订单无需处理,则默认按第一刷新清单执行完成订单,如果在线订单需要刷新,则参照变更的导入方式,将订单的第一固件清单和第一刷新清单都更新为第二固件清单和第二刷新清单,执行刷新直至订单结束。In order to ensure the consistency and accuracy of the target order execution, when each product goes online, the system will automatically verify whether the current firmware list and the first firmware list of the first product are consistent. If they are consistent, the order will continue to be executed according to the original first refresh list; if they are inconsistent, it will be deemed that there is a firmware version update. At this time, the system will regenerate the second refresh list according to the above solution steps, and compare it with the first refresh list to see if there are any differences. If there are differences, it is necessary to determine whether it needs to be updated to the second refresh list based on the differences, and perform the corresponding firmware refresh to ensure the uniformity and latest firmware versions of the products in the order. If the online order does not need to be processed, the order will be completed by default according to the first refresh list. If the online order needs to be refreshed, refer to the import method of the change, update the first firmware list and the first refresh list of the order to the second firmware list and the second refresh list, and perform the refresh until the order is completed.

上述固件版本管控方法中,对于在线订单,系统具备动态适应性,能够根据订单状态即时调整刷新策略,若果客户同意或需要刷新至最新版本的固件,系统可以即时更新订单的刷新清单,并执行刷新操作,从而保证即使在订单执行过程中也能快速响应固件版本更新,提高了生产连续性和效率,最大限度地减少对生产进度的影响。In the above firmware version control method, for online orders, the system has dynamic adaptability and can adjust the refresh strategy in real time according to the order status. If the customer agrees or needs to refresh to the latest version of the firmware, the system can instantly update the refresh list of the order and perform the refresh operation, thereby ensuring that the firmware version update can be responded to quickly even during the order execution process, thereby improving production continuity and efficiency and minimizing the impact on production progress.

应该理解的是,虽然图1-4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图1-4中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowcharts of Figures 1-4 are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in Figures 1-4 may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

在一个实施例中,如图5所示,提供了一种固件版本管控装置,包括:第一创建模块、确认模块、第二创建模块和执行模块,其中:In one embodiment, as shown in FIG5 , a firmware version control device is provided, including: a first creation module, a confirmation module, a second creation module and an execution module, wherein:

第一创建模块,用于将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,所述产品的第一固件清单包括与所述产品相匹配的所有适配固件版本;A first creation module, used to match each product with a pre-created firmware version library, and create a first firmware list for each product according to the matching result, wherein the first firmware list of the product includes all compatible firmware versions matching the product;

确认模块,用于响应于目标订单上线,根据所述目标订单确认目标产品;A confirmation module, configured to respond to a target order being placed online and confirm a target product according to the target order;

第二创建模块,用于基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单;A second creation module is used to determine a target firmware version set matching the target order based on the first firmware list of the target product, and create a first refresh list of the target order according to the target firmware version set;

执行模块,用于执行所述第一刷新清单,完成所述目标订单的固件导入及刷新。An execution module is used to execute the first refresh list to complete the firmware import and refresh of the target order.

在一个实施例中,所述第一创建模块还用于创建固件版本,并按照预设命名规则为所述固件版本命名;通过工程变更通知发布所述固件版本,并记录固件版本信息,所述固件版本信息包括固件名称、固件类型、适用产品范围及版本信息;基于所述固件版本信息创建所述固件版本库。In one embodiment, the first creation module is also used to create a firmware version and name the firmware version according to a preset naming rule; publish the firmware version through an engineering change notification and record firmware version information, the firmware version information including firmware name, firmware type, applicable product range and version information; create the firmware version library based on the firmware version information.

在一个实施例中,所述第一创建模块还用于将所述产品与所述固件版本库中各固件版本的适用产品范围进行匹配;从所述固件版本库中获取与所述产品相匹配的所有适配固件版本及其固件版本信息;基于所述固件版本信息对所述适配固件版本进行分类排序,创建所述产品的第一固件清单。In one embodiment, the first creation module is also used to match the product with the applicable product range of each firmware version in the firmware version library; obtain all adapted firmware versions and their firmware version information matching the product from the firmware version library; classify and sort the adapted firmware versions based on the firmware version information, and create a first firmware list for the product.

在一个实施例中,所述第一创建模块还用于为所述产品创建固件编码,并建立所述固件编码与所述产品的第一固件清单的关联关系;响应于发布新固件版本,判断所述产品与所述新固件版本的适用产品范围是否匹配;若是,则根据所述新固件版本及所述产品的固件编码对所述产品的第一固件清单进行更新。In one embodiment, the first creation module is further used to create a firmware code for the product and establish an association between the firmware code and a first firmware list of the product; in response to the release of a new firmware version, determine whether the product matches the applicable product range of the new firmware version; if so, update the first firmware list of the product according to the new firmware version and the firmware code of the product.

在一个实施例中,所述第二创建模块还用于根据所述目标产品的第一固件清单,确认与所述目标产品相匹配的所有适配固件版本,其中所述固件版本分别具有不同的固件类型;根据所述目标订单的订单信息,从所述目标产品的第一固件清单中获取每一固件类型对应的目标固件版本;根据各固件类型对应的目标固件版本创建所述目标订单的第一刷新清单。In one embodiment, the second creation module is further used to confirm all compatible firmware versions matching the target product according to the first firmware list of the target product, wherein the firmware versions have different firmware types respectively; obtain the target firmware version corresponding to each firmware type from the first firmware list of the target product according to the order information of the target order; and create the first refresh list of the target order according to the target firmware version corresponding to each firmware type.

在一个实施例中,所述第二创建模块还用于将所述订单信息与所述第一固件清单中目标固件类型对应的固件版本进行匹配,判断所述第一固件清单中是否存在与所述订单信息相匹配的客户定制固件版本;若存在,则将所述客户定制固件版本作为所述目标固件类型对应的目标固件版本;若不存在,则获取所述目标固件类型对应的通用固件版本,并检查所述通用固件版本是否为唯一;若不唯一,则获取所述通用固件版本的固件版本信息,并根据所述固件版本信息确认所述通用固件版本中的最新固件版本,将所述最新固件版本作为所述目标固件类型对应的目标固件版本。In one embodiment, the second creation module is also used to match the order information with the firmware version corresponding to the target firmware type in the first firmware list, and determine whether there is a customer-customized firmware version matching the order information in the first firmware list; if so, the customer-customized firmware version is used as the target firmware version corresponding to the target firmware type; if not, the general firmware version corresponding to the target firmware type is obtained, and it is checked whether the general firmware version is unique; if not, the firmware version information of the general firmware version is obtained, and the latest firmware version in the general firmware version is confirmed according to the firmware version information, and the latest firmware version is used as the target firmware version corresponding to the target firmware type.

在一个实施例中,所述执行模块还用于响应于所述目标订单中首台产品上线,确认所述首台产品的第一固件清单及第一刷新清单;响应于所述目标订单中第N台产品上线,确认所述第N台产品的第二固件清单,其中N为大于等于2的正整数;将所述第二固件清单与所述第一固件清单进行比较,得到第一比较结果;若所述第一比较结果为一致,则执行第一刷新清单,完成订单;若所述第一比较结果为不一致,则根据所述第二固件清单确定与所述第N台产品相匹配的目标固件版本集合,生成第二刷新清单;将所述第二刷新清单与所述第一刷新清单进行比较,得到第二比较结果;若所述第二比较结果为一致,则将所述第一固件清单更新为第二固件清单,并执行所述第一刷新清单,完成所述目标订单;若所述第二比较结果为不一致,则根据所述第二比较结果判断所述第二刷新清单是否需要更新,得到判断结果;若所述判断结果为是,则将所述第一固件清单及第一刷新清单更新为第二固件清单及第二刷新清单,并执行所述第二刷新清单,完成所述目标订单。In one embodiment, the execution module is further used for confirming the first firmware list and the first refresh list of the first product in response to the first product in the target order being launched; confirming the second firmware list of the Nth product in response to the Nth product in the target order being launched, where N is a positive integer greater than or equal to 2; comparing the second firmware list with the first firmware list to obtain a first comparison result; if the first comparison result is consistent, executing the first refresh list to complete the order; if the first comparison result is inconsistent, determining the target firmware version set matching the Nth product according to the second firmware list, and generating a second refresh list; comparing the second refresh list with the first refresh list to obtain a second comparison result; if the second comparison result is consistent, updating the first firmware list to the second firmware list, and executing the first refresh list to complete the target order; if the second comparison result is inconsistent, judging whether the second refresh list needs to be updated according to the second comparison result to obtain a judgment result; if the judgment result is yes, updating the first firmware list and the first refresh list to the second firmware list and the second refresh list, and executing the second refresh list to complete the target order.

关于固件版本管控装置的具体限定可以参见上文中对于固件版本管控方法的限定,在此不再赘述。上述固件版本管控装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the firmware version control device, please refer to the definition of the firmware version control method above, which will not be repeated here. Each module in the above-mentioned firmware version control device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图6所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储固件版本信息数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种固件版本管控方法。In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG6. The computer device includes a processor, a memory, a network interface, and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store firmware version information data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a firmware version control method is implemented.

本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 6 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,所述产品的第一固件清单包括与所述产品相匹配的所有适配固件版本;Matching each product with a pre-created firmware version library respectively, and creating a first firmware list for each product according to the matching result, wherein the first firmware list of the product includes all compatible firmware versions matching the product;

响应于目标订单上线,根据所述目标订单确认目标产品;In response to the target order being online, confirming the target product according to the target order;

基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单;Determine a target firmware version set matching the target order based on the first firmware list of the target product, and create a first refresh list of the target order according to the target firmware version set;

执行所述第一刷新清单,完成所述目标订单的固件导入及刷新。Execute the first refresh list to complete the firmware import and refresh of the target order.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:创建固件版本,并按照预设命名规则为所述固件版本命名;通过工程变更通知发布所述固件版本,并记录固件版本信息,所述固件版本信息包括固件名称、固件类型、适用产品范围及版本信息;基于所述固件版本信息创建所述固件版本库。In one embodiment, when the processor executes the computer program, the following steps are also implemented: creating a firmware version and naming the firmware version according to a preset naming rule; publishing the firmware version through an engineering change notification and recording firmware version information, wherein the firmware version information includes the firmware name, firmware type, applicable product range and version information; and creating the firmware version library based on the firmware version information.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:将所述产品与所述固件版本库中各固件版本的适用产品范围进行匹配;从所述固件版本库中获取与所述产品相匹配的所有适配固件版本及其固件版本信息;基于所述固件版本信息对所述适配固件版本进行分类排序,创建所述产品的第一固件清单。In one embodiment, when the processor executes the computer program, the following steps are also implemented: matching the product with the applicable product range of each firmware version in the firmware version library; obtaining all adapted firmware versions and their firmware version information that match the product from the firmware version library; classifying and sorting the adapted firmware versions based on the firmware version information to create a first firmware list for the product.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:为所述产品创建固件编码,并建立所述固件编码与所述产品的第一固件清单的关联关系;响应于发布新固件版本,判断所述产品与所述新固件版本的适用产品范围是否匹配;若是,则根据所述新固件版本及所述产品的固件编码对所述产品的第一固件清单进行更新。In one embodiment, when the processor executes the computer program, the following steps are also implemented: creating a firmware code for the product, and establishing an association between the firmware code and a first firmware list of the product; in response to the release of a new firmware version, determining whether the product matches the applicable product range of the new firmware version; if so, updating the first firmware list of the product according to the new firmware version and the firmware code of the product.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:根据所述目标产品的第一固件清单,确认与所述目标产品相匹配的所有适配固件版本,其中所述固件版本分别具有不同的固件类型;根据所述目标订单的订单信息,从所述目标产品的第一固件清单中获取每一固件类型对应的目标固件版本;根据各固件类型对应的目标固件版本创建所述目标订单的第一刷新清单。In one embodiment, when the processor executes the computer program, the following steps are also implemented: according to the first firmware list of the target product, all adapted firmware versions matching the target product are confirmed, wherein the firmware versions have different firmware types respectively; according to the order information of the target order, the target firmware version corresponding to each firmware type is obtained from the first firmware list of the target product; and the first refresh list of the target order is created according to the target firmware version corresponding to each firmware type.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:将所述订单信息与所述第一固件清单中目标固件类型对应的固件版本进行匹配,判断所述第一固件清单中是否存在与所述订单信息相匹配的客户定制固件版本;若存在,则将所述客户定制固件版本作为所述目标固件类型对应的目标固件版本;若不存在,则获取所述目标固件类型对应的通用固件版本,并检查所述通用固件版本是否为唯一;若不唯一,则获取所述通用固件版本的固件版本信息,并根据所述固件版本信息确认所述通用固件版本中的最新固件版本,将所述最新固件版本作为所述目标固件类型对应的目标固件版本。In one embodiment, when the processor executes the computer program, the following steps are also implemented: matching the order information with the firmware version corresponding to the target firmware type in the first firmware list, and determining whether there is a customer-customized firmware version matching the order information in the first firmware list; if so, using the customer-customized firmware version as the target firmware version corresponding to the target firmware type; if not, obtaining the general firmware version corresponding to the target firmware type, and checking whether the general firmware version is unique; if not, obtaining the firmware version information of the general firmware version, and confirming the latest firmware version in the general firmware version based on the firmware version information, and using the latest firmware version as the target firmware version corresponding to the target firmware type.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:响应于所述目标订单中首台产品上线,确认所述首台产品的第一固件清单及第一刷新清单;响应于所述目标订单中第N台产品上线,确认所述第N台产品的第二固件清单,其中N为大于等于2的正整数;将所述第二固件清单与所述第一固件清单进行比较,得到第一比较结果;若所述第一比较结果为一致,则执行第一刷新清单,完成订单;若所述第一比较结果为不一致,则根据所述第二固件清单确定与所述第N台产品相匹配的目标固件版本集合,生成第二刷新清单;将所述第二刷新清单与所述第一刷新清单进行比较,得到第二比较结果;若所述第二比较结果为一致,则将所述第一固件清单更新为第二固件清单,并执行所述第一刷新清单,完成所述目标订单;若所述第二比较结果为不一致,则根据所述第二比较结果判断所述第二刷新清单是否需要更新,得到判断结果;若所述判断结果为是,则将所述第一固件清单及第一刷新清单更新为第二固件清单及第二刷新清单,并执行所述第二刷新清单,完成所述目标订单。In one embodiment, when the processor executes the computer program, the following steps are further implemented: in response to the first product in the target order being launched, confirming the first firmware list and the first refresh list of the first product; in response to the Nth product in the target order being launched, confirming the second firmware list of the Nth product, where N is a positive integer greater than or equal to 2; comparing the second firmware list with the first firmware list to obtain a first comparison result; if the first comparison result is consistent, executing the first refresh list to complete the order; if the first comparison result is inconsistent, determining the target firmware version set matching the Nth product according to the second firmware list, and generating a second refresh list; comparing the second refresh list with the first refresh list to obtain a second comparison result; if the second comparison result is consistent, updating the first firmware list to the second firmware list, and executing the first refresh list to complete the target order; if the second comparison result is inconsistent, judging whether the second refresh list needs to be updated according to the second comparison result to obtain a judgment result; if the judgment result is yes, updating the first firmware list and the first refresh list to the second firmware list and the second refresh list, and executing the second refresh list to complete the target order.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,所述产品的第一固件清单包括与所述产品相匹配的所有适配固件版本;Matching each product with a pre-created firmware version library respectively, and creating a first firmware list for each product according to the matching result, wherein the first firmware list of the product includes all compatible firmware versions matching the product;

响应于目标订单上线,根据所述目标订单确认目标产品;In response to the target order being online, confirming the target product according to the target order;

基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单;Determine a target firmware version set matching the target order based on the first firmware list of the target product, and create a first refresh list of the target order according to the target firmware version set;

执行所述第一刷新清单,完成所述目标订单的固件导入及刷新。Execute the first refresh list to complete the firmware import and refresh of the target order.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:创建固件版本,并按照预设命名规则为所述固件版本命名;通过工程变更通知发布所述固件版本,并记录固件版本信息,所述固件版本信息包括固件名称、固件类型、适用产品范围及版本信息;基于所述固件版本信息创建所述固件版本库。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: creating a firmware version and naming the firmware version according to a preset naming rule; publishing the firmware version through an engineering change notification and recording firmware version information, wherein the firmware version information includes the firmware name, firmware type, applicable product range and version information; and creating the firmware version library based on the firmware version information.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:将所述产品与所述固件版本库中各固件版本的适用产品范围进行匹配;从所述固件版本库中获取与所述产品相匹配的所有适配固件版本及其固件版本信息;基于所述固件版本信息对所述适配固件版本进行分类排序,创建所述产品的第一固件清单。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: matching the product with the applicable product range of each firmware version in the firmware version library; obtaining all adapted firmware versions and their firmware version information that match the product from the firmware version library; classifying and sorting the adapted firmware versions based on the firmware version information, and creating a first firmware list for the product.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:为所述产品创建固件编码,并建立所述固件编码与所述产品的第一固件清单的关联关系;响应于发布新固件版本,判断所述产品与所述新固件版本的适用产品范围是否匹配;若是,则根据所述新固件版本及所述产品的固件编码对所述产品的第一固件清单进行更新。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: creating a firmware code for the product, and establishing an association between the firmware code and a first firmware list of the product; in response to the release of a new firmware version, determining whether the product matches the applicable product range of the new firmware version; if so, updating the first firmware list of the product according to the new firmware version and the firmware code of the product.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:根据所述目标产品的第一固件清单,确认与所述目标产品相匹配的所有适配固件版本,其中所述固件版本分别具有不同的固件类型;根据所述目标订单的订单信息,从所述目标产品的第一固件清单中获取每一固件类型对应的目标固件版本;根据各固件类型对应的目标固件版本创建所述目标订单的第一刷新清单。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: according to the first firmware list of the target product, all compatible firmware versions matching the target product are confirmed, wherein the firmware versions have different firmware types respectively; according to the order information of the target order, the target firmware version corresponding to each firmware type is obtained from the first firmware list of the target product; and the first refresh list of the target order is created according to the target firmware version corresponding to each firmware type.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:将所述订单信息与所述第一固件清单中目标固件类型对应的固件版本进行匹配,判断所述第一固件清单中是否存在与所述订单信息相匹配的客户定制固件版本;若存在,则将所述客户定制固件版本作为所述目标固件类型对应的目标固件版本;若不存在,则获取所述目标固件类型对应的通用固件版本,并检查所述通用固件版本是否为唯一;若不唯一,则获取所述通用固件版本的固件版本信息,并根据所述固件版本信息确认所述通用固件版本中的最新固件版本,将所述最新固件版本作为所述目标固件类型对应的目标固件版本。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: matching the order information with the firmware version corresponding to the target firmware type in the first firmware list, and determining whether there is a customer-customized firmware version matching the order information in the first firmware list; if so, using the customer-customized firmware version as the target firmware version corresponding to the target firmware type; if not, obtaining the general firmware version corresponding to the target firmware type, and checking whether the general firmware version is unique; if not, obtaining the firmware version information of the general firmware version, and confirming the latest firmware version in the general firmware version based on the firmware version information, and using the latest firmware version as the target firmware version corresponding to the target firmware type.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:响应于所述目标订单中首台产品上线,确认所述首台产品的第一固件清单及第一刷新清单;响应于所述目标订单中第N台产品上线,确认所述第N台产品的第二固件清单,其中N为大于等于2的正整数;将所述第二固件清单与所述第一固件清单进行比较,得到第一比较结果;若所述第一比较结果为一致,则执行第一刷新清单,完成订单;若所述第一比较结果为不一致,则根据所述第二固件清单确定与所述第N台产品相匹配的目标固件版本集合,生成第二刷新清单;将所述第二刷新清单与所述第一刷新清单进行比较,得到第二比较结果;若所述第二比较结果为一致,则将所述第一固件清单更新为第二固件清单,并执行所述第一刷新清单,完成所述目标订单;若所述第二比较结果为不一致,则根据所述第二比较结果判断所述第二刷新清单是否需要更新,得到判断结果;若所述判断结果为是,则将所述第一固件清单及第一刷新清单更新为第二固件清单及第二刷新清单,并执行所述第二刷新清单,完成所述目标订单。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: in response to the first product in the target order being launched, confirming the first firmware list and the first refresh list of the first product; in response to the Nth product in the target order being launched, confirming the second firmware list of the Nth product, where N is a positive integer greater than or equal to 2; comparing the second firmware list with the first firmware list to obtain a first comparison result; if the first comparison result is consistent, executing the first refresh list to complete the order; if the first comparison result is inconsistent, determining the target firmware version set matching the Nth product according to the second firmware list, and generating a second refresh list; comparing the second refresh list with the first refresh list to obtain a second comparison result; if the second comparison result is consistent, updating the first firmware list to the second firmware list, and executing the first refresh list to complete the target order; if the second comparison result is inconsistent, judging whether the second refresh list needs to be updated according to the second comparison result to obtain a judgment result; if the judgment result is yes, updating the first firmware list and the first refresh list to the second firmware list and the second refresh list, and executing the second refresh list to complete the target order.

在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,所述产品的第一固件清单包括与所述产品相匹配的所有适配固件版本;Matching each product with a pre-created firmware version library respectively, and creating a first firmware list for each product according to the matching result, wherein the first firmware list of the product includes all compatible firmware versions matching the product;

响应于目标订单上线,根据所述目标订单确认目标产品;In response to the target order being online, confirming the target product according to the target order;

基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单;Determine a target firmware version set matching the target order based on the first firmware list of the target product, and create a first refresh list of the target order according to the target firmware version set;

执行所述第一刷新清单,完成所述目标订单的固件导入及刷新。Execute the first refresh list to complete the firmware import and refresh of the target order.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:创建固件版本,并按照预设命名规则为所述固件版本命名;通过工程变更通知发布所述固件版本,并记录固件版本信息,所述固件版本信息包括固件名称、固件类型、适用产品范围及版本信息;基于所述固件版本信息创建所述固件版本库。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: creating a firmware version and naming the firmware version according to a preset naming rule; publishing the firmware version through an engineering change notification and recording firmware version information, wherein the firmware version information includes the firmware name, firmware type, applicable product range and version information; and creating the firmware version library based on the firmware version information.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:将所述产品与所述固件版本库中各固件版本的适用产品范围进行匹配;从所述固件版本库中获取与所述产品相匹配的所有适配固件版本及其固件版本信息;基于所述固件版本信息对所述适配固件版本进行分类排序,创建所述产品的第一固件清单。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: matching the product with the applicable product range of each firmware version in the firmware version library; obtaining all adapted firmware versions and their firmware version information that match the product from the firmware version library; classifying and sorting the adapted firmware versions based on the firmware version information, and creating a first firmware list for the product.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:为所述产品创建固件编码,并建立所述固件编码与所述产品的第一固件清单的关联关系;响应于发布新固件版本,判断所述产品与所述新固件版本的适用产品范围是否匹配;若是,则根据所述新固件版本及所述产品的固件编码对所述产品的第一固件清单进行更新。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: creating a firmware code for the product, and establishing an association between the firmware code and a first firmware list of the product; in response to the release of a new firmware version, determining whether the product matches the applicable product range of the new firmware version; if so, updating the first firmware list of the product according to the new firmware version and the firmware code of the product.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:根据所述目标产品的第一固件清单,确认与所述目标产品相匹配的所有适配固件版本,其中所述固件版本分别具有不同的固件类型;根据所述目标订单的订单信息,从所述目标产品的第一固件清单中获取每一固件类型对应的目标固件版本;根据各固件类型对应的目标固件版本创建所述目标订单的第一刷新清单。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: according to the first firmware list of the target product, all compatible firmware versions matching the target product are confirmed, wherein the firmware versions have different firmware types respectively; according to the order information of the target order, the target firmware version corresponding to each firmware type is obtained from the first firmware list of the target product; and the first refresh list of the target order is created according to the target firmware version corresponding to each firmware type.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:将所述订单信息与所述第一固件清单中目标固件类型对应的固件版本进行匹配,判断所述第一固件清单中是否存在与所述订单信息相匹配的客户定制固件版本;若存在,则将所述客户定制固件版本作为所述目标固件类型对应的目标固件版本;若不存在,则获取所述目标固件类型对应的通用固件版本,并检查所述通用固件版本是否为唯一;若不唯一,则获取所述通用固件版本的固件版本信息,并根据所述固件版本信息确认所述通用固件版本中的最新固件版本,将所述最新固件版本作为所述目标固件类型对应的目标固件版本。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: matching the order information with the firmware version corresponding to the target firmware type in the first firmware list, and determining whether there is a customer-customized firmware version matching the order information in the first firmware list; if so, using the customer-customized firmware version as the target firmware version corresponding to the target firmware type; if not, obtaining the general firmware version corresponding to the target firmware type, and checking whether the general firmware version is unique; if not, obtaining the firmware version information of the general firmware version, and confirming the latest firmware version in the general firmware version based on the firmware version information, and using the latest firmware version as the target firmware version corresponding to the target firmware type.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:响应于所述目标订单中首台产品上线,确认所述首台产品的第一固件清单及第一刷新清单;响应于所述目标订单中第N台产品上线,确认所述第N台产品的第二固件清单,其中N为大于等于2的正整数;将所述第二固件清单与所述第一固件清单进行比较,得到第一比较结果;若所述第一比较结果为一致,则执行第一刷新清单,完成订单;若所述第一比较结果为不一致,则根据所述第二固件清单确定与所述第N台产品相匹配的目标固件版本集合,生成第二刷新清单;将所述第二刷新清单与所述第一刷新清单进行比较,得到第二比较结果;若所述第二比较结果为一致,则将所述第一固件清单更新为第二固件清单,并执行所述第一刷新清单,完成所述目标订单;若所述第二比较结果为不一致,则根据所述第二比较结果判断所述第二刷新清单是否需要更新,得到判断结果;若所述判断结果为是,则将所述第一固件清单及第一刷新清单更新为第二固件清单及第二刷新清单,并执行所述第二刷新清单,完成所述目标订单。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: in response to the first product in the target order being launched, confirming the first firmware list and the first refresh list of the first product; in response to the Nth product in the target order being launched, confirming the second firmware list of the Nth product, where N is a positive integer greater than or equal to 2; comparing the second firmware list with the first firmware list to obtain a first comparison result; if the first comparison result is consistent, executing the first refresh list to complete the order; if the first comparison result is inconsistent, determining the target firmware version set matching the Nth product according to the second firmware list, and generating a second refresh list; comparing the second refresh list with the first refresh list to obtain a second comparison result; if the second comparison result is consistent, updating the first firmware list to the second firmware list, and executing the first refresh list to complete the target order; if the second comparison result is inconsistent, judging whether the second refresh list needs to be updated according to the second comparison result to obtain a judgment result; if the judgment result is yes, updating the first firmware list and the first refresh list to the second firmware list and the second refresh list, and executing the second refresh list to complete the target order.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims (10)

1.一种固件版本管控方法,其特征在于,包括:1. A firmware version control method, comprising: 将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,所述产品的第一固件清单包括与所述产品相匹配的所有适配固件版本;Matching each product with a pre-created firmware version library respectively, and creating a first firmware list for each product according to the matching result, wherein the first firmware list of the product includes all compatible firmware versions matching the product; 响应于目标订单上线,根据所述目标订单确认目标产品;In response to the target order being online, confirming the target product according to the target order; 基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单;Determine a target firmware version set matching the target order based on the first firmware list of the target product, and create a first refresh list of the target order according to the target firmware version set; 执行所述第一刷新清单,完成所述目标订单的固件导入及刷新。Execute the first refresh list to complete the firmware import and refresh of the target order. 2.根据权利要求1所述的固件版本管控方法,其特征在于,所述将各产品分别与预先创建的固件版本库进行匹配之前,还包括:2. The firmware version control method according to claim 1, characterized in that before matching each product with a pre-created firmware version library, it also includes: 创建固件版本,并按照预设命名规则为所述固件版本命名;Creating a firmware version and naming the firmware version according to a preset naming rule; 通过工程变更通知发布所述固件版本,并记录固件版本信息,所述固件版本信息包括固件名称、固件类型、适用产品范围及版本信息;Release the firmware version through an engineering change notification and record the firmware version information, wherein the firmware version information includes the firmware name, firmware type, applicable product range and version information; 基于所述固件版本信息创建所述固件版本库。The firmware version library is created based on the firmware version information. 3.根据权利要求1所述的固件版本管控方法,其特征在于,所述将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,包括:3. The firmware version control method according to claim 1, characterized in that the step of matching each product with a pre-created firmware version library and creating a first firmware list for each product according to the matching result comprises: 将所述产品与所述固件版本库中各固件版本的适用产品范围进行匹配;Matching the product with the applicable product range of each firmware version in the firmware version library; 从所述固件版本库中获取与所述产品相匹配的所有适配固件版本及其固件版本信息;基于所述固件版本信息对所述适配固件版本进行分类排序,创建所述产品的第一固件清单。All adapted firmware versions and firmware version information matching the product are obtained from the firmware version library; the adapted firmware versions are classified and sorted based on the firmware version information to create a first firmware list for the product. 4.根据权利要求1至3任一项所述的固件版本管控方法,其特征在于,所述方法还包括:4. The firmware version control method according to any one of claims 1 to 3, characterized in that the method further comprises: 为所述产品创建固件编码,并建立所述固件编码与所述产品的第一固件清单的关联关系;Creating a firmware code for the product, and establishing an association relationship between the firmware code and a first firmware list of the product; 响应于发布新固件版本,判断所述产品与所述新固件版本的适用产品范围是否匹配;若是,则根据所述新固件版本及所述产品的固件编码对所述产品的第一固件清单进行更新。In response to the release of a new firmware version, it is determined whether the product matches the applicable product range of the new firmware version; if so, the first firmware list of the product is updated according to the new firmware version and the firmware code of the product. 5.根据权利要求1所述的固件版本管控方法,其特征在于,所述基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单,包括:5. The firmware version control method according to claim 1, characterized in that the step of determining a target firmware version set matching the target order based on the first firmware list of the target product, and creating a first refresh list of the target order according to the target firmware version set comprises: 根据所述目标产品的第一固件清单,确认与所述目标产品相匹配的所有适配固件版本,其中所述固件版本分别具有不同的固件类型;According to the first firmware list of the target product, confirm all adapted firmware versions matching the target product, wherein the firmware versions have different firmware types respectively; 根据所述目标订单的订单信息,从所述目标产品的第一固件清单中获取每一固件类型对应的目标固件版本;According to the order information of the target order, obtaining a target firmware version corresponding to each firmware type from the first firmware list of the target product; 根据各固件类型对应的目标固件版本创建所述目标订单的第一刷新清单。A first refresh list of the target order is created according to the target firmware versions corresponding to the firmware types. 6.根据权利要求5所述的固件版本管控方法,其特征在于,所述根据所述目标订单的订单信息,从所述目标产品的第一固件清单中获取每一固件类型对应的目标固件版本,包括:6. The firmware version control method according to claim 5, characterized in that the step of obtaining the target firmware version corresponding to each firmware type from the first firmware list of the target product according to the order information of the target order comprises: 将所述订单信息与所述第一固件清单中目标固件类型对应的固件版本进行匹配,判断所述第一固件清单中是否存在与所述订单信息相匹配的客户定制固件版本;Matching the order information with the firmware version corresponding to the target firmware type in the first firmware list, and determining whether there is a customer customized firmware version matching the order information in the first firmware list; 若存在,则将所述客户定制固件版本作为所述目标固件类型对应的目标固件版本;If it exists, the customer customized firmware version is used as the target firmware version corresponding to the target firmware type; 若不存在,则获取所述目标固件类型对应的通用固件版本,并检查所述通用固件版本是否为唯一;If not, obtaining the universal firmware version corresponding to the target firmware type, and checking whether the universal firmware version is unique; 若不唯一,则获取所述通用固件版本的固件版本信息,并根据所述固件版本信息确认所述通用固件版本中的最新固件版本,将所述最新固件版本作为所述目标固件类型对应的目标固件版本。If it is not unique, the firmware version information of the general firmware version is obtained, and the latest firmware version in the general firmware version is confirmed according to the firmware version information, and the latest firmware version is used as the target firmware version corresponding to the target firmware type. 7.根据权利要求1所述的固件版本管控方法,其特征在于,所述方法还包括:7. The firmware version control method according to claim 1, characterized in that the method further comprises: 响应于所述目标订单中首台产品上线,确认所述首台产品的第一固件清单及第一刷新清单;In response to the first product in the target order being launched, confirming a first firmware list and a first refresh list of the first product; 响应于所述目标订单中第N台产品上线,确认所述第N台产品的第二固件清单,其中N为大于等于2的正整数;In response to the Nth product in the target order being launched, confirming a second firmware list for the Nth product, where N is a positive integer greater than or equal to 2; 将所述第二固件清单与所述第一固件清单进行比较,得到第一比较结果;Compare the second firmware list with the first firmware list to obtain a first comparison result; 若所述第一比较结果为一致,则执行第一刷新清单,完成订单;If the first comparison result is consistent, the first refresh list is executed to complete the order; 若所述第一比较结果为不一致,则根据所述第二固件清单确定与所述第N台产品相匹配的目标固件版本集合,生成第二刷新清单;If the first comparison result is inconsistent, determining a target firmware version set matching the Nth product according to the second firmware list, and generating a second refresh list; 将所述第二刷新清单与所述第一刷新清单进行比较,得到第二比较结果;comparing the second refresh list with the first refresh list to obtain a second comparison result; 若所述第二比较结果为一致,则将所述第一固件清单更新为第二固件清单,并执行所述第一刷新清单,完成所述目标订单;If the second comparison result is consistent, updating the first firmware list to the second firmware list, and executing the first refresh list to complete the target order; 若所述第二比较结果为不一致,则根据所述第二比较结果判断所述第二刷新清单是否需要更新,得到判断结果;If the second comparison result is inconsistent, determining whether the second refresh list needs to be updated according to the second comparison result to obtain a determination result; 若所述判断结果为是,则将所述第一固件清单及第一刷新清单更新为第二固件清单及第二刷新清单,并执行所述第二刷新清单,完成所述目标订单。If the judgment result is yes, the first firmware list and the first refresh list are updated to the second firmware list and the second refresh list, and the second refresh list is executed to complete the target order. 8.一种固件版本管控装置,其特征在于,所述装置包括:8. A firmware version control device, characterized in that the device comprises: 第一创建模块,用于将各产品分别与预先创建的固件版本库进行匹配,根据匹配结果创建各产品的第一固件清单,所述产品的第一固件清单包括与所述产品相匹配的所有适配固件版本;A first creation module, used to match each product with a pre-created firmware version library, and create a first firmware list for each product according to the matching result, wherein the first firmware list of the product includes all compatible firmware versions matching the product; 确认模块,用于响应于目标订单上线,根据所述目标订单确认目标产品;A confirmation module, configured to respond to a target order being placed online and confirm a target product according to the target order; 第二创建模块,用于基于所述目标产品的第一固件清单确定与所述目标订单相匹配的目标固件版本集合,并根据所述目标固件版本集合创建所述目标订单的第一刷新清单;执行模块,用于执行所述第一刷新清单,完成所述目标订单的固件导入及刷新。A second creation module is used to determine a target firmware version set that matches the target order based on the first firmware list of the target product, and create a first refresh list for the target order according to the target firmware version set; an execution module is used to execute the first refresh list to complete the firmware import and refresh of the target order. 9.一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7中任一项所述方法的步骤。9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的方法的步骤。10. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
CN202410860612.1A 2024-06-28 2024-06-28 A firmware version control method, device, computer equipment and storage medium Pending CN118708232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410860612.1A CN118708232A (en) 2024-06-28 2024-06-28 A firmware version control method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410860612.1A CN118708232A (en) 2024-06-28 2024-06-28 A firmware version control method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118708232A true CN118708232A (en) 2024-09-27

Family

ID=92819452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410860612.1A Pending CN118708232A (en) 2024-06-28 2024-06-28 A firmware version control method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118708232A (en)

Similar Documents

Publication Publication Date Title
US10318412B1 (en) Systems, methods, and apparatus for dynamic software generation and testing
CN108319460B (en) Method and device for generating application program installation package, electronic equipment and storage medium
CN112380130B (en) Application testing method and device based on call dependency relationship
CN111694750B (en) A method and device for constructing a software testing environment
CN113448862B (en) Software version testing method and device and computer equipment
CN115130857A (en) Product control method, system, computer device and storage medium
CN113919728A (en) Process flow management method and equipment
CN114637511A (en) Code testing system, method, device, electronic equipment and readable storage medium
CN114185591A (en) Code checking method, apparatus, storage medium and computer program product
US20210342900A1 (en) Methods for customized rule engines for automated medical bill review and devices thereof
CN111881056A (en) Automatic test framework and test method
CN118708232A (en) A firmware version control method, device, computer equipment and storage medium
CN114237754A (en) Data loading method and device, electronic equipment and storage medium
EP1653348A1 (en) Method for tracking transport requests and computer system with trackable transport requests
CN118550671A (en) Job set scheduling method, device, computer equipment and storage medium
US20070094239A1 (en) Communicating part number detail data between enterprise and part supplier
CN113867778B (en) Image file generation method and device, electronic equipment and storage medium
CN115080429B (en) Test report generation method and device
JP7025854B2 (en) Gross profit calculator, gross profit calculation method and gross profit calculation program
CN117873547A (en) Data development management method, device, computer equipment and storage medium
CN117873870A (en) Yum source integrity test method
CN114090419B (en) Program testing method, system, device, electronic device and storage medium
CN114677080A (en) Logistics export order processing method, device and electronic equipment combined with RPA and AI
CN118101464A (en) Version upgrade method and configuration parameter construction method, equipment and medium
CN114742637A (en) Wind control management method and device, computer equipment 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