Server
The battery power is controlled through the light detection component and the switch component, and the controller is only powered when the cover is opened, which solves the problem of power waste in the prior art and achieves stable open information recording and battery life improvement.
Patent Information
- Application Number
- CN202510006304.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-02
- Publication Date
- 2025-07-22
AI Technical Summary
The existing server open-cover detection structure still consumes power when the open-cover event is not triggered, resulting in a short battery life and the inability to continue recording the open-cover information after power failure.
The light detection component is used to output a signal when the cover is opened, and the first battery is controlled to power the controller through the switch component, and information is recorded only when the cover is opened, and power is stopped when the cover is closed. The clock chip and register record the opening time and number of times.
Improves the battery life, ensures that the cover opening information can still be recorded in the event of power outage, and enhances the security and traceability of the server.
Smart Images

Figure CN120353322A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of servers, and particularly relates to a server. Background Art
[0002] In the existing field of computer device maintenance and security monitoring, the open cover detection is directly related to the physical security of computer devices and the protection of internal hardware.
[0003] Most components of the current open cover detection structure are also in a working state when the open cover event is not triggered, which greatly consumes the power of the power supply, resulting in a short battery life, and further resulting in the inability to continue the open cover information after a power failure.
[0004] Therefore, how to optimize the open cover detection of the server is a problem that those skilled in the art need to solve currently. Summary of the Invention
[0005] The purpose of the embodiments of this application is to provide a server, aiming to solve the problem of unstable open cover detection of the server in the traditional technology.
[0006] The first aspect of the embodiments of this application provides a server, including:
[0007] A chassis, which includes a box body and a machine cover covering the opening of the box body;
[0008] An optical detection component, which is arranged in the box body, the optical detection component emits an optical detection signal along a target direction, the target direction is the direction towards the machine cover, and the optical detection component is used to output a first signal based on the detection of the optical detection signal when the machine cover is opened;
[0009] A controller, which is located in the box body, and the power supply end of the controller is connected to the output end of the first battery;
[0010] A switch component, which is respectively connected to the optical detection component, the controller and the first battery; the switch component conducts the connection between the first battery and the power supply end and controls the output of a second signal to the detection end of the controller when receiving the first signal, and the controller records the open cover information of the server when detecting the second signal.
[0011] As can be seen from the above, only when the optical detection component outputs the first signal, the first battery will supply power to the controller, which is beneficial to improving the battery life of the first battery, and further beneficial to avoiding the situation that the open cover information cannot be recorded due to a power failure. That is to say, when the machine cover of the server is opened, the optical detection component outputs the first signal, and the switch component responds to the first signal and conducts the connection between the first battery and the power supply end of the controller, whereby the first battery supplies power to the controller, and at this time the controller records the open cover information.
[0012] In some embodiments of the present application, the switch assembly includes a first switching tube. One end of the first switching tube is connected to the detection end of the controller, and the other end of the first switching tube is grounded.
[0013] The output end of the optical detection assembly is connected to the control end of the first switching tube. The first switching tube is used to disconnect when receiving the output of the first signal.
[0014] After the first switching tube is turned on, since the voltage is pulled low by grounding, the signal source of the second signal cannot output a high-level signal to the controller at this time. After the first switching tube is turned off, the signal source of the second signal can normally output a high-level signal to the controller at this time. In this way, the second signal can be received by the controller as a high-level signal, so that the controller can determine that the event of opening the machine cover has occurred, and then record the opening information.
[0015] In some embodiments of the present application, the first battery is the signal source of the second signal. In this way, the first battery can be reused as the power supply for the controller and the signal source of the second signal, which is beneficial to reducing the complexity and cost of the circuit.
[0016] In some embodiments of the present application, the server further includes a voltage-dividing resistor. One end of the voltage-dividing resistor is connected to the first battery, and the other end of the voltage-dividing resistor is connected between the first switching tube and the detection end of the controller. In this way, the voltage output by the first battery can be adjusted to an appropriate range that the controller can receive through the voltage-dividing resistor.
[0017] In some embodiments of the present application, the switch assembly includes a second switching tube. The second switching tube is arranged between the first battery and the power supply end of the controller. The output end of the optical detection assembly is connected to the control end of the second switching tube. The second switching tube is used to conduct when receiving the output of the first signal.
[0018] The second switching tube can receive the first signal to conduct the connection between the first battery and the power supply end of the controller, so that the controller can record the opening information when it is determined that the machine cover is opened.
[0019] In some embodiments of the present application, the server has a power input end, and the power input end and the first battery are commonly connected to the controller;
[0020] When the server is in the on state, the power input end supplies power to the controller. When the server is in the off state and the second switching tube receives the first signal, the first battery supplies power to the controller.
[0021] The server can supply power to the controller through the power input end to meet the working requirements of the controller. However, when the server is turned off, the first battery can be used as a backup power supply to supply power to the controller, which is beneficial to improving the stability of opening detection and also beneficial to improving the battery life performance of the first battery.
[0022] In some embodiments of the present application, a first diode is provided between the second switching transistor and the controller, and the conduction direction of the first diode is from the signal output end of the second switching transistor to the controller;
[0023] A second diode is provided between the power input terminal and the controller, and the conduction direction of the second diode is from the power input terminal to the controller.
[0024] The first diode can prevent current from flowing back to the first battery, which is beneficial to protecting the first battery; the second diode can prevent current from flowing back to the power input terminal of the server, which is beneficial to protecting the server.
[0025] In some embodiments of the present application, the first battery is a detachable battery. In this way, when the power of the first battery is insufficient, a new first battery can be replaced or the first battery can be charged regularly to ensure the working performance of the first battery, thereby improving the stability of the detection of the opening of the machine cover.
[0026] In some embodiments of the application, the optical detection component is further configured to output a third signal based on the detection of the optical detection signal when the machine cover is closed; the switching component disconnects the first battery from the power supply terminal when receiving the third signal.
[0027] It can be understood that when the machine cover of the server is closed, the optical detection component outputs a third signal to the switching component, and the switching component disconnects the first battery from the power supply terminal of the controller. At this time, the first battery stops supplying power to the controller, and the controller stops recording the opening information. During the closing period, the first battery does not need to supply power to the controller, so the battery life performance of the first battery can be increased.
[0028] In some embodiments of the present application, the optical detection component includes:
[0029] An infrared photoelectric tube, configured to emit an optical detection signal and output a corresponding detection signal based on the reflection degree of the optical detection signal;
[0030] A comparator, having a first input terminal, a second input terminal and an output terminal. The first input terminal is used to access a reference signal, the second input terminal is connected to the output terminal of the infrared photoelectric tube, and the comparator is configured to output a first signal based on the comparison result between the reference signal and the detection signal;
[0031] Wherein, the infrared photoelectric tube and the comparator are both powered by the second battery.
[0032] In this way, even when the server is powered off, the infrared photoelectric tube and the comparator can still work normally through the second battery.
[0033] In some embodiments of the present application, the opening information includes: the opening time and closing time of the current opening event;
[0034] The server further includes a register, and the controller is connected to the register;
[0035] The controller is configured to: store the opening time of the current opening event in the register when the second signal is first detected during an opening event.
[0036] In some embodiments of the present application, the server further includes a clock chip, and the controller is connected to the clock chip;
[0037] The controller is configured to: obtain real-time first time data from the clock chip and obtain real-time time data from the clock chip as second time data every preset duration;
[0038] The register is configured to store the first time data as the opening time of the current opening event and store the latest second time data as the closing time of the current opening event.
[0039] In this way, by setting the clock chip to obtain the time data when the opening event occurs and ends, and by setting the register to store these time data as the opening time and the closing time, the recording of the opening and closing information is realized.
[0040] In some embodiments of the present application, the clock chip is powered by a third battery.
[0041] In some embodiments of the present application, the opening information further includes: the cumulative number of openings;
[0042] The logic unit is further configured to: increment by 1 the cumulative number of openings stored in the register when the second signal is first detected during an opening event. Description of the Drawings
[0043] Figure 1 Schematic diagram of the framework structure of the server provided by an embodiment of the present application;
[0044] Figure 2 Schematic diagram of the application scenario of the server provided by an embodiment of the present application;
[0045] Figure 3 Schematic diagram of the framework structure of the server provided by an embodiment of the present application;
[0046] Figure 4 Schematic diagram of the circuit structure of the server provided by an embodiment of the present application;
[0047] Figure 5 Schematic diagram of the circuit structure of the optical detection component provided by an embodiment of the present application;
[0048] Figure 6 Schematic diagram of the circuit structure of the server provided by an embodiment of the present application;
[0049] Figure 7 Schematic diagram of the working steps of the server provided in an embodiment of the present application.
[0050] Specific element symbol description: 100 - optical detection component, 200 - switch component, 300 - controller, 400 - machine cover, 500 - register, 600 - clock chip, c - target direction, Q1 - first switching transistor, Q2 - second switching transistor, R3 - voltage dividing resistor, D1 - first diode, D2 - second diode, D3 - third diode. Specific embodiments
[0051] In order to make the technical problems, technical solutions and beneficial effects to be solved by the embodiments of the present application more clear, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features.
[0053] It should be noted that the server is provided with a machine cover. Closing the machine cover can protect the precision components inside the server, and opening the machine cover can facilitate the use, maintenance and replacement of the precision components. Exemplarily, the precision components include circuit boards, chips, batteries, etc. The machine cover usually has dust and water protection functions. Through a sealing design or the use of special materials, it effectively prevents impurities such as dust and moisture from entering the interior of the device, keeps the internal environment clean and dry, and thus ensures the stable operation of the server.
[0054] In the actual application process, some servers need to record the information of opening the machine cover, which can not only enhance the security and traceability of the server, but also facilitate the user's management of the server.
[0055] Please refer to Figure 1 , Figure 1 shows a schematic diagram of the frame structure of the server provided in this embodiment. The server may include a chassis, an optical detection component 100, a controller 300, and a switch component 200. The switch component 200 is respectively connected to the optical detection component 100 and the controller 300. The chassis includes a box body and a machine cover 400 covering the opening of the box body. The optical detection component 100 and the controller 300 are both arranged inside the box body.
[0056] The following describes the optical detection component 100, the controller 300, and the switch component 200 involved in the embodiments of the present application.
[0057] The light detection component 100 may be an infrared light detection component 100 or other types of light detection components 100, which are not limited in the present application. The infrared light detection component 100 is generally characterized by emitting an infrared light signal and detecting the position state of the target object based on the reflection signal of the infrared light signal.
[0058] The controller 300 may be a CPLD (Complex Programmable Logic Device), an FPGA (Field-Programmable Gate Array), etc. The functions of the controller may include recording the opening time, opening times, opening time, closing time, etc. of the cover 400, which is not limited in the embodiments of the present application.
[0059] The switch component 200 may include an N-type metal-oxide-semiconductor field-effect transistor (NMOS), a P-type metal-oxide-semiconductor field-effect transistor (PMOS) or a triode, and may also include other circuits capable of collecting level signals, which is not limited in the embodiments of the present application.
[0060] In the examples of this application, please refer to Figure 2 , Figure 2 A schematic diagram of an application scenario of the server provided in this embodiment is shown; Figure 2 2a in FIG. 2 shows a schematic diagram of the cover 400 being closed. Figure 2 2b in the figure shows a schematic diagram of the cover 400 being opened. The optical detection component 100 can detect the cover status of the server. The cover status includes two types. When the cover 400 is open, the optical detection signal emitted by the optical detection component 100 along the target direction c reflects a weak or almost no reflection signal, and the cover status is open at this time; when the cover 400 is closed, the optical detection signal emitted by the optical detection component 100 along the target direction c reflects a strong reflection signal, and the cover status is closed at this time.
[0061] Specifically, the optical detection assembly 100 is used to emit an optical detection signal along a target direction c, and output a first signal based on the detection of the optical detection signal, wherein the target direction c is a direction toward the cover 400. That is, when the cover 400 of the server is opened, the optical detection signal outputs a first signal. In some embodiments, the optical detection assembly 100 can be powered by a second battery.
[0062] The switch assembly 200 can control the working state of the controller 300. There are two working states. When the cover state feedback by the light detection assembly 100 is that the cover is open, the switch assembly 200 makes the controller 300 enter the working state. At this time, the controller 300 records the open cover information of the cover 400. When the cover state feedback by the light detection assembly 100 is that the cover is closed, the switch assembly 200 makes the controller 300 enter the sleep or off state. At this time, the controller 300 does not participate in recording information.
[0063] The controller 300 is located inside the box, and the power supply end of the controller 300 is connected to the output end of the first battery. In this way, the controller 300 can be powered by the first battery.
[0064] Specifically, please refer to Figure 3 , Figure 3 shows the schematic diagram of the frame structure of the server provided in this embodiment; the switch assembly 200 is respectively connected to the light detection assembly 100, the controller 300 and the first battery. The switch assembly 200 conducts the first battery and the power supply end when receiving the first signal, and controls the second signal to be output to the detection end of the controller 300. The controller 300 records the open cover information of the server when detecting the second signal. That is to say, when the cover state feedback by the light detection assembly 100 is that the cover is open, or when the light detection assembly 100 outputs the first signal to the switch assembly 200, the switch assembly 200 conducts the circuit between the first battery and the controller 300 and controls the second signal to be output to the detection end of the controller 300. Further, the controller 300 gets powered, which can be understood as the controller 300 being in the "power-on state"; and at this time, the second signal can be output to the controller 300, and the controller 300 records the open cover information of the server when detecting the second signal.
[0065] It can be understood that only when the light detection assembly outputs the first signal will the first battery supply power to the controller, which is beneficial to improving the battery life performance of the first battery, and further beneficial to avoiding the situation that the open cover information cannot be recorded due to power failure. That is to say, when the cover 400 of the server is open, the light detection assembly outputs the first signal, and the switch assembly 200 responds to the first signal and conducts the connection between the first battery and the power supply end of the controller 300. Thus, the first battery supplies power to the controller, and at this time, the controller records the open cover information.
[0066] In some embodiments, the light detection assembly 100 is further configured to output a third signal based on the detection of the light detection signal when the cover 400 is closed; the switch assembly 200 disconnects the first battery and the power supply end when receiving the third signal.
[0067] It can be understood that when the cover 400 of the server is closed, the optical detection component 100 outputs a third signal to the switching component, and the switching component 200 disconnects the power supply terminal of the first battery from the controller 300. At this time, the first battery stops supplying power to the controller, and the controller stops recording the information of the opened cover. During the period when the cover is closed, the first battery does not need to supply power to the controller, so the battery life performance of the first battery can be increased.
[0068] Please continue to refer to Figure 3 and refer to Figure 4 for a detailed description of the server. Figure 4 FIG. shows a schematic circuit structure diagram of the server provided in this embodiment. In this embodiment, taking the controller 300 as a programmable logic device as an example, the server of this embodiment includes a chassis, an optical detection component 100, a controller 300, and a switching component 200.
[0069] The chassis includes a box body and a cover 400 covering the opening of the box body.
[0070] The optical detection component 100 is powered by a second battery. When the cover 400 of the server is opened, the optical detection component 100 outputs a first signal, and when the cover 400 of the server is closed, it outputs a third signal. Exemplarily, the first signal is a low-level signal and the third signal is a high-level signal; or the first signal is a high-level signal and the third signal is a low-level signal.
[0071] The switching component 200 is configured to receive the first signal or the third signal, and when receiving the first signal, conduct the power supply terminal of the first battery BAT to the controller 300, and control the second signal to be output to the detection terminal of the controller 300, and when receiving the third signal, disconnect the power supply terminal of the first battery BAT from the controller 300.
[0072] The power supply terminal of the controller 300 is connected to the output terminal of the first battery, and is configured to start recording the information of the opened cover of the server when detecting the second signal OPEN_DETECT. After the switching component 200 conducts the first battery to the controller 300 and controls the second signal to be output to the detection terminal of the controller 300, the first battery directly supplies power to the controller 300; the controller 300 can receive the second signal. Exemplarily, as Figure 4 shown in, at least one voltage dividing resistor R3 is provided between the signal source of the second signal and the controller 300. Arranging the voltage dividing resistor R3 can reduce the voltage of the second signal to a suitable range.
[0073] Since the first battery does not lose power when the server is powered off, even if the server loses power or is powered off, the server of this embodiment can still continuously record the information of the opened cover.
[0074] In some embodiments, the first battery is a detachable battery. It can be understood that when the first battery runs out of power periodically, the working performance of the first battery can be ensured by replacing the first battery with a new one or charging the first battery, thereby improving the stability of the detection of the opening of the machine cover 400.
[0075] In some embodiments, the first battery is a button battery. It can be understood that the button battery has a small volume and a small capacity, and is more suitable for the low-power application scenarios in the above embodiments.
[0076] In some embodiments, the first battery is the signal source of the second signal. In this way, the first battery can be reused as the power supply for the controller 300 and the signal source of the second signal, which is beneficial to reducing the complexity and cost of the circuit.
[0077] Please continue to refer to Figure 4 , the switch assembly 200 of this embodiment includes a first switching tube Q1. One end of the first switching tube Q1 is connected to the detection end of the controller 300, and the other end of the first switching tube Q1 is grounded; the output end of the optical detection assembly 100 is connected to the control end of the first switching tube Q1, and the first switching tube Q1 is used to disconnect when receiving the output of the first signal.
[0078] It should be explained that after the first switching tube Q1 is turned on, since the voltage is pulled low by grounding, the signal source of the second signal cannot output a high-level signal (second signal) to the controller 300 at this time. After the first switching tube Q1 is turned off, the signal source of the second signal can normally output a high-level signal (second signal) to the controller 300 at this time. In this way, the second signal can be received by the controller 300 as a high-level signal, so that the controller 300 can judge that the machine cover 400 has been opened, and then record the opening information.
[0079] In some embodiments, the first switching tube Q1 can be a triode, an NMOS tube or a PMOS tube.
[0080] Please continue to refer to Figure 4 , the switch assembly 200 of this embodiment includes a second switching tube Q2. The second switching tube Q2 is arranged between the first battery and the power supply end of the controller 300. The output end of the optical detection assembly 100 is connected to the control end of the second switching tube Q2, and the second switching tube Q2 is used to conduct when receiving the output of the first signal.
[0081] That is to say, the second switching tube Q2 can receive the first signal to conduct the connection between the first battery and the power supply end of the controller 300, so that when it is judged that the machine cover 400 is opened, the controller 300 can record the opening information. And the second switching tube Q2 can also receive the third signal to disconnect the connection between the first battery and the power supply end of the controller 300.
[0082] In some embodiments, the second switching transistor Q2 can be a triode, an NMOS transistor, or a PMOS transistor.
[0083] In some embodiments, the first switching transistor Q1 is an NMOS transistor (N-channel MOS transistor), and the second switching transistor Q2 is a PMOS transistor (P-channel MOS transistor). When the first signal is a low-level signal, the first switching transistor Q1 is turned off, and the second switching transistor Q2 is turned on.
[0084] Please continue to refer to Figure 4 , the server of this embodiment has a power input terminal, and the power input terminal and the first battery are commonly connected to the controller 300; when the server is powered on, the power input terminal supplies power to the controller 300, and when the server is powered off and the second switching transistor Q2 receives the first signal, the first battery supplies power to the controller 300.
[0085] It can be understood that the server being powered off can be caused by power failure or power loss. When the server is powered on, it can supply power to the controller 300 through the power input terminal to meet the working requirements of the controller 300. However, when the server is powered off, the first battery can be used as a backup power supply to supply power to the controller 300. At this time, the controller 300 can still record the opening information of the machine cover 400, which is beneficial to improving the stability of opening detection.
[0086] In some embodiments, when the voltage of the power input terminal is insufficient, the first battery can also supply power to the controller 300. It can be understood that due to the insufficient input voltage of the power input terminal of the server, although the controller 300 can obtain a certain amount of electrical energy, it is not enough to meet the needs of the controller 300 for recording the opening information. At this time, the first battery can be used to supply power to the controller 300 to meet the needs of the controller 300 for recording the opening information, which is beneficial to improving the stability of opening detection.
[0087] Please continue to refer to Figure 4 , a first diode D1 is provided between the second switching transistor Q2 and the controller 300 of this embodiment, and the conduction direction of the first diode D1 is from the signal output end of the second switching transistor Q2 to the controller 300;
[0088] A second diode D2 is provided between the power input terminal and the controller 300, and the conduction direction of the second diode D2 is from the power input terminal to the controller 300.
[0089] It should be explained that the first diode D1 can prevent the current from flowing back to the first battery, which is beneficial to protecting the first battery; the second diode D2 can prevent the current from flowing back to the power input terminal of the server, which is beneficial to protecting the server.
[0090] In some embodiments of the present application, the first switching transistor Q1 is also used to conduct when receiving the third signal (corresponding to the closed cover state). At this time, although a high level is still output under the action of the power input terminal, the high level will directly flow to the ground through the first switching transistor Q1, and the signal received by the controller 300 is a low level, that is, the controller 300 cannot receive the second signal at this time. By setting the first switching transistor Q1 to disconnect when receiving the first signal (corresponding to the open cover state), the second signal (high level) can be directly output to the controller 300 at this time.
[0091] Please refer to Figure 5 , Figure 5 which shows a schematic circuit diagram of the optical detection component 100 provided in this embodiment. Figure 5 In [the figure], ST188 is an infrared photoelectric tube, V_REF is a reference signal, the first battery is denoted as V_BAT, and OPEN_DETECT_N is the output signal of the infrared detection component (i.e., the aforementioned first signal or third signal).
[0092] The optical detection component 100 of this embodiment includes an infrared photoelectric tube and a comparator. The infrared photoelectric tube is used to emit a light detection signal and output a corresponding detection signal based on the reflection degree of the light detection signal. The comparator has a first input terminal, a second input terminal, and an output terminal. The first input terminal is used to access the reference signal, the second input terminal is connected to the output terminal of the infrared photoelectric tube, and the comparator is used to output a first signal or a third signal based on the comparison result between the reference signal and the detection signal. Among them, both the infrared photoelectric tube and the comparator are powered by the second battery.
[0093] It can be understood that the comparator can output two signals, high and low, to distinguish between the closed cover state and the open cover state. And even when the power input terminal of the server is shut down, the infrared photoelectric tube and the comparator can still work properly through the second battery.
[0094] In some embodiments, the optical detection component 100 further includes a reference signal generation unit. The reference signal generation unit includes a third diode D3 and a first resistor. The anode of the third diode D3 is grounded, the cathode of the third diode D3 is connected to the first resistor, and the first resistor is also connected to the second battery; the third diode D3 also has an output terminal for outputting the reference signal.
[0095] In some embodiments, please refer to Figure 6 , Figure 6 which shows a schematic circuit diagram of the server provided in this embodiment. The second battery and the first battery in this embodiment are the same battery. It can be understood that multiplexing the second battery and the first battery as the same battery is beneficial to saving space inside the server and also beneficial to reducing the circuit cost.
[0096] In some other embodiments, please continue to refer to Figure 4 , in this embodiment, the second battery and the first battery are different batteries. It can be understood that since the first battery and the second battery are different batteries, it is beneficial to improve the endurance performance of each of the first battery and the second battery.
[0097] In some embodiments, the opening information of the server includes at least one of the following information: opening time, closing time, duration of the current opening, and number of openings.
[0098] Please continue to refer to Figure 4 and refer to Figure 7 , Figure 7 which shows a schematic diagram of the working steps of the server provided in this embodiment. Figure 4 and Figure 6 the OPEN_DETECT_N in corresponds to the output signal of the optical detection component (i.e., the aforementioned first signal or third signal), OPEN_DETECT corresponds to the second signal, and the first battery is V_BAT.
[0099] In some embodiments, the opening information includes: the opening time and closing time of the current opening event; the duration of the current opening can be obtained by performing a difference operation on the closing time and opening time of the current opening time.
[0100] The server further includes a register 500, and the controller 300 is connected to the register 500;
[0101] The controller is configured to: in an opening event, when the second signal is first detected, store the opening time of the current opening event in the register 500.
[0102] In some embodiments of the present application, the server further includes a clock chip 600, and the controller 300 is connected to the clock chip 600;
[0103] The controller is configured to: obtain real-time first time data from the clock chip 600 and obtain real-time time data from the clock chip 600 as second time data every preset duration; specifically, the controller overwrites the second time data obtained in the previous period with the time data of the current period to use the time data of the current period as the updated new second time data.
[0104] The register 500 is configured to store the first time data as the opening time of the current opening event, and store the latest second time data as the closing time of the current opening event. Specifically, the latest second time data refers to the time data finally obtained by the controller before power-off, and is also the second time data finally updated by the controller before power-off.
[0105] It should be explained that the opening time is the time point when the current opening event starts, and the closing time is the time point when the current opening time ends. The preset duration can be 500 ms to ensure the accuracy of the closing time. It should be noted that in other embodiments, other durations can also be set according to actual requirements.
[0106] It can be understood that by setting the clock chip 600 to obtain the time data when the opening event occurs and ends, and by setting the register 500 to store these time data as the opening time and the closing time, the recording of the switch information is realized in this way.
[0107] In some embodiments, a third battery is used to supply power to the clock chip alone.
[0108] In some embodiments, the third battery is the same battery as the first battery and the second battery.
[0109] It can be understood that multiplexing the third battery, the second battery, and the first battery as the same battery is beneficial to saving space inside the server and also beneficial to reducing the circuit cost.
[0110] In other embodiments, the third battery is a different battery from the first battery and the second battery. It can be understood that since the first battery, the second battery, and the third battery are different batteries, it is beneficial to improve the endurance performance of the first battery, the second battery, and the third battery respectively.
[0111] Please continue to refer to Figure 4 and Figure 7 , the opening information further includes: the cumulative number of opening times;
[0112] The controller is further configured to: in an opening event, when the second signal is first detected, increment by 1 the cumulative number of opening times stored in the register.
[0113] In some embodiments of the present application, please continue to refer to Figure 4 , when the power input terminal of the server is connected, the controller 300 can be directly powered by the power input terminal of the server. The first battery supplies energy to the infrared detection component (corresponding to the light detection component 100). When the machine cover 400 is in the open state, the infrared detection component outputs a first signal to the first switching tube Q1 and the second switching tube Q2. At this time, the first switching tube Q1 is disconnected, and the second switching tube Q2 is turned on. The power input terminal of the server continues to supply power to the controller 300 and provides a second signal to the controller 300.
[0114] When the server is powered off, the power input terminal of the server cannot supply power to the controller 300. When the cover 400 is in the closed state, the infrared detection component outputs a third signal to the first switching transistor Q1 and the second switching transistor Q2. At this time, the first switching transistor Q1 is turned on, the second switching transistor Q2 is turned off, the first battery cannot supply power to the controller 300, and the second signal cannot be output to the controller 300.
[0115] When the cover 400 is in the open state, the infrared detection component outputs a first signal to the first switching transistor Q1 and the second switching transistor Q2. At this time, the first switching transistor Q1 is turned off, the second switching transistor Q2 is turned on, the first battery continues to supply power to the controller 300, and provides the second signal to the controller 300.
[0116] The working principle of the server in the embodiment of the present application is as follows: When the server is powered off, the working process is as follows:
[0117] After the user opens the cover 400 of the server, the impedance of the infrared phototube in the optical detection component 100 becomes larger and exceeds the reference voltage, and the infrared detection component outputs a first signal with a low level.
[0118] The second switching transistor Q2 is turned on, and the first battery outputs a power supply signal to the controller 300 through the second switching transistor Q2 and the first diode D1, and supplies power to the controller 300, the clock chip and the register.
[0119] At the same time, the first battery also outputs a high-level second signal through the second switching transistor Q2, the first diode D1 and the voltage dividing resistor R3.
[0120] The controller 300 accesses the clock chip through the I2C path to obtain time data, confirms the real-time time point, and writes it into the register. Among them, the controller 300 writes the cover opening event and the real-time time data (the first time data) of the cover opening into the first address of the register through the I2C path.
[0121] Every preset duration of 500 ms, the controller 300 synchronously refreshes the real-time time data and the cover closing event to the second address of the written register as the cover closing time. Until the cover closing event is triggered (this cover opening event ends), the real-time time data (the second time data) recently written into the second address is used as the cover closing time.
[0122] After the next cover opening event is triggered, the controller 300 will first access the information in the register to confirm which address the register has been written to. Exemplarily, when the opening information of the previous cover opening time has been recorded in the first address and the second address, the opening information of this cover opening event is written into the third address and the fourth address of the register.
[0123] After power supply is restored at the power input end of the server, the controller 300 transmits the open cover information to the host computer system, which can be used to trigger an alarm event.
[0124] In the above embodiments, the descriptions of the various embodiments each have their own emphases. For parts not described or recorded in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0125] In some embodiments, the register 500 may also be the register 500 inside the controller 300. The register 500 is arranged inside the controller 300, which is beneficial to improving the integration degree and also beneficial to improving the transmission efficiency between the register 500 and other components inside the controller 300.
[0126] The above-described embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included within the protection scope of the present application.
Claims
1. A server, characterized in that, Comprising: A chassis, the chassis including a box body and a machine cover covering the opening of the box body; An optical detection component, disposed inside the box body, the optical detection component emitting an optical detection signal along a target direction, the target direction being the direction towards the machine cover, the optical detection component being configured to output a first signal based on the detection of the optical detection signal when the machine cover is opened; A controller, located inside the box body, the power supply terminal of the controller being connected to the output terminal of a first battery; A switch component, respectively connected to the optical detection component, the controller, and the first battery; the switch component conducts the first battery and the power supply terminal and controls a second signal to be output to the detection terminal of the controller when receiving the first signal, and the controller records the opening information of the server when detecting the second signal.
2. The server according to claim 1, wherein The switch component includes a first switching tube, one end of the first switching tube being connected to the detection terminal of the controller, and the other end of the first switching tube being grounded; The output terminal of the optical detection component is connected to the control terminal of the first switching tube, and the first switching tube is configured to disconnect when receiving the output of the first signal.
3. The server according to claim 2, wherein The first battery is the signal source of the second signal.
4. The server according to claim 3, characterized in that The server further includes a voltage-dividing resistor, one end of the voltage-dividing resistor being connected to the first battery, and the other end of the voltage-dividing resistor being connected between the first switching tube and the detection terminal of the controller.
5. The server according to claim 2, characterized in that, The switch component includes a second switching tube, the second switching tube being disposed between the first battery and the power supply terminal of the controller, the output terminal of the optical detection component being connected to the control terminal of the second switching tube, and the second switching tube being configured to conduct when receiving the output of the first signal.
6. The server according to claim 5, wherein The server has a power input terminal, and the power input terminal and the first battery are commonly connected to the controller; In the state where the server is powered on, the power input terminal supplies power to the controller, and in the state where the server is powered off and the second switching tube receives the first signal, the first battery supplies power to the controller.
7. The server according to any one of claims 1 to 6, characterized in that, The optical detection component is further configured to output a third signal based on the detection of the optical detection signal when the machine cover is closed; the switch component disconnects the first battery and the power supply terminal when receiving the third signal.
8. The server according to any one of claims 1 to 6, characterized in that, The optical detection component includes: An infrared photoelectric tube, configured to emit the optical detection signal and output a corresponding detection signal based on the reflection degree of the optical detection signal; A comparator, having a first input terminal, a second input terminal, and an output terminal, the first input terminal being configured to access a reference signal, the second input terminal being connected to the output terminal of the infrared photoelectric tube, and the comparator being configured to output the first signal based on the comparison result between the reference signal and the detection signal; Wherein, both the infrared photoelectric tube and the comparator are powered by a second battery.
9. The server according to any one of claims 1 to 6, characterized in that, The opening information includes: the opening time and closing time of the current opening event; The server further includes a register, and the controller is connected to the register; The controller is configured to: store the opening time of the current opening event in the register when the second signal is first detected during an opening event.
10. The server according to claim 9, characterized in that, The server further includes a clock chip, and the controller is connected to the clock chip; The controller is configured to: obtain real-time first time data from the clock chip and obtain real-time time data as second time data from the clock chip every preset duration; The register is configured to store the first time data as the opening time of the current opening event and store the latest second time data as the closing time of the current opening event.