Summary of the invention
The objective of the invention is, at utilizing Ethernet interface to obtain the defective of system mode in the existing multicomputer system, the method and the multicomputer system that provide a kind of system mode to obtain, when system start-up, can know the state of activation of system as early as possible, when being in states such as deadlock, shutdown in system, to user alert system abnormality information, the control interface for the user provides a close friend guarantees that each connection all is controlled operation interface.
To achieve these goals, the invention provides the method that system mode is obtained in a kind of multicomputer system, comprising: first system sends detection information via the basic input/output interface of second system to second system; The return information of whether receiving second system is within the predetermined time judged by first system, when not receiving return information, points out the abnormal state of second system; Described first system is a main system, and described second system is the subordinate system.
In the technique scheme, described first system comprises to the process that second system sends detection information via the basic input/output interface of second system: first system sends probe messages information by the parallel port to second system to second system transmission detection character information or first system by serial ports.Also can before sending detection information, judge whether parallel port/string slogan is the call number of second system's correspondence, when parallel port/string slogan is the call number of correspondence, just sends and survey character or message information to described second system to second system.
Can also comprise before second system sends detection information via the basic input/output interface of second system in the present invention first system: first system detects the type feature whether system that is attached thereto satisfies second system; When satisfying the type feature of second system, carry out the operation that sends detection information to second system.
The present invention also provides the device that system mode is obtained in a kind of multicomputer system, comprising:
Information acquisition unit is connected with judging unit, and first system that obtains is to the detection information of second system transmission and the return information of second system;
Judging unit is connected with performance element with information acquisition unit, and whether to second system forwards detection information, second system have information return, and judged result is sent performance element if judging whether;
Performance element is connected with judging unit, sends detection information to second system, when not receiving the second system return information, and the abnormal state of pointing out second system;
Described first system is a main system, and described second system is the subordinate system.
The invention provides a kind of method and device that utilizes basic input/output interface to obtain system mode.When first system obtains the state information of second system or carries out operation such as switching controls at needs, send detection information by basic input/output interface to second system, basic input/output interface such as the serial ports of the relative connection with first system of second system or parallel port is set to the control mouth.Can be if second system is in state of activation by control mouthful basic input/output interface return information to first system's correspondence, first system judges that thus second system is in state of activation, can carry out control operation to second system, otherwise output information, represent that second system is in abnormality.
The present invention first system surveys the state of second system that is attached thereto by basic input/output interface, can reflection second system promptly and accurately whether be in state of activation, avoid the user to be under deadlock or the off-mode in second system, still it is carried out control operation, thereby, guarantee that each operation interface that connects all is controlled for the user provides a more friendly control interface.And, utilize the present invention, be in starting up's input and output (Basic input﹠amp in second system; Outputsystem is called for short BIOS) initial phase, first system can know that second system is in state of activation, not the phenomenon of existence response lag; For certain application of follow-up needs second system mode provides information, be convenient to subsequent operation.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Embodiment
Method embodiment one flow chart that Fig. 2 obtains for system mode of the present invention.As shown in Figure 2, present embodiment comprises:
Step 1: first system sends detection information via the basic input/output interface of second system to second system;
Step 2: first system judges whether to receive within the predetermined time the return information of second system, when not receiving return information, points out the second system exception state information, otherwise receives return information, knows that second system is in normal condition.
Present embodiment provides a kind of method of utilizing basic input/output interface to obtain system mode, first system is connected with second system by basic input/output interface, and basic input/output interfaces such as the serial ports of second system and first system corresponding connection or parallel port are set to control mouthful.First system sends the state that detection information obtains second system via the basic input/output interface of second system to second system, if second system is in state of activation, the basic input/output interface of second system is to first system's return information, first system can control operation such as switch to second system, otherwise first system prompt, the second system exception state information, avoid second system is carried out misoperation, keep controlled, friendly operation interface.Utilize agreement between plate to obtain the state of interconnective subordinate system in the existing multicomputer system, need wait until the state that just can know the subordinate system after subordinate's system initialization, and the basic input/output interface of present embodiment utilization obtains the mode of system mode, can be in the BIOS initial phase in the subordinate system, can know that system is in starting state, not the phenomenon of existence response lag; And need certain application of system mode that information is provided for follow-up, be convenient to subsequent operation.
Method embodiment two flow charts that Fig. 3 obtains for system mode of the present invention.Before step 1 shown in Figure 2, also comprise in the present embodiment:
Obtain the call number of the input/output interface of second system's correspondence;
Judging whether basic input/output interface is number corresponding with described call number, is then to send detection information to second system; Otherwise carry out respective handling.
Illustrate: each respectively corresponding one second system of string slogan of first system, different string slogans is corresponding with the second different systems, when first system need obtain the state information of certain second system, obtain the serial ports call number of this second system correspondence, thereby send detection information to second system that correspondence string slogan connects.As: first system is connected with four second systems 2,1,3,4 respectively by serial ports 1, serial ports 2, serial ports 3, serial ports 4, and promptly the serial ports 1 of first system connects second system 2, and serial ports 2 connects second 1... of system.To obtain the state of second system 1 as first system, retrieve corresponding call number serial ports 2, thereby only send detection information to second system that serial ports 2 connects.If basic input/output interface is number corresponding with described call number, then export information.
In like manner, if first system will use the parallel port to survey the state of second system, second system at first must use the parallel port as basic input/output port so, secondly, the interface that is connected back-to-back with second system in first system, also must a parallel port on the physical attribute, first system is connected with second system when obtaining second system mode by the parallel port, need to detect also whether slogan is corresponding with the call number of second system, thereby the parallel port to correspondence sends detection information, the detailed process and the serial ports course of work are similar, are not described in detail in this.
Method embodiment three flow charts that Fig. 4 obtains for system mode of the present invention.As shown in Figure 4, present embodiment is compared with Fig. 3 embodiment, also comprises:
Obtain the type of the system that links to each other with first system; Judging whether this system satisfies the second system type feature, is then to send detection information to this system; Otherwise do not send detection information or information.
Present embodiment further detects the category feature that whether satisfies second system with interconnective system of first system, and when not satisfying the second system type feature, first system is information directly, has saved subsequent step.
Below present embodiment being applied to multicomputer system is illustrated: main system is by being provided with hardware ID sign main system type, and the subordinate system is provided with another hardware ID sign subordinate system type, and identical system type is provided with same hardware ID.When main system need switch to certain subordinate system, when surveying this system and whether being in state of activation, whether satisfy the type feature of subordinate system by judging this system, thereby send detection information to the system that satisfies subordinate's system type feature.
In the multicomputer system, can insert a plurality of plug-in cards on the PCI slot of main system, comprise interfaces such as 2 cover Ethernet interfaces, serial ports, parallel port in each plug-in card, this 2 socket connects back-to-back.One socket is connected with main system, another set ofly then is connected with the subordinate system.Be provided with the hardware ID value in each plug-in card, main system is by detecting this ID value, and whether what judge this plug-in card opposite side connection is the subordinate system of main system, if then send order or detection information to this subordinate system.If do not connect plug-in card on the slot, perhaps the discontented foot of the plug-in card that connects on the slot belongs to the type feature of system, then skips subsequent step, can directly point out information such as handoff failure, has saved follow-up time.
The method that Fig. 5 obtains for system mode of the present invention is applied to serial ports embodiment flow chart.As controlling the characteristic that mouth carries out the order line echo, subtend second system sends detection information and receives the further refinement of process of return information present embodiment at serial ports.As shown in Figure 5, present embodiment specifically comprises:
Step 10: the capable information of first system's input command, need obtain a certain second system mode or a certain second system is carried out operations such as switching controls;
Step 11: first system judges that whether the system that is connected with serial ports satisfies the type feature of second system, as satisfy execution in step 12, otherwise execution in step 15;
Step 12: first system obtains the serial ports call number corresponding with this second system;
Step 13: first system judges whether the string slogan is corresponding with described call number, is execution in step 14 then, otherwise execution in step 15;
Step 14: first system enables this serial ports transmitting-receiving, sends carriage return character, execution in step 20 by this serial ports to second system of correspondence;
Step 15: point out the second system exception state information, for example: switch to second thrashing, second system and be in and crash or state information such as shutdown;
Step 20: the first in first out (First in first out is called for short FIFO) that this serial ports is read in the repeating query of first system receives buffering area;
Step 21: judging whether to receive return character, is execution in step 23 then; Otherwise execution in step 22;
Step 22: delaying time judges whether to surpass the time of setting after 1 millisecond, as: 1 second, do not receive any response character yet if surpass 1 second, then close this serial ports transmitting-receiving, execution in step 15; Otherwise execution in step 20 continues to read this serial ports receives fifo buffer;
The response character of second system can not return sometimes immediately, receives fifo buffer so read once this serial ports every 1 millisecond, if do not receive any character yet after having arrived 1 second, then judges second system exception;
Step 23: prompting handover success information, represent that second system is in state of activation, can control second system.
When second system is in state of activation, its control mouth (present embodiment with the serial ports of second system as control mouthful) is in case received any one character, just can beaming back with this character former state, turn back to the serial ports that is connected with first system, this character just can be received by this serial ports by first system.If the serial port drive program of first system has been received any character within 1 second, judge that second system is in state of activation, can report to enable successfully, switch to the operation of second system, prompting user handover success.Otherwise, judge second system exception, information such as the prompting handoff failure or second system exception.Certainly, first system can also be by serial ports other characters beyond second system control mouthful transmission carriage return character, for example: " t ", when activating, second system can return identical character to first system equally, promptly can reach and judge whether second system is in the purpose of state of activation, so but this kind situation is owing to will return not too close friend of concrete character interface, and it is minimum to user's influence to send carriage return character, so common first system sends carriage return character by serial ports to second system.
The method that Fig. 6 obtains for system mode of the present invention is applied to parallel port embodiment flow chart.Fig. 6 and Fig. 5 are similar, but with the parallel port of second system as control mouthful, first system sends probe messages by the parallel port to relative connection second system, if receive the message information that second system returns, then second system is in state of activation, can control operation such as switch to second system, otherwise, point out the second system exception information, detailed process and Fig. 5 are similar, describe in detail no longer one by one at this.
Fig. 5 and Fig. 6 embodiment only give an example by the state that serial ports and parallel port obtain system, same principle, and the method for the invention can also be applied to the state that other basic input/output interface obtains interconnective system, no longer gives an example at this.
When the method for the invention is applied to multicomputer system, the subordinate system is at normal operation period, input/output interfaces such as a certain serial ports that will be connected with main system or parallel port are as the control mouth, main system switches to during the subordinate system, detects the state of subordinate system by the input/output interface of correspondence.When the subordinate system was in state such as deadlock, shutdown, prompting subordinate system exception information can't be carried out information such as handover operation, handoff failure; When the subordinate system was in state of activation, the control mouth that can switch to the subordinate system was operated, and guaranteed that each operation all is controlled operation interface.As: the subordinate system as the control mouth, when main system switches to the control mouth of the subordinate system that is connected with this serial ports by serial ports, can carry out control operation to the subordinate system with serial ports.After switching to this subordinate system, the serial ports of main system cooperates the control mouth of Ethernet interface and subordinate system and Ethernet interface to carry out the notice of other state between exchanges data and two systems, thereby can distinguish subordinate's system in case of system halt, shutdown and link abnormality.
Device embodiment one schematic diagram that Fig. 7 obtains for system mode of the present invention.As shown in Figure 7, present embodiment comprises:
Information acquisition unit 11 is connected with judging unit 12, and first system that obtains is to the detection information of second system transmission and the return information of second system;
Judging unit 12 is connected with performance element 13 with information acquisition unit 11, judges the return information of second system of whether receiving in the default time, and judged result is sent performance element;
Performance element 13 is connected with judging unit 12, sends detection information to the basic input/output interface of second system, when not receiving the second system return information, points out the second system exception state information.
In the present embodiment, performance element sends detection information by the basic input/output interface to second system, obtains the state information of second system, the defective when knowing the state of system to remedy existing multicomputer system by Ethernet interface.When second system is in abnormality, display reminding information, user interface close friend has avoided still second system being controlled the problem of being brought when second system exception.
Device embodiment two schematic diagrames that Fig. 8 obtains for system mode of the present invention.As shown in Figure 8, the present embodiment judging unit further comprises:
Send judgment sub-unit 121, judge whether the basic input/output interface that sends detection information meets the demands;
Information is returned judgment sub-unit 122, judges whether to receive second system's return information in the default time.
Send judgment sub-unit and can before sending detection information, judge whether interface meets the demands to second system, whether satisfy as: interface index number second system type whether corresponding, that interface connects etc., just the interface to correspondence sends detection information when condition satisfies, otherwise direct information, save down-stream, specifically can referring among the method embodiment for the explanation that meets the demands.
Can be in the multicomputer system with first system and second system respectively as main system and subordinate system, the device that obtains by system mode of the present invention obtains the state information of subordinate system.First system can link to each other with second system by device of the present invention, also device of the present invention can be cured to its inside, as the part of first system, obtains the state of second system.
In sum, the present invention first system surveys the state of second system that is attached thereto by basic input/output interface, can reflection second system promptly and accurately whether be in state of activation, avoid the user to be under deadlock or the off-mode in second system, still it is carried out control operation, thereby provide more friendly, a controlled operation interface for the user.And, utilize the present invention, at the BIOS initial phase that second system is in the starting up, can know that second system is in state of activation, not the phenomenon of existence response lag; For certain application of follow-up needs second system mode provides information, be convenient to subsequent operation.
It should be noted that at last: above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.