[go: up one dir, main page]

CN108959169A - A kind of list mainboard multi version program adaptation method, system, device and storage medium - Google Patents

A kind of list mainboard multi version program adaptation method, system, device and storage medium Download PDF

Info

Publication number
CN108959169A
CN108959169A CN201810668983.4A CN201810668983A CN108959169A CN 108959169 A CN108959169 A CN 108959169A CN 201810668983 A CN201810668983 A CN 201810668983A CN 108959169 A CN108959169 A CN 108959169A
Authority
CN
China
Prior art keywords
smbios
target
program
string
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
CN201810668983.4A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810668983.4A priority Critical patent/CN108959169A/en
Publication of CN108959169A publication Critical patent/CN108959169A/en
Priority to PCT/CN2018/123679 priority patent/WO2020000957A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7867Architectures of general purpose stored program computers comprising a single central processing unit with reconfigurable architecture

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本申请公开了一种单主板多版本程序适配方法,首先在单一主板上预留一定数量的GPIO PIN,以通过这些GPIO PIN反馈回的信息确定将启用的目标版本程序,接着只需按照包含有各版本程序与各待同步SMBios字符串确定与该目标版本程序对应的目标SMBios字符串,最后将该目标SMBios字符串同步至SMBios结构体中即可启用该目标版本程序对应的代码分支。依照该方法可基于单一控制主板完成对多版本程序的适配问题,相比于现有技术需要使用与程序版本数相同数量的控制主板,可以在保证功能实现的基础上有效降低实现成本。本申请还同时公开了一种单主板多版本程序适配系统、装置及计算机可读存储介质,具有上述有益效果。

This application discloses a single motherboard multi-version program adaptation method. First, a certain number of GPIO PINs are reserved on a single motherboard to determine the target version of the program to be enabled through the information fed back by these GPIO PINs. Each version program and each SMBios string to be synchronized determine the target SMBios string corresponding to the target version program, and finally synchronize the target SMBios string to the SMBios structure to enable the code branch corresponding to the target version program. According to this method, the adaptation problem of multi-version programs can be completed based on a single control board. Compared with the prior art that needs to use the same number of control boards as the number of program versions, the implementation cost can be effectively reduced on the basis of ensuring the realization of functions. The present application also discloses a single main board multi-version program adaptation system, a device and a computer-readable storage medium, which have the above-mentioned beneficial effects.

Description

一种单主板多版本程序适配方法、系统、装置及存储介质A single motherboard multi-version program adaptation method, system, device and storage medium

技术领域technical field

本申请涉及单控制器控制多设备技术领域,特别涉及一种单主板多版本程序适配方法、系统、装置及计算机可读存储介质。The present application relates to the technical field of multi-device control by a single controller, and in particular to a method, system, device and computer-readable storage medium for multi-version program adaptation on a single motherboard.

背景技术Background technique

在存储产品开发的领域内,很多情况硬件系统不会重新开发,但是上层软件需要适配不同的功能,以形成不同的交付项目,但不同交付项目由于类似会存在重叠部分,即根据交付项目的不同会在一些功能是否启用、何时启用的特殊点调用相应的代码分支来完成对应交付项目所需的功能。In the field of storage product development, in many cases, the hardware system will not be redeveloped, but the upper-layer software needs to be adapted to different functions to form different delivery items, but different delivery items may overlap due to similarities, that is, according to the delivery items Differently, the corresponding code branch will be called at special points of whether some functions are enabled and when they are enabled to complete the functions required by the corresponding delivery project.

通常情况下,现有技术大多采用多控制主板来匹配多个交付项目的方式,而最终要的主题硬件部分则共用,即将不同交付项目对应的不同版本程序的代码分支启用规则内嵌在各自对应的控制主板中,以期通过自己专属的控制主板来实现自己这个版本程序的运行方式。其中使用与程序版本数相同数量的控制主板的目的在于,要使用内嵌在不同控制主板中的信息来实现代码分支的选择。暂时没有使用单一控制主板来适配多版本程序的实现方案。Usually, most of the existing technologies use multiple control boards to match multiple delivery projects, and the final subject hardware part is shared, that is, the code branch enabling rules of different versions of programs corresponding to different delivery projects are embedded in their respective corresponding In the control board of the computer, it is expected to realize the operation mode of this version of the program through its own exclusive control board. The purpose of using the same number of control boards as the number of program versions is to use the information embedded in different control boards to realize the selection of code branches. There is currently no implementation plan for using a single control board to adapt to multi-version programs.

因此,如何填补现有技术空白,提供一种能够仅使用一块控制主板也能实现对多版本程序的适配的方案是本领域技术人员亟待解决的问题。Therefore, how to fill the gaps in the prior art and provide a solution that can realize the adaptation to multi-version programs using only one control board is an urgent problem to be solved by those skilled in the art.

发明内容Contents of the invention

本申请的目的是提供一种单主板多版本程序适配方法,首先在单一主板上预留一定数量的GPIO PIN,以通过这些GPIO PIN反馈回的信息确定将启用的目标版本程序,接着只需按照包含有各版本程序与各待同步SMBios字符串确定与该目标版本程序对应的目标SMBios字符串,最后将该目标SMBios字符串同步至SMBios结构体中即可启用该目标版本程序对应的代码分支。依照该方法可基于单一控制主板完成对多版本程序的适配问题,相比于现有技术需要使用与程序版本数相同数量的控制主板,可以在保证功能实现的基础上有效降低实现成本。The purpose of this application is to provide a single motherboard multi-version program adaptation method. First, a certain number of GPIO PINs are reserved on a single motherboard to determine the target version program to be enabled through the information fed back by these GPIO PINs. Then only Determine the target SMBios string corresponding to the target version program according to the version program and the SMBios string to be synchronized, and finally synchronize the target SMBios string to the SMBios structure to enable the code branch corresponding to the target version program . According to this method, the adaptation problem of multi-version programs can be completed based on a single control board. Compared with the prior art that needs to use the same number of control boards as the number of program versions, the implementation cost can be effectively reduced on the basis of ensuring the realization of functions.

本申请的另一目的在于提供了一种单主板多版本程序适配系统、装置及计算机可读存储介质。Another object of the present application is to provide a single motherboard multi-version program adaptation system, device and computer-readable storage medium.

为实现上述目的,本申请提供一种单主板多版本程序适配方法,包括:In order to achieve the above purpose, this application provides a single motherboard multi-version program adaptation method, including:

