Fan information transmission method and electronic equipment
The substrate management controller receives and analyzes the fan speed square wave signal sent by the fan control chip and obtains fan information, solving the problem of difficulty in obtaining server fan information in the prior art, and achieving efficient and reliable fan information transmission.
Patent Information
- Application Number
- CN202411523419.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-10-29
AI Technical Summary
The prior art is difficult to effectively obtain information about server fans, especially other information except speed information, which makes it difficult to effectively maintain after large-scale deployment, which may cause problems such as server downtime.
The second fan speed square wave signal sent by the fan control chip is received through the substrate management controller, and the transmission data level signal is obtained based on the signal, and fan information is obtained through the signal. The method includes leveling the first fan speed square wave signal to encode the fan information, generating the second fan speed square wave signal, and transmitting it to the substrate management controller.
It realizes efficient, reliable and flexible fan information transmission based on the fan connector without changing it, allowing the substrate management controller to read fan information from the fan speed square wave signal, including maximum speed, manufacturer information, product serial number, etc., improving the flexibility and diversity of fan information transmission.
Smart Images

Figure CN119594041A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method for transmitting fan information and an electronic device. Background Art
[0002] In the process of server management, effectively obtaining fan information is very important for server management.
[0003] In the related art, usually only the fan speed information can be directly obtained, while other information of the fan is difficult to obtain. In addition, after large-scale deployment, the fan components are placed in various servers. If the information of each fan cannot be effectively obtained, it is difficult to effectively maintain it, which may cause server downtime and other situations.
[0004] Therefore, how to effectively obtain fan information has become a problem that needs to be solved urgently in the industry. Summary of the invention
[0005] The present invention provides a fan information transmission method and electronic equipment, which are used to solve the problem of how to effectively obtain fan information in the prior art.
[0006] The present invention provides a method for transmitting fan information, which is applied to a baseboard management controller. The method comprises: Receive a second fan speed square wave signal sent by the fan control chip; Based on the second fan speed square wave signal, acquiring the transfer data level signal, and based on the transfer data level signal, acquiring the transferred fan information; Among them, the second fan speed square wave signal is obtained after the fan control chip adjusts the level of the first fan speed square wave signal based on the transmission data level signal; the transmission data level signal is determined based on the transmitted fan information; the first fan speed square wave signal is generated by the fan control chip when the fan is in the operating state of the target speed, and the target speed is determined based on the data transmission instruction sent by the baseboard management controller to the fan control chip.
[0007] According to a method for transmitting fan information provided by the present invention,
[0008] The acquiring the transfer data level signal based on the second fan speed square wave signal, and acquiring the transferred fan information based on the transfer data level signal, comprises: acquiring the transfer data level signal based on the rising edge and the falling edge included in the second fan speed square wave signal; determining binary data of fan information based on the transfer data level signal; The transmitted fan information is determined based on the binary data of the fan information.
[0009] According to a fan information transmission method provided by the present invention, the step of acquiring the transmission data level signal based on the rising edge and the falling edge included in the second fan speed square wave signal includes: The transfer data level signal is obtained based on the difference between the rising edge and the falling edge respectively included in the preset fan speed square wave signal and the second fan speed square wave signal; the preset fan speed square wave signal is generated by the baseboard management controller based on the target speed.
[0010] According to a method for transmitting fan information provided by the present invention, before receiving the second fan speed square wave signal sent by the fan control chip, the method further includes: receiving a preset feedback signal sent by the fan control chip, and determining that the fan control chip enters a data transmission mode based on the preset feedback signal; The data transfer instruction is sent to the fan control chip.
[0011] According to a method for transmitting fan information provided by the present invention, before receiving a second fan speed square wave signal sent by a fan control chip, the method further includes: A first preset pulse width modulation signal is sent to the fan control chip; wherein the first preset pulse width modulation signal instructs the fan control chip to enter the data transmission mode.
[0012] According to a fan information transmission method provided by the present invention, the first preset pulse width modulation signal is generated according to the following steps: After maintaining the first pulse width modulation width for a first duration, adjusting the first pulse width modulation width to a second pulse width modulation width, and then maintaining the second pulse width modulation width for a second duration; After adjusting the second pulse width modulation width back to the first pulse width modulation width, the first pulse width modulation width is then maintained for a third time period.
[0013] According to a method for transmitting fan information provided by the present invention, the method further includes: When it is determined that the fan is a new fan after replacement, the first preset pulse width modulation signal is sent to the fan control chip.
[0014] According to a fan information transmission method provided by the present invention, the preset feedback signal includes at least one of the following items or a combination thereof: an on-site signal and an alarm signal.
[0015] According to an embodiment of the present application, a method for transmitting fan information is provided, which is applied to a fan control chip. The method includes: generating a second fan speed square wave signal; Sending the second fan speed square wave signal to the baseboard management controller; Among them, the second fan speed square wave signal is obtained after the fan control chip adjusts the level of the first fan speed square wave signal based on the transmission data level signal; the transmission data level signal is determined based on the transmitted fan information; the first fan speed square wave signal is generated by the fan control chip when the fan is in the operating state of the target speed, and the target speed is determined based on the data transmission instruction sent by the baseboard management controller to the fan control chip.
[0016] According to the fan information transmission method provided by the embodiment of the present application, generating the second fan speed square wave signal includes: Receiving a first preset pulse width modulation signal sent by the baseboard management controller; wherein the first preset pulse width modulation signal instructs the fan control chip to enter a data transmission mode; Sending a preset feedback signal to the baseboard management controller, wherein the preset feedback signal is used to indicate that the fan control chip enters a data transmission mode; receiving a data transfer instruction sent by the baseboard management controller, and determining the target rotation speed based on the data transfer instruction; Control the fan to be in the running state of the target speed, and generate the first fan speed square wave signal; and obtain binary data corresponding to the fan information in the storage module; the binary data is pre-generated and stored in the storage module; determining the transfer data level signal based on the binary data of the fan information; Based on the transmission data level signal, the rising edge and the falling edge included in the first fan speed square wave signal are level-adjusted to generate the second fan speed square wave signal; The fan information includes at least one of the following items or a combination thereof: Fan maximum speed information, fan manufacturer information, fan product serial number, fan part number, fan speed ratio and fan installation location information.
[0017] According to the fan information transmission method provided by the embodiment of the present application, the method further includes: Receiving a second preset pulse width modulation signal sent by the baseboard management controller; wherein the second preset pulse width modulation signal instructs the fan control chip to exit the data transmission mode; Based on the second preset pulse width modulation signal, the fan is controlled to return to a default operating state.
[0018] A baseboard management controller provided according to an embodiment of the present application includes: A receiving module, used for receiving a second fan speed square wave signal sent by the fan control chip; an acquisition module, configured to acquire the transfer data level signal based on the second fan speed square wave signal, and acquire the transferred fan information based on the transfer data level signal; Among them, the second fan speed square wave signal is obtained after the fan control chip adjusts the level of the first fan speed square wave signal based on the transmission data level signal; the transmission data level signal is determined based on the transmitted fan information; the first fan speed square wave signal is generated by the fan control chip when the fan is in the operating state of the target speed, and the target speed is determined based on the data transmission instruction sent by the baseboard management controller to the fan control chip.
[0019] A fan control chip provided according to an embodiment of the present application includes: A generating module, used for generating a second fan speed square wave signal; A sending module, used for sending the second fan speed square wave signal to the baseboard management controller; Among them, the second fan speed square wave signal is obtained after the fan control chip adjusts the level of the first fan speed square wave signal based on the transmission data level signal; the transmission data level signal is determined based on the transmitted fan information; the first fan speed square wave signal is generated by the fan control chip when the fan is in the operating state of the target speed, and the target speed is determined based on the data transmission instruction sent by the baseboard management controller to the fan control chip.
[0020] An embodiment of the present application also provides a fan control system, comprising the above-mentioned fan control chip and a fan.
[0021] The present invention provides a method and electronic device for transmitting fan information. Without changing the current fan connector, after the fan rotates stably to generate a first fan speed square wave signal, the first fan speed square wave signal can be compared to a clock signal, and then the first fan speed square wave signal is adjusted in level according to the data transmission level signal corresponding to the fan information to be transmitted by the fan control chip, and then the fan information is written into the first fan speed square wave signal to obtain a second fan speed square wave signal. Through the level adjustment, the fan control chip can flexibly encode various information, including but not limited to the maximum speed of the fan, manufacturer information, product serial number, etc. This encoding method improves the flexibility and diversity of fan information transmission. By transmitting the second fan speed square wave information to the baseboard management controller without changing the fan connection method, the baseboard management controller can read the fan information from the second fan speed square wave information. The present application realizes efficient, reliable and flexible fan information transmission through the interaction between the fan control chip and the baseboard management controller without adjusting the fan connection relationship. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 This is one of the flow charts of the fan information transmission method provided by the present invention; Figure 2 This is the second flow chart of the method for transmitting fan information provided by the present invention; Figure 3 A flow chart of the information transmission scheme provided in the embodiment of the present application; Figure 4 A schematic diagram of the structure of a fan control chip provided in an embodiment of the present application; Figure 5 A schematic diagram of the structure of a baseboard management controller provided in an embodiment of the present application; Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] In the related art, the way to obtain the information of the server fan is usually to pre-write it in the permanent storage of the product when the product is produced through a preset command, and read the permanent storage to display the information during the operation of the product. At present, the connection between the server fan and the baseboard management controller (Baseboard Management Controller, BMC) is 6pin, and the fan control chip (Microcontroller Unit; MCU) is used to control the server fan.
[0026] Figure 1 This is one of the flow charts of the fan information transmission method provided by the present invention, which is applied to a baseboard management controller. The method includes: Step 110, receiving a second fan speed square wave signal sent by the fan control chip; Step 120, acquiring the transfer data level signal based on the second fan speed square wave signal, and acquiring the transferred fan information based on the transfer data level signal; Among them, the second fan speed square wave signal is obtained after the fan control chip adjusts the level of the first fan speed square wave signal based on the transmission data level signal; the transmission data level signal is determined based on the transmitted fan information; the first fan speed square wave signal is generated by the fan control chip when the fan is in the operating state of the target speed, and the target speed is determined based on the data transmission instruction sent by the baseboard management controller to the fan control chip.
[0027] In an embodiment of the present application, the baseboard management controller first sends a first preset pulse width modulation signal to the fan control chip; wherein the first preset pulse width modulation signal instructs the fan control chip to enter the data transmission mode.
[0028] The pulse width modulation signal is used to control the speed of the fan. The duty cycle of the pulse width modulation signal (i.e. the ratio of the time the signal is high to the total cycle time) determines the speed of the fan. The higher the duty cycle, the faster the fan speed; the lower the duty cycle, the slower the speed. The use of this signal allows the BMC to accurately control the speed of the fan.
[0029] In the embodiment of the present application, the first preset pulse width modulation signal can specifically be a set of pulse width modulation signals pre-agreed by the fan control chip and the baseboard management controller. When the BMC sends the first preset pulse width modulation signal to the fan MCU, it indicates that the BMC wants to obtain fan information at this time. Therefore, when the fan MCU receives the first preset pulse width modulation signal sent by the baseboard management controller, it needs to send a preset feedback signal to the BMC. This preset feedback signal indicates that the fan has received the PWM signal. This feedback mechanism ensures that the BMC can confirm the operating status of the fan, thereby achieving more accurate system monitoring.
[0030] In an embodiment of the present application, after the BMC receives a preset feedback signal sent by the fan control chip, it determines that the fan control chip enters a data transmission mode based on the preset feedback signal; and sends the data transfer instruction to the fan control chip.
[0031] In the embodiment of the present application, the BMC identifies and confirms that the received signal is a preset feedback signal, which may be a specific voltage level, current pulse or digital signal, indicating that the fan control chip is ready for data exchange.
[0032] Based on the received preset feedback signal, the BMC determines that the fan control chip has entered the data transfer mode. This means that the fan control chip is ready to receive the data transfer instruction from the BMC. Once it is confirmed that the fan control chip is in the data transfer mode, the BMC will send the data transfer instruction to the fan control chip.
[0033] In the embodiment of the present application, the BMC sends a data transmission instruction containing a target speed to the fan control chip. This instruction may be a digital value representing the revolutions per minute (RPM) or the duty cycle of a pulse width modulation signal, which is used to directly control the speed of the fan.
[0034] After receiving the data transmission instruction from the BMC, the fan control chip adjusts the fan speed according to the instruction. This may involve adjusting the duty cycle of the PWM signal, or adjusting the fan speed through other electronic control mechanisms.
[0035] The fan reaches the target speed set by the BMC. When the fan rotates, the Hall effect sensor or other type of sensor inside it detects the mark on the fan blade, and a square wave signal is generated every time a mark is passed. The frequency of this square wave signal is proportional to the fan speed, and the system can determine the fan speed by counting the number of square waves per unit time.
[0036] Since the fan speed square wave signal generated when the fan rotates at a constant speed is periodic, the rising and falling edges of each square wave correspond to a specific position of the fan rotation. This periodic feature enables the square wave signal to accurately represent the time interval, and the rising and falling edges of the square wave signal can be used as a time reference. The system can trigger timing events or perform specific operations by detecting these edges.
[0037] Therefore, in an embodiment of the present application, the fan speed square wave signal generated by the fan during rotation can be used as the clock signal required for data transmission, and the rising and falling edges of the square wave signal can be used as the rising and falling edges of the clock signal.
[0038] In the embodiment of the present application, fan information (such as serial number, rotation speed, etc.) is converted into a binary data stream, and this data stream determines the level state of the square wave signal. For example, a high level may represent a binary "1", while a low level represents a binary "0". Therefore, the corresponding data transmission level signal can be determined based on the binary data stream corresponding to the fan information.
[0039] In the embodiment of the present application, the level of the first fan speed square wave signal can be further adjusted according to the data transmission level signal, and then the fan information is integrated into the first fan speed square wave signal to obtain the second fan speed square wave signal.
[0040] In the embodiment of the present application, the second fan speed square wave signal is a level-adjusted square wave signal, which includes the fan speed information and other coded information.
[0041] The fan MCU sends the second fan speed square wave signal to the BMC through its output interface. This is usually achieved through the fan's frequency generator (FG) pin, which outputs a square wave signal whose frequency and level changes represent the fan's speed and other information.
[0042] The BMC receives the second fan speed square wave signal from the fan MCU through its input interface. The BMC usually has a dedicated hardware module or pin for receiving and processing such a square wave signal. The BMC extracts the binary data encoded therein by detecting the rising and falling edges of the second fan speed square wave signal.
[0043] The BMC decodes the extracted binary data into specific fan information, such as the fan's maximum speed, manufacturer information, product serial number, etc. The BMC determines the information transmitted by the fan based on the decoded data. This information can be used for system monitoring and management, such as adjusting the fan speed and monitoring the fan status.
[0044] In the actual embodiment of the present application, without changing the current fan connector, after the first fan speed square wave signal stably generated when the fan rotates, the first fan speed square wave signal can be compared to a clock signal, and then the first fan speed square wave signal is adjusted in level according to the data transmission level signal corresponding to the fan information to be transmitted by the fan, and then the fan information is written into the first fan speed square wave signal to obtain the second fan speed square wave signal. Through the level adjustment, the fan can flexibly encode various information, including but not limited to the maximum speed of the fan, manufacturer information, product serial number, etc. This encoding method improves the flexibility and diversity of information transmission. By transmitting the second fan speed square wave information to the baseboard management controller without changing the fan connection method, the baseboard management controller can read the fan information from the second fan speed square wave information. The present application realizes efficient, reliable and flexible fan information transmission through the interaction between the fan and the baseboard management controller without adjusting the fan connection relationship.
[0045] Optionally, the acquiring the transfer data level signal based on the second fan speed square wave signal, and acquiring the transferred fan information based on the transfer data level signal, includes: acquiring the transfer data level signal based on the rising edge and the falling edge included in the second fan speed square wave signal; determining binary data of fan information based on the transfer data level signal; The transmitted fan information is determined based on the binary data of the fan information.
[0046] In the embodiment of the present application, the BMC receives the second fan speed square wave signal through its input interface.
[0047] The transfer data level signal is obtained based on the difference between the rising edge and the falling edge respectively included in the preset fan speed square wave signal and the second fan speed square wave signal; the preset fan speed square wave signal is generated by the baseboard management controller based on the target speed
[0048] The fan control chip generates a second fan speed square wave signal according to the actual fan speed. This signal contains the actual information of the fan speed, including the rising edge and the falling edge.
[0049] By comparing the difference between the rising edge and the falling edge respectively included in the preset fan speed square wave signal and the second fan speed square wave signal, the transfer data level signal can be obtained.
[0050] The transmitted data level signal contains the fan speed information, which can be encoded by the different states of the level signal. By parsing these level signals, the binary data of the fan information can be determined.
[0051] Based on the binary data of the fan information, the transmitted fan information can be determined. This information is crucial for monitoring and maintaining the system.
[0052] More specifically, the BMC determines the binary data of the fan information based on the difference between the detected rising and falling edges. In this process, the BMC maps each edge difference to "0" or "1" in binary data according to the pre-set encoding rules. For example, a rising edge difference may represent "1", while no difference may represent "0".
[0053] By continuously monitoring multiple square wave cycles, the BMC can extract a series of binary data bits to form a complete data byte or data frame.
[0054] Once the BMC collects enough binary data, it converts the binary data into readable fan information according to the preset decoding algorithm.
[0055] For example, if the fan information includes the maximum speed of the fan, manufacturer information, product serial number, etc., the BMC will use an appropriate decoding method to parse the information.
[0056] In the embodiment of the present application, the binary data of the fan information is effectively read according to the difference between the rising edge and the falling edge of each square wave signal in the second fan speed square wave signal and the preset fan speed square wave signal, thereby effectively realizing the transmission of the fan data.
[0057] Optionally, the first preset pulse width modulation signal is generated according to the following steps: After maintaining the first pulse width modulation width for a first duration, adjusting the first pulse width modulation width to a second pulse width modulation width, and then maintaining the second pulse width modulation width for a second duration; After adjusting the second pulse width modulation width back to the first pulse width modulation width, the first pulse width modulation width is then maintained for a third time period.
[0058] In the embodiment of the present application, the first pulse width modulation width and the second pulse width modulation width are different pulse width modulation widths.
[0059] The PWM signal starts from a high level, and the duration of this high level is defined as the "first duration". After the first duration, the pulse width of the PWM signal is adjusted to the "second pulse width". This adjustment is instantaneous, and the new pulse width will be maintained for a "second duration". During this period of time, the PWM signal remains in a low level state.
[0060] After the second time period, the pulse width of the PWM signal is adjusted back to the "first pulse width". This return process is also instantaneous, and the original high level state will be maintained for a "third time period".
[0061] For example, the PWM width is maintained at 100% for 1 second, then reduced to 50% for 1 second, and then returned to 100%. The BMC transmits this special PWM signal to the MCU in the fan at the appropriate time. The fan MCU enters the information transmission mode after matching the signal.
[0062] Optionally, the method further comprises: When it is determined that the fan is a new fan after replacement, the first preset pulse width modulation signal is sent to the fan control chip.
[0063] In the embodiment of the present application, when a fan in the system is replaced with a new fan, the BMC sends a preset pulse width modulation (PWM) signal to the new fan. This signal is the same as the signal previously sent to the old fan, and is used to notify the new fan to prepare to receive further instructions.
[0064] The BMC receives a preset feedback signal from the new fan, which indicates that the new fan has received the PWM signal and is ready to transmit information.
[0065] Once the BMC receives the preset feedback signal from the new fan, it will send an information transfer instruction to the new fan. This instruction instructs the new fan to start transferring its built-in information, such as serial number, model, performance parameters, etc.
[0066] The new fan generates a third fan speed square wave signal according to the received information transmission instruction and its built-in information. This signal is obtained by adjusting the PWM signal to a specific level, in which the information of the new fan is encoded.
[0067] The BMC receives the third fan speed square wave signal sent by the new fan, and parses the signal according to a preset decoding rule to determine the information transmitted by the new fan.
[0068] In the embodiment of the present application, after the fan is replaced, the BMC can still re-read the fan information of the replaced new fan in the above manner, thereby effectively ensuring the validity of the fan information.
[0069] Optionally, the preset feedback signal includes at least one of the following items or a combination thereof: a presence signal and an alarm signal.
[0070] Specifically, the presence signal: This is an indication that the fan is ready and has received a PWM signal.
[0071] Alarm signal: If the fan detects any abnormal state, such as abnormal speed, temperature out of range, etc., the fan can notify the BMC by continuously pulling the alarm signal of the abnormal state.
[0072] In an optional embodiment, the BMC stops normal monitoring of the agreed level signal in the fan information transmission mode. For example, if the agreed level signal is an in-place signal, the BMC will no longer determine whether the fan is in place based on the level change of the in-place signal in the information transmission mode, so as to avoid causing abnormal alarm information.
[0073] In the embodiment of the present application, by sending a preset PWM signal and receiving a feedback signal, the BMC can ensure that the fan is ready for communication, which helps to reduce communication errors and improve communication reliability.
[0074] Figure 2 FIG. 2 is a flow chart of the fan information transmission method provided by the present invention, which is applied to a fan control chip, such as Figure 2 As shown, including: Step 210, generating a second fan speed square wave signal; Step 220, sending the second fan speed square wave signal to the baseboard management controller; Among them, the second fan speed square wave signal is obtained after the fan control chip adjusts the level of the first fan speed square wave signal based on the transmission data level signal; the transmission data level signal is determined based on the transmitted fan information; the first fan speed square wave signal is generated by the fan control chip when the fan is in the operating state of the target speed, and the target speed is determined based on the data transmission instruction sent by the baseboard management controller to the fan control chip.
[0075] The second fan speed square wave signal is generated in the present invention, including: Receiving a first preset pulse width modulation signal sent by the baseboard management controller; wherein the first preset pulse width modulation signal instructs the fan control chip to enter a data transmission mode; Sending a preset feedback signal to the baseboard management controller, wherein the preset feedback signal is used to indicate that the fan control chip enters a data transmission mode; receiving a data transfer instruction sent by the baseboard management controller, and determining the target rotation speed based on the data transfer instruction; Control the fan to be in the running state of the target speed, and generate the first fan speed square wave signal; and obtain binary data corresponding to the fan information in the storage module; the binary data is pre-generated and stored in the storage module; determining the transfer data level signal based on the binary data of the fan information; Based on the transmission data level signal, the rising edge and the falling edge included in the first fan speed square wave signal are level-adjusted to generate the second fan speed square wave signal; The fan information includes at least one of the following items or a combination thereof: Fan maximum speed information, fan manufacturer information, fan product serial number, fan part number, fan speed ratio and fan installation location information.
[0076] First, the fan control chip receives a first preset pulse width modulation (PWM) signal from the BMC. This signal is sent by the BMC to instruct the fan control chip to enter a data transmission mode.
[0077] Once the fan control chip receives the signal from the BMC, it sends a preset feedback signal to the BMC. This feedback signal is used to inform the BMC that the fan control chip has entered the data transmission mode and is ready to receive further instructions.
[0078] In an embodiment of the present application, the fan control chip receives an information transmission instruction from the BMC, which can instruct the fan to rotate at a target speed, thereby generating a first fan speed square wave signal. At this time, the fan control chip can start transmitting fan information.
[0079] In the embodiment of the present application, when the fan rotates, the Hall effect sensor or other type of sensor inside it will detect the mark on the fan blade, and a square wave signal will be generated every time a mark is passed. The frequency of this square wave signal is proportional to the speed of the fan, and the system can determine the speed of the fan by counting the number of square waves per unit time.
[0080] Since the fan speed square wave signal generated when the fan rotates at a constant speed is periodic, the rising and falling edges of each square wave correspond to a specific position of the fan rotation. This periodic feature enables the square wave signal to accurately represent the time interval, and the rising and falling edges of the square wave signal can be used as a time reference. The system can trigger timing events or perform specific operations by detecting these edges.
[0081] Therefore, in an embodiment of the present application, the fan speed square wave signal generated by the fan during rotation can be used as the clock signal required for data transmission, and the rising and falling edges of the square wave signal can be used as the rising and falling edges of the clock signal.
[0082] In the embodiment of the present application, fan information (such as serial number, rotation speed, etc.) is converted into a binary data stream, and this data stream determines the level state of the square wave signal. For example, a high level may represent a binary "1", while a low level represents a binary "0". Therefore, the corresponding data transmission level signal can be determined based on the binary data stream corresponding to the fan information.
[0083] In the embodiment of the present application, the level of the first fan speed square wave signal can be further adjusted according to the data transmission level signal, and then the fan information is integrated into the first fan speed square wave signal to obtain the second fan speed square wave signal.
[0084] In the embodiment of the present application, the second fan speed square wave signal is a level-adjusted square wave signal, which includes the fan speed information and other coded information.
[0085] The fan control chip sends the second fan speed square wave signal to the BMC through its output interface. This is usually achieved through the fan's frequency generator (FG) pin, which outputs a square wave signal whose frequency and level changes represent the fan's speed and other information.
[0086] The BMC receives the second fan speed square wave signal from the fan through its input interface. The BMC usually has a dedicated hardware module or pin for receiving and processing such a square wave signal.
[0087] The control circuit or software algorithm inside the BMC will analyze the received square wave signal. By detecting the rising and falling edges of the square wave signal, the BMC can extract the fan information.
[0088] In the embodiment of the present application, without changing the current fan connector, after the fan rotates stably to generate the first fan speed square wave signal, the first fan speed square wave signal can be compared to the clock signal, and then the first fan speed square wave signal is adjusted in level according to the data transmission level signal corresponding to the fan information to be transmitted by the fan control chip, and then the fan information is written into the first fan speed square wave signal to obtain the second fan speed square wave signal. Through the level adjustment, the fan control chip can flexibly encode various information, including but not limited to the maximum speed of the fan, manufacturer information, product serial number, etc. This encoding method improves the flexibility and diversity of fan information transmission. By transmitting the second fan speed square wave information to the baseboard management controller without changing the fan connection method, the baseboard management controller can read the fan information from the second fan speed square wave information. The present application realizes efficient, reliable and flexible fan information transmission through the interaction between the fan control chip and the baseboard management controller without adjusting the fan connection relationship.
[0089] Optionally, the method further comprises: Receiving a second preset pulse width modulation signal sent by the baseboard management controller; wherein the second preset pulse width modulation signal instructs the fan control chip to exit the data transmission mode; Based on the second preset pulse width modulation signal, the fan is controlled to return to a default operating state.
[0090] In the embodiment of the present application, the fan control chip receives a second preset pulse width modulation signal from the BMC. This signal is sent by the BMC and is used to instruct the fan control chip to exit the data transmission mode.
[0091] The fan control chip analyzes the received second preset pulse width modulation signal to determine the instruction of the BMC. In this case, the second pulse width modulation signal instructs the fan control chip to exit the data transmission mode.
[0092] According to the instruction of the second preset pulse width modulation signal, the fan control chip exits the data transmission mode, which means that the fan control chip stops receiving and sending data transmission instructions and stops adjusting the level of the fan speed square wave signal.
[0093] After exiting the data transmission mode, the fan control chip controls the fan to return to the default operating state. The default operating state may be a preset speed of the fan or an automatically adjusted speed based on the current system temperature.
[0094] The fan control chip adjusts the duty cycle of the PWM signal according to the default speed setting or based on feedback from the temperature sensor to control the fan speed, ensuring that the fan runs at the appropriate speed to meet the cooling needs of the system.
[0095] Even in the default operating state, the fan control chip continuously monitors the operating status of the fan and feeds back the necessary information to the BMC for further monitoring and recording.
[0096] Figure 3 The information transmission scheme flow chart provided in the embodiment of the present application is as follows: Figure 3 As shown, including: Step 310, the BMC notifies the fan control chip to prepare to enter the information transmission mode by adjusting the duty cycle; The baseboard management controller first sends a command to the fan to enter the information transmission mode by adjusting the duty cycle of the pulse width modulation (PWM) signal. This step is the key to start the information transmission process. The duty cycle adjustment is equivalent to a signal to inform the fan that data exchange is about to begin.
[0097] Step 320, after receiving the signal sent by the BMC by adjusting the duty cycle, the fan control chip enters the transmission mode and transmits the information to the BMC; After receiving the signal sent by the BMC by adjusting the duty cycle, the fan control chip recognizes this instruction and guides the fan into the information transmission mode. At this point, the fan control chip is ready to pass its built-in information to the BMC.
[0098] Once the BMC confirms that the fan control chip has entered the information transmission mode, it will adjust the duty cycle of the PWM signal to an appropriate level. In this process, the BMC uses the speed square wave signal transmitted by the fan control chip as a clock signal to synchronize data transmission. At the same time, the fan information, such as serial number, model, performance parameters, etc., is encoded and embedded in the square wave signal.
[0099] Step 330, after receiving the information that the fan control chip has entered the information transmission mode, the BMC sets the duty cycle to a suitable value, and then uses the fan speed square wave signal transmitted by the fan control chip as the clock signal, and simultaneously adds the fan information transmitted by the fan control chip; The BMC receives the encoded fan speed square wave signal and extracts the embedded fan information according to the predetermined decoding rules. This step reflects the high intelligence of the BMC, which can identify and process the data from the fan.
[0100] Step 340: After the information transmission is completed, the BMC and the fan control chip exit the information transmission mode and enter the normal heat dissipation speed adjustment working mode.
[0101] After the information transfer is completed, the BMC and fan control chip will exit the information transfer mode and enter the normal cooling speed adjustment working mode. This transition ensures that the system can continue to perform effective thermal management while allowing the BMC to continue to monitor the performance of the fan.
[0102] The fan control chip and the baseboard management controller provided by the present invention are described below. The information transmission device described below and the information transmission method described above can be referred to each other.
[0103] Figure 4 A schematic diagram of the fan control chip structure provided in the embodiment of the present application is shown in FIG. Figure 4 As shown, including: The generating module 410 is used to generate a second fan speed square wave signal; The sending module 420 is used to send the second fan speed square wave signal to the baseboard management controller; Among them, the second fan speed square wave signal is obtained after the fan control chip adjusts the level of the first fan speed square wave signal based on the transmission data level signal; the transmission data level signal is determined based on the transmitted fan information; the first fan speed square wave signal is generated by the fan control chip when the fan is in the operating state of the target speed, and the target speed is determined based on the data transmission instruction sent by the baseboard management controller to the fan control chip.
[0104] In an optional embodiment, the embodiment of the present application also provides a fan control system for a server, wherein the fan control system includes the fan control chip and a fan, and the fan control chip in the server is used to implement control of the fan in the server.
[0105] Figure 5 A schematic diagram of the structure of the baseboard management controller provided in the embodiment of the present application is shown in FIG. Figure 5 As shown, including: The receiving module 510 is used to receive the second fan speed square wave signal sent by the fan control chip; The acquisition module 520 is used to acquire the transfer data level signal based on the second fan speed square wave signal, and acquire the transferred fan information based on the transfer data level signal; Among them, the second fan speed square wave signal is obtained after the fan control chip adjusts the level of the first fan speed square wave signal based on the transmission data level signal; the transmission data level signal is determined based on the transmitted fan information; the first fan speed square wave signal is generated by the fan control chip when the fan is in the operating state of the target speed, and the target speed is determined based on the data transmission instruction sent by the baseboard management controller to the fan control chip.
[0106] In the embodiment of the present application, without changing the current fan connector, after the fan rotates stably to generate the first fan speed square wave signal, the first fan speed square wave signal can be compared to the clock signal, and then the first fan speed square wave signal is adjusted in level according to the data transmission level signal corresponding to the fan information to be transmitted by the fan control chip, and then the fan information is written into the first fan speed square wave signal to obtain the second fan speed square wave signal. Through the level adjustment, the fan control chip can flexibly encode various information, including but not limited to the maximum speed of the fan, manufacturer information, product serial number, etc. This encoding method improves the flexibility and diversity of fan information transmission. By transmitting the second fan speed square wave information to the baseboard management controller without changing the fan connection method, the baseboard management controller can read the fan information from the second fan speed square wave information. The present application realizes efficient, reliable and flexible fan information transmission through the interaction between the fan control chip and the baseboard management controller without adjusting the fan connection relationship.
[0107] Figure 6 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the information transmission method, which includes: Receive a second fan speed square wave signal sent by the fan control chip; Based on the second fan speed square wave signal, acquiring the transfer data level signal, and based on the transfer data level signal, acquiring the transferred fan information; or, generating a second fan speed square wave signal; Sending the second fan speed square wave signal to the baseboard management controller; Among them, the second fan speed square wave signal is obtained after the fan control chip adjusts the level of the first fan speed square wave signal based on the transmission data level signal; the transmission data level signal is determined based on the transmitted fan information; the first fan speed square wave signal is generated by the fan control chip when the fan is in the operating state of the target speed, and the target speed is determined based on the data transmission instruction sent by the baseboard management controller to the fan control chip.
[0108] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0109] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the information transmission method provided by the above methods, the method comprising: Receive a second fan speed square wave signal sent by the fan control chip; Based on the second fan speed square wave signal, acquiring the transfer data level signal, and based on the transfer data level signal, acquiring the transferred fan information; or, generating a second fan speed square wave signal; Sending the second fan speed square wave signal to the baseboard management controller; Among them, the second fan speed square wave signal is obtained after the fan control chip adjusts the level of the first fan speed square wave signal based on the transmission data level signal; the transmission data level signal is determined based on the transmitted fan information; the first fan speed square wave signal is generated by the fan control chip when the fan is in the operating state of the target speed, and the target speed is determined based on the data transmission instruction sent by the baseboard management controller to the fan control chip.
[0110] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the information transmission method provided by the above methods is implemented, and the method includes: Receive a second fan speed square wave signal sent by the fan control chip; Based on the second fan speed square wave signal, acquiring the transfer data level signal, and based on the transfer data level signal, acquiring the transferred fan information; or, generating a second fan speed square wave signal; Sending the second fan speed square wave signal to the baseboard management controller; Among them, the second fan speed square wave signal is obtained after the fan control chip adjusts the level of the first fan speed square wave signal based on the transmission data level signal; the transmission data level signal is determined based on the transmitted fan information; the first fan speed square wave signal is generated by the fan control chip when the fan is in the operating state of the target speed, and the target speed is determined based on the data transmission instruction sent by the baseboard management controller to the fan control chip.
[0111] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for transmitting fan information, characterized in that: Applied to a baseboard management controller, the method comprises: Receive a second fan speed square wave signal sent by the fan control chip; Based on the second fan speed square wave signal, acquiring the transfer data level signal, and based on the transfer data level signal, acquiring the transferred fan information; Among them, the second fan speed square wave signal is obtained after the fan control chip adjusts the level of the first fan speed square wave signal based on the transmission data level signal; the transmission data level signal is determined based on the transmitted fan information; the first fan speed square wave signal is generated by the fan control chip when the fan is in the operating state of the target speed, and the target speed is determined based on the data transmission instruction sent by the baseboard management controller to the fan control chip.
2. The method for transmitting fan information according to claim 1, characterized in that: The acquiring the transfer data level signal based on the second fan speed square wave signal, and acquiring the transferred fan information based on the transfer data level signal, comprises: acquiring the transfer data level signal based on the rising edge and the falling edge included in the second fan speed square wave signal; determining binary data of fan information based on the transfer data level signal; The transmitted fan information is determined based on the binary data of the fan information.
3. The method for transmitting fan information according to claim 2, characterized in that: The step of acquiring the transfer data level signal based on the rising edge and the falling edge included in the second fan speed square wave signal comprises: The transfer data level signal is obtained based on the difference between the rising edge and the falling edge respectively included in the preset fan speed square wave signal and the second fan speed square wave signal; the preset fan speed square wave signal is generated by the baseboard management controller based on the target speed.
4. The method for transmitting fan information according to claim 1, characterized in that: Before receiving the second fan speed square wave signal sent by the fan control chip, the method further includes: receiving a preset feedback signal sent by the fan control chip, and determining that the fan control chip enters a data transmission mode based on the preset feedback signal; The data transfer instruction is sent to the fan control chip.
5. The method for transmitting fan information according to claim 4, characterized in that: Before receiving the second fan speed square wave signal sent by the fan control chip, the method further includes: A first preset pulse width modulation signal is sent to the fan control chip; wherein the first preset pulse width modulation signal instructs the fan control chip to enter the data transmission mode.
6. The method for transmitting fan information according to claim 5, characterized in that: The first preset pulse width modulation signal is generated according to the following steps: After maintaining the first pulse width modulation width for a first duration, adjusting the first pulse width modulation width to a second pulse width modulation width, and then maintaining the second pulse width modulation width for a second duration; After adjusting the second pulse width modulation width back to the first pulse width modulation width, the first pulse width modulation width is then maintained for a third time period.
7. The method for transmitting fan information according to claim 5 or 6, characterized in that: The method further comprises: When it is determined that the fan is a new fan after replacement, the first preset pulse width modulation signal is sent to the fan control chip.
8. A method for transmitting fan information, characterized in that: Applied to a fan control chip, the method comprises: generating a second fan speed square wave signal; Sending the second fan speed square wave signal to the baseboard management controller; Among them, the second fan speed square wave signal is obtained after the fan control chip adjusts the level of the first fan speed square wave signal based on the transmission data level signal; the transmission data level signal is determined based on the transmitted fan information; the first fan speed square wave signal is generated by the fan control chip when the fan is in the operating state of the target speed, and the target speed is determined based on the data transmission instruction sent by the baseboard management controller to the fan control chip.
9. The method for transmitting fan information according to claim 8, characterized in that: The generating of the second fan speed square wave signal comprises: Receiving a first preset pulse width modulation signal sent by the baseboard management controller; wherein the first preset pulse width modulation signal instructs the fan control chip to enter a data transmission mode; Sending a preset feedback signal to the baseboard management controller, wherein the preset feedback signal is used to indicate that the fan control chip enters a data transmission mode; receiving a data transfer instruction sent by the baseboard management controller, and determining the target rotation speed based on the data transfer instruction; Control the fan to be in the running state of the target speed, and generate the first fan speed square wave signal; and obtain binary data corresponding to the fan information in the storage module; the binary data is pre-generated and stored in the storage module; determining the transfer data level signal based on the binary data of the fan information; Based on the transmission data level signal, the rising edge and the falling edge included in the first fan speed square wave signal are level-adjusted to generate the second fan speed square wave signal; The fan information includes at least one of the following items or a combination thereof: Fan maximum speed information, fan manufacturer information, fan product serial number, fan part number, fan speed ratio and fan installation location information.
10. The method for transmitting fan information according to claim 9, characterized in that: The method further comprises: Receiving a second preset pulse width modulation signal sent by the baseboard management controller; wherein the second preset pulse width modulation signal instructs the fan control chip to exit the data transmission mode; Based on the second preset pulse width modulation signal, the fan is controlled to return to a default operating state.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for transmitting fan information according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Fan control system and method based on multiple temperature nodes
CN113374724A
Server running state monitoring device and method, computer equipment and storage medium
CN115344453A
Fan control chip, fan assembly, computing device and fan control method
CN118585007A
Data exchange using fan unit signal lines
US20210408942A1
Fan speed control system
US6188189B1