Cascade device and temperature control method, device, equipment and storage medium thereof
By receiving the temperature information of the slave frame and determining the control method according to the quantity, the temperature adjustment of the cascaded equipment is achieved, which solves the problems of incompatibility, safety, efficiency and easy scalability of temperature control in the prior art, and improves the working efficiency of the equipment and reliability.
Patent Information
- Application Number
- CN202110245584.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-05
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-03-05
AI Technical Summary
The temperature control system of existing cascading devices is not compatible with safety, efficiency and scalability. Once the host frame is dead or the slave frame has a high temperature alarm, the entire device cannot operate normally, resulting in the impact of working efficiency.
By receiving the temperature information of the slave frame, the number of slave frames is determined. If the number is not greater than the preset threshold, the host frame generates control instructions for centralized control. If the number is greater than the threshold, the slave frame generates control instructions for distributed Control to achieve temperature regulation.
Centralized control is realized when the number of slave chassis is small, which is convenient for temperature regulation; when the number is large, switch to distributed control to improve efficiency, save host chassis resources, and avoid equipment damage caused by temperature control system crash.
Smart Images

Figure CN115016563B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of temperature control technology. Specifically, the present application relates to a cascade device and a temperature control method, device, equipment and storage medium thereof. Background Art
[0002] A cascade device refers to a device that is provided with a host frame and multiple slave frames connected to the host frame, wherein each frame is provided with multiple service boards.
[0003] When the service board is powered on, it will generate heat, causing the temperature of the service board and the frame to rise. When the temperature rises to a certain value, it will have a destructive effect on the service board and the frame. Therefore, it is necessary to control the temperature of the cascade device to prevent the board temperature from being too high. In the existing temperature control system for cascade devices, the temperature of one or some points in the frame is collected, and then the temperature is analyzed through the host frame to achieve centralized control of the temperature of all frames. A single control method is not compatible with safety, efficiency and scalability. Once the host frame hangs or a high temperature alarm occurs in a slave frame, the entire cascade device will not be able to operate normally, which seriously affects the working efficiency of the entire cascade device and needs to be improved. Summary of the invention
[0004] The purpose of the present application is to solve at least one of the above-mentioned technical defects, especially the technical defect in the prior art that the high temperature of a service board may cause a high temperature alarm for the entire frame or cascaded equipment, and when eliminating the alarm, it is impossible to accurately locate the high temperature source, resulting in inconvenient temperature control of the cascaded equipment.
[0005] According to one aspect of the present application, a temperature control method for a cascade device is provided. The cascade device includes a host frame and at least one slave frame connected to the host frame. The temperature control method is applied to the host frame. The temperature control method includes:
[0006] receiving temperature information of at least one connected slave frame and determining the number of connected slave frames;
[0007] If it is determined that the number of slave frames is not greater than the preset threshold, for each slave frame, a corresponding control instruction is generated according to the temperature information of the slave frame, so that the slave frame adjusts its own temperature according to the control instruction;
[0008] If it is determined that the number of slave frames is greater than a preset threshold, a self-control notification is sent to at least one slave frame, so that after receiving the self-control notification, at least one slave frame generates a control instruction according to its own temperature and adjusts its own temperature according to the control instruction.
[0009] As a possible implementation mode of the present application, the temperature information includes a unique identifier and a temperature of a task board in a slave frame; the temperature of the slave frame includes the temperature of each task board in the slave frame; and generating a corresponding control instruction according to the temperature information of the slave frame includes:
[0010] If it is determined that the temperature of all task boards in the slave frame is lower than a preset temperature threshold, a first control instruction is generated, the first control instruction including an operating parameter of a heat dissipation device of the slave frame;
[0011] If it is determined that the temperature of at least one task card in the slave frame is not lower than a preset temperature threshold, a corresponding control instruction is generated according to the temperature range in which the temperature of the at least one task card is located.
[0012] As a possible implementation of the present application, generating a corresponding control instruction according to the temperature range of the temperature of at least one task card board includes:
[0013] For any task card board, when the temperature of the task card board is within the first temperature range, a corresponding second control instruction is generated, and the second control instruction includes a unique identifier for recording the task card board;
[0014] When the temperature of the task board is within the second temperature range, a corresponding third control instruction is generated, and the third control instruction includes turning on a high temperature indicator light of the task board corresponding to the control temperature information;
[0015] When the temperature is within the third temperature range, a corresponding fourth control instruction is generated, and the fourth control instruction includes powering off a task board corresponding to the control temperature information;
[0016] The preset temperature threshold is smaller than the minimum value of the first temperature interval, the maximum value of the first temperature interval is smaller than the minimum value of the second temperature interval, and the maximum value of the second temperature interval is smaller than the minimum value of the third temperature interval.
[0017] As a possible implementation of the present application, the fourth control instruction further includes:
[0018] Detect the real-time temperature of the powered-off task board. When the real-time temperature is lower than the preset temperature threshold, control the task board to resume powering on.
[0019] As a possible implementation manner of the present application, determining the number of connected slave chassis also includes:
[0020] For each slave frame, determining initial operating parameters of a heat sink in the slave frame according to rated powers of all task boards in the slave frame;
[0021] An initial control instruction is generated and sent to the slave frame, so that the heat dissipation device in the slave frame operates according to the initial operation parameters; the initial control instruction includes the initial operation parameters of the heat dissipation device in the slave frame.
[0022] According to another aspect of the present application, a temperature control method for a cascade device is provided, the cascade device comprising a host frame and at least one slave frame connected to the host frame, the temperature control method is applied to the slave frame, and the temperature control method comprises:
[0023] Collect and upload the slave chassis' own temperature information to the master chassis;
[0024] If a control instruction is received from the master frame, the temperature of the slave frame itself is adjusted according to the control instruction;
[0025] If a self-control notification sent by the master frame is received, a control instruction is generated according to the slave frame according to its own temperature, and the temperature of the slave frame itself is adjusted according to the control instruction;
[0026] The control instruction sent by the host frame is generated when the number of slave frames connected to the host frame is not greater than a preset threshold; the self-control notification is generated when the number of slave frames connected to the host frame is greater than a preset threshold.
[0027] As a possible implementation manner of the present application, the temperature information includes a unique identifier and a temperature of a task board in the slave frame; the temperature of the slave frame includes the temperature of each task board in the slave frame.
[0028] As a possible implementation of the present application, adjusting the temperature of the slave frame itself according to the control instruction includes:
[0029] When receiving the first control instruction, recording the operating parameters of the heat dissipation device of the slave frame;
[0030] The first control instruction is generated when the temperature of all task boards in the slave frame is lower than a preset temperature threshold;
[0031] When receiving the second control instruction, recording the unique identifier of the task board corresponding to the temperature information;
[0032] When the third control instruction is received, the high temperature indicator light of the task board corresponding to the control temperature information is turned on;
[0033] When the fourth control instruction is received, the task board corresponding to the temperature information is powered off.
[0034] As another aspect of an embodiment of the present application, a temperature control system of a cascade device is provided, comprising:
[0035] A host frame, used to execute the temperature control method applied to the host frame;
[0036] At least one slave frame is used to execute the above-mentioned temperature control method applied to the slave frame.
[0037] According to another aspect of an embodiment of the present application, an electronic device is provided, the electronic device comprising:
[0038] one or more processors;
[0039] Memory;
[0040] One or more applications, wherein one or more applications are stored in a memory and configured to be executed by one or more processors, and one or more programs are configured to: execute the above-mentioned temperature control method applied to the host frame and / or the above-mentioned temperature control method applied to the slave frame.
[0041] According to another aspect of an embodiment of the present application, a storage medium is provided, which stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by a processor to execute the above-mentioned temperature control method applied to the host frame and / or the above-mentioned temperature control method applied to the slave frame.
[0042] The embodiment of the present application determines the number of slave frames connected to the host frame by receiving temperature information of at least one slave frame. When it is determined that the number of slave frames is not greater than a preset threshold, a corresponding control instruction is generated for each slave frame according to the temperature information of the slave frame, so that the slave frame adjusts its own temperature based on the control instruction. When it is determined that the number of slave frames is greater than the preset threshold, a self-control notification is sent to each slave frame, and each slave frame generates a control instruction according to its own temperature information based on the self-control notification to adjust its own temperature. The temperature control method for cascaded devices provided in the embodiment of the present application can centrally control all frames through the host frame when the number of slave frames of the cascaded devices is small. The centralized control method allows the host frame to unify all resources, control all temperatures, and facilitate the adjustment of any gear of the heat dissipation device to achieve the effect of arbitrarily controlling the temperature; when the number of slave frames of the cascaded devices is large, each slave frame controls its own temperature, and switching between centralized control and distributed control methods makes temperature control more efficient and easy to expand the slave frames. At the same time, the distributed control method can save control resources of the host frame, save thread resources, and improve the efficiency of other services. When the host frame hangs, each slave frame can independently control the temperature to avoid equipment damage due to the collapse of the temperature control system. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in describing the embodiments of the present application.
[0044] Figure 1 A flow chart of a temperature control method for a cascade device applied to a host frame provided in an embodiment of the present application;
[0045] Figure 2 A schematic diagram of the structure of a cascade device provided in an embodiment of the present application;
[0046] Figure 3 A control method selection flow chart provided in an embodiment of the present application;
[0047] Figure 4 A flow chart for determining initial operation parameters provided in an embodiment of the present application;
[0048] Figure 5 A flow chart of a temperature control method for a cascade device applied to a slave frame provided in an embodiment of the present application
[0049] Figure 6 A schematic diagram of the structure of a host frame provided in an embodiment of the present application;
[0050] Figure 7 A schematic diagram of the structure of a slave frame provided in an embodiment of the present application;
[0051] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0052] The above and other features, advantages and aspects of the embodiments of the present application will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. DETAILED DESCRIPTION
[0053] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.
[0054] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0055] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0056] First, several terms involved in this application are introduced and explained:
[0057] (1) Complex cascade equipment: A complex cascade equipment includes a host frame and multiple slave frames connected to the host frame. The number of slave frames is expandable, and each frame has multiple task boards. The management of the entire cascade equipment and the creation of services are relatively complex.
[0058] When complex cascade devices are working, each task board will generate heat when powered on, causing the temperature of the task board and the frame to rise. When the temperature rises to a certain value, it will have a destructive effect on the task board and the frame. Therefore, it is necessary to control the temperature of the cascade device to prevent the board temperature from being too high. In the existing temperature control system for cascade devices, the temperature of one or some points in the frame is collected, and then the temperature is analyzed through the host frame to achieve centralized control of the temperature of all frames. A single control method is not compatible with safety, efficiency and scalability. Once the host frame is hung or a high temperature alarm occurs in a slave frame, the entire cascade device will not be able to operate normally, seriously affecting the working efficiency of the entire cascade device.
[0059] The cascade device and its temperature control method, device, equipment and storage medium provided in this application are intended to solve the above technical problems in the prior art.
[0060] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0061] In an embodiment of the present application, a temperature control method for a cascade device is provided. The cascade device includes a host frame and at least one slave frame connected to the host frame. The temperature control method is applied to the host frame. Figure 1 As shown, the temperature control method includes:
[0062] Step S101: receiving temperature information of at least one connected slave chassis, and determining the number of connected slave chassis.
[0063] The present application embodiment relates to a cascade device such as Figure 2 As shown, it includes a host frame and at least one slave frame, each slave frame is connected to the host frame. As an optional embodiment of the present application, a main control board is arranged in the host frame, wherein the main control board includes a CPU (central processing unit) for controlling the entire cascade device service creation and device management and a CPLD (Complex Programming logic device) for data exchange; a switching board is also arranged in the host frame, wherein the switching board includes an MCU (Micro Control Unit) for controlling the temperature of the host frame under the control of the CPU and a CPLD for data exchange; for each slave frame, an MCU for controlling the temperature of the slave frame itself under the control of the CPU and a CPLD for data exchange are included, wherein the host frame and each slave frame include at least one task board.
[0064] In an embodiment of the present application, the temperature information of the slave frame refers to the temperature information of the task board in the slave frame. Each slave frame scans all the task boards in the slave frame through the MCU, obtains the temperature information of each task board, and reports the temperature information to the host frame. The host frame receives the temperature information and determines the number of slave frames connected to the host frame.
[0065] Step S102 : if it is determined that the number of slave frames is not greater than the preset threshold, a corresponding control instruction is generated for each slave frame according to the temperature information of the slave frame, so that the slave frame adjusts its own temperature according to the control instruction.
[0066] In an embodiment of the present application, different control methods can be adopted according to the different numbers of slave frames in the cascade device. For example, when the number of slave frames in the cascade device is small, a centralized control method can be adopted to control the temperature of the cascade device. The centralized control method refers to directly controlling the temperature of the host frame and the slave frame in the cascade device through the host frame; when the number of slave frames in the cascade device is large, a distributed control method can be adopted to control the temperature of the cascade device. The distributed control method means that the host frame only controls its own temperature, and each slave frame controls its own temperature respectively.
[0067] For the embodiments of the present application, a preset threshold is set for the number of slave frames in the cascade device. When the number of slave frames is not greater than the preset threshold (such as 2), a centralized control method is adopted. The host frame generates a control instruction corresponding to the temperature information based on the temperature information sent by each slave frame, and sends the control instruction to the corresponding slave frame, so that the slave frame adjusts its own temperature according to the control instruction.
[0068] Step S103: If it is determined that the number of slave frames is greater than the preset threshold, a self-control notification is sent to at least one slave frame, so that after receiving the self-control notification, at least one slave frame generates a control instruction according to its own temperature and adjusts its own temperature according to the control instruction.
[0069] In an embodiment of the present application, when the number of slave frames is greater than the preset threshold, such as when there are 6 slave frames, a distributed control method is adopted, and the master frame sends a self-control notification to each slave frame. After receiving the self-control notification, the slave frame generates a control instruction through its own MCU according to the temperature information of its own task board, and controls the temperature of the slave frame of the present application according to the control instruction.
[0070] In the embodiment of the present application, the flowchart of the host frame determining whether to adopt a centralized control method or a distributed control method is as follows Figure 3 As shown, the temperature information of each slave frame is obtained to determine whether the CPU in the host frame is operating normally. When it is abnormal, the distributed control method is directly adopted. When the host frame is operating normally, it is determined whether the number of slave frames is greater than the preset value. When the number of slave frames is greater than the preset value, distributed control is adopted. When the number of slave frames is not greater than the preset value, centralized control is adopted.
[0071] The embodiment of the present application determines the number of slave frames connected to the host frame by receiving temperature information of at least one slave frame. When it is determined that the number of slave frames is not greater than a preset threshold, a corresponding control instruction is generated for each slave frame according to the temperature information of the slave frame, so that the slave frame adjusts its own temperature based on the control instruction. When it is determined that the number of slave frames is greater than the preset threshold, a self-control notification is sent to each slave frame, and each slave frame generates a control instruction according to its own temperature information based on the self-control notification to adjust its own temperature. The temperature control method for cascaded devices provided in the embodiment of the present application can centrally control all frames through the host frame when the number of slave frames of the cascaded devices is small. The centralized control method allows the host frame to unify all resources, control all temperatures, and facilitate the adjustment of any gear of the heat dissipation device to achieve the effect of arbitrarily controlling the temperature; when the number of slave frames of the cascaded devices is large, each slave frame controls its own temperature, and the centralized control and distributed control methods are switched, so that the temperature control is more efficient and the slave frames are easy to expand. At the same time, the distributed control method can save control resources of the host frame, save thread resources, and improve the efficiency of other services. When the host frame hangs, each slave frame can independently control the temperature to avoid equipment damage due to the collapse of the temperature control system.
[0072] The embodiment of the present application provides a possible implementation method. In this implementation method, the temperature information includes the unique identifier and temperature of the task board in the slave frame; the temperature of the slave frame includes the temperature of each task card board in the slave frame.
[0073] In the implementation of the present application, the temperature information sent from the slave frame to the host frame includes at least the temperature information of each task board in the slave frame, and the unique identifier of the task board corresponding to each temperature information. The temperature of the slave frame refers to the temperature of each task board in the slave frame.
[0074] For the embodiment of the present application, for the convenience of explanation, taking a specific embodiment as an example, for the slave frame 1, the slave frame 1 is configured with 3 task boards, the MCU of the slave frame obtains the temperature information of the 3 task boards by scanning, and the slave frame can send the 3 temperature information to the host frame when sending the temperature information to the host frame, and each temperature information is also corresponding to the unique identification of the task board corresponding to the temperature information. For example, the unique identifications of the 3 task boards in the slave frame 1 are K1.1, K1.2, and K1.3, respectively, and the temperatures of the three task boards are 42 °, 42.5 °, and 43 °, respectively. When the slave frame sends the temperature information to the host frame, it can be sent in the following manner (K1.1, 42 °), (K1.2, 42.5 °), (K1.3, 43 °). Of course, the unique identification of the task board can be in other forms, and the temperature information sent can also be in other forms, but as long as the temperature information and the unique identification of the task board corresponding to the temperature information are sent to the host frame, it should be within the protection scope of the present application.
[0075] The temperature information obtained by the embodiment of the present application includes the temperature information of each task board in the frame and the unique identifier of the task board corresponding to each temperature information, which is convenient for precise control and rapid positioning of the high temperature source when the temperature of the task board is too high, making temperature control faster.
[0076] The embodiment of the present application provides a possible implementation mode, in which a corresponding control instruction is generated according to the temperature information of the slave frame, including:
[0077] If it is determined that the temperature of all task boards in the slave frame is lower than the preset temperature threshold, a first control instruction is generated, and the first control instruction includes the operating parameters of the heat dissipation device of the slave frame.
[0078] In an embodiment of the present application, when the temperature of each frame in the cascade device is controlled, it is necessary to dissipate heat from the frame through a heat sink. Optionally, the heat sink can be a heat sink fan, a water-cooled heat sink system, etc. As a possible implementation method, the heat sink adopts a heat sink fan, wherein each frame can be installed with one or more heat sink fans for dissipating heat for the frame. In an embodiment of the present application, when the host frame generates corresponding control instructions according to the temperature information of the slave frame, it will generate corresponding control instructions according to the temperature of each task board in the slave frame in the temperature information. For example, when the temperature of all task boards in the slave frame is within the preset temperature threshold, it means that the temperature of all task boards in the slave frame is not too high at this time, and the temperature of the task board can be effectively adjusted by the heat sink.
[0079] For the embodiments of the present application, for the convenience of explanation, taking a specific embodiment as an example, the preset temperature threshold is 50°. For the slave frame 1 in the aforementioned embodiment, the temperatures of the three task boards are 42°, 42.5° and 43°, respectively, which are all less than 45°. Then, after the host frame receives the temperature information sent by the slave frame 1, it will send a first control instruction, wherein the first control instruction includes the operating parameters of the heat dissipation device of the slave frame. Optionally, the operating parameters can be calculated based on the heat dissipation efficiency of the heat dissipation device and the current temperature of each task board in the slave frame to ensure that the heat dissipation device has a heat dissipation effect on the task board and does not have excessive power, resulting in a waste of electricity resources. After receiving the first control instruction, the slave frame 1 will control the heat dissipation device in the slave frame 1 to operate according to the operating parameters in the first control instruction to dissipate heat for the slave frame 1.
[0080] In the embodiment of the present application, when it is determined that the temperatures of each task board in the slave frame are within a preset temperature threshold, a first control instruction is sent to the slave frame to adjust the operating parameters of the heat dissipation device in the slave frame to dissipate heat for the slave frame.
[0081] The embodiment of the present application provides a possible implementation mode, in which a corresponding control instruction is generated according to the temperature information of the slave frame, including:
[0082] If it is determined that the temperature of at least one task card in the slave frame is not lower than a preset temperature threshold, a corresponding control instruction is generated according to the temperature range in which the temperature of the at least one task card is located.
[0083] In the embodiment of the present application, for the convenience of explanation, the explanation is based on the above-mentioned embodiment. After the host frame receives the temperature information sent by the slave frame, it is determined that the temperature of at least one task board in the slave frame is not lower than the preset temperature threshold. Based on the temperature interval where the temperature of the task board is located, a corresponding control instruction is sent, wherein different temperature intervals correspond to different control instructions, and the effects produced by the slave frame when executing the control instruction are also different. For example, it can be to record the high temperature information of the task board, it can be to light up the high temperature indicator of the task board, or it can be to control the task board to power off, to ensure that the task board will not be damaged by high temperature.
[0084] When it is determined that the temperature of a task board in a slave frame is not lower than a preset temperature threshold, the embodiment of the present application generates a corresponding control instruction based on the temperature range in which the temperature of the task board is located, and sends the control instruction to the slave frame corresponding to the task board, so that the slave frame executes different control instructions to protect the slave frame and the task board.
[0085] The present application embodiment provides a possible implementation mode, in which a corresponding control instruction is generated according to the temperature range of the temperature of at least one task card board, including:
[0086] For any task card board, when the temperature of the task card board is within the first temperature range, a corresponding second control instruction is generated, and the second control instruction includes a unique identifier for recording the task card board;
[0087] When the temperature of the task board is within the second temperature range, a corresponding third control instruction is generated, and the third control instruction includes turning on a high temperature indicator light of the task board corresponding to the control temperature information;
[0088] When the temperature is within the third temperature range, a corresponding fourth control instruction is generated, and the fourth control instruction includes powering off a task board corresponding to the control temperature information;
[0089] The preset temperature threshold is smaller than the minimum value of the first temperature interval, the maximum value of the first temperature interval is smaller than the minimum value of the second temperature interval, and the maximum value of the second temperature interval is smaller than the minimum value of the third temperature interval.
[0090] In an embodiment of the present application, the temperature interval where the temperature of the task board is located can be divided into three intervals, wherein the three intervals correspond to different temperature segments, and the preset temperature threshold is less than the minimum value of the first temperature interval, the maximum value of the first temperature interval is less than the minimum value of the second temperature interval, and the maximum value of the second temperature interval is less than the minimum value of the third temperature interval. For example, the preset temperature threshold is 45°, the first temperature interval is 45°~50°, the second temperature interval is 50°~60°, and the third temperature interval is 60° and above. For different intervals where the temperature of the task board is located, different control instructions are generated, and different effects are produced when the slave frame executes the control instructions. In an embodiment of the present application, the temperature of the slave frame refers to the temperature of each task board in the slave frame, wherein, for a slave frame, the temperature of the task board with the highest temperature in the slave frame can be used as the temperature of the slave frame.
[0091] For the embodiments of the present application, for the convenience of explanation, a specific embodiment is taken as an example. For the slave frame 2, there are three task boards in the slave frame 2, namely task boards K2.1, K2.2, and K2.3. When the slave frame obtains the temperature information of the three task boards, the temperatures of the three task boards are 44°, 46°, and 44.7°, respectively. For the task board K2.2, its temperature exceeds the preset temperature threshold, and its temperature is in the first temperature range. The host frame will generate a second control instruction based on the temperature information and send the second control instruction to the slave frame 2. The second control instruction includes an instruction to record the unique identifier of the task board K2.2. The slave frame will send the unique identifier of the task board (K2.2) and the temperature of 46° corresponding to the task board to the host frame for recording. As another embodiment of the present application, there are four task boards in the slave frame 3, namely task boards K3.1, K3.2, K3.3 and K3.4. When the slave frame obtains the temperature information of the four task boards, the temperatures of the three task boards are 44°, 51°, 44.8°, and 44.7°, respectively. For task board K3.2, its temperature exceeds the preset temperature threshold, and its temperature is in the second temperature range. Based on the temperature information, the host frame will generate a third control instruction and send the third control instruction to the slave frame 3. The third control instruction includes lighting up the high temperature indicator light of the task board K3.2. Based on the control instruction, the slave frame lights up the high temperature indicator light of the task board K3.2. At the same time, the slave frame can send the high temperature information of the task board K3.2 and the high temperature indicator light lighting information to the host frame, so that the host frame can record it. As another possible embodiment of the present application, there are 6 task boards in the slave frame 4, namely task boards K4.1, K4.2, K4.3, K4.4, K4.5, and K4.6. When the slave frame obtains the temperature information of the 6 task boards, the temperatures of the 6 task boards are 44°, 72°, 44.8°, 44.8°, 44.8°, and 44.7°, respectively. For the task board K4.2, its temperature exceeds the preset temperature threshold, and its temperature is in the third temperature range. Based on the temperature information, the host frame will generate a fourth control instruction and send the fourth control instruction to the slave frame 4. The fourth control instruction includes controlling the task board K4.2 to power off. Then, based on the control instruction, the slave frame powers off the task board K3.2. At the same time, the slave frame can send the high temperature information and power-off information of the task board K4.2 to the host frame for the host frame to record.Of course, as a possible implementation method of the application, there may be multiple boards in a slave frame whose temperatures exceed the preset temperature threshold. For example, there are three task boards in the slave frame 5, namely task boards K5.1, K5.2, and K5.3. When the slave frame obtains the temperature information of the three task boards, the temperatures of the three task boards are 46°, 52°, and 73°, respectively. If the temperatures of the three task boards in the slave frame exceed the preset temperature threshold, the host frame will generate corresponding control instructions based on the temperatures of the three task boards, such as based on any task board. Based on the temperature of task board K5.1, a second control instruction is generated, and the second control instruction includes recording the unique identifier of task board K5.1. Based on the temperature of task board K5.2, a third control instruction is generated, and the third control instruction includes lighting the high temperature indicator light of task board K5.2. Based on the temperature of task board K5.3, a fourth control instruction is generated, and the fourth control instruction includes controlling task board K5.3 to power off. The host frame will send all three control instructions to slave frame 5, and slave frame 5 will perform corresponding operations based on the three control instructions. Of course, a slave frame can include more task boards, and the temperature of each task board may be in a different temperature range. The host frame can generate corresponding control instructions according to the temperature of different task boards, so that the slave frame can control the temperature of each task board conveniently.
[0092] The embodiment of the present application generates different control instructions according to the temperature of the task board and takes different control measures for the task boards at different temperatures, thereby protecting the task board from damage due to high temperature with the highest efficiency.
[0093] This embodiment of the present application provides a possible implementation mode, in which the fourth control instruction further includes:
[0094] Detect the real-time temperature of the powered-off task board. When the real-time temperature is lower than the preset temperature threshold, control the task board to resume powering on.
[0095] In an embodiment of the present application, after the host frame controls the slave frame to power off a task board whose temperature is in the third temperature range through the fourth control instruction, the temperature of the powered-off task board will be continuously monitored. When the temperature of the task board is monitored to be within a preset temperature threshold, the slave frame will be controlled to restore power to the task board.
[0096] For the implementation of the present application, for the convenience of explanation, taking the aforementioned specific embodiment as an example, for the slave frame 4, after the slave frame controls the task board K4.2 to power off, the slave frame 4 will continue to monitor the temperature of the task board K4.2. When it is monitored that the temperature of the task board K4.2 returns to below the preset temperature threshold, such as 44.8°, the slave frame 4 will control the task board K4.2 to power on again and start operation.
[0097] The present application implements the method of detecting the temperature of the powered-off task board, and when the temperature of the task board returns to an acceptable range, controlling the task board to be powered on again, thereby ensuring the working efficiency of the cascaded device.
[0098] The present application embodiment provides a possible implementation method, in which, Figure 4 As shown, determine the number of connected slave frames, which also includes:
[0099] Step S401 : for each slave frame, determining initial operating parameters of a heat dissipation device in the slave frame according to the rated powers of all task boards in the slave frame.
[0100] In the embodiment of the present application, when the cascade device is powered on, for each slave frame, the initial operating parameters of the heat dissipation device in the slave frame are determined according to the rated power of the task board in each slave frame.
[0101] Step S402, generating an initial control instruction and sending it to the slave frame, so that the heat dissipation device in the slave frame operates according to the initial operation parameters; the initial control instruction includes the initial operation parameters of the heat dissipation device in the slave frame.
[0102] In an embodiment of the present application, the initial operating parameters of the heat dissipation device in each slave frame are sent to each slave frame, so that each slave frame controls its own heat dissipation device to operate according to the initial operating parameters to dissipate heat for the slave frame.
[0103] The embodiment of the present application also provides a temperature control method for a cascade device, the cascade device comprising a host frame and at least one slave frame connected to the host frame, the temperature control method is applied to the slave frame, such as Figure 5 As shown, the temperature control method includes:
[0104] Step S501 : collecting and uploading the temperature information of the slave frame to the master frame.
[0105] In an embodiment of the present application, after the cascade device is powered on, each slave frame starts to collect its own temperature information and sends the temperature information to the host frame. When the temperature is sent to the host frame, the unique identifier of the task board corresponding to each temperature information can be sent to the host frame together.
[0106] Step S502: If a control instruction sent by the master frame is received, the temperature of the slave frame itself is adjusted according to the control instruction.
[0107] In the embodiment of the present application, after the slave frame sends the temperature information to the host frame, if a control instruction sent by the host frame is received, the temperature of the slave frame is controlled according to the control instruction. The control instruction is generated by the host frame based on the temperature of each task board. The generation of the specific control instruction and the execution of the control instruction by the slave frame have been described in the above embodiment and will not be repeated here.
[0108] Step S503: if the self-control notification sent by the master frame is received, a control instruction is generated according to the temperature of the slave frame itself, and the temperature of the slave frame itself is adjusted according to the control instruction;
[0109] The control instruction sent by the host frame is generated when the number of slave frames connected to the host frame is not greater than a preset threshold; the self-control notification is generated when the number of slave frames connected to the host frame is greater than a preset threshold.
[0110] In the embodiment of the present application, when the host frame confirms that the number of slave frames connected to the host frame is greater than a preset threshold, the host frame sends a self-control notification to each slave frame. After receiving the self-control notification, each slave frame generates a control instruction according to its own temperature information and controls its own temperature based on the control instruction. The manner in which the slave frame generates a control instruction according to its own temperature is the same as the manner in which the host frame generates a control instruction according to the temperature information of each slave frame in the aforementioned embodiment, and will not be repeated here.
[0111] As a possible implementation of the present application, there is an application scenario. When a slave frame detects that a master frame has a fault, regardless of whether the number of slave frames is greater than a preset threshold, each slave frame will generate a corresponding control instruction based on its own temperature information to control its own temperature, so as to prevent the entire cascade device from failing due to the failure of the master frame and ensure the working efficiency of the cascade device.
[0112] The temperature control method for cascaded devices provided in the embodiment of the present application can centrally control all frames through the host frame when the number of slave frames of the cascaded devices is small. The centralized control method allows the host frame to unify all resources, control all temperatures, and facilitate the adjustment of any gear of the heat dissipation device to achieve the effect of arbitrarily controlling the temperature; when the number of slave frames of the cascaded devices is large, each slave frame controls its own temperature, and the centralized control and distributed control methods are switched, so that the temperature control is more efficient and the slave frames are easy to expand. At the same time, the distributed control method can save control resources of the host frame, save thread resources, and improve the efficiency of other services. When the host frame hangs, each slave frame can independently control the temperature to avoid equipment damage due to the collapse of the temperature control system.
[0113] The embodiment of the present application provides a possible implementation mode, in which the temperature information includes the unique identifier and temperature of the task board in the slave frame; the temperature of the slave frame includes the temperature of each task card board in the slave frame.
[0114] For the embodiment of the present application, for the convenience of explanation, take a specific embodiment as an example, for the slave frame 1, the slave frame 1 is configured with 3 task boards, the MCU of the slave frame obtains the temperature information of the 3 task boards by scanning, and the slave frame can send the 3 temperature information to the host frame when sending temperature information to the host frame, and each temperature information is also corresponding to the unique identification of the task board corresponding to the temperature information. For example, the unique identifications of the 3 task boards in the slave frame 1 are K1.1, K1.2, and K1.3, respectively, and the temperatures of the three task boards are 42 °, 42.5 °, and 43 °, respectively. When the slave frame wants to send temperature information to the host frame, it can send (K1.1, 42 °), (K1.2, 42.5 °), (K1.3, 43 °) in the following manner. Of course, the unique identification of the task board can be in other forms, and the temperature information sent can also be in other forms, but as long as the temperature information and the unique identification of the task board corresponding to the temperature information are sent to the host frame, it should be within the protection scope of the present application.
[0115] The temperature information obtained by the embodiment of the present application includes the temperature information of each task board in the frame and the unique identifier of the task board corresponding to each temperature information, which is convenient for precise control and rapid positioning of the high temperature source when the temperature of the task board is too high, making temperature control faster.
[0116] The embodiment of the present application provides a possible implementation mode, in which, when a first control instruction is received, an operating parameter of a heat dissipation device of a slave chassis is recorded;
[0117] The first control instruction is generated when the temperature of all task boards in the slave frame is lower than a preset temperature threshold.
[0118] In an embodiment of the present application, when the temperature of each frame in the cascade device is controlled, it is necessary to dissipate heat from the frame through a heat sink. Optionally, the heat sink can be a heat sink fan, a water-cooled heat sink system, etc. As a possible implementation method, the heat sink adopts a heat sink fan, wherein each frame can be installed with one or more heat sink fans for dissipating heat for the frame. In an embodiment of the present application, when the slave frame generates corresponding control instructions according to its own temperature information, it will generate corresponding control instructions according to the temperature of each task board in the temperature information. For example, when the temperature of all task boards is within the preset temperature threshold, it means that the temperature of all task boards in the slave frame is not too high at this time, and the temperature of the task board can be effectively adjusted by the heat sink.
[0119] For the embodiments of the present application, for the convenience of explanation, taking a specific embodiment as an example, the preset temperature threshold is 50°, and for a slave frame, the temperatures of the three task boards are 42°, 42.5° and 43°, respectively, which are all less than 45°. Then the slave frame will generate a first control instruction, wherein the first control instruction includes the operating parameters of the heat dissipation device of the slave frame. Optionally, the operating parameters can be calculated based on the heat dissipation efficiency of the heat dissipation device and the current temperature of each task board in the slave frame to ensure that the heat dissipation device has a heat dissipation effect on the task board and does not have excessive power, resulting in a waste of electricity resources.
[0120] In an embodiment of the present application, when it is determined that the temperatures of each task board in the slave frame are within a preset temperature threshold, the slave frame generates a first control instruction based on the temperatures of each task board in itself, and adjusts the operating parameters of the heat dissipation device in the slave frame to dissipate heat for the slave frame.
[0121] The embodiment of the present application provides a possible implementation mode, in which the temperature of the slave frame itself is adjusted according to the control instruction, including:
[0122] When the second control instruction is received, the unique identifier of the task board corresponding to the temperature information is recorded.
[0123] When the third control instruction is received, the high temperature indicator light of the task board corresponding to the temperature information is controlled to turn on.
[0124] When the fourth control instruction is received, the task board corresponding to the temperature information is powered off.
[0125] In an embodiment of the present application, the temperature interval where the temperature of the task board is located can be divided into three intervals, wherein the three intervals correspond to different temperature segments, and the preset temperature threshold is less than the minimum value of the first temperature interval, the maximum value of the first temperature interval is less than the minimum value of the second temperature interval, and the maximum value of the second temperature interval is less than the minimum value of the third temperature interval. For example, the preset temperature threshold is 45°, the first temperature interval is 45°~50°, the second temperature interval is 50°~60°, and the third temperature interval is 60° and above. For different intervals where the temperature of the task board is located, different control instructions are generated, and different effects are produced when the slave frame executes the control instructions. In an embodiment of the present application, the temperature of the slave frame refers to the temperature of each task board in the slave frame, wherein, for a slave frame, the temperature of the task board with the highest temperature in the slave frame can be used as the temperature of the slave frame.
[0126] For the embodiments of the present application, for the convenience of explanation, a specific embodiment is taken as an example. For the slave frame 2, there are three task boards in the slave frame 2, namely task boards K2.1, K2.2, and K2.3. When the slave frame obtains the temperature information of the three task boards, the temperatures of the three task boards are 44°, 46°, and 44.7°, respectively. For the task board K2.2, its temperature exceeds the preset temperature threshold, and its temperature is in the first temperature range. Then, the slave frame 2 will generate a second control instruction based on the temperature information of the task board K2.2. The second control instruction includes an instruction to record the unique identifier of the task board K2.2. Then, the slave frame will record the unique identifier (K2.2) of the task board and the temperature corresponding to the task board, 46°, and send the information to the host frame when the host frame operates normally. As another embodiment of the present application, there are four task boards in the slave frame 3, namely task boards K3.1, K3.2, K3.3 and K3.4. When the slave frame obtains the temperature information of the four task boards, the temperatures of the three task boards are 44°, 51°, 44.8°, and 44.7°, respectively. For task board K3.2, its temperature exceeds the preset temperature threshold, and its temperature is in the second temperature range. Based on the temperature information, the slave frame will generate a third control instruction, and the third control instruction includes lighting up the high temperature indicator light of the task board K3.2. Then, based on the control instruction, the slave frame lights up the high temperature indicator light of the task board K3.2. At the same time, when the host frame is operating normally, the slave frame can send the high temperature information of the task board K3.2 and the high temperature indicator light lighting information to the host frame, so as to facilitate the host frame to record. As another possible embodiment of the present application, there are 6 task boards in the slave frame 4, namely task boards K4.1, K4.2, K4.3, K4.4, K4.5, and K4.6. When the slave frame obtains the temperature information of the 6 task boards, the temperatures of the 6 task boards are 44°, 72°, 44.8°, 44.8°, 44.8°, and 44.7°, respectively. For the task board K4.2, its temperature exceeds the preset temperature threshold, and its temperature is in the third temperature range. Based on the temperature information, the slave frame will generate a fourth control instruction. The fourth control instruction includes controlling the task board K4.2 to power off. Then, based on the control instruction, the slave frame powers off the task board K3.2. At the same time, when the host frame is operating normally, the slave frame can send the high temperature information and power-off information of the task board K4.2 to the host frame, so that the host frame can record it.Of course, as a possible implementation method of the application, there may be multiple boards in a slave frame whose temperatures exceed the preset temperature threshold. For example, there are three task boards in the slave frame 5, namely task boards K5.1, K5.2, and K5.3. When the slave frame obtains the temperature information of the three task boards, the temperatures of the three task boards are 46°, 52°, and 73°, respectively. Then, the temperatures of the three task boards in the slave frame all exceed the preset temperature threshold. The slave frame will generate corresponding control instructions based on the temperatures of the three task boards, such as generating a second control instruction based on the temperature of task board K5.1, the second control instruction including recording the unique identifier of task board K5.1; generating a third control instruction based on the temperature of task board K5.2, the third control instruction including lighting up the high temperature indicator light of task board K5.2; generating a fourth control instruction based on the temperature of task board K5.3, the fourth control instruction including controlling task board K5.3 to power off, and the slave frame 5 performs corresponding operations based on the three control instructions. Of course, a slave frame may include more task boards, and the temperature of each task board may be in a different temperature range. The slave frame can generate corresponding control instructions according to the temperature of different task boards, so as to facilitate the temperature control of each task board.
[0127] The embodiment of the present application generates different control instructions from the machine frame according to the temperature of the task board, and takes different control measures for the task boards at different temperatures, so as to protect the task boards from being damaged by high temperature with the highest efficiency.
[0128] The embodiment of the present application provides a possible implementation mode, in which, when the fourth control instruction is received, the method further includes:
[0129] Detect the real-time temperature of the powered-off task board. When the real-time temperature is lower than the preset temperature threshold, control the task board to resume powering on.
[0130] In an embodiment of the present application, after the slave frame powers off a task board whose temperature is in the third temperature range through the fourth control instruction, the temperature of the powered-off task board will be continuously monitored. When the temperature of the task board is monitored to be within a preset temperature threshold, the task board will be powered on again.
[0131] For the implementation of the present application, for the convenience of explanation, taking the aforementioned specific embodiment as an example, for the slave frame 4, after the slave frame controls the task board K4.2 to power off, the slave frame 4 will continue to monitor the temperature of the task board K4.2. When it is monitored that the temperature of the task board K4.2 returns to below the preset temperature threshold, such as 44.8°, the slave frame 4 will control the task board K4.2 to power on again and start operation.
[0132] The present application implements the method of detecting the temperature of the powered-off task board, and when the temperature of the task board returns to an acceptable range, controlling the task board to be powered on again, thereby ensuring the working efficiency of the cascaded device.
[0133] The present embodiment provides a possible implementation mode, in which the temperature of the slave frame itself is adjusted according to the control instruction, including:
[0134] When the initial control instruction is received, the heat dissipation device in the slave frame is controlled to operate according to the initial operating parameters.
[0135] In an embodiment of the present application, when the cascade device is powered on, for each slave frame, the initial operating parameters of the heat dissipation device in the slave frame are determined according to the rated power of the task board in each slave frame, so that each slave frame controls its own heat dissipation device to operate according to the initial operating parameters to dissipate heat for the slave frame.
[0136] The temperature control method for cascaded devices provided in the embodiment of the present application can centrally control all frames through the host frame when the number of slave frames of the cascaded devices is small. The centralized control method allows the host frame to unify all resources, control all temperatures, and facilitate the adjustment of any gear of the heat dissipation device to achieve the effect of arbitrarily controlling the temperature; when the number of slave frames of the cascaded devices is large, each slave frame controls its own temperature, and the centralized control and distributed control methods are switched, so that the temperature control is more efficient and the slave frames are easy to expand. At the same time, the distributed control method can save control resources of the host frame, save thread resources, and improve the efficiency of other services. When the host frame hangs, each slave frame can independently control the temperature to avoid equipment damage due to the collapse of the temperature control system.
[0137] An embodiment of the present application provides a host frame in a cascade device, which can be used to execute the above-mentioned temperature control method applied to the host frame.
[0138] In the embodiment of the present application, the host frame is used to execute the temperature control method applied to the host frame, such as Figure 6 As shown, the host frame may include a main control board, wherein the main control board includes a CPU (central processing unit) for controlling the entire cascade device business creation and device management, and a CPLD (Complex Programming logic device) for data exchange; the host frame is also provided with a switching board, wherein the switching board includes an MCU (Micro Control Unit) for controlling the temperature of the host frame under the control of the CPU and a CPLD for data exchange; and a task board in the host frame, wherein the number of task boards can be configured according to actual needs.
[0139] An embodiment of the present application provides a slave frame in a cascade device, which can be used to execute the above-mentioned temperature control method applied to the slave frame.
[0140] In the embodiments of the present application, Figure 7 As shown, each slave frame includes an MCU for controlling the temperature of the slave frame itself under the control of the CPU and a CPLD for data exchange, wherein each slave frame includes at least one task board, and the number of task boards can be configured according to actual needs.
[0141] An embodiment of the present application provides a cascade device, which includes the above-mentioned host frame and at least one slave frame.
[0142] In an embodiment of the present application, the cascade device includes a host frame and at least one slave frame connected to the host frame, wherein the number of slave frames can be configured according to actual needs.
[0143] An electronic device is provided in an embodiment of the present application, and the electronic device includes: a memory and a processor; at least one program, stored in the memory, for being executed by the processor, and compared with the prior art, it can achieve: the embodiment of the present application determines the number of slave frames connected to the host frame by receiving temperature information of at least one slave frame, and when it is determined that the number of slave frames is not greater than a preset threshold, for each slave frame, a corresponding control instruction is generated according to the temperature information of the slave frame, so that the slave frame adjusts its own temperature based on the control instruction, and when it is determined that the number of slave frames is greater than the preset threshold, a self-control notification is sent to each slave frame, and each slave frame generates a control instruction according to its own temperature information according to the self-control notification to adjust its own temperature. The temperature control method for cascaded devices provided in the embodiment of the present application can centrally control all frames through the host frame when the number of slave frames of the cascaded devices is small. The centralized control method allows the host frame to unify all resources, control all temperatures, and facilitate the adjustment of any gear of the heat dissipation device to achieve the effect of arbitrarily controlling the temperature; when the number of slave frames of the cascaded devices is large, each slave frame controls its own temperature, and the centralized control and distributed control methods are switched, so that the temperature control is more efficient and the slave frames are easy to expand. At the same time, the distributed control method can save control resources of the host frame, save thread resources, and improve the efficiency of other services. When the host frame hangs, each slave frame can independently control the temperature to avoid equipment damage due to the collapse of the temperature control system.
[0144] In an alternative embodiment, an electronic device is provided, such as Figure 8 As shown, Figure 8The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0145] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0146] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0147] The memory 4003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.
[0148] The memory 4003 is used to store the application code (computer program) for executing the solution of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the application code stored in the memory 4003 to implement the contents shown in the above method embodiment.
[0149] Among them, electronic devices include but are not limited to: computers, tablets, smart phones, etc.
[0150] An embodiment of the present application provides a computer storage medium on which a computer program is stored. When the computer storage medium is run on a computer, the computer can execute the corresponding contents of the aforementioned method embodiment.
[0151] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0152] The above is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A temperature control method for a cascade device, the cascade device comprising a host frame and at least one slave frame connected to the host frame, the temperature control method being applied to the host frame, characterized in that: The temperature control method comprises: receiving temperature information of the at least one connected slave frame, and determining the number of connected slave frames; If it is determined that the number of the slave frames is not greater than the preset threshold, for each slave frame, a corresponding control instruction is generated according to the temperature information of the slave frame, so that the slave frame adjusts the temperature of the slave frame itself according to the control instruction; When the CPU in the master frame runs normally, if it is determined that the number of the slave frames is greater than a preset threshold, a self-control notification is sent to the at least one slave frame, so that after receiving the self-control notification, the at least one slave frame generates the control instruction according to the temperature of the slave frame itself, and adjusts the temperature of the slave frame itself according to the control instruction; The temperature information includes the unique identifier and temperature of the task board in the slave frame; the temperature of the slave frame includes the temperature of each task board in the slave frame; and the corresponding control instruction is generated according to the temperature information of the slave frame, including: If it is determined that the temperature of at least one task board in the slave frame is not lower than a preset temperature threshold, generating a corresponding control instruction according to the temperature range in which the temperature of the at least one task board is located; The generating a corresponding control instruction according to the temperature range in which the temperature of the at least one task card board is located includes: For any task card board, when the temperature of the task card board is within the first temperature range, a corresponding second control instruction is generated, wherein the second control instruction includes a unique identifier for recording the task card board; The preset temperature threshold is smaller than the minimum value of the first temperature range.
2. The temperature control method of the cascade device according to claim 1, characterized in that: The generating of the corresponding control instruction according to the temperature information of the slave frame also includes: If it is determined that the temperature of all task boards in the slave frame is lower than a preset temperature threshold, a first control instruction is generated, where the first control instruction includes operating parameters of a heat dissipation device of the slave frame.
3. The temperature control method of the cascade device according to claim 2, characterized in that: The generating a corresponding control instruction according to the temperature range in which the temperature of the at least one task card board is located also includes: When the temperature of the task board is within the second temperature range, a corresponding third control instruction is generated, wherein the third control instruction includes controlling a high temperature indicator light of the task board corresponding to the temperature information to turn on; When the temperature is within the third temperature range, a corresponding fourth control instruction is generated, wherein the fourth control instruction includes controlling the task board corresponding to the temperature information to power off; The maximum value of the first temperature interval is smaller than the minimum value of the second temperature interval, and the maximum value of the second temperature interval is smaller than the minimum value of the third temperature interval.
4. The temperature control method of the cascade device according to claim 3, characterized in that: The fourth control instruction also includes: The real-time temperature of the powered-off task board is detected, and when the real-time temperature is lower than the preset temperature threshold, the task board is controlled to resume powering on.
5. The temperature control method of the cascade device according to claim 2, characterized in that: The determining the number of connected slave frames also includes: For each of the slave frames, determining initial operating parameters of a heat sink in the slave frame according to the rated powers of all task boards in the slave frame; An initial control instruction is generated and sent to the slave frame, so that the heat dissipation device in the slave frame operates according to the initial operating parameters; the initial control instruction includes the initial operating parameters of the heat dissipation device in the slave frame.
6. A temperature control method for a cascade device, the cascade device comprising a host frame and at least one slave frame connected to the host frame, the temperature control method being applied to the slave frame, characterized in that: The temperature control method comprises: Collect and upload the temperature information of the slave frame itself to the host frame; If a control instruction sent by the master frame is received, the temperature of the slave frame itself is adjusted according to the control instruction; If a self-control notification sent by the master frame is received, the control instruction is generated according to the slave frame according to its own temperature, and the temperature of the slave frame itself is adjusted according to the control instruction; The control instruction sent by the host frame is generated when the number of slave frames connected to the host frame is not greater than a preset threshold; the self-control notification is generated when the number of slave frames connected to the host frame is greater than a preset threshold and the CPU in the host frame operates normally; The temperature information includes the unique identifier and temperature of the task board in the slave frame; the temperature of the slave frame includes the temperature of each task board in the slave frame; and adjusting the temperature of the slave frame itself according to the control instruction includes: When the second control instruction is received, the unique identifier of the task board corresponding to the temperature information is recorded.
7. The temperature control method of the cascade device according to claim 6, characterized in that: The step of adjusting the temperature of the slave frame itself according to the control instruction further includes: When receiving the first control instruction, recording the operating parameters of the heat dissipation device of the slave frame; Wherein, the first control instruction is generated when the temperature of all task boards in the slave frame is lower than a preset temperature threshold; When the third control instruction is received, the high temperature indicator light of the task board corresponding to the temperature information is controlled to turn on; When the fourth control instruction is received, the task board corresponding to the temperature information is controlled to be powered off.
8. A temperature control system for a cascade device, characterized in that: include: A host frame, used to execute the temperature control method according to any one of claims 1 to 5; At least one slave frame, used to execute the temperature control method described in any one of claims 6 to 7.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the temperature control method of the cascade device as described in any one of claims 1 to 5 or the temperature control method of the cascade device as described in any one of claims 6 to 7.
10. A storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the temperature control method of the cascade device as described in any one of claims 1 to 5 or the temperature control method of the cascade device as described in any one of claims 6 to 7.