接收GPIO PIN反馈回的目标版本程序的唯一识别标识;其中,在主板上预留有预设数量的GPIO PIN,所述主板通过所述GPIO PIN连接N个分别执行不同版本程序的设备,N≥2,所述目标版本程序为将启用的程序版本;Receive the unique identification of the target version program fed back by the GPIO PIN; wherein, a preset number of GPIO PINs are reserved on the main board, and the main board is connected to N devices that respectively execute different versions of the program through the GPIO PIN, N≥ 2. The target version program is the program version to be enabled;

根据对应关系表匹配与所述唯一识别标识对应的待同步SMBios字符串,得到目标SMBios字符串;其中,所述对应关系表中记录有各唯一识别标识与各待同步SMBios字符串间的对应关系;Match the SMBios string to be synchronized corresponding to the unique identification mark according to the correspondence table, and obtain the target SMBios string; wherein, the corresponding relationship between each unique identification mark and each SMBios string to be synchronized is recorded in the correspondence table ;

将所述目标SMBios字符串同步至SMBios结构体,以根据所述SMBios结构体中的内容选择执行与所述目标版本程序对应的代码分支。Synchronize the target SMBios string to the SMBios structure, so as to select and execute the code branch corresponding to the target version program according to the content in the SMBios structure.

可选的,接收GPIO PIN反馈回的目标版本程序的唯一识别标识,包括:Optionally, receive the unique identification of the target version program fed back by the GPIO PIN, including:

接收各所述GPIO PIN分别返回的高低电平信号;其中,一个所述GPIOPIN返回高电平信号说明其处于导通状态、返回低电平信号说明其处于截止状态;Receiving the high and low level signals returned by each of the GPIO PINs respectively; wherein, one of the GPIOPINs returns a high level signal indicating that it is in a conducting state, and returning a low level signal indicates that it is in an off state;

按高电平信号置1、低电平信号置0的原则对所述高低电平信号按预设的GPIO PIN排序进行排列,得到目标二进制代码;According to the principle of setting high-level signals to 1 and low-level signals to 0, the high-level and low-level signals are arranged according to the preset GPIO PIN sorting to obtain the target binary code;

将所述目标二进制代码作为所述目标版本程序的唯一识别标识。The target binary code is used as the unique identification of the target version program.

可选的,在将所述目标SMBios字符串同步至SMBios结构体之前,还包括:Optionally, before synchronizing the target SMBios string to the SMBios structure, further include:

对所述SMBios结构体执行初始化操作。Perform an initialization operation on the SMBios structure.

可选的,该单主板多版本程序适配方法还包括:Optionally, the multi-version program adaptation method for a single mainboard also includes:

记录每次同步至所述SMBios结构体的目标SMBios字符串和对应的唯一识别标识,得到多版本程序适配日志。Record the target SMBios character string and the corresponding unique identification that are synchronized to the SMBios structure each time, and obtain the multi-version program adaptation log.

为实现上述目的,本申请还提供了一种单主板多版本程序适配系统,该单主板多版本程序适配系统包括:In order to achieve the above purpose, this application also provides a single main board multi-version program adaptation system, the single main board multi-version program adaptation system includes:

唯一识别标识接收单元,用于接收GPIO PIN反馈回的目标版本程序的唯一识别标识;其中,在主板上预留有预设数量的GPIO PIN,所述主板通过所述GPIO PIN连接N个分别执行不同版本程序的设备,N≥2,所述目标版本程序为将启用的程序版本;The unique identification identification receiving unit is used to receive the unique identification identification of the target version program fed back by the GPIO PIN; wherein, a preset number of GPIO PINs are reserved on the main board, and the main board is connected to N by the GPIO PINs to execute respectively For devices with different versions of programs, N≥2, the target version of the program is the version of the program to be enabled;

目标SMBios字符串匹配单元,用于根据对应关系表匹配与所述唯一识别标识对应的待同步SMBios字符串,得到目标SMBios字符串;其中,所述对应关系表中记录有各唯一识别标识与各待同步SMBios字符串间的对应关系;The target SMBios string matching unit is used to match the SMBios string to be synchronized corresponding to the unique identification mark according to the correspondence table to obtain the target SMBios string; wherein, each unique identification mark and each Correspondence between SMBios strings to be synchronized;

目标SMBios字符串同步单元,用于将所述目标SMBios字符串同步至SMBios结构体,以根据所述SMBios结构体中的内容选择执行与所述目标版本程序对应的代码分支。The target SMBios string synchronization unit is used to synchronize the target SMBios string to the SMBios structure, so as to select and execute the code branch corresponding to the target version program according to the content in the SMBios structure.

可选的,所述唯一识别标识接收单元包括:Optionally, the unique identification identification receiving unit includes:

高低电平信号接收子单元,用于接收各所述GPIO PIN分别返回的高低电平信号;其中,一个所述GPIO PIN返回高电平信号说明其处于导通状态、返回低电平信号说明其处于截止状态;The high and low level signal receiving subunit is used to receive the high and low level signals returned by each of the GPIO PINs; wherein, one of the GPIO PINs returns a high level signal to indicate that it is in a conducting state, and returns a low level signal to indicate its is in a closed state;

信号处理子单元,用于按高电平信号置1、低电平信号置0的原则对所述高低电平信号按预设的GPIO PIN排序进行排列,得到目标二进制码;The signal processing subunit is used to arrange the high-level and low-level signals according to the preset GPIO PIN order according to the principle of setting the high-level signal to 1 and setting the low-level signal to 0, so as to obtain the target binary code;

唯一识别标识获得子单元,用于将所述目标二进制码作为所述目标版本程序的唯一识别标识。The unique identifier obtaining subunit is used to use the target binary code as the unique identifier of the target version program.

可选的,该单主板多版本程序适配系统还包括:Optionally, the single-mainboard multi-version program adaptation system also includes:

初始化单元,用于在将所述目标SMBios字符串同步至SMBios结构体之前,对所述SMBios结构体执行初始化操作。The initialization unit is used to perform an initialization operation on the SMBios structure before synchronizing the target SMBios string to the SMBios structure.

可选的,该单主板多版本程序适配系统还包括:Optionally, the single-mainboard multi-version program adaptation system also includes:

适配日志记录单元,用于记录每次同步至所述SMBios结构体的目标SMBios字符串和对应的唯一识别标识,得到多版本程序适配日志。The adaptation log recording unit is used to record the target SMBios character string and the corresponding unique identification that are synchronized to the SMBios structure each time, so as to obtain the multi-version program adaptation log.

