CN106484523B - A kind of managing hardware device method and device thereof - Google Patents
A kind of managing hardware device method and device thereof Download PDFInfo
- Publication number
- CN106484523B CN106484523B CN201510524206.9A CN201510524206A CN106484523B CN 106484523 B CN106484523 B CN 106484523B CN 201510524206 A CN201510524206 A CN 201510524206A CN 106484523 B CN106484523 B CN 106484523B
- Authority
- CN
- China
- Prior art keywords
- resource
- hardware
- driving
- hardware device
- matching result
- 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.)
- Active
Links
Landscapes
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of managing hardware device method and device thereof.Wherein, managing hardware device method includes: the functional characteristic according to different hardware equipment, is divided into multiple hardwares resource;According to the functional characteristic of every class hardware device, corresponding hardware resource collection is configured;When hardware device initialization, self-test obtains available driving resource set;Driving resource set is matched with the hardware resource that hardware resource is concentrated, and workable hardware resource is determined according to matching result.The present invention enables on software platform rapid deployment to this hardware device by carrying out virtual management to hardware device, reduces the modification of software platform and application product, Speeding up development progress reduces development cost.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of managing hardware device method, also relate to be based on being somebody's turn to do
The managing hardware device of method.
Background technique
Traditional hardware device upper module deployment relationship is as shown in Figure 1, install operating system, according to hardware on hardware device
Characteristic carries out veneer driving exploitation.Software platform carries out functional development by the interface that drive module provides.Application module uses
The service that software platform provides carries out business processing, and the interface of driving can also be called to carry out business processing.
Referring to figs. 2 and 3, drive module is based on hardware feature (processor, chip etc.) and carries out driving function.Software platform
In supporting module according to hardware feature (cpu type) carry out differentiation processing.For example, CPU extracts the difference of stacked manner, fortune
The function difference etc. that calculation ability difference, operating system function difference and hardware provide requires in supporting module
Reason.Supporting module generallys use CPU compiling macro shielding CPU difference, or is handled according to board type difference.Realizing this
During invention, inventor's discovery at least has the following technical problems in the prior art:
Although supporting module shields the difference of hardware capability, but carry out code development according to these differences, debug and open
Feeling sleepy, difficult, the period is long.The appearance of each new veneer will lead to platform code and change once, cause software platform that cannot stablize.
In addition, software platform and driving are tightly combined, and it is also unintelligible on distinguishing hierarchy, it is unfavorable for layering isolation.
Summary of the invention
In view of the deficiencies of the prior art, technical problem to be solved by the present invention lies in provide a kind of managing hardware device side
Method.
Another technical problem to be solved by this invention is to provide a kind of managing hardware device dress for realizing the above method
It sets.
For achieving the above object, the present invention uses following technical solutions:
On the one hand, the present invention provides a kind of managing hardware device methods, comprising:
According to the functional characteristic of different hardware equipment, it is divided into multiple hardwares resource;
According to the functional characteristic of every class hardware device, corresponding hardware resource collection is configured;
When hardware device initialization, self-test obtains available driving resource set;
The driving resource set is matched with the hardware resource that the hardware resource is concentrated, and true according to matching result
Fixed workable hardware resource.
Preferably, it after the hardware resource collection is the hardware device initialization, is obtained according to the hardware device type
's.
Preferably, the driving resource set and the hardware resource collection are according to hardware resource ID predetermined progress
Match.
Preferably, workable hardware resource is determined according to the matching result, comprising:
If the matching result is consistent, hardware resource in the driving resource set is recorded, and use corresponding hardware capability;
If the matching result is inconsistent, corresponding alarm or event is reported to be notified.
Preferably, the matching result is inconsistent, reports corresponding alarm or event to be notified, specifically includes:
If the hardware resource in the driving resource set is not focused to find out in the hardware resource, reported data configuration is wrong
Accidentally notify;
If the resource that the hardware resource is concentrated does not have the driving resource to be focused to find out, report driving faulty resource logical
Know.
Preferably, the hardware device includes hardware single board, server, industrial personal computer, machine frame and veneer subcard.
Preferably, when the hardware device is peripheral board, the hardware resource collection need to be obtained from global plate database.
On the other hand, the present invention also provides a kind of managing hardware device devices, comprising:
Resource configuration unit is divided into multiple hardwares resource for the functional characteristic according to different hardware equipment, and according to
The functional characteristic of every class hardware device configures corresponding hardware resource collection;
Resource acquisition unit is driven, when hardware device initialization, self-test obtains available driving resource set;
Control unit, for the driving resource set to be matched with the hardware resource that the hardware resource is concentrated, and
Workable hardware resource is determined according to matching result.
Preferably, the hardware management device further includes hardware resource acquiring unit, is specifically used for,
After the hardware device initialization, the hardware resource collection is obtained according to the hardware device type.
Preferably, described control unit is specifically used for:
If the matching result is consistent, hardware resource in the driving resource set is recorded, and use corresponding hardware capability;
If the matching result is inconsistent, corresponding alarm or event is reported to be notified.
Preferably, the hardware management device further includes Alarm Unit, is specifically used for,
If the hardware resource in the driving resource set is not focused to find out in the hardware resource, reported data configuration is wrong
Accidentally notify;
If the resource that the hardware resource is concentrated does not have the driving resource to be focused to find out, report driving faulty resource logical
Know.
Preferably, the hardware management device further includes storage unit, for storing the hardware resource collection.
Managing hardware device method provided by the invention virtualizes the management of hardware device, according to hardware device
Functional characteristic is divided into multiple hardwares resource, and according to every available resource of class hardware device, configures corresponding hardware resource
Collection;When hardware device initialization, driving self-test obtains available resource;The resource and hardware resource that driving is obtained are concentrated
The resource of configuration is matched, and is correspondingly operated according to matching result execution.Provided hardware device pipe through the invention
Reason method enables on software platform rapid deployment to this hardware device, reduces the modification of software platform and application product, quickly
Various hardware devices are adapted to, Speeding up development progress reduces development cost.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the relational graph of hardware device module deployment in the prior art;
Fig. 2 is the relational graph of supporting module and drive module;
Fig. 3 is the flow chart that supporting module is handled according to hardware feature differentiation;
Fig. 4 is the flow chart of managing hardware device method provided by the present invention;
Fig. 5 is the position view of virtual level proposed by the invention in Fig. 1;
Fig. 6 is the relational graph of virtual level and driving layer in the present invention;
Fig. 7 is the functional block diagram of managing hardware device device provided by 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 is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other
Embodiment shall fall within the protection scope of the present invention.
As shown in figure 4, a kind of managing hardware device method provided by the present invention, comprising: according to the function of different hardware equipment
Energy characteristic, is divided into multiple hardwares resource;According to the functional characteristic of every class hardware device, corresponding hardware resource collection is configured;When
When hardware device initializes, self-test obtains available driving resource set;The hardware that resource set and hardware resource will be driven to concentrate
Resource is matched, and determines workable hardware resource according to matching result.
Managing hardware device method provided by the present invention virtualizes the management of hardware device, according to hardware device
Functional characteristic be divided into multiple hardwares resource, and configure corresponding hardware resource collection for every class hardware device;In deployment software
When platform is to hardware device, resource set that driving provides need to only be matched with the hardware resource collection of configuration, phase can be used
The function services answered.Therefore compared with prior art, the present invention avoiding difference when disposed on new hardware device in software platform
Different carry out code development, the problem that debugging exploitation is difficult, the period is long and software platform is unstable, so that software platform is quickly fitted
Various hardware devices are answered, the modification of software platform and application product is reduced, Speeding up development progress reduces development cost.It is right below
Specific implementation process of the invention describes in detail.
Step S101 first is multiple hardwares resource according to the function division of different hardware equipment.
Hardware device involved in the present invention includes but is not limited to veneer, server, industrial personal computer, machine frame, veneer subcard
Deng.It is illustrated in the present invention by specific embodiment of veneer.
Different hardware single boards includes different memories, I/O equipment, storage, computing capability etc., these functions are referred to as firmly
Part resource (abbreviation resource).Such as memory source, total memory of veneer is provided, free memory, has used memory.Storage resource packet
The description for including storage equipment, such as the service condition of hard disk, electric board, RAM card and each storage medium.I/O device resource packet
Include the configuration and service condition of network interface, optical port.
Referring to Fig. 5, the present invention proposes a virtual level concept in existing hardware device module deployment architecture.Virtual level
Belong to software platform, hardware, CPU, veneer difference are shielded by virtual level, makes upper layer software (applications) keep stablizing, it is fast to be conducive to product
Speed exploitation, save the cost.The function that virtual level provides different hardware veneer is abstracted, and is divided into multiple hardwares resource, and
A virtual resource pool is provided to use for upper layer.Referring to Fig. 6, the resource of virtual level configuration and the resource for driving layer in the present invention
It is opposite.The function performance collection of resource distribution and the function performance collection of driving layer are also corresponding.Software platform passes through function function
Can collect can send message, or know status change notification by function with Query Board temperature, voltage.
Secondly step S102 configures corresponding hardware resource collection according to the functional characteristic of every class hardware device.
The function of being provided according to every class hardware single board is different, concludes its available resource, establishes corresponding hardware resource
Model includes corresponding hardware resource collection.The corresponding resource of hardware resource collection is saved in the form of resource table into database, tool
Body is referring to following table.
Hardware single board | The resource characteristics that veneer has |
Board1 | res1 |
Board1 | res 2 |
Board1 | res 3 |
Board2 | res 1 |
Board2 | res 2 |
Board2 | res 5 |
… | ... |
Resource table includes board type and resource ID.Wherein, Board1 and Board2 is the type of hardware single board;
Res1, res2 ... resN are according to the available functional characteristic of veneer resource ID predetermined.res1,res2……resN
Constitute the hardware resource collection of the hardware device.As can be seen from the table, it is special can to have identical resource between hardware single board
Property, hardware single board is also had any different in the resource characteristics of other veneer.
Each hardware resource is an API function collection, completes what corresponding hardware resource provided by this API function collection
Function, upper layer call this API to carry out function setting or inquiry.
API function collection structural body is defined as follows:
Then step S103, when hardware device initialization, self-test obtains available driving resource set.
In veneer initialization starting, driving layer carries out self-test and obtains the resource that can be provided.Wherein drive the resource of acquisition
Same use concentrates consistent resource ID with hardware resource, and the collection of resource ID is combined into driving resource set.Driving is obtained and be can provide
The case where resource (including memory, hard disk, network interface etc.), is embodied using the form of RES_API_T structural body.
Final step S104 matches driving resource set with the hardware resource that hardware resource is concentrated, and according to matching
As a result workable hardware resource is determined.
For veneer after the completion of driving initialization, support module obtains hardware single board type, according to hardware single board type from number
According to the hardware resource collection (set of resource ID) for obtaining the veneer in library.
The resource set that the resource and driving layer concentrated according to the hardware resource configured in database report is matched, and is obtained
The resource set that can be used at present.It therefore, only need to be by the resource ID of hardware resource collection and drive when obtaining workable resource set
Resource ID in dynamic resource set is matched, and determines workable hardware resource according to matching result, specifically include as
Lower situation:
If matching result is consistent, resource ID and relevant API function collection in software platform record driving resource set, and root
The function of hardware is used according to corresponding resource;
If matching result is inconsistent, reports corresponding alarm or event to be notified, specifically includes following situation:
If the resource in driving resource set is not focused to find out in the hardware resource of configuration, the resource in database of descriptions is matched
Mistake is set, the alarm of reported data configuration error or event are notified.
If the resource of hardware resource collection is not focused to find out in driving resource, some faulty resource that driving provides is indicated,
The function limitation of hardware single board is supported, and the alarm of faulty resource or event is reported to be notified.
It should be further noted that hardware single board includes global plate and peripheral board when being configured in network elements.Usually
Global plate carries out global administration, and peripheral board obtains data from global plate and carries out business processing.In the present invention, in virtual level in resource
When configuration, all single plate hardware resource informations are saved in global plate database and need to obtain from global plate when peripheral board starts
The resource information of configuration is in order to guarantee that peripheral board can normally start, and when veneer initializes, driving layer initializes network interface and bottom first
Layer link, guarantees and global board communications are normal.
Referring to Fig. 7, the present invention also provides a kind of managing hardware device devices, for realizing above-mentioned managing hardware device
Method, comprising:
A kind of managing hardware device device, comprising:
Resource configuration unit is divided into multiple hardwares resource for the functional characteristic according to different hardware equipment, and according to
The functional characteristic of every class hardware device configures corresponding hardware resource collection;
Resource acquisition unit is driven, when hardware device initialization, self-test obtains available driving resource set;
Control unit, for matching driving resource set with the hardware resource that hardware resource is concentrated, and according to matching
As a result it executes and correspondingly operates.
Further, control unit is specifically used for,
If matching result is consistent, hardware resource in record driving resource set, and use corresponding hardware capability;
If matching result is inconsistent, corresponding alarm or event is reported to be notified.
Further, hardware management device further includes hardware resource acquiring unit, after hardware device initialization, according to
Hardware device type obtains hardware resource collection.
Further, hardware management device further includes Alarm Unit, is specifically used for,
If the hardware resource in driving resource set is not focused to find out in hardware resource, reported data configuration error notice;
If the resource that hardware resource is concentrated does not drive resource to be focused to find out, driving faulty resource notice is reported.
Further, hardware management device further includes storage unit, is used for storage hardware resource set.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, program can be stored in computer-readable storage medium, the journey
Sequence is when being executed, it may include such as the process of the embodiment of above-mentioned each method.
More than, only a specific embodiment of the invention, but scope of protection of the present invention is not limited thereto, and it is any to be familiar with
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those skilled in the art, should all cover
Within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (8)
1. a kind of managing hardware device method characterized by comprising
According to the functional characteristic of different hardware equipment, it is divided into multiple hardwares resource;
According to the functional characteristic of every class hardware device, corresponding hardware resource collection is configured;
When hardware device initialization, self-test obtains available driving resource set;
The driving resource set is matched with the hardware resource that the hardware resource is concentrated, and can according to matching result determination
The hardware resource used;
Workable hardware resource is determined according to matching result, comprising:
If the matching result is consistent, hardware resource in the driving resource set is recorded, and use corresponding function;
If the matching result is inconsistent, corresponding alarm or event is reported to be notified;
The matching result is consistent, records hardware resource in the driving resource set, and use corresponding function, comprising: if
Resource ID and relevant API function collection consistent with result, in software platform record driving resource set, and according to corresponding resource
Use the function of hardware;
The matching result is inconsistent, reports corresponding alarm or event to be notified, specifically includes:
If the hardware resource in the driving resource set is not focused to find out in the hardware resource, reported data configuration error is logical
Know;
If the resource that the hardware resource is concentrated does not have the driving resource to be focused to find out, driving faulty resource notice is reported.
2. managing hardware device method according to claim 1, which is characterized in that
The hardware resource collection is after the hardware device initializes, to be obtained according to the hardware device type.
3. managing hardware device method according to claim 1, which is characterized in that
The driving resource set is matched with the hardware resource collection according to hardware resource ID predetermined.
4. managing hardware device method according to claim 1, which is characterized in that
The hardware device includes hardware single board, server, industrial personal computer, machine frame and veneer subcard.
5. managing hardware device method according to claim 1, which is characterized in that when the hardware device is peripheral board,
The hardware resource collection need to be obtained from global plate database.
6. a kind of managing hardware device device characterized by comprising
Resource configuration unit is divided into multiple hardwares resource for the functional characteristic according to different hardware equipment, and according to every class
The functional characteristic of hardware device configures corresponding hardware resource collection;
Resource acquisition unit is driven, when hardware device initialization, self-test obtains available driving resource set;
Control unit, for the driving resource set to be matched with the hardware resource that the hardware resource is concentrated, and according to
Matching result determines workable hardware resource according to matching result;
Described control unit is specifically used for:
If the matching result is consistent, hardware resource in the driving resource set is recorded, and use corresponding hardware capability;
If the matching result is inconsistent, corresponding alarm or event is reported to be notified;
The matching result is consistent, records hardware resource in the driving resource set, and use corresponding function, comprising: if
Resource ID and relevant API function collection consistent with result, in software platform record driving resource set, and according to corresponding resource
Use the function of hardware;
Described device further includes Alarm Unit, is specifically used for,
If the hardware resource in the driving resource set is not focused to find out in the hardware resource, reported data configuration error is logical
Know;
If the resource that the hardware resource is concentrated does not have the driving resource to be focused to find out, driving faulty resource notice is reported.
7. managing hardware device device according to claim 6, which is characterized in that described device further includes,
Hardware resource acquiring unit obtains described hard after hardware device initialization according to the hardware device type
Part resource set.
8. managing hardware device device according to claim 6, which is characterized in that described device further includes storage unit,
For storing the hardware resource collection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510524206.9A CN106484523B (en) | 2015-08-24 | 2015-08-24 | A kind of managing hardware device method and device thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510524206.9A CN106484523B (en) | 2015-08-24 | 2015-08-24 | A kind of managing hardware device method and device thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106484523A CN106484523A (en) | 2017-03-08 |
CN106484523B true CN106484523B (en) | 2019-07-30 |
Family
ID=58233906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510524206.9A Active CN106484523B (en) | 2015-08-24 | 2015-08-24 | A kind of managing hardware device method and device thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106484523B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582610A (en) * | 2018-12-05 | 2019-04-05 | 上海航天电子通讯设备研究所 | Method and its module across the aobvious compatible control of control platform under a kind of VxWorks system environments |
CN114035771A (en) * | 2021-11-17 | 2022-02-11 | 河南许继仪表有限公司 | Internet of things management terminal resource sharing system and method based on self-balancing technology |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1384597A (en) * | 2002-06-07 | 2002-12-11 | 清华大学 | Medium and high voltage frequency converter monitoring method and system based on state self-adaption |
US7433951B1 (en) * | 2000-09-22 | 2008-10-07 | Vmware, Inc. | System and method for controlling resource revocation in a multi-guest computer system |
CN101685335A (en) * | 2008-09-27 | 2010-03-31 | 国际商业机器公司 | Application server based on SEDA as well as energy-saving device and method thereof |
CN104008130A (en) * | 2014-04-28 | 2014-08-27 | 开网科技(北京)有限公司 | System and method for classifying network messages on basis of hybrid computation hardware |
CN104469503A (en) * | 2014-11-20 | 2015-03-25 | 青岛海信电器股份有限公司 | Initializing method and device of electronic equipment and external equipment of electronic equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013099414A1 (en) * | 2011-12-26 | 2013-07-04 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Register mapping method |
-
2015
- 2015-08-24 CN CN201510524206.9A patent/CN106484523B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7433951B1 (en) * | 2000-09-22 | 2008-10-07 | Vmware, Inc. | System and method for controlling resource revocation in a multi-guest computer system |
CN1384597A (en) * | 2002-06-07 | 2002-12-11 | 清华大学 | Medium and high voltage frequency converter monitoring method and system based on state self-adaption |
CN101685335A (en) * | 2008-09-27 | 2010-03-31 | 国际商业机器公司 | Application server based on SEDA as well as energy-saving device and method thereof |
CN104008130A (en) * | 2014-04-28 | 2014-08-27 | 开网科技(北京)有限公司 | System and method for classifying network messages on basis of hybrid computation hardware |
CN104469503A (en) * | 2014-11-20 | 2015-03-25 | 青岛海信电器股份有限公司 | Initializing method and device of electronic equipment and external equipment of electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106484523A (en) | 2017-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021017301A1 (en) | Management method and apparatus based on kubernetes cluster, and computer-readable storage medium | |
US11544288B2 (en) | Systems and methods for managing distributed database deployments | |
US10713280B2 (en) | Systems and methods for managing distributed database deployments | |
US11615115B2 (en) | Systems and methods for managing distributed database deployments | |
EP3435235B1 (en) | Method and device for executing data recovery operation | |
US10701130B2 (en) | Methods and systems that use feedback to distribute and manage alerts | |
US20170344618A1 (en) | Systems and methods for managing distributed database deployments | |
CN105893205A (en) | Method and system for monitoring containers created based on docker | |
WO2023142054A1 (en) | Container microservice-oriented performance monitoring and alarm method and alarm system | |
CN104115447A (en) | Allowing destroy scheme configuration method and device under cloud computing architecture | |
CN108804299A (en) | Application exception processing method and processing device | |
CN103458020B (en) | A kind of monitoring method and system of the cloud platform based on XCP | |
CN111625383B (en) | Process exception event processing method and device, electronic equipment and storage medium | |
US8656224B2 (en) | Network fault management in busy periods | |
CN103368771A (en) | Collecting method and device for fault site information of multi-node server system | |
CN105095103A (en) | Storage device management method and device used for cloud environment | |
CN109254922A (en) | A kind of automated testing method and device of server B MC Redfish function | |
CN110727664A (en) | Method and device for executing target operation on public cloud data | |
WO2017181430A1 (en) | Method and device for duplicating database in distributed system | |
CN106484523B (en) | A kind of managing hardware device method and device thereof | |
EP4024761A1 (en) | Communication method and apparatus for multiple management domains | |
CN110908644B (en) | Configuration method and device of state node, computer equipment and storage medium | |
CN116136801B (en) | Cloud platform data processing method and device, electronic equipment and storage medium | |
CN104657240B (en) | The Failure Control method and device of more kernel operating systems | |
CN105868038A (en) | Memory error processing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |