Single motherboard multi-version program adaptation method, system and device and storage medium
A multi-version and program technology, applied to general-purpose stored program computers, architectures with a single central processing unit, instruments, etc., to achieve the effect of reducing implementation costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] The following combination figure 1 , figure 1 A flow chart of a method for adapting programs with multiple versions on a single motherboard provided in the embodiment of this application, which specifically includes the following steps:
[0044] S101: Receive the unique identification of the target version program fed back by the GPIO PIN;
[0045] 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...
Embodiment 2
[0058] The following combination figure 2 , figure 2 The flow chart of another single motherboard multi-version program adaptation method provided by the embodiment of this application. On the basis of the first embodiment, this embodiment provides a GPIO PIN to return high and low level signals and follow a set of presets. The set signal processing method can determine the specific implementation method of the target version program to be enabled, which specifically includes the following steps:
[0059] S201: Receive the high and low level signals returned by each GPIO PIN respectively;
[0060] 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.
[0061] 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...
Embodiment 3
[0069] 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:
[0070] 1. Motherboard hardware setting part:
[0071] 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;
[0072] 2. BIOS setting part
[0073] (1) Set different version program names according to different Board IDs.
[0074] (2) Execute different code branches according to different version program names, and the code branches contain platform-related string information such as project names.
[0075] 3. SMbios synchronization part
[0076] (1) Use the CreateEvent event function to generate an event object. Suppose ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