为实现上述目的,本申请还提供了一种单主板多版本程序适配装置,该单主板多版本程序适配装置包括:In order to achieve the above purpose, the present application also provides a multi-version program adaptation device for a single main board, the multi-version program adaptation device for a single main board includes:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序时实现如上述内容所描述的单主板多版本程序适配方法的步骤。The processor is configured to implement the steps of the method for adapting programs of multiple versions on a single motherboard as described above when executing the computer program.

为实现上述目的,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述内容所描述的单主板多版本程序适配方法的步骤。In order to achieve the above object, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the single main board multiple The steps of the version program adaptation method.

显然,本申请所提供的一种单主板多版本程序适配方法,首先在单一主板上预留一定数量的GPIO PIN,以通过这些GPIO PIN反馈回的信息确定将启用的目标版本程序,接着只需按照包含有各版本程序与各待同步SMBios字符串确定与该目标版本程序对应的目标SMBios字符串,最后将该目标SMBios字符串同步至SMBios结构体中即可启用该目标版本程序对应的代码分支。依照该方法可基于单一控制主板完成对多版本程序的适配问题,相比于现有技术需要使用与程序版本数相同数量的控制主板,可以在保证功能实现的基础上有效降低实现成本。本申请同时还提供了一种单主板多版本程序适配系统、装置及计算机可读存储介质,具有上述有益效果,在此不再赘述。Apparently, in the adaptation method of a single mainboard multi-version program provided by this application, first a certain number of GPIO PINs are reserved on a single mainboard, so as to determine the target version program to be enabled through the information fed back by these GPIO PINs, and then only It is necessary to determine the target SMBios string corresponding to the target version program according to the version program and the SMBios string to be synchronized, and finally synchronize the target SMBios string to the SMBios structure to enable the code corresponding to the target version program branch. According to this method, the adaptation problem of multi-version programs can be completed based on a single control board. Compared with the prior art that needs to use the same number of control boards as the number of program versions, the implementation cost can be effectively reduced on the basis of ensuring the realization of functions. The present application also provides a single-mainboard multi-version program adaptation system, device and computer-readable storage medium, which have the above-mentioned beneficial effects and will not be repeated here.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为本申请实施例提供的一种单主板多版本程序适配方法的流程图;FIG. 1 is a flow chart of a method for adapting a single-board multi-version program provided by an embodiment of the present application;

图2为本申请实施例提供的另一种单主板多版本程序适配方法的流程图;FIG. 2 is a flow chart of another single-board multi-version program adaptation method provided by the embodiment of the present application;

图3为本申请实施例提供的一种单主板多版本程序适配系统的结构框图。FIG. 3 is a structural block diagram of a single main board multi-version program adaptation system provided by an embodiment of the present application.

具体实施方式Detailed ways

本申请的核心是提供一种单主板多版本程序适配方法,该方法首先在单一主板上预留一定数量的GPIO PIN,以通过这些GPIO PIN反馈回的信息确定将启用的目标版本程序,接着只需按照包含有各版本程序与各待同步SMBios字符串确定与该目标版本程序对应的目标SMBios字符串,最后将该目标SMBios字符串同步至SMBios结构体中即可启用该目标版本程序对应的代码分支。依照该方法可基于单一控制主板完成对多版本程序的适配问题,相比于现有技术需要使用与程序版本数相同数量的控制主板,可以在保证功能实现的基础上有效降低实现成本。本申请的另一核心是提供一种单主板多版本程序适配系统、装置及计算机可读存储介质,具有上述有益效果。The core of this application is to provide a single main board multi-version program adaptation method, the method first reserves a certain number of GPIO PINs on a single main board, and determines the target version program to be enabled through the information fed back by these GPIO PINs, and then You only need to determine the target SMBios string corresponding to the target version program according to the version of the program and the SMBios string to be synchronized, and finally synchronize the target SMBios string to the SMBios structure to enable the corresponding target version of the program code branch. According to this method, the adaptation problem of multi-version programs can be completed based on a single control board. Compared with the prior art that needs to use the same number of control boards as the number of program versions, the implementation cost can be effectively reduced on the basis of ensuring the realization of functions. Another core of the present application is to provide a single-mainboard multi-version program adaptation system, device and computer-readable storage medium, which have the above-mentioned beneficial effects.

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

实施例一Embodiment one

以下结合图1,图1为本申请实施例提供的一种单主板多版本程序适配方法的流程图,其具体包括以下步骤:Below in conjunction with Fig. 1, Fig. 1 is a flow chart of a method for adapting a single-board multi-version program provided by the embodiment of the present application, which specifically includes the following steps:

S101:接收GPIO PIN反馈回的目标版本程序的唯一识别标识;S101: Receive the unique identification of the target version program fed back by the GPIO PIN;

其中,在主板上预留有预设数量的GPIO(General Purpose Input Output,通用输入/输出)PIN(针脚或称管脚),且该主板通过这些GPIO PIN连接N个分别执行不同版本程序的设备,N≥2,该目标版本程序为将启用的程序版本。即不同版本程序以不同的连接方式与该GPIO PIN连接,该GPIO PIN能够根据每个PIN反馈回的不同信号最终得到一个与各版本程序唯一对应的唯一识别标识,也可以说每个版本的程序会以与该GPIO PIN间不同的连接方式唯一确定一个版本的程序,这个版本的程序也被称为目标版本程序。Among them, a preset number of GPIO (General Purpose Input Output, general-purpose input/output) PINs (pins or pins) are reserved on the motherboard, and the motherboard connects N devices that execute programs of different versions through these GPIO PINs. , N≥2, the target version program is the program version to be enabled. That is, different versions of programs are connected to the GPIO PIN in different ways, and the GPIO PIN can finally obtain a unique identification corresponding to each version of the program according to the different signals fed back by each PIN. It can also be said that each version of the program A version of the program will be uniquely determined by a different connection method with the GPIO PIN, and this version of the program is also called the target version program.

