CN110007973A - A kind of information processing method and electronic equipment - Google Patents
A kind of information processing method and electronic equipment Download PDFInfo
- Publication number
- CN110007973A CN110007973A CN201910234825.2A CN201910234825A CN110007973A CN 110007973 A CN110007973 A CN 110007973A CN 201910234825 A CN201910234825 A CN 201910234825A CN 110007973 A CN110007973 A CN 110007973A
- Authority
- CN
- China
- Prior art keywords
- electronic equipment
- information
- hardware device
- attribute information
- target
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a kind of information processing methods, this method comprises: obtaining the first attribute information of the first hardware device being electrically connected with electronic equipment;Based on first attribute information, the second attribute information of the second hardware device not being electrically connected with the electronic equipment is obtained;Wherein, second hardware device is the device that can replace first hardware device;Based on second attribute information, target drives program is obtained;Based on second attribute information and the target drives program, the registration table of the electronic equipment is updated.The embodiment of the present invention also discloses a kind of electronic equipment simultaneously.
Description
Technical field
The present invention relates to electron and information technology fields, more particularly, to a kind of information processing method and electronic equipment.
Background technique
The performance of the electronic equipments such as server depends greatly on the performance of hardware device, when user needs to work as
Preceding the first hardware device electrically connected with electronic equipment, replaces with the second hardware device identical with the first hardware appliance types
When, the first hardware device can be pulled up, and the second hardware device is inserted into the electronic equipment;However, due in electronic equipment
Registration table is still corresponding with the first hardware device, thus electronic equipment is understood during starting due to can not find registration table
In the first hardware device and start failure.
In the related technology, it when user needs the first hardware device replacing with the second hardware device, first closes electronics and sets
Standby, on the basis of keeping the first hardware device insertion electronic equipment, the second hardware device of insertion to electronic equipment starts electronics and sets
It is standby, and after starting electronic equipment, according to the second hardware device for being inserted into electronic equipment come more new registry, registration table more
After the completion of new, it is again switched off electronic equipment, the first hardware device is pulled up from electronic equipment, and restart electronic equipment.
Obviously, in the related technology in order to which the first hardware device is changed to the second hardware device, and enable electronic equipment
Normal starting needs to be inserted into the first hardware device and the second hardware device simultaneously, but works as after the closing of first time electronic equipment
Electronic equipment only one be used for be inserted into hardware device card slot when, the first hardware device can not just be replaced with the second hardware dress
It sets.Further, even if there are two card slots for electronic equipment tool, but the electronic equipments such as server need a few minutes to dozens of minutes
The starting time, since electronic equipment needs to be implemented the operation of switching on and shutting down twice, thus to electronic equipment operation business generate
Very big influence.
Summary of the invention
In order to solve the above technical problems, an embodiment of the present invention is intended to provide a kind of information processing method and electronic equipment, solution
Certainly in the related technology electronic equipment only one be used for be inserted into hardware device card slot when, the first hardware device can not be replaced with
Second hardware device, and in order to the first hardware device is changed to the second hardware device, the operation of switching on and shutting down twice is needed to be implemented,
The problem of to be had a huge impact to the business of electronic equipment operation.
The technical scheme of the present invention is realized as follows:
A kind of information processing method, which comprises
Obtain the first attribute information of the first hardware device being electrically connected with electronic equipment;
Based on first attribute information, obtain the second hardware device not being electrically connected with the electronic equipment second belongs to
Property information;Wherein, second hardware device is the device that can replace first hardware device;
Based on second attribute information, target drives program is obtained;
Based on second attribute information and the target drives program, the registration table of the electronic equipment is updated.
Optionally, it is based on second attribute information and the target drives program described, updates the electronic equipment
Registration table after, the method also includes:
Receive the power-on instruction for being directed to the electronic equipment;
Based on the power-on instruction, updated registration table is loaded, and be electrically connected by driving with the electronic equipment
Second hardware device executes power-on operation.
Optionally, described to be based on second attribute information and the target drives program, update the electronic equipment
Registration table, comprising:
Based on second attribute information and the target drives program, obtain for driving the second hardware device work
The registry information modified required for making;
Based on the registry information, the registration table of the electronic equipment is updated.
Optionally, described to be based on second attribute information and the target drives program, it obtains for driving described the
The registry information modified required for the work of two hardware devices, comprising:
Obtain target slot position information corresponding with second hardware device;
Based on second attribute information, the target drives program and the target slot position information, obtain for driving
Move the registry information modified required for second hardware device;
Correspondingly, described to be based on the power-on instruction, updated registration table is loaded, and set with the electronics by driving
Second hardware device of standby electrical connection executes power-on operation, comprising:
Based on the power-on instruction, updated registration table is loaded, and target slot position and the electronics are utilized by driving
Second hardware device of equipment electrical connection executes power-on operation;Wherein, the target slot position is corresponding with the target slot position information.
It is optionally, described to be based on second attribute information, the target drives program and the target slot position information,
Obtain the registry information for driving modification required for second hardware device, comprising:
Based on second attribute information, the target drives program and the target slot position information, described the is obtained
The first information, the second information and the third information for needing to modify under the destination path of one registration table;Wherein, the first information
Including second attribute information and the target slot position information;Second information includes the path of the target drives program
Information;The third information includes the configuration information for controlling the starting information and second hardware device of the electronic equipment;
Correspondingly, it is based on second attribute information and the target drives program, updates the registration of the electronic equipment
Table, comprising:
Based on the first information, second information and the third information, the registration of the electronic equipment is updated
Table.
Optionally, described to be based on first attribute information, obtain the second hardware not being electrically connected with the electronic equipment
Second attribute information of device, comprising:
Hardware device information list is set;Wherein, the hardware device information list includes at least two compatible
The attribute information of hardware device;
Based on first attribute information, from the hardware device information list, obtain not electric with the electronic equipment
Second attribute information of the second hardware device of connection.
Optionally, described to be based on second attribute information, obtain target drives program, comprising:
Based on second attribute information, however, it is determined that the operating system of the electronic equipment includes for driving described second
First driver of hardware device determines that first driver is the target drives program;
If it is determined that the operating system of the electronic equipment does not include for driving the first of second hardware device to drive
Program obtains the second driver for driving second hardware device from cloud or target electronic device;
Second driver is set in the operating system, and determines that second driver is the target
Driver.
A kind of electronic equipment, the electronic equipment include processor and memory;
The processor, for obtaining the first of the first hardware device being electrically connected with electronic equipment from the memory
Attribute information;
The processor, is also used to based on first attribute information, obtains the not be electrically connected with the electronic equipment
Second attribute information of two hardware devices;Wherein, second hardware device is the dress for replacing first hardware device
It sets;
The processor is also used to obtain target drives program based on second attribute information;
The processor is also used to update the storage based on second attribute information and the target drives program
The registration table of the electronic equipment stored in device.
Optionally, the processor is also used to receive the power-on instruction for being directed to the electronic equipment;
The processor is also used to load updated registration table from the memory based on the power-on instruction, and
By driving the second hardware device being electrically connected with the electronic equipment to execute power-on operation.
Optionally, first hardware device is the first magnetic disc array card, and second hardware device is second disk battle array
Column card.
Information processing method and electronic equipment provided by the embodiment of the present invention obtain first be electrically connected with electronic equipment
First attribute information of hardware device is based on the first attribute information, obtains and is not electrically connected with electronic equipment, and can replace the
Second attribute information of the second hardware device of one hardware device is based on the second attribute information, obtains target drives program, and base
In the second attribute information and target drives program, the registration table of electronic equipment is updated;Due to be based on the second attribute information and
Target drives program, rather than it is inserted into the second hardware device of electronic equipment, the registration table of Lai Gengxin electronic equipment, therefore,
When only one is used to be inserted into the card slot of hardware device in electronic equipment, it is hard that the first hardware device still can be replaced with to second
Part device;Also, the process for updating the registration table of electronic equipment is completed under current open state, therefore electronic equipment
The second hardware device can be changed to for the first hardware device by only needing the operation of a switching on and shutting down, to the industry of electronic equipment operation
The influence that business generates is smaller.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of information processing method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another information processing method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another information processing method provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.
It should be understood that " embodiment of the present invention " or " previous embodiment " that specification is mentioned in the whole text means have with embodiment
The a particular feature, structure, or characteristic of pass is included at least one embodiment of the present invention.Therefore, go out everywhere in the whole instruction
Existing " in the embodiment of the present invention " or " in the aforementioned embodiment " not necessarily refers to identical embodiment.In addition, these are specific
Feature, structure or characteristic can be combined in any suitable manner and be answered in one or more embodiments.In various realities of the invention
It applies in example, magnitude of the sequence numbers of the above procedures are not meant that the order of the execution order, the execution sequence Ying Yiqi of each process
Function and internal logic determine that the implementation process of the embodiments of the invention shall not be constituted with any limitation.Aforementioned present invention is implemented
Example serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
The embodiment of the present invention provides a kind of information processing method, is applied to electronic equipment, as shown in Figure 1, this method includes
Following steps:
Step 101: obtaining the first attribute information of the first hardware device being electrically connected with electronic equipment.
The present invention is that the electronic equipment in embodiment can be server.In other embodiments, electronic equipment can be
Any equipment with information processing capability, such as mobile phone, tablet computer, laptop, palm PC, individual digital help
Reason, portable media player, navigation device, wearable device, Intelligent bracelet, pedometer, number TV or desktop computer
Deng.
In the embodiment of the present invention, the first hardware device is the first disk array (Redundant Arrays of
Independent Drives, RAID) card.Magnetic disc array card is that it is huge to be combined into a capacity by the independent disk of many blocks
Disk group, utilize a part of disk provide data caused by the entire disk system efficiency of effect promoting card.Utilize this
Data are cut into many sections, are stored on each hard disk respectively by technology.In other embodiments of the present invention, the first hardware
As long as device can also can generate the hardware device electrically connected between other and electronic equipment, for example, processing unit, hard
Disk, display device or control device etc., are not construed as limiting herein.
In one embodiment, the first attribute information for obtaining the first hardware device being electrically connected with electronic equipment, can
To include: the first type information and the first manufacturer's information of the first hardware device that acquisition is electrically connected with electronic equipment.Wherein,
One type information can be divided according to the capacity or interface type of the first hardware device, for example, capacity may include
100GB, 800GB and 750GB etc., interface type may include SAS, USB3.0 and SATA etc..First manufacturer's information is used for
The manufacturer's information, such as Samsung, Dell and West Digital etc. of characterization the first hardware device of production.Herein to the type of hardware device
Number information and manufacturer's information are not construed as limiting.
Electronic equipment can be equipped with interface or card slot for connecting the first hardware device, and the first hardware device can pass through
The interface or card slot grafting on an electronic device, are electrically connected to realize with electronic equipment.
Step 102: being based on the first attribute information, obtain the second hardware device not being electrically connected with electronic equipment second belongs to
Property information.
Wherein, the second hardware device is the device that can replace the first hardware device.
In the embodiment of the present invention, the second hardware device can be second disk RAID card.In other embodiments of the present invention,
Second hardware device can be other hardware devices identical with the first hardware appliance types.For example, when the first hardware device is
When processing unit, the second hardware device also should be processing unit, and cannot be hard disk.
In one embodiment, it is based on the first attribute information, obtains the second hardware dress not being electrically connected with electronic equipment
The second attribute information set may include: to obtain the second hardware dress not being electrically connected with electronic equipment based on the first attribute information
The second type information set and the second manufacturer's information.Wherein, the second type information can also be according to the capacity of the second hardware device
Or interface type is divided.Second manufacturer's information is used to characterize the manufacturer's information of the second hardware device of production.Second model letter
Breath can be identical as the first type information, can also be different.Second manufacturer's information can be identical as the first manufacturer's information, can also be with
It is different.
Second hardware device is compatible with the first hardware device.Second hardware device compatible with the first hardware device can be the
Two hardware devices and the first hardware device are compatible with electronic equipment.
Step 103: being based on the second attribute information, obtain target drives program.
Target drives program provides hardware device to an interface of operating system and coordinates relationship between the two,
Target drives program is the small block code being added in operating system, wherein including the information of hardware device.Wherein, hardware fills
The information set may include the parameter information of hardware device, for example, the mark of hardware device, capacity, interface type and interface
Agreement etc. at least one, have this information, computer can be communicated with hardware device.Target drives program is hardware dress
The configuration file that the hardware vendor set writes according to operating system, it may be said that do not have target drives program, the hardware in computer
Device can not just work.Operating system is different, and the target drives program of hardware device is also different, and each hardware vendor is in order to guarantee
The compatibility of hardware and the function of enhancing hardware can constantly escalation target drivers.Operating system in the embodiment of the present invention
For Windows operating system, in other embodiments, operating system may be (SuSE) Linux OS or IOS operating system.
It should be noted that the hardware device mentioned in the embodiment of the present invention is the first hardware device or the second hardware device, alternatively, hardware device
It can other hardware devices identical with the first hardware device and the second hardware appliance types.
Target drives program in the embodiment of the present invention can be downloaded from the official website of hardware vendor, can also be in other nets
It is downloaded on standing, alternatively, can also be obtained at other electronic equipments, the acquisition of the unlimited driver that sets the goal of the embodiment of the present invention
Path, as long as the target drives program got can be used in driving the second hardware device.
It, can be with base if electronic equipment can get the driver that at least two can be used for driving the second hardware device
The version information of each driver and/or stability information at least two drivers, from least two drivers
Middle determining target drives program.For example, in one embodiment, electronic equipment can be determined from least two version informations
Driver corresponding to highest version is target drives program.In another embodiment, electronic equipment can be from least
In two version informations, determine that stability information is greater than pre-determined stability information, and version information is higher than default version information
Driver is target drives program.
Step 104: being based on the second attribute information and target drives program, update the registration table of electronic equipment.
In one embodiment, it is based on the second attribute information and target drives program, updates the registration table of electronic equipment, it can
To include: type information, manufacturer's information and target drives program based on the second hardware device, the registration of electronic equipment is updated
Table.The registration table for updating electronic equipment can be the process of simulation the second hardware device of installation.Simulation installation can be according to following
Mode understands, in the related technology, since electronic equipment must update note according to the second hardware device for being inserted into electronic equipment
Volume table, and the second hardware device of installation is realized according to updated registration table, and be that basis is not inserted in the embodiment of the present invention
Enter to the second attribute information of the second hardware device of electronic equipment and target drives program and carry out more new registry, after update
Registration table realize the second hardware device of installation, when due to more new registry, the second hardware device not with electronic equipment
It electrically connects, to be known as simulation installation.
Update electronic equipment registration table may include: update electronic equipment HKLM SYSTEM
Registry entry under the path CurrentControlSet.In one embodiment, can update HKLM SYSTEM
Enum item, Services, Control under the path CurrentControlSet.
In embodiments of the present invention, it since electronic equipment can be based on the second attribute information and target drives program, updates
The registration table of electronic equipment, the process of more new registry do not need the interface that the second hardware device is inserted into electronic equipment, only
It needs a card slot to realize that the first hardware device is changed to the process of the second hardware device, also, is in current in electronic equipment
Open state under can be realized more new registry, and the operation of a switching on and shutting down is executed based on updated registration table, and
During booting, the second hardware device of target drives driven by program enables the second hardware device to install, to only need primary
The operation of switching on and shutting down can successfully install the second hardware device.It avoids in the related technology, first needs to execute first time switching on and shutting down behaviour
Make, and be inserted into the second hardware device after first time shuts down, according to the second hardware for being inserted into electronic equipment after being switched on for the first time
Device more new registry, and the operation based on second of the switching on and shutting down of execution of updated registration table, and then the second hardware dress is installed
It sets, to will appear the operation of switching on and shutting down twice, the second hardware device just can be successfully installed.
Information processing method provided by the embodiment of the present invention obtains the first hardware device being electrically connected with electronic equipment
First attribute information is based on the first attribute information, what acquisition was not electrically connected with electronic equipment, and can replace the first hardware device
The second hardware device the second attribute information, be based on the second attribute information, obtain target drives program, and be based on the second attribute
Information and target drives program, update the registration table of electronic equipment;Due to being based on the second attribute information and target drives journey
Sequence, rather than it is inserted into the second hardware device of electronic equipment, the registration table of Lai Gengxin electronic equipment, therefore, in electronic equipment
When only one is used to be inserted into the card slot of hardware device, still the first hardware device can be replaced with into the second hardware device;And
And the process for updating the registration table of electronic equipment is to complete under current open state, therefore electronic equipment only needs one
First hardware device can be changed to the second hardware device by the operation of secondary switching on and shutting down, be generated to the business of electronic equipment operation
It influences smaller.
Based on previous embodiment, the embodiment of the present invention provides a kind of information processing method, as shown in Fig. 2, this method includes
Following steps:
Step 201: electronic equipment obtains the first attribute information of the first hardware device being electrically connected with electronic equipment.
Step 202: electronic equipment is based on the first attribute information, obtains the second hardware device not being electrically connected with electronic equipment
The second attribute information.
Wherein, the second hardware device is the device that can replace the first hardware device.
Step 203: electronic equipment is based on the second attribute information, obtains target drives program.
In one embodiment, electronic equipment be based on the second attribute information, obtain target drives program, can by with
Lower step is realized: being based on the second attribute information, however, it is determined that the operating system of electronic equipment includes for driving the second hardware device
The first driver, determine the first driver be target drives program.For example, electronic equipment can from Windows
System32 Driver Store drive for driving the second hardware device is determined whether in the path File Repository
Dynamic program.
In another embodiment, electronic equipment is based on the second attribute information, obtains target drives program, can also lead to
The mode for crossing following steps A1 to A2 is realized:
Step A1: if it is determined that the operating system of electronic equipment does not include for driving the first of the second hardware device to drive journey
Sequence, electronic equipment obtain the second driver for driving the second hardware device from cloud or target electronic device.
Step A2: the second driver is arranged in an operating system in electronic equipment, and determines that the second driver is target
Driver.
Wherein, the second driver of setting may include: that the second driver of setting exists in an operating system
Windows System32 under the path drivers.
Target electronic device is the equipment different from the electronic equipment in the embodiment of the present invention, for example, target electronic device
It can be hard disc apparatus, the second driver be stored in hard disc apparatus, electronic equipment can copy second from hard disc apparatus
Driver is into operating system;Alternatively, target device can be the server for storing the second driver, electronic equipment
It can download the second driver from the server for being stored with the second driver, and the second driver is set to operating and is
In system.
Step 204: electronic equipment is based on the second attribute information and target drives program, updates the registration table of electronic equipment.
In one embodiment, step 204 can be realized by way of following steps B1 to B2:
Step B1: electronic equipment is based on the second attribute information and target drives program, obtains for driving the second hardware dress
Set the registry information modified required for work.
In one embodiment, step B1 can be realized by way of following steps B11 to B12:
Step B11: electronic equipment obtains target slot position information corresponding with the second hardware device.
Target slot position information can be identical as the slot position information of the first hardware device being currently inserted into electronic equipment.One
In kind embodiment, when electronic equipment only includes a slot position for being used to be inserted into hardware device, target slot position information can write from memory
Think to access to the slot position information of electronic equipment with current first hardware device identical.In another embodiment, work as electronics
When equipment includes the slot position that at least two are used to be inserted into hardware device, user can receive for corresponding at least two slot positions
The operation that target slot position at least two slot position information carries out, so that it is determined that be currently inserted into electronic equipment first firmly
The identical target slot position information of the slot position information of part device.In other embodiments, target slot position information can be currently inserted into
Slot position information to the first hardware device of electronic equipment is different, and under this embodiment, electronic equipment should include at least two
A slot position, and receive the operation for carrying out for the target slot position at least two slot position information, so that it is determined that with it is current
It is inserted into the different target slot position information of the slot position information of the first hardware device of electronic equipment.
Step B12: being based on the second attribute information, target drives program and target slot position information, obtains for driving the
The registry information modified required for two hardware devices.
In one embodiment, it is based on the second attribute information, target drives program and target slot position information, obtains and uses
It may include: based on the second attribute information, target drives journey in the registry information for driving modification required for the second hardware device
Sequence and target slot position information, obtain the first registration table destination path under need to modify the first information, the second information and
Third information.
Wherein, the first information includes the second attribute information and target slot position information;Second information includes target drives program
Routing information;Third information includes the starting information of controlling electronic devices and the configuration information of the second hardware device.
Destination path in the embodiment of the present invention be HKLM SYSTEM the path CurrentControlSet.The first information
It is Enum, the second information is Services and third information is Control, it should be appreciated that the first information herein,
Two information and third information be HKLM SYSTEM information under the path CurrentControlSet.
Step B2: electronic equipment is based on registry information, updates the registration table of electronic equipment.
In one embodiment, it is based on registry information, updates the registration table of electronic equipment, may include: based on the
One information, the second information and third information, update the registration table of electronic equipment.
Electronic equipment can replace under destination path after obtaining the first information, the second information and third information
And the corresponding information and corresponding information of the second information and information corresponding with third information of the first information, to obtain more
Registration table after new.
Step 205: electronic equipment receives the power-on instruction for being directed to electronic equipment.
Electronic equipment can receive the power-off operation for electronic equipment after obtaining updated registration table, and electronics is set
It is standby to be shut down based on power-off operation, and after electronic equipment shutdown, the power-on operation for being directed to electronic equipment is received, thus electronics
Equipment receives power-on instruction.Alternatively, electronic equipment after obtaining updated registration table, can receive the weight for electronic equipment
Instruction is opened, and during electronic equipment is restarted based on instruction of restarting, receives power-on instruction.
Step 206: electronic equipment is based on power-on instruction, loads updated registration table, and pass through driving and electronic equipment
Second hardware device of electrical connection executes power-on operation.
Electronic equipment can enter power-on self-test program after receiving power-on instruction first, in power-on self-test program knot
Shu Hou, load operating system, and during load operating system, target drives program loads updated registration table letter
Breath, the second hardware device of driving are switched on successfully after the second hardware device is installed.
In one embodiment, it is based on power-on instruction, loads updated registration table, and pass through driving and electronic equipment
Electrical connection the second hardware device execute power-on operation, may include: updated registration table is loaded based on power-on instruction, and
Power-on operation is executed using the second hardware device that target slot position is electrically connected with electronic equipment by driving;Wherein, target slot position
It is corresponding with target slot position information.
It should be noted that in the present embodiment with the explanation of same steps in other embodiments and identical content, Ke Yican
According to the description in other embodiments, details are not described herein again.
Information processing method provided by the embodiment of the present invention obtains the first hardware device being electrically connected with electronic equipment
First attribute information is based on the first attribute information, what acquisition was not electrically connected with electronic equipment, and can replace the first hardware device
The second hardware device the second attribute information, be based on the second attribute information, obtain target drives program, and be based on the second attribute
Information and target drives program, update the registration table of electronic equipment;Due to being based on the second attribute information and target drives journey
Sequence, rather than it is inserted into the second hardware device of electronic equipment, the registration table of Lai Gengxin electronic equipment, therefore, in electronic equipment
When only one is used to be inserted into the card slot of hardware device, still the first hardware device can be replaced with into the second hardware device;And
And the process for updating the registration table of electronic equipment is to complete under current open state, therefore electronic equipment only needs one
First hardware device can be changed to the second hardware device by the operation of secondary switching on and shutting down, be generated to the business of electronic equipment operation
It influences smaller.In addition, electronic equipment after the completion of more new registry, executes the operation of a switching on and shutting down, and in start process,
The second hardware device of target drives driven by program, enables the second hardware device successfully to install on an electronic device.
Based on previous embodiment, the embodiment of the present invention provides a kind of information processing method, as shown in figure 3, this method includes
Following steps:
Step 301: electronic equipment obtains the first attribute information of the first hardware device being electrically connected with electronic equipment.
Step 302: hardware device information list is arranged in electronic equipment.
Wherein, hardware device information list includes the attribute information of at least two compatible hardware devices.
Hardware device information list can be user's self-setting, for example, user can be compatible by least two
The attribute information of hardware device be stored in the memory space of electronic equipment so that electronic equipment is executing the embodiment of the present invention
In information processing method when, hardware information list can be called.Wherein, at least two compatible hardware devices can be with
The type of first hardware information is identical.The attribute information of hardware device in this step includes at least the type information of hardware device
And manufacturer's information.Hardware device information list includes the first attribute information and the second hardware that should include at least the first hardware device
Second attribute information of device.
Step 303: electronic equipment is based on the first attribute information, and from hardware device information list, acquisition is not set with electronics
Second attribute information of the second hardware device of standby electrical connection.
In one embodiment, electronic equipment is got from hardware device information list based on the first attribute information
It is not electrically connected with electronic equipment, and when the attribute information of at least two target hardware devices compatible with the first hardware device,
User be can receive for the operation of the second attribute information in the attribute information of at least two target hardware devices, to obtain the
Two attribute informations, wherein the attribute information of at least two target hardware devices should include the second attribute information.
Step 304: electronic equipment is based on the second attribute information, obtains target drives program.
Step 305: electronic equipment is based on the second attribute information and target drives program, updates the registration table of electronic equipment.
Information processing method provided by the embodiment of the present invention obtains the first hardware device being electrically connected with electronic equipment
First attribute information is based on the first attribute information, what acquisition was not electrically connected with electronic equipment, and can replace the first hardware device
The second hardware device the second attribute information, be based on the second attribute information, obtain target drives program, and be based on the second attribute
Information and target drives program, update the registration table of electronic equipment;Due to being based on the second attribute information and target drives journey
Sequence, rather than it is inserted into the second hardware device of electronic equipment, the registration table of Lai Gengxin electronic equipment, therefore, in electronic equipment
When only one is used to be inserted into the card slot of hardware device, still the first hardware device can be replaced with into the second hardware device;And
And the process for updating the registration table of electronic equipment is to complete under current open state, therefore electronic equipment only needs one
First hardware device can be changed to the second hardware device by the operation of secondary switching on and shutting down, be generated to the business of electronic equipment operation
It influences smaller.In addition, since hardware device information list is arranged, the hardware device in hardware device information list be it is compatible,
Therefore, electronic equipment can determine the attribute information of the second hardware device from hardware device information list, to ensure that
Two hardware devices and the first hardware device are compatible, and the method for obtaining the second attribute information is simple.
Based on previous embodiment, the embodiment of the present invention provides a kind of electronic equipment 4, which can be applied to
In a kind of information processing method that the corresponding embodiment of Fig. 1 to 3 provides, referring to shown in Fig. 4, which may include: place
Manage device 41 and memory 42, in which:
Processor 41 (does not show for obtaining the first hardware device being electrically connected with electronic equipment from memory 42 in figure
The first attribute information out);
Processor 41 is also used to obtain the second hardware device not being electrically connected with electronic equipment based on the first attribute information
Second attribute information of (not shown);Wherein, the second hardware device is the device for replacing the first hardware device;
Processor 41 is also used to obtain target drives program based on the second attribute information;
Processor 41 is also used to update storage the electricity stored in device 42 based on the second attribute information and target drives program
The registration table of sub- equipment.
In other embodiments of the invention, processor 41 are also used to receive the power-on instruction for being directed to electronic equipment;
Processor 41 is also used to load updated registration table from memory 42, and pass through driving based on power-on instruction
The second hardware device being electrically connected with electronic equipment executes power-on operation.
In other embodiments of the invention, processor 41 are also used to based on the second attribute information and target drives program,
The registry information modified required for obtaining for driving the work of the second hardware device;
Processor 41 is also used to update the registration table of electronic equipment based on registry information.
In other embodiments of the invention, processor 41 are also used to obtain target slot corresponding with the second hardware device
Position information;
Processor 41 is also used to be used for based on the second attribute information, target drives program and target slot position information, acquisition
Drive the registry information modified required for the second hardware device;
Correspondingly, processor 41 are also used to based on power-on instruction, updated registration of the load store in memory 42
Table, and power-on operation is executed using the second hardware device that target slot position is electrically connected with electronic equipment by driving;Wherein, target
Slot position is corresponding with target slot position information.
In other embodiments of the invention, processor 41, be also used to based on the second attribute information, target drives program with
And target slot position information, obtain the first information, the second information and the third for needing to modify under the destination path of the first registration table
Information;Wherein, the first information includes the second attribute information and target slot position information;Second information includes the road of target drives program
Diameter information;Third information includes the starting information of controlling electronic devices and the configuration information of the second hardware device;
Correspondingly, processor 41, are also used to based on the first information, the second information and third information, update storage in depositing
The registration table of electronic equipment in reservoir 42.
In other embodiments of the invention, processor 41 are also used to be arranged hardware device information list in memory 42
In;Wherein, hardware device information list includes the attribute information of at least two compatible hardware devices;
Processor 41 is also used to based on the first attribute information, from the hardware device information list obtained in memory 42,
Obtain the second attribute information of the second hardware device not being electrically connected with electronic equipment.
In other embodiments of the invention, processor 41 are also used to based on the second attribute information, however, it is determined that electronic equipment
Operating system include the first driver for driving the second hardware device, determine that the first driver is target drives journey
Sequence;
Processor 41 is also used to if it is determined that the operating system of electronic equipment does not include for driving the second hardware device
One driver obtains the second driver for driving the second hardware device from cloud or target electronic device;
Processor 41 is also used to be arranged the second driver in an operating system, and determines that the second driver is target
Driver.
In other embodiments of the invention, the first hardware device is the first magnetic disc array card, and the second hardware device is the
Two magnetic disc array cards.
Electronic equipment provided by the embodiment of the present invention obtains the first of the first hardware device being electrically connected with electronic equipment
Attribute information is based on the first attribute information, obtains and is not electrically connected with electronic equipment, and can replace the of first hardware device
Second attribute information of two hardware devices is based on the second attribute information, obtains target drives program, and be based on the second attribute information
With target drives program, the registration table of electronic equipment is updated;Due to being based on the second attribute information and target drives program, and
It is not the second hardware device for being inserted into electronic equipment, therefore the registration table of Lai Gengxin electronic equipment only has one in electronic equipment
When a card slot for being used to be inserted into hardware device, still the first hardware device can be replaced with into the second hardware device;Also, it updates
The process of the registration table of electronic equipment is to complete under current open state, therefore electronic equipment only needs a switching on and shutting down
Operation the first hardware device can be changed to the second hardware device, to electronic equipment operation business generate influence compared with
It is small.
Based on previous embodiment, the embodiment of the present invention provides a kind of computer readable storage medium, computer-readable to deposit
Storage media is stored with one or more program, which can be executed by one or more processor, with
The step of realizing the as above information processing method of any one.
It should be noted that above-mentioned processor can be application-specific IC (ASIC, Application
Specific Integrated Circuit), digital signal processor (DSP, Digital Signal Processor), number
Word signal processing apparatus (DSPD, Digital Signal Processing Device), programmable logic device (PLD,
Programmable Logic Device), field programmable gate array (FPGA, Field Programmable Gate
Array), central processing unit (CPU, Central Processing Unit), controller, in microcontroller, microprocessor extremely
Few one kind.It is to be appreciated that realizing that the electronic device of above-mentioned processor function can also be to be other, the embodiment of the present application is not made to have
Body limits.
It should be noted that above-mentioned computer storage medium/memory can be read-only memory (Read Only
Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable compile
Journey read-only memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable are only
Read memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic random
Access memory (Ferromagnetic Random Access Memory, FRAM), flash memory (Flash Memory),
The memories such as magnetic surface storage, CD or CD-ROM (Compact Disc Read-Only Memory, CD-ROM);?
It can be the various terminals including one of above-mentioned memory or any combination, such as mobile phone, computer, tablet device, individual
Digital assistants etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited from sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, the technical solution of the application substantially in other words does the prior art
The part contributed out can be embodied with the pattern of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the application.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that can be from every one stream in computer program instructions implementation flow chart and/or block diagram
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The above is only preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all to utilize this Shen
Please equivalent structure or equivalent flow shift made by specification and accompanying drawing content, be applied directly or indirectly in other relevant skills
Art field similarly includes in the scope of patent protection of the application.
Claims (10)
1. a kind of information processing method, which comprises
Obtain the first attribute information of the first hardware device being electrically connected with electronic equipment;
Based on first attribute information, the second attribute letter for the second hardware device not being electrically connected with the electronic equipment is obtained
Breath;Wherein, second hardware device is the device that can replace first hardware device;
Based on second attribute information, target drives program is obtained;
Based on second attribute information and the target drives program, the registration table of the electronic equipment is updated.
2. the method according to claim 1, wherein being based on second attribute information and the target described
Driver, after the registration table for updating the electronic equipment, the method also includes:
Receive the power-on instruction for being directed to the electronic equipment;
Based on the power-on instruction, updated registration table, and second be electrically connected by driving with the electronic equipment are loaded
Hardware device executes power-on operation.
3. according to the method described in claim 2, it is characterized in that, described driven based on second attribute information and the target
Dynamic program updates the registration table of the electronic equipment, comprising:
Based on second attribute information and the target drives program, obtain for driving the second hardware device work institute
The registry information for needing to modify;
Based on the registry information, the registration table of the electronic equipment is updated.
4. according to the method described in claim 3, it is characterized in that, described driven based on second attribute information and the target
Dynamic program, the registry information modified required for obtaining for driving the second hardware device work, comprising:
Obtain target slot position information corresponding with second hardware device;
Based on second attribute information, the target drives program and the target slot position information, obtain for driving
State the registry information modified required for the second hardware device;
Correspondingly, described to be based on the power-on instruction, updated registration table is loaded, and pass through driving and the electronic equipment electricity
Second hardware device of connection executes power-on operation, comprising:
Based on the power-on instruction, updated registration table is loaded, and target slot position and the electronic equipment are utilized by driving
Second hardware device of electrical connection executes power-on operation;Wherein, the target slot position is corresponding with the target slot position information.
5. according to the method described in claim 4, it is characterized in that, described driven based on second attribute information, the target
Dynamic program and the target slot position information are obtained for driving the registration table of modification required for second hardware device to believe
Breath, comprising:
Based on second attribute information, the target drives program and the target slot position information, first note is obtained
The first information, the second information and the third information for needing to modify under the destination path of volume table;Wherein, the first information includes
Second attribute information and the target slot position information;Second information includes the path letter of the target drives program
Breath;The third information includes the configuration information for controlling the starting information and second hardware device of the electronic equipment;
Correspondingly, it is based on second attribute information and the target drives program, updates the registration table of the electronic equipment, is wrapped
It includes:
Based on the first information, second information and the third information, the registration table of the electronic equipment is updated.
6. the method according to claim 1, wherein it is described be based on first attribute information, obtain not with institute
State the second attribute information of the second hardware device of electronic equipment electrical connection, comprising:
Hardware device information list is set;Wherein, the hardware device information list includes at least two compatible hardware
The attribute information of device;
Based on first attribute information, from the hardware device information list, acquisition is not electrically connected with the electronic equipment
The second hardware device the second attribute information.
7. obtaining target the method according to claim 1, wherein described be based on second attribute information and driving
Dynamic program, comprising:
Based on second attribute information, however, it is determined that the operating system of the electronic equipment includes for driving second hardware
First driver of device determines that first driver is the target drives program;
If it is determined that the operating system of the electronic equipment does not include the first driver for driving second hardware device,
The second driver for driving second hardware device is obtained from cloud or target electronic device;
Second driver is set in the operating system, and determines that second driver is the target drives
Program.
8. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory;
The processor, for obtaining the first attribute of the first hardware device being electrically connected with electronic equipment from the memory
Information;
The processor is also used to that it is hard to obtain second not be electrically connected with the electronic equipment based on first attribute information
Second attribute information of part device;Wherein, second hardware device is the device for replacing first hardware device;
The processor is also used to obtain target drives program based on second attribute information;
The processor is also used to update in the memory based on second attribute information and the target drives program
The registration table of the electronic equipment of storage.
9. electronic equipment according to claim 1, which is characterized in that
The processor is also used to receive the power-on instruction for being directed to the electronic equipment;
The processor is also used to load updated registration table from the memory, and pass through based on the power-on instruction
The second hardware device being electrically connected with the electronic equipment is driven to execute power-on operation.
10. electronic equipment according to claim 8 or claim 9, which is characterized in that first hardware device is the first disk battle array
Column card, second hardware device are second disk RAID card.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910234825.2A CN110007973B (en) | 2019-03-26 | 2019-03-26 | Information processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910234825.2A CN110007973B (en) | 2019-03-26 | 2019-03-26 | Information processing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110007973A true CN110007973A (en) | 2019-07-12 |
CN110007973B CN110007973B (en) | 2021-07-16 |
Family
ID=67168291
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910234825.2A Active CN110007973B (en) | 2019-03-26 | 2019-03-26 | Information processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110007973B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662685A (en) * | 2012-03-06 | 2012-09-12 | 中兴通讯股份有限公司 | Method and device for installing driver of terminal equipment |
CN102750164A (en) * | 2012-05-29 | 2012-10-24 | 湖北盛天网络技术股份有限公司 | Method for automatically configuring device driver |
US8819299B1 (en) * | 2010-02-24 | 2014-08-26 | Open Invention Network, Llc | Method for creation of a device driver for a peripheral device |
US9122623B1 (en) * | 2010-02-24 | 2015-09-01 | Open Invention Network, Llc | Method for creation of device drivers and device objects for peripheral devices |
CN105378655A (en) * | 2013-05-31 | 2016-03-02 | 微软技术许可有限责任公司 | Driver installation for targeted and not-connected devices |
US20160147676A1 (en) * | 2014-11-20 | 2016-05-26 | Samsung Electronics Co., Ltd. | Peripheral component interconnect (pci) device and system including the pci |
CN106325879A (en) * | 2016-08-30 | 2017-01-11 | 北京金山安全软件有限公司 | Method and device for installing driver and electronic equipment |
CN109426625A (en) * | 2017-08-30 | 2019-03-05 | 深圳市道通科技股份有限公司 | A kind of control device and implementation method that more drivings are compatible |
-
2019
- 2019-03-26 CN CN201910234825.2A patent/CN110007973B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8819299B1 (en) * | 2010-02-24 | 2014-08-26 | Open Invention Network, Llc | Method for creation of a device driver for a peripheral device |
US9122623B1 (en) * | 2010-02-24 | 2015-09-01 | Open Invention Network, Llc | Method for creation of device drivers and device objects for peripheral devices |
CN102662685A (en) * | 2012-03-06 | 2012-09-12 | 中兴通讯股份有限公司 | Method and device for installing driver of terminal equipment |
CN102750164A (en) * | 2012-05-29 | 2012-10-24 | 湖北盛天网络技术股份有限公司 | Method for automatically configuring device driver |
CN105378655A (en) * | 2013-05-31 | 2016-03-02 | 微软技术许可有限责任公司 | Driver installation for targeted and not-connected devices |
US20160147676A1 (en) * | 2014-11-20 | 2016-05-26 | Samsung Electronics Co., Ltd. | Peripheral component interconnect (pci) device and system including the pci |
CN106325879A (en) * | 2016-08-30 | 2017-01-11 | 北京金山安全软件有限公司 | Method and device for installing driver and electronic equipment |
CN109426625A (en) * | 2017-08-30 | 2019-03-05 | 深圳市道通科技股份有限公司 | A kind of control device and implementation method that more drivings are compatible |
Also Published As
Publication number | Publication date |
---|---|
CN110007973B (en) | 2021-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10452377B2 (en) | Simulating end-to-end upgrade process in production environment | |
US10936299B2 (en) | Automated intra-system persistent memory updates | |
US9507604B2 (en) | Boot method and boot system | |
US8312444B2 (en) | Method for optimizing memory modules for user-specific environments | |
US9304783B2 (en) | Digital signage management and content delivery system and method thereof | |
US20140047224A1 (en) | Method of flashing bios using service processor and computer system using the same | |
US7600106B2 (en) | System and method for enabling/disabling write-protection of a basic input output system | |
CN104424044A (en) | Server system | |
CN110515641A (en) | The update method of server firmware, apparatus and system | |
US20160011879A1 (en) | Preconfiguring hardware and speeding up server discovery prior to bios boot | |
US10055160B2 (en) | Systems and methods for BIOS emulation of PCIe device | |
WO2016078263A1 (en) | Upgrading control device and terminal, terminal upgrading method and system, and storage medium | |
CN110825419B (en) | Firmware refreshing method and device, electronic equipment and storage medium | |
CN105718281A (en) | Touch screen firmware upgrading method and device | |
CN103530184A (en) | Method and device for online patch activation | |
WO2016062146A1 (en) | Serial number information update method, device and terminal | |
TW202244519A (en) | Chip verification system and verification method thereof | |
CN105159673A (en) | Method and device for setting control style | |
US20130080751A1 (en) | Method and device for updating bios program for computer system | |
CN113868174B (en) | Verification platform building method and device and storage medium | |
CN103455750B (en) | The high peace verification method of a kind of embedded device and device | |
CN103514004A (en) | Method and device for managing system environment under Windows system | |
JP2004021990A (en) | Firmware selector of computer including processor | |
US20090119445A1 (en) | Computer memory accessible in either power state of the computer | |
CN110007973A (en) | A kind of information processing method and electronic 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |