Set up the method and the servo-drive system of data record of work sensor
Technical field
The present invention is relevant for servo-drive system, especially about a kind of by reading the various monitor messages that need, and form the method and the servo-drive system of data record of work sensor according to this.
Background technology
IPMI (Intelligent Platform Management Interface, be called for short: IPMI) with baseboard management controller (Baseboard Management controller, be called for short: BMC), (as: (Inter-IntegratedCircuit/Intelligent Platform Management Bus is called for short: I internal integrated circuit/Intelligent Platform Management Bus by several standard interfaces
2C/IPMB) interface, serial/modulator-demodular unit (Serial/Modem) interface, Local Area Network interface etc.), the sensor set with needing monitored element (as: central processor temperature, voltage, rotation speed of the fan etc.) in the servo-drive system is connected, in order to collect from the sensing value of each sensor.When baseboard management controller when sensing value judges that the monitored element of servo-drive system has matters of aggravation to produce, baseboard management controller can be carried out and correct action, makes servo-drive system can continue to provide service, or suspends and provide service to avoid more grave error.
In addition, IPMI also comprises a sensor data register (Sensor DataRecorder), the sensor data register is single, a nonvolatile storage element, and be independent of outside processor, basic input/output system, operating system and the system management software, and the sensor data register is managed by baseboard management controller.And the sensor data register stores a sensor data record (Sensor Data Record), and various monitoring threshold values, incident that sensor data writes down each sensor produce monitor messages such as data.Make baseboard management controller initiatively inquire each sensor in turn according to the sensor data record, in order to obtain the sensing value of all sensors, and whether the comparison sensing value exceeds the monitoring threshold value, and after sensing value exceeds the monitoring threshold value, the incident of sending produces data and gives remote terminal (as: the employed working computer of system manager), and the system manager of remote terminal can initiatively be dealt with problems.
For example, servo-drive system can be set monitoring temperature to central processing unit in the sensor data record, the temperature of overheated deadlock can take place in this monitoring temperature a little less than central processing unit, when the temperature of central processing unit reached the monitoring temperature of setting, baseboard management controller will send incident and produce data to remote terminal.Or when the temperature of central processing unit surpasses the monitoring temperature value, baseboard management controller just improves the rotating speed of radiator fan, if still can't reduce the temperature of central processing unit, and during the temperature of central processing unit surpasses that another sets urgent monitoring temperature value, baseboard management controller can cut off system power supply, recording events process, and sends out warning by LAN interface or serial modem to remote terminal.
In addition, the servo-drive system of different size installation at present is the very general practice with a series of motherboards, and have only several elements inequality between each servo-drive system, for example: backboard (Backplane), cabinet (Chassis), case fan, central processing unit, heating radiator, fan etc.Therefore, the manufacturer of servo-drive system, for the servo-drive system of installing with all different sizes of a series of motherboards, (Multi-stock keeping unit is called for short: Multi-SKU) to be commonly referred to as multiple storage keeping unit; And for the servo-drive system that each different size in the unit is taken care of in multiple storage, (stock keeping unit is called for short: SKU) then to be referred to as to store the keeping unit.
Though, each stores corresponding several elements inequality in keeping unit, but, most storage keeping needs monitored element to have only a fraction of difference between the unit, yet, in order to tackle this kind change, the manufacturer of current servo system, still editor is mated the sensor data record that each stores the keeping unit respectively, write sensor data record with its coupling respectively in each sensor data register that stores the keeping unit again, yet, may be because of operational careless mistake, and sensor data register with the storage keeping unit of A specification takes place, write the sensor data record of the storage keeping unit of B specification, and cause inconvenience and the puzzlement of manufacturer on manufacturing of servo-drive system.
Summary of the invention
Because aforesaid many disappearances, the inventor is through the permanent research and experiment of making great efforts, and development and Design goes out a kind of method and servo-drive system of setting up data record of work sensor of the present invention finally.
A purpose of the present invention, a kind of method of setting up data record of work sensor is provided, be applied in a servo-drive system, servo-drive system is by reading first product coding, first product coding and a chained list that is stored in first storage element are compared, in order to find out second product coding that conforms to first product coding in the chained list, in chained list, read the pairing deposit position data of second product coding again, again according to most deposit positions of deposit position data read, in order to obtain each required monitor message of servo-drive system, and each monitor data of each deposit position copied to one the 3rd storage element, each monitor message is promptly formed a data record of work sensor, so, can solve the problem of the sensor data record of traditional servo-drive system write error.
Wherein, described first product coding can be one and stores the keeping element number; Described deposit position data comprise the deposit position that described a plurality of described monitor message is stored in second storage element.Another object of the present invention, a kind of servo-drive system of setting up data record of work sensor is provided, comprise first storage element, second storage element, baseboard management controller and the 3rd storage element, first storage unit stores, one chained list wherein, the a plurality of monitor messages of second storage unit stores, baseboard management controller is in the chained list of first storage element, find out second product coding that conforms to prior first product coding that stores of servo-drive system, and second product coding pairing deposit position data in chained list, by each deposit position of deposit position data read, in order to obtain each required monitor message of servo-drive system; The 3rd storage element stores each monitor message from baseboard management controller, in order to form data record of work sensor, so, can solve the problem of the sensor data record of write error in servo-drive system.
Wherein, baseboard management controller and described first, second and third storage element electrically connect; Described deposit position data comprise the wherein deposit position of at least one of described monitor message; Described deposit position data comprise the deposit position of each required described monitor message of described servo-drive system.
So, by the present invention, can solve the problem of the sensor data record of write error in servo-drive system.
Description of drawings
Fig. 1 is the synoptic diagram of servo-drive system of the present invention;
Fig. 2 is an action flow chart of the present invention;
Fig. 3 is the synoptic diagram of chained list of the present invention;
The synoptic diagram of the monitor message that Fig. 4 need deposit for second storage element of the present invention.
The main element symbol description:
Servo-drive system ... ... 1 first storage element ... ... 10
Chained list ... ... ... 100 second product codings ... ... 102
Deposit position data ... 104 second storage elements ... ... 12
The 3rd storage element ... 14 baseboard management controllers ... 2
Embodiment
The present invention is described in detail below in conjunction with accompanying drawing.
A kind of method of setting up data record of work sensor of the present invention, see also shown in Figure 1ly, be applied in servo-drive system 1, see also Figure 1 and Figure 2, when servo-drive system 1 is activated, baseboard management controller 2 will be set up data record of work sensor according to the following step:
Step 1: read in first product coding that stores in advance in the servo-drive system 1; In one embodiment of this invention, first product coding can be one and stores keeping element number (SKU ID);
Step 2: first product coding and the chained list 100 (as shown in Figure 3) that is stored in first storage element 10 are compared, in order to find out second product coding 102 that chained list 100 conforms to first product coding: in this embodiment, chained list 100 comprises most second product codings 102 and corresponding deposit position data 104, wherein each second product coding 102 can correspond to first product coding of the servo-drive system 1 of different size, and the deposit position data 104 of second product coding, 102 correspondences comprise the deposit position of different monitoring information storage at second storage element 12;
Step 3: in chained list 100, read 102 corresponding deposit position data 104 of second product coding;
Step 4: several deposit positions that comprised according to deposit position data 104, obtain each required monitor message of servo-drive system 1 from second storage element, 12 each deposit position; And
Step 5: each monitor message is copied to the 3rd storage element 14,, promptly finish in order to set up data record of work sensor.
From the above mentioned as can be known, baseboard management controller 2 is different with existing sensor data register, baseboard management controller 2 is from the chained list 100 and second storage element 12, find each monitor message with servo-drive system 1 coupling, and set up data record of work sensor, promptly can not occur in the sensor data register of the servo-drive system 1 of A specification, write the error situations of sensor data record of the servo-drive system 1 of B specification.
A kind of servo-drive system of setting up data record of work sensor of the present invention also sees also shown in Figure 1ly, and servo-drive system 1 is provided with one first storage element 10, and first storage element 10 stores chained lists 100 (link list).And chained list 100 comprises most second product codings 102 and most deposit position data 104, wherein first product coding of the servo-drive system 1 of each different size all can find second product coding 102 that is complementary in chained list 100, and each second product coding 102 corresponds to deposit position data 104 respectively, and each deposit position data 104 comprises the deposit position that several monitor messages are stored in second storage element 12.In addition, these monitor datas are monitoring threshold value, incident generation data of all sensors of different size servo-drive system 1.
In addition, servo-drive system 1 also is provided with one the 3rd storage element 14 and a baseboard management controller 2, wherein baseboard management controller 2 with this first, two and three storage elements 10,12,14 electrically connect, and can read first product coding of servo-drive system 1, reach first product coding according to servo-drive system 1, find second product coding 102 that conforms to first product coding from chained list 100, and read second product coding, 102 pairing deposit position data 104, and obtain each required monitor message of servo-drive system 1 from the deposit position of second storage element 12, and servo-drive system 1 each required monitor message is replicated in the 3rd storage element 14, to set up data record of work sensor.
In sum, if A servo-drive system with different size, B servo-drive system and C servo-drive system, if the A servo-drive system needs seven monitor messages, the B servo-drive system needs eight monitor messages, the C servo-drive system needs nine monitor messages, after comparison, find A, the B servo-drive system has identical a, the b monitor message, and A, the C servo-drive system has identical c monitor message, then 12 need of second storage element are deposited a, three common monitor messages of b and c monitor message and other 18 different monitor messages (as shown in Figure 4), do not need to deposit 24 all monitor messages, can further save the storage area of second storage element 12, so, as long as second product coding 102 of chained list 100 meets A, first product coding of B and C servo-drive system, and each second product coding 102 corresponds to required monitor message, can utilize the present invention to set up data record of work sensor, to solve the problem that is stored into wrong sensor data record in traditional servo-drive system.
The above, only for most preferred embodiment of the present invention, feature of the present invention is not limited thereto, and anyly is familiar with this skill person in field of the present invention, can think easily and variation or modification, all can be encompassed in the claim of following this case.