其中,预留在主板上的GPIO PIN的数量可自行设定,一个始终的数量为5个,预留5个GPIO PIN就可以适配一定数量的不同版本程序。进一步的,具体如何根据GPIO PIN反馈回的信号得以确定目标版本程序的方式多种多样,其中,返回的信号可以是高电平、低电平、电流、电压以及任何能够起到区别或信息指代作用的数据,根据返回的信号的不同表现形式也应拥有一套预先设定好的数据处理方式,得以将其最终解析为可以用来代表一个版本程序的信息,此处并不做具体限定,可根据实际情况灵活选择。Among them, the number of GPIO PINs reserved on the main board can be set by yourself. A constant number is 5, and 5 GPIO PINs can be reserved to adapt to a certain number of different versions of programs. Further, there are various ways how to determine the target version of the program according to the signal fed back by the GPIO PIN, wherein the returned signal can be high level, low level, current, voltage, and any other information that can distinguish or indicate information. Substitution data, according to the different manifestations of the returned signal, should also have a set of pre-set data processing methods, so that it can be finally parsed into information that can be used to represent a version of the program. There is no specific limitation here. , can be flexibly selected according to the actual situation.

S102:根据对应关系表匹配与唯一识别标识对应的待同步SMBios字符串,得到目标SMBios字符串;S102: Match the SMBios string to be synchronized corresponding to the unique identification identifier according to the correspondence table to obtain the target SMBios string;

在S101的基础上,本步骤旨在根据该对应表匹配与指代一个版本程序的唯一识别标识对应的待同步SMBios字符串,得到目标SMBios字符串。其中,该对应关系表中记录有各唯一识别标识与各待同步SMBios字符串间的对应关系,而这些待同步SMBios字符串中携带有用于确定该执行哪个代码分支中代码,以最终启用目标版本程序,实现目的。同样,该对应表也应为根据真实对应情况提前预设好的。On the basis of S101, this step aims to match the SMBios string to be synchronized corresponding to the unique identifier referring to a program version according to the correspondence table, and obtain the target SMBios string. Wherein, the correspondence table records the correspondence between each unique identification identifier and each SMBios string to be synchronized, and these SMBios strings to be synchronized carry codes for determining which code branch should be executed to finally enable the target version program to achieve the purpose. Similarly, the correspondence table should also be preset in advance according to the real correspondence situation.

其中,SMBios(System Management BIOS)是主板或系统制造者以标准格式显示产品管理信息所需遵循的统一规范,只有遵照这个规范组织信息,才能够正确按照这个规范制造的硬件或软件系统所识别,并正常显示出来。Among them, SMBios (System Management BIOS) is a unified specification that motherboard or system manufacturers need to follow to display product management information in a standard format. Only when information is organized in accordance with this specification can it be correctly identified by hardware or software systems manufactured according to this specification. and displayed normally.

S103:将目标SMBios字符串同步至SMBios结构体,以根据SMBios结构体中的内容选择执行与目标版本程序对应的代码分支。S103: Synchronize the target SMBios string to the SMBios structure, so as to select and execute the code branch corresponding to the target version program according to the content in the SMBios structure.

在S102的基础上,本步骤旨在将确定好的目标SMBios字符串同步至SMBios结构体,以根据SMBios结构体中的内容选择执行与目标版本程序对应的代码分支。其中,SMBios结构体为一个存放待使用SMBios字符串的存储器,以便根据该存储器中的内容执行后续步骤。On the basis of S102, this step aims to synchronize the determined target SMBios string to the SMBios structure, so as to select and execute the code branch corresponding to the target version program according to the content in the SMBios structure. Wherein, the SMBios structure is a memory for storing the SMBios character string to be used, so as to perform subsequent steps according to the content in the memory.

进一步的,在将目标SMBios字符串同步至SMBios结构体之前,为防止SMBios结构体中存留的数据与新同步进的目标SMBios字符串间出现冲突现象,还可以在每次字符串同步之前,初始化该SMBios结构体,已排除残留数据可能造成的干扰。Further, before synchronizing the target SMBios string to the SMBios structure, in order to prevent conflicts between the data stored in the SMBios structure and the newly synchronized target SMBios string, it is also possible to initialize the The SMBios structure has eliminated possible interference caused by residual data.

更进一步的,还可以将每次适配不同版本程序的过程记录下来并生成相应的日志文件,通过存储日志文件的方式可为后期追溯制造便利条件。Furthermore, each process of adapting different versions of the program can be recorded and corresponding log files can be generated. By storing log files, it can create convenient conditions for later traceability.

其中一种包括但不限于的实现方式为:One of the implementation methods includes but is not limited to:

记录每次同步至SMBios结构体的目标SMBios字符串和对应的唯一识别标识,得到多版本程序适配日志。Record the target SMBios string and the corresponding unique identification that are synchronized to the SMBios structure each time, and obtain the multi-version program adaptation log.

基于上述技术方案,本申请实施例提供的一种单主板多版本程序适配方法,该方法首先在单一主板上预留一定数量的GPIO PIN,以通过这些GPIO PIN反馈回的信息确定将启用的目标版本程序,接着只需按照包含有各版本程序与各待同步SMBios字符串确定与该目标版本程序对应的目标SMBios字符串,最后将该目标SMBios字符串同步至SMBios结构体中即可启用该目标版本程序对应的代码分支。依照该方法可基于单一控制主板完成对多版本程序的适配问题,相比于现有技术需要使用与程序版本数相同数量的控制主板,可以在保证功能实现的基础上有效降低实现成本。Based on the above technical solution, the embodiment of the present application provides a method for adapting programs of multiple versions on a single mainboard. The method first reserves a certain number of GPIO PINs on a single mainboard, so as to use the information fed back by these GPIO PINs to determine the The target version program, then only need to determine the target SMBios string corresponding to the target version program according to the version program and the SMBios string to be synchronized, and finally synchronize the target SMBios string to the SMBios structure to enable the The code branch corresponding to the target version program. According to this method, the adaptation problem of multi-version programs can be completed based on a single control board. Compared with the prior art that needs to use the same number of control boards as the number of program versions, the implementation cost can be effectively reduced on the basis of ensuring the realization of functions.

实施例二Embodiment two

以下结合图2,图2为本申请实施例提供的另一种单主板多版本程序适配方法的流程图,本实施例在实施例一的基础上,给出一种GPIO PIN返回高低电平信号并依照一套预设设定的信号处理方式得以确定将启用的目标版本程序的具体实现方式,具体包括以下步骤:In conjunction with Fig. 2 below, Fig. 2 is a flow chart of another single-board multi-version program adaptation method provided by the embodiment of the present application. On the basis of the first embodiment, this embodiment provides a GPIO PIN return high and low level The specific implementation method of the target version program to be enabled is determined according to a set of preset signal processing methods, which specifically includes the following steps:

