Summary of the invention
In view of above situation, the invention provides a kind of in the following fan control system and method that can guarantee the heat dispersion of system of the out-of-work situation of BMC.
A kind of fan control system; Comprise a basic input output system (BIOS), a baseboard management controller (BMC), a pulse oscillator and a signal selector; Said BIOS discerns the variation of said BMC flag bit and gives said signal selector according to the variation of said flag bit output various signals, and the pwm signal that said signal selector selects pwm signal that said BMC exports or said pulse oscillator to export according to the output signal of said BIOS passes to fan.
A kind of method of fan control system, the method comprising the steps of:
Said pulse oscillator produces pwm signal rotates fan at full speed;
Said BMC regularly is provided with the value of its flag bit;
Said BIOS regularly reads and stores the value of said BMC inner mark position;
Whether the value in more said BIOS stored space is consistent;
If the value of said storage space is inconsistent; Said signal selector selects the pwm signal of said BMC to pass to fan; Promptly make the pwm signal of said BMC control said fan rotation, execution in step " said BIOS regularly reads and store the value of said BMC inner mark position " afterwards;
If the value of said storage space is consistent; Said signal selector selects the pwm signal of said pulse oscillator to pass to fan; Promptly make the pwm signal of said pulse oscillator control said external fan rotation, execution in step " said BIOS regularly reads and store the value of said BMC inner mark position " afterwards.
Compared to existing technology, said fan control system and method are selected different pwm signals through the variation of judging said BMC flag bit, just can after said BMC quits work, overcome the thermal diffusivity of system and the deficiency of fluctuation of service.
Embodiment
See also Fig. 1; Fan control system of the present invention is used to control a fan 20, and the preferred embodiments of said fan control system comprises a basic input output system (BIOS) 10, a baseboard management controller (BMC) 12, a pulse oscillator 14 and a signal selector 16.
Said BMC 12 is provided with a flag bit in its configuration data memory block.Said BMC12 regularly is provided with the value of its flag bit, is the value that the cycle its flag bit is set regularly with one second for example.If said BMC 12 proper functioning; Then the value of said BMC 12 its flag bits is set to " 0 " in first cycle; The value of its flag bit is set to " 1 " in second period, and the value of its flag bit is set to " 0 " in the 3rd cycle, and the value of its flag bit is set to " 1 " in the 4th cycle; So be arranged alternately, the value of its flag bit is alternately occurred for " 0 ", " 1 "; If said BMC 12 quits work, the value of its flag bit will no longer change.
The variation of said BMC 12 flag bits of said BIOS 10 identifications is also given said signal selector 16 according to the variation output various signals of said flag bit, and the pwm signal that pwm signal that said signal selector 16 is selected said BMC 12 is exported according to the output signal of said BIOS 10 or said pulse oscillator 14 are exported passes to fan 20.
Said BIOS 10 to be being provided with the value that identical cycle of said sign place value regularly read and stored flag bits in the said BMC 12 with said BMC 12, and the value of the flag bit that is read in former and later two adjacent periods is compared.If the value of two interior flag bits that read of adjacent periods is consistent, said BIOS 10 produces a high level signal; Otherwise, produce a low level signal.In this mode of execution; Said BIOS 10 only stores the value of the flag bit that is read in former and later two adjacent periods; Promptly; The value of promptly deleting the flag bit that is read in the last cycle after the value of the flag bit that in said BIOS 10 relatively accomplishes two adjacent periods, is read, the value of just storing the flag bit that is read in following one-period afterwards.
The pwm signal that said impulser 14 produces is continuous high level signal (being that said pulse oscillator 14 generation dutycycles are 1 pwm signal).
In this mode of execution, said signal selector 16 can be a multiway analog switch (MUX).Said signal selector 16 is confirmed the said BMC 12 of conducting and fan 20 or said pulse oscillator 14 and fan 20 through the level signal that reads said BIOS 10 and produce, and the pwm signal of being exported with pwm signal that said BMC 12 is exported or said pulse oscillator 14 passes to said fan 20.
If said BMC 12 is in normal working; It will be provided with the value of flag bit in the interior data memory block with certain cycle; The value that is flag bit in the BMC 12 internal data store districts that in two adjacent periods, read of said BIOS 10 will change; At this moment, 10 of said BIOS produce low level level signal, and 16 pwm signals that said BMC 10 is exported of said signal selector pass to said fan 20; If said BMC12 is in off working state, it will not change the value of inner mark position, and at this moment, said BIOS10 will produce the level signal of high level, and 16 pwm signals that said pulse oscillator 14 is exported of said signal selector pass to said fan 20.Because the pwm signal that said pulse oscillator 14 is exported is continuous high level signal, therefore, said fan 20 will be always with its maximum speed work.So can guarantee when said BMC is in off working state 20 radiating requirements that can satisfy system of said fan.
See also Fig. 2, control method for fan preferred embodiment of the present invention may further comprise the steps:
Step S1, said pulse oscillator 14 produce pwm signal rotates fan 20 at full speed.Behind the system boot, said pulse oscillator 14 produces the pwm signal of continuous high level, so makes said fan 20 with its maximum speed work.
Step S2, said BMC 12 regularly is provided with the value of its flag bit, is the value that the cycle its flag bit is set regularly with one second for example.If said BMC 12 proper functioning; Then the value of said BMC 12 its flag bits is set to " 0 " in first cycle; The value of its flag bit is set to " 1 " in second period, and the value of its flag bit is set to " 0 " in the 3rd cycle, and the value of its flag bit is set to " 1 " in the 4th cycle; So be arranged alternately, the value of its flag bit is alternately occurred for " 0 ", " 1 "; If said BMC 12 quits work, the value of its flag bit will no longer change.
Step S3, said BIOS 10 regularly reads and stores the value of said BMC 12 inner mark positions.In this mode of execution; Said BIOS 10 is to be provided with the value that flag bits in the said BMC 12 are read in its cycle that indicates place value timing with said BMC 12; And said BIOS10 only stores the value of the flag bit that is read in former and later two adjacent periods; That is, the value of promptly deleting the flag bit that is read in the last cycle after the value of the flag bit that in said BIOS 10 relatively accomplishes two adjacent periods, is read, the value of just storing the flag bit that is read in following one-period afterwards.
Step S4, whether the value in more said BIOS 10 stored spaces is consistent; Said storage space is used to store the value of flag bit in the said BMC 12 internal data store districts, and when the value of the flag bit in the said memory block was consistent, said BIOS 10 produced a high level signal and gives said signal selector 16, and gets into step S6; When the value of the flag bit in the said memory block was inconsistent, said BIOS 10 produced a low level signal and gives said signal selector 16, and gets into step S5.
Step S5, said signal selector 16 selects the pwm signal of said BMC 12 to pass to fan 20, promptly makes the pwm signal of said BMC 12 control said fan 20 rotation, execution in step S3 afterwards.
Step S6, said signal selector 16 selects the pwm signal of said pulse oscillator 14 to pass to fan 20, promptly makes the pwm signal of said pulse oscillator 14 control said external fan 20 rotation, execution in step S3 afterwards.
Above-described only is mode of execution of the present invention, should be pointed out that for the person of ordinary skill of the art at this, under the prerequisite that does not break away from the invention design, can also make improvement, but these all belongs to protection scope of the present invention.