Summary of the invention
The technical matters that the present invention will solve provides a kind of dynamic creation method and device of topological diagram of internal sensor of computer; The concrete condition that can show the machine internal sensor visual in imagely; Improve the ease for use of computer system maintenance, had general, flexible, extendible characteristics.
In order to address the above problem, the invention provides a kind of dynamic generation apparatus of topological diagram of internal sensor of computer, comprising:
The sensor information dispensing unit is used to preserve the corresponding main board background of different type of machines sign, and sensor configuration information; Said sensor configuration information is used for the position of indication sensor on mainboard;
The sensor information recognition unit is used to obtain the type sign of the computing machine that is connected and the sensor information of obtaining and preserving each sensor in this computing machine in real time;
The topological diagram generation unit is used for reading corresponding sensor configuration information and main board background according to said type sign; According to said sensor information, in the sensor configuration information that is read, confirm the position of each sensor on mainboard in the said computing machine, said each sensor is presented at the relevant position in the main board background that is read.
Further, said sensor configuration information comprises sensor name, sensor type, and the positional information of sensor on mainboard of each sensor;
Said sensor information comprises sensor name, sensor output quantity, sensor type;
Said topological diagram generation unit confirms that according to sensor information the position of each sensor on mainboard specifically is meant in the said computing machine in the sensor configuration information that is read:
Said topological diagram generation unit is confirmed the sensor name and the sensor type of this sensor respectively according to the sensor information of each sensor in the said computing machine; In the sensor configuration information that is read; Find the sensor with this sensor matching according to said sensor name and sensor type, obtain the positional information of this sensor on mainboard.
Further, said topological diagram generation unit specifically is meant the relevant position that sensor is presented in the said main board background:
The main board background that said topological diagram generating unit displays is read on the relevant position of this main board background, indicates sensor name, sensor type and the output quantity thereof of each sensor respectively.
Further, said topological diagram generation unit also is used to preserve the corresponding legend of each sensor type; When sensor is presented at the relevant position in the said main board background, show the pairing legend of sensor type of this sensor.
Further, said topological diagram generation unit also is used to preserve the corresponding fault legend of each sensor type;
The sensor information that said sensor information recognition unit obtains and preserves also comprises a failure identification, is used to indicate whether fault of this sensor; Said sensor information recognition unit in the time of maybe can't obtaining the output quantity of this sensor, is changed to this failure identification the value of expression " fault " when the sensor information that can't obtain a sensor;
During the said sensor of said topological diagram generating unit displays,, then show the fault legend of this sensor if the failure identification of this sensor is the value of expression " fault ".
The present invention also provides a kind of dynamic creation method of topological diagram of internal sensor of computer, comprising:
Preserve the corresponding main board background of different type of machines sign, and sensor configuration information; Said sensor configuration information is used for the position of indication sensor on mainboard;
Obtain the type sign of the computing machine that is connected, the sensor information of obtaining and preserving each sensor in this computing machine in real time;
Read corresponding sensor configuration information and main board background according to said type sign; According to said sensor information, in the sensor configuration information that is read, confirm the position of each sensor on mainboard in the said computing machine, said each sensor is presented at the relevant position in the main board background that is read.
Further, said sensor configuration information comprises sensor name, sensor type, and the positional information of sensor on mainboard of each sensor;
Said sensor information comprises sensor name, sensor output quantity, sensor type;
Saidly confirm that according to sensor information the step of the position of each sensor on mainboard in the said computing machine specifically comprises in the sensor configuration information that is read:
Confirm the sensor name and the sensor type of this sensor respectively according to the sensor information of each sensor in the said computing machine; In the sensor configuration information that is read; Find the sensor with this sensor matching according to said sensor name and sensor type, obtain the positional information of this sensor on mainboard.
Further, the said step that sensor is presented at the relevant position in the said main board background specifically comprises:
Show the main board background that is read, on the relevant position of this main board background, indicate sensor name, sensor type and the output quantity thereof of each sensor respectively
Further, described dynamic creation method also comprises:
Preserve the corresponding legend of each sensor type;
When sensor is presented at the relevant position in the said main board background, show the pairing legend of sensor type of this sensor.
Further, described dynamic creation method also comprises:
Preserve the corresponding fault legend of each sensor type;
Said sensor information also comprises a failure identification, is used to indicate whether fault of this sensor; When the sensor information that can't obtain a sensor, in the time of maybe can't obtaining the output quantity of this sensor, this failure identification is changed to the value of expression " fault ";
When showing said sensor,, then show the fault legend of this sensor if the failure identification of this sensor is the value of expression " fault ".
Technical scheme of the present invention possesses following advantage at least: the topological diagram that can dynamically generate this type inner structure; The user is through diagram; Can see the particular location of sensor on mainboard,, actually check that the machine intimate situation is the same just as opening chassis lid; Technical scheme of the present invention has boundless application scenario and prospect, is convenient to expansion.Prioritization scheme of the present invention can also further indicate affiliated type, numerical value, state of this sensor etc., or further indicates out of order sensor,
Embodiment
To combine accompanying drawing and embodiment that technical scheme of the present invention is explained in more detail below.
Need to prove that if do not conflict, each characteristic among the embodiment of the invention and the embodiment can mutually combine, all within protection scope of the present invention.In addition; Can in computer system, carry out in the step shown in the process flow diagram of accompanying drawing such as a set of computer-executable instructions, and, though logical order has been shown in process flow diagram; But in some cases, can carry out step shown or that describe with the order that is different from here.
The dynamic generation apparatus of embodiment one, a kind of topological diagram of internal sensor of computer, as shown in Figure 2, comprising:
Sensor information dispensing unit 1, sensor information recognition unit 2, topological diagram generation unit 3.
Said sensor information dispensing unit 1 is used to preserve the corresponding main board background of different type of machines sign, and sensor configuration information; Said sensor configuration information is used for the position of indication sensor on mainboard.
In the present embodiment, said sensor configuration information is corresponding with concrete type, and each type can be different mutually; In can self-defined said sensor information dispensing unit 1 corresponding to the sensor configuration information of each concrete type; When new architecture occurring; Can in this sensor information dispensing unit 1, add this new architecture corresponding main board background and sensor configuration information, be convenient to expansion.
In the present embodiment, said sensor configuration information can specifically comprise sensor name, sensor type and the positional information on mainboard of each sensor; This positional information can but be not limited to coordinate.
In the present embodiment, said sensor information dispensing unit 1 can but be not limited to said sensor configuration information is kept in the specific region of storer of computing machine, also can be kept in this unit.
Said sensor information recognition unit 2 links to each other with the computing machine that will illustrate sensor topology, is used to obtain the type sign of the computing machine that is connected, and the sensor information of obtaining and preserving each sensor in this computing machine in real time.
In the present embodiment, said type sign can but be not limited to title or model; Said sensor information comprises sensor name, sensor type and sensor output quantity.
Each sensor links to each other respectively in said sensor information recognition unit 2 and the computing machine, thus read sensor information, or connect directly that processor etc. in the computing machine links to each other with each sensor and the hardware of read sensor information, to obtain sensor information.
Said topological diagram generation unit 3 is cores of this device, can dynamically generate the sensor topology diagram; Be used for reading corresponding sensor configuration information and main board background according to said type sign; According to said sensor information, in the sensor configuration information that is read, confirm the position of each sensor on mainboard in the said computing machine, said each sensor is presented at the relevant position in the main board background that is read.
In the present embodiment, said topological diagram generation unit 3 confirms that according to sensor information the position of each sensor on mainboard specifically can refer in the said computing machine in the sensor configuration information that is read:
Said topological diagram generation unit 3 is confirmed the sensor name and the sensor type of this sensor respectively according to the sensor information of each sensor in the said computing machine; In the sensor configuration information that is read; Find the sensor with this sensor matching according to said sensor name and sensor type, obtain the positional information of this sensor on mainboard.
In the practical application; In said sensor information and the sensor configuration information; Also can replace said sensor name and sensor type by unique identification information corresponding to a sensor in the computing machine with other of sensor, said topological diagram generation unit 3 finds the sensor of coupling in sensor configuration information according to this identification information.
In the present embodiment, said topological diagram generation unit 3 can but be not limited to show sensor topology figure through said computer screen or printer; Also can carry display device or printing equipment etc., so that said topological diagram is shown to the user.
In the present embodiment, said topological diagram generation unit 3 specifically can be meant the relevant position that each sensor is presented in the said main board background:
Said topological diagram generation unit 3 shows the main board background that is read, and on the relevant position of this main board background, indicates sensor name, sensor type and the output quantity thereof of each sensor respectively.
Adopt the device of present embodiment, can let user's simple, intuitive ground understand each sensor that computer-internal is installed, ease for use is better.
In the present embodiment, said topological diagram generation unit 3 can also be used to preserve the corresponding legend of each sensor type; When sensor is presented at the relevant position in the said main board background, can also show the pairing legend of sensor type of this sensor.
In the present embodiment, said topological diagram generation unit 3 can also be used to preserve the corresponding fault legend of each sensor type;
2 sensor informations of obtaining and preserving of said sensor information recognition unit also comprise a failure identification, are used to indicate whether fault of this sensor; Said sensor information recognition unit 2 in the time of maybe can't obtaining the output quantity of this sensor, is changed to this failure identification the value of expression " fault " when the sensor information that can't obtain a sensor;
When said topological diagram generation unit 3 shows said sensor,, then show the fault legend of this sensor if the failure identification of this sensor is the value of expression " fault ".
Such as, certain sensor has been broken, and the user just can see this sensor fault on this diagram, and the position of this sensor on position on the main board background and actual mainboard is identical, is convenient to the quick fault location sensor that gets of user like this, so that in time change.
The dynamic creation method of embodiment two, a kind of topological diagram of internal sensor of computer comprises:
Preserve the corresponding main board background of different type of machines sign, and sensor configuration information; Said sensor configuration information is used for the position of indication sensor on mainboard;
Obtain the type sign of the computing machine that is connected, the sensor information of obtaining and preserving each sensor in this computing machine in real time;
Read corresponding sensor configuration information and main board background according to said type sign; According to said sensor information, in the sensor configuration information that is read, confirm the position of each sensor on mainboard in the said computing machine, said each sensor is presented at the relevant position in the main board background that is read.
In the present embodiment, said sensor configuration information is corresponding with concrete type, and each type can be different mutually; Can self-defined sensor configuration information corresponding to each concrete type, when new architecture occurring, can add this new architecture corresponding main board background and sensor configuration information, be convenient to expansion.
In the present embodiment, said sensor configuration information can specifically comprise sensor name, sensor type and the positional information on mainboard of each sensor; This positional information can but be not limited to coordinate.
In the present embodiment, said type sign can but be not limited to title or model; Said sensor information comprises sensor name, sensor type and sensor output quantity.
In the present embodiment, confirm in the sensor configuration information that is read that according to said sensor information the step of the position of each sensor on mainboard in the said computing machine specifically can comprise:
Confirm the sensor name and the sensor type of this sensor respectively according to the sensor information of each sensor in the said computing machine; In the sensor configuration information that is read; Find the sensor with this sensor matching according to said sensor name and sensor type, obtain the positional information of this sensor on mainboard.
In the practical application; Said sensor information and sensor configuration information also can replace said sensor name and sensor type by unique identification information corresponding to a sensor in the computing machine with other of sensor, just can in sensor configuration information, find the sensor of coupling according to this identification information.
In the present embodiment, the step that each sensor is presented at the relevant position in the said main board background specifically can comprise:
Show the main board background that is read;
On the relevant position of this main board background, indicate sensor name, sensor type and the output quantity thereof of each sensor respectively.
Adopt the method for present embodiment, can let user's simple, intuitive ground understand each sensor that computer-internal is installed, ease for use is better.
In the present embodiment, said method can also comprise:
Preserve the corresponding legend of each sensor type; When sensor is presented at the relevant position in the said main board background, can also show the pairing legend of sensor type of this sensor.
In the present embodiment, said method can also comprise:
Preserve the corresponding fault legend of each sensor type;
Said sensor information also comprises a failure identification, is used to indicate whether fault of this sensor; When the sensor information that can't obtain a sensor, in the time of maybe can't obtaining the output quantity of this sensor, this failure identification is changed to the value of expression " fault ";
When showing said sensor,, then show the fault legend of this sensor if the failure identification of this sensor is the value of expression " fault ".
The method of present embodiment is different from traditional sensor information methods of exhibiting; This method is being obtained on the sensor information basis; With the topological diagram generation unit is core; According to self-defining sensor information dispensing unit, dynamically generate the sensor information topological diagram, reach that sensor information is showed flexibly, image, purpose intuitively.
Other realizes that details can be said with embodiment one.
Among above-mentioned each embodiment; Each module or each step can realize that they can concentrate on the single calculation element with the general calculation device, perhaps are distributed on the network that a plurality of calculation element forms; Alternatively; They can realize with the executable program code of calculation element, thereby, can they be stored in the memory storage and carry out by calculation element; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Certainly; The present invention also can have other various embodiments; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of claim of the present invention.