S201:接收各GPIO PIN分别返回的高低电平信号;S201: Receive the high and low level signals returned by each GPIO PIN respectively;

其中,预设规则为一个GPIO PIN返回高电平信号说明其处于导通状态、返回低电平信号说明其处于截止状态。Among them, the preset rule is that a GPIO PIN returns a high level signal to indicate that it is in the on state, and a return of a low level signal indicates that it is in the off state.

S202:按高电平信号置1、低电平信号置0的原则对高低电平信号按预设的GPIOPIN排序进行排列,得到目标二进制代码;S202: According to the principle of setting high-level signals to 1 and low-level signals to 0, arrange the high-level and low-level signals according to the preset GPIOPIN sequence to obtain the target binary code;

预设信号处理规则为高电平信号置1、低电平信号置0,并按照为每个GPIO PIN预设的排序将这些1或0进行排列,以得到目标二进制代码。之所以使用此种方式可得到数量较多的版本程序数量上限,假定预留的GPIO PIN预留的针脚数为K,理论上依据此种方式可最多得到2K个组合方案。The preset signal processing rule is to set 1 for high-level signals and 0 for low-level signals, and arrange these 1 or 0 according to the preset order for each GPIO PIN to obtain the target binary code. The reason why a large number of version programs can be obtained by using this method is that the number of pins reserved for the reserved GPIO PIN is K. In theory, a maximum of 2 K combination solutions can be obtained based on this method.

S203:将目标二进制代码作为目标版本程序的唯一识别标识;S203: Use the target binary code as the unique identification of the target version program;

S204:根据对应关系表匹配与唯一识别标识对应的待同步SMBios字符串,得到目标SMBios字符串;S204: Match the SMBios string to be synchronized corresponding to the unique identification identifier according to the correspondence table to obtain the target SMBios string;

S205:对SMBios结构体执行初始化操作;S205: Perform an initialization operation on the SMBios structure;

本步骤为避免SMBios结构体中残留的数据为新同步进的数据造成干扰和冲突,还提供了对SMBios结构体执行初始化操作的方法。In order to prevent the residual data in the SMBios structure from interfering with and conflicting with the newly synchronized data, this step also provides a method for performing an initialization operation on the SMBios structure.

S206:将目标SMBios字符串同步至SMBios结构体,以根据SMBios结构体中的内容选择执行与目标版本程序对应的代码分支。S206: Synchronize the target SMBios string to the SMBios structure, so as to select and execute the code branch corresponding to the target version program according to the content in the SMBios structure.

实施例三Embodiment three

本实施例结合具体应用场景,给出一种具体的实现方式,分主板硬件设置部分、Bios设置分布、SMBios同步三个部分,以下将对每个部分分别阐述:This embodiment combines specific application scenarios to provide a specific implementation method, which is divided into three parts: motherboard hardware setting, Bios setting distribution, and SMBios synchronization. The following will describe each part separately:

1、主板硬件设置部分:1. Motherboard hardware setting part:

在主板上预留一定数量的GPIO PIN,设置为INPUT(输入端口),作为Board ID(主板编号)来使用,一般预留5个,可根据不同的情况增减;Reserve a certain number of GPIO PINs on the motherboard, set them as INPUT (input ports), and use them as Board IDs (mainboard numbers). Generally, 5 are reserved, which can be increased or decreased according to different situations;

2、BIOS设置部分2. BIOS setting part

(1)根据不同的Board ID设置不同的版本程序名。(1) Set different version program names according to different Board IDs.

(2)根据不同的版本程序名去执行不同的代码分支,代码分支包含项目名等平台相关的字符串信息。(2) Execute different code branches according to different version program names, and the code branches contain platform-related string information such as project names.

3、SMbios同步部分3. SMbios synchronization part

(1)用CreateEvent事件函数生成一个事件对象,假定将这个事件函数的名称命名为ReviseSmbiosRecord,假定将这个事件对象的名称命名为SmbiosOverrideEvent。其中,这个被命名为ReviseSmbiosRecord的事件函数的主要作用是将步骤2中设置代码分支以及代码分支中包含的字符串信息同步至SMBios结构体;(1) Use the CreateEvent event function to generate an event object. Suppose the name of the event function is ReviseSmbiosRecord, and the name of the event object is SmbiosOverrideEvent. Among them, the main function of this event function named ReviseSmbiosRecord is to synchronize the code branch set in step 2 and the string information contained in the code branch to the SMBios structure;

(2)将生成的事件对象注册通知函数,假定将这个事件对应的通知函数注册为gEndOfBdsBootSelectionProtocolGuid,则说明这个新命名的通知函数用于指代名称被命名为SmbiosOverrideEvent的事件对象;(2) Register the notification function with the generated event object. Assuming that the notification function corresponding to this event is registered as gEndOfBdsBootSelectionProtocolGuid, it means that the newly named notification function is used to refer to the event object whose name is named SmbiosOverrideEvent;

(3)在BIOS执行到BDS阶段(功能启动四阶段中的最后一个阶段,主要功能是执行启动策略,BIOS在这一阶段引导操作系统并将控制权交给操作系统)执行InstallProtocolInterface函数,该函数用于安装一个以为例gEndOfBdsBootSelectionProtocolGuid的通知函数;(3) When the BIOS executes to the BDS stage (the last stage in the four stages of function startup, the main function is to execute the startup strategy, the BIOS guides the operating system at this stage and gives control to the operating system) to execute the InstallProtocolInterface function, which function Used to install a notification function taking gEndOfBdsBootSelectionProtocolGuid as an example;

(4)在通知函数被安装后,与该通知函数对应的事件对象将被触发,该事件函数将被执行,将会将用于确定并执行相应代码分支的字符串信息同步至SMBios结构体。(4) After the notification function is installed, the event object corresponding to the notification function will be triggered, the event function will be executed, and the string information used to determine and execute the corresponding code branch will be synchronized to the SMBios structure.

本实施例提供了一种使用单控制主板实现多版本程序适配的实现方案,可们仅通过对硬件的主板编号区分得以动态适配SMBios结构体中的字符串,以满足上层系统的要求,并可以嵌套在一套平台的代码当中,解决不同项目的BIOS代码共用中SMBios的适配问题。This embodiment provides an implementation scheme for using a single control board to realize multi-version program adaptation, which can dynamically adapt the character strings in the SMBios structure only by distinguishing the number of the main board of the hardware, so as to meet the requirements of the upper system. And it can be nested in the code of a set of platforms to solve the adaptation problem of SMBios in the sharing of BIOS codes of different projects.

因为情况复杂,无法一一列举进行阐述,本领域技术人员应能意识到根据本申请提供的基本方法原理结合实际情况可以存在很多的例子,在不付出足够的创造性劳动下,应均在本申请的保护范围内。Because of the complexity of the situation, it is impossible to list and explain them one by one. Those skilled in the art should be able to realize that there may be many examples based on the basic method principles provided by this application combined with actual situations. within the scope of protection.

下面请参见图3,图3为本申请实施例提供的一种单主板多版本程序适配系统的结构框图,该单主板多版本程序适配系统可以包括:Please refer to FIG. 3 below. FIG. 3 is a structural block diagram of a single-mainboard multi-version program adaptation system provided by an embodiment of the present application. The single-mainboard multi-version program adaptation system may include:

唯一识别标识接收单元100,用于接收GPIO PIN反馈回的目标版本程序的唯一识别标识;其中,在主板上预留有预设数量的GPIO PIN,主板通过GPIO PIN连接N个分别执行不同版本程序的设备,N≥2,目标版本程序为将启用的程序版本;The unique identification mark receiving unit 100 is used to receive the unique identification mark of the target version program fed back by the GPIO PIN; wherein, a preset number of GPIO PINs are reserved on the main board, and the main board connects N through the GPIO PIN to execute different versions of the program respectively equipment, N≥2, the target version program is the program version to be enabled;

目标SMBios字符串匹配单元200,用于根据对应关系表匹配与唯一识别标识对应的待同步SMBios字符串,得到目标SMBios字符串;其中,对应关系表中记录有各唯一识别标识与各待同步SMBios字符串间的对应关系;The target SMBios string matching unit 200 is used to match the SMBios string to be synchronized corresponding to the unique identification mark according to the correspondence table to obtain the target SMBios string; wherein, each unique identification mark and each SMBios to be synchronized are recorded in the correspondence table Correspondence between strings;

目标SMBios字符串同步单元300,用于将目标SMBios字符串同步至SMBios结构体,以根据SMBios结构体中的内容选择执行与目标版本程序对应的代码分支。The target SMBios string synchronization unit 300 is configured to synchronize the target SMBios string to the SMBios structure, so as to select and execute the code branch corresponding to the target version program according to the content in the SMBios structure.

其中,唯一识别标识接收单元100可以包括:Wherein, the unique identification mark receiving unit 100 may include:

高低电平信号接收子单元,用于接收各GPIO PIN分别返回的高低电平信号;其中,一个GPIO PIN返回高电平信号说明其处于导通状态、返回低电平信号说明其处于截止状态;The high and low level signal receiving sub-unit is used to receive the high and low level signals returned by each GPIO PIN; among them, a GPIO PIN returns a high level signal to indicate that it is in the on state, and returns a low level signal to indicate that it is in the off state;

信号处理子单元,用于按高电平信号置1、低电平信号置0的原则对高低电平信号按预设的GPIO PIN排序进行排列,得到目标二进制码;The signal processing sub-unit is used to arrange the high-level and low-level signals according to the preset GPIO PIN order according to the principle of setting high-level signals to 1 and setting low-level signals to 0, to obtain the target binary code;

唯一识别标识获得子单元,用于将目标二进制码作为目标版本程序的唯一识别标识。The unique identifier obtaining subunit is used to use the target binary code as the unique identifier of the target version program.

进一步的,该单主板多版本程序适配系统还可以包括:Further, the single mainboard multi-version program adaptation system may also include:

初始化单元,用于在将目标SMBios字符串同步至SMBios结构体之前,对SMBios结构体执行初始化操作。The initialization unit is used for performing an initialization operation on the SMBios structure before synchronizing the target SMBios string to the SMBios structure.

进一步的,该单主板多版本程序适配系统还可以包括:Further, the single mainboard multi-version program adaptation system may also include:

适配日志记录单元,用于记录每次同步至SMBios结构体的目标SMBios字符串和对应的唯一识别标识,得到多版本程序适配日志。The adaptation log recording unit is used to record the target SMBios string and the corresponding unique identification that are synchronized to the SMBios structure each time, so as to obtain the multi-version program adaptation log.

基于上述实施例,本申请还提供了一种单主板多版本程序适配装置,该单主板多版本程序适配装置可以包括存储器和处理器,其中,该存储器中存有计算机程序,该处理器调用该存储器中的计算机程序时,可以实现上述实施例所提供的步骤。当然,该单主板多版本程序适配装置还可以包括各种必要的网络接口、电源以及其它零部件等。Based on the above-mentioned embodiments, the present application also provides a single-mainboard multi-version program adaptation device, the single-mainboard multi-version program adaptation device may include a memory and a processor, wherein a computer program is stored in the memory, and the processor When the computer program in the memory is called, the steps provided in the above embodiments can be realized. Of course, the multi-version program adaptation device for a single mainboard may also include various necessary network interfaces, power supplies and other components.

本申请还提供了一种计算机可读存储介质,其上存有计算机程序,该计算机程序被执行终端或处理器执行时可以实现上述实施例所提供的步骤。该存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random AccessMemory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by an execution terminal or a processor, the steps provided in the above-mentioned embodiments can be realized. The storage medium may include various media capable of storing program codes such as a U disk, a removable hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk.

说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。In this paper, specific examples are used to illustrate the principles and implementation methods of the present application, and the descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. For those of ordinary skill in the art, without departing from the principle of the application, some improvements and modifications can be made to the application, and these improvements and modifications also fall within the protection scope of the claims of the application.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relative terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or order between the operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

Claims (10)

1.一种单主板多版本程序适配方法,其特征在于,包括:1. A multi-version program adaptation method for a single main board, characterized in that it comprises: 接收GPIO PIN反馈回的目标版本程序的唯一识别标识;其中,在主板上预留有预设数量的GPIO PIN,所述主板通过所述GPIO PIN连接N个分别执行不同版本程序的设备,N≥2,所述目标版本程序为将启用的程序版本;Receive the unique identification of the target version program fed back by the GPIO PIN; wherein, a preset number of GPIO PINs are reserved on the main board, and the main board is connected to N devices that respectively execute different versions of the program through the GPIO PIN, N≥ 2. The target version program is the program version to be enabled; 根据对应关系表匹配与所述唯一识别标识对应的待同步SMBios字符串,得到目标SMBios字符串;其中,所述对应关系表中记录有各唯一识别标识与各待同步SMBios字符串间的对应关系;Match the SMBios string to be synchronized corresponding to the unique identification mark according to the correspondence table, and obtain the target SMBios string; wherein, the corresponding relationship between each unique identification mark and each SMBios string to be synchronized is recorded in the correspondence table ; 将所述目标SMBios字符串同步至SMBios结构体,以根据所述SMBios结构体中的内容选择执行与所述目标版本程序对应的代码分支。Synchronize the target SMBios string to the SMBios structure, so as to select and execute the code branch corresponding to the target version program according to the content in the SMBios structure. 2.根据权利要求1所述方法,其特征在于,接收GPIO PIN反馈回的目标版本程序的唯一识别标识,包括:2. The method according to claim 1, wherein receiving the unique identification of the target version program fed back by the GPIO PIN includes: 接收各所述GPIO PIN分别返回的高低电平信号;其中,一个所述GPIO PIN返回高电平信号说明其处于导通状态、返回低电平信号说明其处于截止状态;Receive the high and low level signals returned by each of the GPIO PINs respectively; wherein, one of the GPIO PINs returns a high level signal to indicate that it is in a conduction state, and returns a low level signal to indicate that it is in an off state; 按高电平信号置1、低电平信号置0的原则对所述高低电平信号按预设的GPIO PIN排序进行排列,得到目标二进制代码;According to the principle of setting high-level signals to 1 and low-level signals to 0, the high-level and low-level signals are arranged according to the preset GPIO PIN sorting to obtain the target binary code; 将所述目标二进制代码作为所述目标版本程序的唯一识别标识。The target binary code is used as the unique identification of the target version program. 3.根据权利要求1所述方法,其特征在于,在将所述目标SMBios字符串同步至SMBios结构体之前,还包括:3. The method according to claim 1, wherein, before synchronizing the target SMBios character string to the SMBios structure, further comprising: 对所述SMBios结构体执行初始化操作。Perform an initialization operation on the SMBios structure. 4.根据权利要求1至3任一项所述方法,其特征在于,还包括:4. The method according to any one of claims 1 to 3, further comprising: 记录每次同步至所述SMBios结构体的目标SMBios字符串和对应的唯一识别标识,得到多版本程序适配日志。Record the target SMBios character string and the corresponding unique identification that are synchronized to the SMBios structure each time, and obtain the multi-version program adaptation log. 5.一种单主板多版本程序适配系统,其特征在于,包括:5. A multi-version program adaptation system for a single main board, characterized in that it comprises: 唯一识别标识接收单元,用于接收GPIO PIN反馈回的目标版本程序的唯一识别标识;其中,在主板上预留有预设数量的GPIO PIN,所述主板通过所述GPIO PIN连接N个分别执行不同版本程序的设备,N≥2,所述目标版本程序为将启用的程序版本;The unique identification identification receiving unit is used to receive the unique identification identification of the target version program fed back by the GPIO PIN; wherein, a preset number of GPIO PINs are reserved on the main board, and the main board is connected to N by the GPIO PINs to execute respectively For devices with different versions of programs, N≥2, the target version of the program is the version of the program to be enabled; 目标SMBios字符串匹配单元,用于根据对应关系表匹配与所述唯一识别标识对应的待同步SMBios字符串,得到目标SMBios字符串;其中,所述对应关系表中记录有各唯一识别标识与各待同步SMBios字符串间的对应关系;The target SMBios string matching unit is used to match the SMBios string to be synchronized corresponding to the unique identification mark according to the correspondence table to obtain the target SMBios string; wherein, each unique identification mark and each Correspondence between SMBios strings to be synchronized; 目标SMBios字符串同步单元,用于将所述目标SMBios字符串同步至SMBios结构体,以根据所述SMBios结构体中的内容选择执行与所述目标版本程序对应的代码分支。The target SMBios string synchronization unit is used to synchronize the target SMBios string to the SMBios structure, so as to select and execute the code branch corresponding to the target version program according to the content in the SMBios structure. 6.根据权利要求5所述系统,其特征在于,所述唯一识别标识接收单元包括:6. The system according to claim 5, wherein the unique identification receiving unit comprises: 高低电平信号接收子单元,用于接收各所述GPIO PIN分别返回的高低电平信号;其中,一个所述GPIO PIN返回高电平信号说明其处于导通状态、返回低电平信号说明其处于截止状态;The high and low level signal receiving subunit is used to receive the high and low level signals returned by each of the GPIO PINs; wherein, one of the GPIO PINs returns a high level signal to indicate that it is in a conducting state, and returns a low level signal to indicate its is in a closed state; 信号处理子单元,用于按高电平信号置1、低电平信号置0的原则对所述高低电平信号按预设的GPIO PIN排序进行排列,得到目标二进制码;The signal processing subunit is used to arrange the high-level and low-level signals according to the preset GPIO PIN order according to the principle of setting the high-level signal to 1 and setting the low-level signal to 0, so as to obtain the target binary code; 唯一识别标识获得子单元,用于将所述目标二进制码作为所述目标版本程序的唯一识别标识。The unique identifier obtaining subunit is used to use the target binary code as the unique identifier of the target version program. 7.根据权利要求5所述系统,其特征在于,还包括:7. The system according to claim 5, further comprising: 初始化单元,用于在将所述目标SMBios字符串同步至SMBios结构体之前,对所述SMBios结构体执行初始化操作。The initialization unit is used to perform an initialization operation on the SMBios structure before synchronizing the target SMBios string to the SMBios structure. 8.根据权利要求5至7任一项所述系统,其特征在于,还包括:8. The system according to any one of claims 5 to 7, further comprising: 适配日志记录单元,用于记录每次同步至所述SMBios结构体的目标SMBios字符串和对应的唯一识别标识,得到多版本程序适配日志。The adaptation log recording unit is used to record the target SMBios character string and the corresponding unique identification that are synchronized to the SMBios structure each time, so as to obtain the multi-version program adaptation log. 9.一种单主板多版本程序适配装置,其特征在于,包括:9. A multi-version program adaptation device for a single main board, characterized in that it comprises: 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,用于执行所述计算机程序时实现如权利要求1至4任一项所述的单主板多版本程序适配方法的步骤。The processor is configured to implement the steps of the single-mainboard multi-version program adaptation method according to any one of claims 1 to 4 when executing the computer program. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至4任一项所述的单主板多版本程序适配方法的步骤。10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the unit according to any one of claims 1 to 4 is implemented. The steps of the adaptation method of the mainboard multi-version program.
CN201810668983.4A 2018-06-26 2018-06-26 A kind of list mainboard multi version program adaptation method, system, device and storage medium Pending CN108959169A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810668983.4A CN108959169A (en) 2018-06-26 2018-06-26 A kind of list mainboard multi version program adaptation method, system, device and storage medium
PCT/CN2018/123679 WO2020000957A1 (en) 2018-06-26 2018-12-26 Single mainboard multi-version program adaptation method, system, and device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810668983.4A CN108959169A (en) 2018-06-26 2018-06-26 A kind of list mainboard multi version program adaptation method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN108959169A true CN108959169A (en) 2018-12-07

Family

ID=64486704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810668983.4A Pending CN108959169A (en) 2018-06-26 2018-06-26 A kind of list mainboard multi version program adaptation method, system, device and storage medium

Country Status (2)

Country Link
CN (1) CN108959169A (en)
WO (1) WO2020000957A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020000957A1 (en) * 2018-06-26 2020-01-02 郑州云海信息技术有限公司 Single mainboard multi-version program adaptation method, system, and device, and storage medium
CN114327549A (en) * 2021-12-27 2022-04-12 杭州圆规网络科技有限公司 Compatible control method and device, storage medium, and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799479A (en) * 2011-05-26 2012-11-28 鸿富锦精密工业(深圳)有限公司 Mainboard with multifunctional basic input output system (BIOS) and test method thereof
CN104571948A (en) * 2014-12-11 2015-04-29 乐视致新电子科技(天津)有限公司 Method and system with compatibility of multiple DDRs (double data rate)
CN104767638A (en) * 2015-03-16 2015-07-08 浪潮集团有限公司 A method for automatically configuring integrated network card control by setting tag values
CN105975289A (en) * 2015-07-06 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for obtaining hardware version information
CN107220056A (en) * 2017-05-26 2017-09-29 郑州云海信息技术有限公司 A kind of method of automatic load server BIOS parameters
CN107491293A (en) * 2017-04-14 2017-12-19 广东浪潮大数据研究有限公司 A kind of BIOS foundation code design methods based on Board ID
US20180101394A1 (en) * 2014-04-30 2018-04-12 Huawei Technologies Co., Ltd. Method and embedded device for loading driver

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201374055Y (en) * 2009-03-20 2009-12-30 英业达科技有限公司 Computer system initiatively distinguishing mainboard
CN102073514A (en) * 2009-11-23 2011-05-25 英业达股份有限公司 Basic input and output system update method
CN106681700A (en) * 2015-11-09 2017-05-17 中国长城计算机深圳股份有限公司 Firmware identification method and system based on mainboard ID
CN106598564A (en) * 2016-10-24 2017-04-26 郑州云海信息技术有限公司 Method for implementing BIOS capable of self-adapting to different main boards, BIOS, and main board
CN108959169A (en) * 2018-06-26 2018-12-07 郑州云海信息技术有限公司 A kind of list mainboard multi version program adaptation method, system, device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799479A (en) * 2011-05-26 2012-11-28 鸿富锦精密工业(深圳)有限公司 Mainboard with multifunctional basic input output system (BIOS) and test method thereof
US20180101394A1 (en) * 2014-04-30 2018-04-12 Huawei Technologies Co., Ltd. Method and embedded device for loading driver
CN104571948A (en) * 2014-12-11 2015-04-29 乐视致新电子科技(天津)有限公司 Method and system with compatibility of multiple DDRs (double data rate)
CN104767638A (en) * 2015-03-16 2015-07-08 浪潮集团有限公司 A method for automatically configuring integrated network card control by setting tag values
CN105975289A (en) * 2015-07-06 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for obtaining hardware version information
CN107491293A (en) * 2017-04-14 2017-12-19 广东浪潮大数据研究有限公司 A kind of BIOS foundation code design methods based on Board ID
CN107220056A (en) * 2017-05-26 2017-09-29 郑州云海信息技术有限公司 A kind of method of automatic load server BIOS parameters

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020000957A1 (en) * 2018-06-26 2020-01-02 郑州云海信息技术有限公司 Single mainboard multi-version program adaptation method, system, and device, and storage medium
CN114327549A (en) * 2021-12-27 2022-04-12 杭州圆规网络科技有限公司 Compatible control method and device, storage medium, and electronic device

Also Published As

Publication number Publication date
WO2020000957A1 (en) 2020-01-02

Similar Documents

Publication Publication Date Title
US10447814B2 (en) Joint servicing of software packages
CN110399267B (en) PCIE (peripheral component interface express) equipment monitoring method, system and equipment of server and readable storage medium
CN110928559B (en) Data burning method, device, electronic equipment and storage medium
CN112445729B (en) Operation address determination method, PCIe system, electronic device and storage medium
CN110096314B (en) Interface initialization method, device, equipment and computer readable storage medium
CN111694612A (en) Configuration checking method, device, computer system and storage medium
EP4127909A1 (en) Method for deploying application software in cloud environments
CN108959169A (en) A kind of list mainboard multi version program adaptation method, system, device and storage medium
CN117369903A (en) Configuration processing method, device, equipment and storage medium of target equipment
EP4060484A1 (en) Control method and control device for enabling operations of application program in multiple systems
CN111294413A (en) Method, device and readable medium for determining Internet Protocol (IP) address
CN115113943B (en) Method, device, equipment and storage medium for determining matching degree between board and slot
WO2021114902A1 (en) Program initialization method, program initialization device, terminal device, and storage medium
CN109871408B (en) A multi-type database adaptation method, device, electronic equipment and storage medium
CN112433783A (en) Configuration method and related equipment
CN110231944A (en) Automatically dispose method, apparatus, system and computer readable storage medium
CN112818129B (en) Atlas modeling system and method
CN105515786A (en) Network card, server and pre-boot test method
CN114356379A (en) Backup-based service upgrading method, device, equipment and storage medium
CN109032641A (en) Application version update method and device
CN107766070A (en) A kind of service card upgrade method, device, equipment and computer-readable recording medium
CN113010207A (en) Resource allocation method and device, electronic equipment and storage medium
CN118585259A (en) Configuration information acquisition method, device, baseboard management controller, system and medium
CN111984293A (en) An information processing method, device and storage medium
CN110597536A (en) Software upgrading method, system and terminal equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207

RJ01 Rejection of invention patent application after publication