CN116539992A - Storage device in-place stable state detection device, method, logic module and medium - Google Patents

Storage device in-place stable state detection device, method, logic module and medium Download PDF

Info

Publication number
CN116539992A
CN116539992A CN202310514378.2A CN202310514378A CN116539992A CN 116539992 A CN116539992 A CN 116539992A CN 202310514378 A CN202310514378 A CN 202310514378A CN 116539992 A CN116539992 A CN 116539992A
Authority
CN
China
Prior art keywords
detected
storage device
signal
place
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310514378.2A
Other languages
Chinese (zh)
Inventor
张晓梅
肖朝晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Dongqin Technology Co ltd
Original Assignee
Guangdong Dongqin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Dongqin Technology Co ltd filed Critical Guangdong Dongqin Technology Co ltd
Priority to CN202310514378.2A priority Critical patent/CN116539992A/en
Publication of CN116539992A publication Critical patent/CN116539992A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V9/00Prospecting or detecting by methods not provided for in groups G01V1/00 - G01V8/00
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • Geophysics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a device, a method, a logic module and a medium for detecting a bit stable state of storage equipment. The device comprises: a logic module; the logic module is provided with a first interface and a second interface; the first interface is used for being connected with a grounding pin of the storage device to be detected; the second interface is used for being connected with the equipment activity signal pin of the storage equipment to be detected; the logic module is used for determining the in-place stable state of the storage device to be detected according to the first signal accessed by the first interface or according to the first signal and the second signal accessed by the second interface; the in-place stable state comprises whether the storage device to be detected is plugged in place or not and whether the storage device to be detected is plugged in place or not. The device solves the problem that whether the storage equipment such as the hard disk cannot be detected to be inserted stably in the prior art, and can improve the reliability of the storage equipment when carrying out data transmission by identifying the inserting stability state of the storage equipment.

Description

Storage device in-place stable state detection device, method, logic module and medium
Technical Field
The present disclosure relates to detection technologies, and in particular, to a device, a method, a logic module, and a medium for detecting an in-place stable state of a storage device.
Background
With the development of big data and cloud computing, the capacity requirement of organizations such as enterprises, scientific research institutions and the like on storage devices is increasingly large, and a hard disk is also widely focused in the industry as one of the types of storage devices.
Generally, before data transmission and storage are performed on a hard disk, the in-place condition of the hard disk needs to be detected, so as to ensure that the subsequent data transmission, namely storage, can be performed. In the actual use process, a certain insertion time is required for hard disk insertion, in the process, the hard disk is likely to be inserted in place but not stable, and in the process, if equipment such as a CPU and the like performs data transmission with the hard disk, errors can be caused in acquisition or output of some transmission data.
However, the current detection technology for the hard disk can only identify whether the hard disk is in place, and cannot detect whether the hard disk is inserted stably.
Disclosure of Invention
The application provides a storage device in-place stable state detection device, method, logic module and medium, which are used for solving the problem that whether storage devices such as hard disks cannot be detected to be inserted stably in the prior art, and the reliability of the storage device in data transmission can be improved by identifying the stable insertion state of the storage device.
In one aspect, the present application provides a storage device in-place steady state detection apparatus, including: a logic module; the logic module is provided with a first interface and a second interface;
the first interface is used for being connected with a grounding pin of the storage device to be detected;
the second interface is used for being connected with an equipment activity signal pin of the storage equipment to be detected;
the logic module is used for determining the in-place stable state of the storage device to be detected according to a first signal accessed by the first interface or according to a second signal accessed by the first signal and the second interface; the in-place stable state comprises whether the storage device to be detected is plugged in place or not and whether the storage device is plugged in place or not is stable.
In the technical scheme, the logic module obtains the plugging in-place detection condition of the storage device to be detected by accessing a first signal corresponding to the grounding pin of the storage device to be detected and accessing a second signal corresponding to the equipment activity signal pin of the storage device to be detected, and based on the detection result of the first signal; furthermore, the plugging stable detection condition of the storage device to be detected is obtained through the detection results of the first signal and the second signal, so that the reliability of the storage device to be detected in the subsequent data transmission process can be improved.
Optionally, the logic module is specifically configured to:
determining whether the storage device to be detected is spliced in place according to the first signal;
and when the storage device is plugged in place, determining whether the storage device to be detected is stable in plugging according to the second signal.
Optionally, the detection device further includes: the first end of the pull-up resistor is connected with the power supply, and the second end of the pull-up resistor is connected with the first interface;
the logic module determines whether the storage device to be detected is spliced in place according to the first signal, and comprises the following steps:
detecting a level state of the first signal;
if the level state of the first signal is a high level state, determining that the storage device to be detected is not spliced in place; or alternatively, the process may be performed,
if the level state of the first signal is changed from the high level state to the low level state or is in a continuous low level state, the memory device to be detected is determined to be plugged in place.
Optionally, when the logic module is plugged in place, determining whether the storage device to be detected is plugged stably according to the second signal includes:
if the storage device to be detected is spliced in place and a preset pulse sequence appears in the second signal within a preset time period, the storage device to be detected is determined to be stably spliced; or alternatively, the process may be performed,
if the storage device to be detected is plugged in place and the second signal does not have a preset pulse sequence in a preset time period, determining that the storage device to be detected is plugged in place but not plugged stably.
Optionally, the logic module includes a CPLD chip; correspondingly, the first interface is a first GPIO pin of the CPLD chip, and the second interface is a second GPIO pin of the CPLD chip.
Optionally, the detection device further includes: a prompting module; the prompt module is connected with the logic module;
the logic module is used for outputting an in-place stable state signal of the storage device to be detected;
and the prompt module is used for generating a plugging prompt signal of the storage device to be detected according to the in-place stable state signal.
Optionally, the prompt module is a BMC chip; the BMC chip is specifically used for: and when the storage equipment to be detected is not plugged stably, generating a plugging prompt signal to prompt a user to plug the storage equipment to be detected again.
In the technical scheme, the logic module is connected with a first signal corresponding to a grounding pin of the storage device to be detected and a second signal corresponding to an equipment activity signal pin of the storage device to be detected, detects the level state of the first signal, and determines the plugging in-place detection condition of the storage device to be detected based on the level state; further, when the storage device to be detected is determined to be plugged in place based on the first signal, the pulse sequence appearing in the second signal in the preset time period is detected, and the stable plugging detection condition of the storage device to be detected is determined based on whether the preset pulse sequence appears, so that the technical effect of improving the reliability of the storage device to be detected in the subsequent data transmission process is further achieved.
In another aspect, the present application further provides an electronic device, including: the detection apparatus of any one of the above embodiments and at least one storage device to be detected.
In the technical scheme, the detection device included in the electronic equipment acquires signals corresponding to the grounding pin and signals corresponding to the equipment activity signal pin in the storage equipment to be detected through different interfaces, and obtains the plugging in-place stability condition of the storage equipment to be detected by detecting the two signals, so that the technical effect of improving the reliability of the storage equipment to be detected in the subsequent data transmission process is realized.
On the other hand, the application also provides a method for detecting the in-place stable state of the storage device, which is applied to a logic module, wherein the logic module is provided with a first interface and a second interface; the first interface is used for being connected with a grounding pin of the storage device to be detected, and the second interface is used for being connected with an equipment activity signal pin of the storage device to be detected; the method comprises the following steps:
detecting a first signal accessed by a first interface and a second signal accessed by a second interface;
determining the in-place stable state of the storage device to be detected according to the first signal or according to the first signal and the second signal; the in-place stable state comprises whether the storage device to be detected is plugged in place or not and whether the storage device is plugged in place or not is stable.
In the technical scheme, the logic module obtains the plugging in-place detection condition of the storage device to be detected by accessing a first signal corresponding to the grounding pin of the storage device to be detected and accessing a second signal corresponding to the equipment activity signal pin of the storage device to be detected, and based on the detection result of the first signal; furthermore, the plugging stable detection condition of the storage device to be detected is obtained through the detection results of the first signal and the second signal, so that the reliability of the storage device to be detected in the subsequent data transmission process can be improved.
Optionally, determining the in-place stable state of the storage device to be detected according to the first signal accessed by the first interface or according to the first signal and the second signal accessed by the second interface includes:
determining whether the storage device to be detected is spliced in place according to the first signal;
and when the storage device is plugged in place, determining whether the storage device to be detected is stable in plugging according to the second signal.
Optionally, the logic module is disposed on the device for detecting a stable state of the storage device in place, and the device further includes: the first end of the pull-up resistor is connected with the power supply, and the second end of the pull-up resistor is connected with the first interface;
Determining whether the storage device to be detected is plugged in place according to the first signal comprises:
detecting a level state of the first signal;
if the level state of the first signal is a high level state, determining that the storage device to be detected is not spliced in place; or alternatively, the process may be performed,
if the level state of the first signal is changed from the high level state to the low level state or is in a continuous low level state, the memory device to be detected is determined to be plugged in place.
Optionally, when the storage device is plugged in place, determining whether the storage device to be detected is plugged stably according to the second signal includes:
if the storage device to be detected is spliced in place and a preset pulse sequence appears in the second signal within a preset time period, the storage device to be detected is determined to be stably spliced; or alternatively, the process may be performed,
if the storage device to be detected is plugged in place and the second signal does not have a preset pulse sequence in a preset time period, determining that the storage device to be detected is plugged in place but not plugged stably.
Optionally, the apparatus further comprises: a prompting module; correspondingly, the method further comprises the steps of:
outputting an in-place stable state signal of the storage device to be detected based on the logic module;
and generating a plugging prompt signal of the storage device to be detected according to the in-place stable state signal based on the prompt module.
Optionally, the prompt module is a BMC chip; the method further comprises the steps of:
and generating a plugging prompt signal based on the BMC chip when the storage device to be detected is not plugged stably so as to prompt a user to plug the storage device to be detected again.
On the other hand, the application also provides a logic module for executing the method for detecting the in-place stable state of the storage device, wherein the logic module is provided with a first interface and a second interface, the first interface is used for being connected with a grounding pin of the storage device to be detected, and the second interface is used for being connected with an equipment activity signal pin of the storage device to be detected; comprising the following steps:
the signal detection unit is used for detecting a first signal accessed by the first interface and a second signal accessed by the second interface;
the state detection unit is used for determining the in-place stable state of the storage device to be detected according to the first signal or according to the first signal and the second signal; the in-place stable state comprises whether the storage device to be detected is plugged in place or not and whether the storage device is plugged in place or not is stable.
In the technical scheme, the logic module obtains the plugging in-place detection condition of the storage device to be detected by accessing a first signal corresponding to the grounding pin of the storage device to be detected and accessing a second signal corresponding to the equipment activity signal pin of the storage device to be detected, and based on the detection result of the first signal; furthermore, the plugging stable detection condition of the storage device to be detected is obtained through the detection results of the first signal and the second signal, so that the reliability of the storage device to be detected in the subsequent data transmission process can be improved.
Optionally, the state detection unit is specifically configured to:
determining whether the storage device to be detected is spliced in place according to the first signal;
and when the storage device is plugged in place, determining whether the storage device to be detected is stable in plugging according to the second signal.
Optionally, the detection device further includes: the first end of the pull-up resistor is connected with a power supply, and the second end of the pull-up resistor is connected with the first interface; the state detection unit is specifically configured to:
detecting a level state of the first signal;
if the level state of the first signal is a high level state, determining that the storage device to be detected is not spliced in place; or alternatively, the process may be performed,
and if the level state of the first signal is converted from the high level state to the low level state or is in a continuous low level state, determining that the storage device to be detected is spliced in place.
Optionally, the state detection unit is specifically configured to:
if the storage device to be detected is spliced in place and a preset pulse sequence appears in the second signal within a preset time period, determining that the storage device to be detected is spliced stably; or alternatively, the process may be performed,
if the storage device to be detected is plugged in place and the second signal does not have a preset pulse sequence in a preset time period, determining that the storage device to be detected is plugged in place but not plugged stably.
Optionally, the logic module includes a CPLD chip; correspondingly, the first interface is a first GPIO pin of the CPLD chip, and the second interface is a second GPIO pin of the CPLD chip.
Optionally, the apparatus further includes: a prompting module; the prompt module is connected with the logic module;
the logic module is used for outputting an in-place stable state signal of the storage device to be detected;
and the prompt module is used for generating a plugging prompt signal of the storage device to be detected according to the in-place stable state signal.
In another aspect, the present application further provides a logic module, including: a memory, a processor;
a memory for storing processor-executable instructions;
the processor executes executable instructions stored in the memory to implement the method for detecting a bit stable state of the storage device according to the above embodiment.
On the other hand, the application further provides a computer readable storage medium, wherein computer executable instructions are stored in the computer readable storage medium, and the computer executable instructions are used for realizing the method for detecting the bit stable state of the storage device according to the embodiment when being executed by the processor.
In another aspect, an embodiment of the present application further provides a computer program product including computer instructions that, when executed by a processor, implement each step in the information reminding method in the foregoing embodiment.
According to the technical scheme, the logic module obtains the plugging in-place detection condition of the storage device to be detected by accessing a first signal corresponding to the grounding pin of the storage device to be detected and accessing a second signal corresponding to the equipment activity signal pin of the storage device to be detected, and based on the detection result of the first signal; furthermore, the plugging stable detection condition of the storage device to be detected is obtained through the detection results of the first signal and the second signal, so that the reliability of the storage device to be detected in the subsequent data transmission process can be improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is an application scenario diagram of a storage device in-place stability detection device provided by the present application;
FIG. 2 is a schematic structural diagram of a device for detecting a bit stable state of a memory device according to an exemplary embodiment of the present application;
FIG. 3 is a schematic structural diagram of a device for detecting a bit stable state of a memory device according to another exemplary embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for detecting a plugging bit state of a storage device according to another exemplary embodiment of the present application;
FIG. 5 is a flowchart of a method for detecting a stable state of plugging of a storage device according to another exemplary embodiment of the present application;
FIG. 6 is a schematic structural diagram of a device for detecting a bit stable state of a memory device according to another exemplary embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device provided in the present application;
fig. 8 is a schematic structural diagram of a device for detecting a bit stable state of a storage device according to the present preferred exemplary embodiment;
fig. 9 is a flowchart of a CPLD in-place steady state detection process according to the present preferred exemplary embodiment;
fig. 10 is a flowchart of another CPLD bit steady state detection procedure according to the present preferred exemplary embodiment;
FIG. 11 is a flowchart of a method for detecting a bit steady state of a memory device according to another exemplary embodiment;
FIG. 12 is a schematic diagram of a logic module according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of another logic module according to an embodiment of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
Generally, before data transmission and storage are performed on a hard disk, the in-place condition of the hard disk needs to be detected, so as to ensure that the data transmission and storage can be performed subsequently. In the actual use process, a certain insertion time is required for hard disk insertion, in the process, the hard disk is likely to be inserted in place but not stable, and in the process, if equipment such as a CPU and the like performs data transmission with the hard disk, errors can be caused in acquisition or output of some transmission data.
However, the existing hard disk detection technology can only identify whether the hard disk is in place or not, and cannot detect whether the hard disk is inserted stably or not.
Aiming at the technical problems, the embodiment of the application provides a device, a method, a logic module and a medium for detecting the in-place stable state of storage equipment, which aim to solve the problem that whether the storage equipment such as a hard disk is stable or not can not be detected in the prior art, and the reliability of the storage equipment in data transmission can be improved by identifying the stable state of the storage equipment. The technical conception of the application is as follows: the logic module in the detection device receives detection signals of the grounding pin and the equipment activity signal pin of the storage equipment to be detected through different interfaces respectively, and then, whether the storage equipment to be detected is plugged in place or not and whether the storage equipment to be detected is plugged in place or not is determined to be stable or not according to the signals transmitted by the grounding pin and the signals transmitted by the equipment activity signal pin, so that the on-site stable state of the storage equipment to be detected is detected by detecting the signals of the two pins of the storage equipment to be detected, and the reliability of the subsequent storage equipment in the data transmission and storage processes is improved.
Fig. 1 is an application scenario diagram of a storage device in-place stability detection device provided by the application. As shown in fig. 1, includes: the device comprises a detection device and a storage device to be detected, wherein the detection device comprises a logic module, at least two interfaces are arranged in the logic module, specifically, a first signal corresponding to a grounding pin in the storage device to be detected is accessed through a preset first interface, and a second signal corresponding to an equipment activity signal pin in the storage device to be detected is accessed through a preset second interface, and then the in-place stable state of the storage device to be detected is determined according to the first signal accessed by the first interface or according to the first signal accessed by the first interface and the second signal accessed by the second interface; the in-place stable state comprises whether the storage device to be detected is plugged in place or not and whether the storage device is plugged in place or not is stable. Specifically, the plugging in-place state of the storage device to be detected can be determined according to the first signal; and when the storage equipment to be detected is in the plugging position, determining the plugging stable state of the storage equipment to be detected through the second signal accessed through the second interface.
It should be noted that, in the logic module in the embodiment of the present application, a plurality of interfaces may be included, and the interface for accessing the first signal and the second signal may be any interface for implementing signal input/output, which is not limited. Optionally, in the case that the storage device to be detected includes a plurality of ground pins, the interface of the logic module may be connected with a signal of any ground pin in the storage device to be detected, so as to obtain a first signal in the storage device to be detected.
Fig. 2 is a schematic structural diagram of a device for detecting a bit stable state of a storage device according to an exemplary embodiment of the present application. As shown in fig. 2, the detection device 1 provided in the present application includes: a logic module 11; the logic module 11 is provided with a first interface and a second interface; the first interface is used for being connected with a grounding pin of the storage device 2 to be detected; the second interface is used for being connected with the equipment activity signal pin of the storage equipment 2 to be detected; the logic module 11 is configured to determine, according to a first signal accessed by the first interface, or according to the first signal and a second signal accessed by the second interface, a stable state of the storage device 2 to be detected in place; the stable state of the bit includes whether the storage device 2 to be detected is plugged in place and whether the plugging is stable when the storage device is plugged in place.
The detection device 1 may be a board card or an integrated circuit chip having signal access and signal detection functions. Optionally, the detecting device 1 may be an external single device, or may be a detecting device 1 built in a preset electronic device or a server, and further, the detecting device 1 is connected with a preset pin of the storage device 2 to be detected through a preset interface, so as to obtain a corresponding detection signal, and realize detection of an in-place stable state of the storage device 2 to be detected. Accordingly, the logic module 11 may be a circuit module or a logic chip having a logic processing function. It should be noted that, in order to realize whether the storage device 2 to be detected is in place or not and whether the storage device 2 to be detected is stable, the logic module 11 in the present application may be provided with a plurality of interfaces, that is, signals corresponding to different pins of the storage device 2 to be detected may be respectively accessed. Specifically, the number of interfaces may be determined according to the number of pins to be detected in the storage device 2 to be detected.
In this embodiment of the present application, the storage device 2 to be detected may be a storage device disposed in an electronic device or a server, or may be a storage device that is separately external and may be connected to the electronic device or the server, so as to store data generated by the electronic device or the server. It should be noted that, the storage device 2 to be detected in the embodiment of the present application is a storage device using a preset interface protocol, for example, the preset interface protocol may be U.2 (SFF-8639) interface protocol, m.2 interface protocol, SAS (Serial Attached SCSI, serial attached SCSI interface) protocol, SATA (Serial Advanced Technology Attachment, serial advanced technology attachment, a serial hardware driver interface based on industry standard) protocol, and an equal interface protocol. Optionally, on the basis of the above interface protocol, the storage device may be an HDD (Hard Disk Drive) or an SSD (Solid State Disk or Solid State Drive, solid State Disk) using any of the above protocols. On this basis, the pins in the storage device 2 to be detected may be a preset ground pin and a device active signal pin in the hard disk power interface, and signals of the ground pin and the device active signal pin are transmitted through the interface of the logic module 11, so that the logic module 11 can detect the in-place stable state of the storage device 2 to be detected according to the signals of the two pins.
In an alternative embodiment, in order to enable the storage device 2 to be detected to transmit signals of the ground pin and the device active signal pin to the logic module 11, interfaces for respectively accessing the two signals, namely a first interface and a second interface, are required to be set in the logic module 11, and the first interface is correspondingly used for being connected with the ground pin to enable the first signal corresponding to the ground pin to be accessed; the second interface is used for being connected with the equipment activity signal pin so as to realize accessing a second signal corresponding to the equipment activity signal pin. Of course, in other embodiments, if it is determined that the signals of the two pins are signals transmitted at different times, only one interface may be provided in the logic module 11, in other words, the first interface and the second interface are the same interface. Specifically, the interface is used for being respectively connected with the two pins to realize that the first signals and the second signals respectively corresponding to the two pins are respectively connected at different moments.
In the application, the logic module 11 detects a first signal corresponding to the first interface access grounding pin, and uses the obtained detection result as a prsnt# (in-place) detection result of the storage device 2 to be detected, so as to realize detection of the in-place plugging state of the storage device 2 to be detected.
Alternatively, a plurality of ground pins may be preset in the storage device. Taking the storage device 2 to be detected as a SATA hard disk as an example, the hard disk includes a power interface for obtaining power for the device, and a data interface for exchanging data with a motherboard and other components of the electronic device or the server.
For example, a schematic diagram of the definition of the pin signals of the pins of the power interface and the data interface in the SATA hard disk can be seen in table 1.
In table 1, the data interface (Signal Segment) includes 7 pins.
Specifically, the grounding pins S1, S4 and S7 are generally connected with the negative electrode; s2, a positive signal pin is sent to data; s3, a negative signal pin is sent to the data; s5, a negative signal pin is received for data; s6, a data receiving positive electrode signal pin.
In Table 1, the Power Segment includes 15 pins.
Specifically, P1-P2 are positive power supply pins, and can be connected with a low-voltage power supply; p3 is DEVSLP e Or PWDIS e The pins can manage the access and the output of the power supply; P1-P6 are grounding pins, which are generally connected with the negative electrode; P7-P9 are positive power supply pins, which can be connected with a direct current 5V power supply; p10 and P12 are grounding pins, which are generally connected with the negative electrode; p11 is a reserved pin, and can be connected with any signal in DAS, DSS, DHU; P13-P15 are positive power pins, which can be connected with a direct current 12V power supply.
Table 1SATA interface pin signal definition table
Based on the above, the ground pin of the first signal to be detected may be any one of the signals P4-P6, P10 and P12 of the power interface, so the logic module 11 in the present application may detect the signal corresponding to any one of the ground pins. Preferably, based on the position of each ground pin in the power interface, the first interface of the logic module 11 in the embodiment of the present application may be connected to the P4 ground pin to obtain the first signal corresponding to the ground pin.
In the prior art, the SATA hard disk is further disposed on a reserved pin, and the function thereof depends on a specific application scenario and implementation. Typically, this pin is a P11 pin, and the function of this pin is generally defined by the designer according to the external device. In some special cases, the P11 pin may also be used to perform certain specific functions, such as charging, etc. In general, the specific function of the P11 pin is determined by the actual application and hardware design.
In practice, the P11 pin may be configured as a Device Activity Signal (device active signal, DAS) signal. In particular, the signal indicates whether the hard disk drive is in use. When the hard disk drive is in use, the signal is in an active state, and otherwise, the signal is in an inactive state. However, in the prior art, the state of the pin can only determine whether the storage device 2 to be detected is in place, and cannot determine whether the plugging is stable.
Therefore, when the logic module 11 in the application has determined that the storage device 2 to be detected has been plugged in place through the first signal, the logic module can detect through the second signal corresponding to the active signal pin of the second interface access device, and the obtained detection result is used as a plug stable detection result of the detection storage device; and further, the first signal accessed according to the first interface or the second signal accessed according to the first signal and the second interface realizes the detection of the in-place stable state of the storage device 2 to be detected.
In the above technical solution, the logic module 11 obtains the plugging in-place detection condition of the storage device 2 to be detected by accessing a first signal corresponding to the ground pin of the storage device 2 to be detected and accessing a second signal corresponding to the device activity signal pin of the storage device 2 to be detected, and based on the detection result of the first signal; furthermore, the plugging stable detection condition of the storage device 2 to be detected is obtained through the detection results of the first signal and the second signal, so that the reliability of the storage device 2 to be detected in the subsequent data transmission process can be improved.
In an alternative embodiment, the logic module 11 outputs a state signal, which corresponds to whether the storage device 2 to be detected is plugged in place and whether plugging is stable when plugged in place, on the basis of the first signal or on the basis of the first signal and the second signal. The specific steps can be as follows: determining whether the storage device 2 to be detected is spliced in place according to the first signal; when the storage device 2 is plugged in place, whether the storage device 2 to be detected is plugged stably or not is determined according to the second signal.
Specifically, the level state of the first signal is obtained, and whether the storage device 2 to be detected is plugged in place is determined according to the corresponding relation between the level state and the in-place state stored in the logic module 11 in advance. Further, when it is determined that the storage device 2 to be detected is plugged in place, the second signal is received, and whether the storage device 2 to be detected is plugged stably is determined according to the second signal and the signal judgment condition stored in the logic module 11 in advance.
In an alternative embodiment, the logic module 11 of the present application comprises a CPLD chip; correspondingly, the first interface is a first GPIO pin of the CPLD chip, and the second interface is a second GPIO pin of the CPLD chip.
Specifically, a CPLD (Complex Programmable Logic Device ) chip is a digital integrated circuit in which users construct logic functions by themselves according to their needs. The element has the characteristics of flexible programming, high integration level, short design development period, wide application range, advanced development tool, low design and manufacturing cost, low requirement on hardware experience of a designer, no need of testing standard products, strong confidentiality, popularization of price and the like, can realize large-scale circuit design, and is widely applied. Specifically, the CPLD chip includes a GPIO pin, i.e., an input/output interface, which may be configured to receive an external signal, and perform logic processing to obtain a result signal for output.
In the embodiment of the application, any two GPIO pins in the CPLD may be used as the first interface and the second interface. Preferably, because of the connection relationship between the GPIO interfaces and the external components at the interface position of the CPLD chip, the GPIO1 pin may be selected as the first GPIO interface, and used for connecting with the ground pin of the storage device 2 to be detected, so as to implement access to the first signal corresponding to the pin. Likewise, the GPIO2 pin is selected as a second GPIO interface, and is used for being connected with the active signal pin of the device of the storage device 2 to be detected, so as to realize accessing the second signal corresponding to the pin.
It should be noted that, the logic module 11 in the embodiment of the present application may be another module capable of performing judgment processing, for example, an FPGA (Field-Programmable Gate Array, field programmable logic array) chip or other devices, and the first interface and the second interface are two interfaces having an input/output function in the FPGA chip respectively. The embodiment of the present application does not limit the logic module 11.
Fig. 3 is a schematic structural diagram of a device for detecting a bit stable state of a storage device according to another exemplary embodiment of the present application. As shown in fig. 3, the detection device 1 provided in the present application further includes: and a pull-up resistor 12, wherein a first end of the pull-up resistor 12 is connected with a power supply, and a second end of the pull-up resistor 12 is connected with a first interface.
In practice, the pull-up resistor 12 "weakly" pulls the input voltage signal "high" if the external component is not enabled on the wire to which the pull-up resistor 12 is connected. When the external components are disconnected, the external "look" is high impedance to the input. At this time, the voltage at the input port can be pulled up to a high level by the pull-up resistor 12. If the external component is enabled, it will cancel the high level set by pull-up resistor 12. By doing so, the pull-up resistor 12 can enable the pins to maintain a certain logic level even when external components are not connected.
Based on the above principle, in order to accurately determine the level state of the first signal corresponding to the ground pin, the pull-up resistor 12 is connected on the basis of the existing connection relationship of the ground pin. In a specific embodiment, a first end of the pull-up resistor 12 is connected to a power supply, and a second end of the pull-up resistor 12 is connected to a ground pin.
Specifically, after the pull-up resistor 12 is connected, if the level state of the first signal is detected to be a low level, the ground pin is indicated to be connected; otherwise, if the high level is detected, the grounding pin is not connected. The level state of the first signal thus obtained determines the plugging bit state of the memory device 2 to be detected.
In the above technical scheme, by accessing the pull-up resistor 12, accurate detection of the signal corresponding to the grounding pin is further realized, so that the accuracy of the in-place detection result of whether the insertion of the storage device 2 to be detected is improved.
The detection process performed by the logic module is described in detail below in conjunction with FIGS. 4-5. The following embodiments are not intended to limit the technical aspects of the present application.
Fig. 4 is a flowchart of a plug-in bit state detection of a storage device according to another exemplary embodiment of the present application. Referring to fig. 4, based on the above embodiments, the method for determining whether the logic module is in place may specifically include: detecting a level state of the first signal; if the level state of the first signal is a high level state, determining that the storage device to be detected is not spliced in place; or if the level state of the first signal is changed from the high level state to the low level state or is in a continuous low level state, determining that the storage device to be detected is spliced in place.
Specifically, a first signal corresponding to a ground pin is received based on the first interface. On the basis of this, it is judged whether the level state of the first signal is a low level state. Optionally, if the level state of the first signal is a high level state, it is indicated that the ground pin of the storage device to be detected is not connected, and it is further indicated that the storage device to be detected is not plugged in place at present. That is, reliable data transfer with the storage device to be tested is not yet possible. Otherwise, if the level state of the first signal is a low level state, it is indicated that the grounding pin of the storage device is connected, and it is further indicated that the storage device to be detected is plugged in place at present, and whether the storage device to be detected is plugged stably can be detected on the basis.
In an alternative embodiment, the low state of the first signal may include a plurality of situations. Specifically, the low level state may be sustained during the preset detection period or the high level state may be turned over to the low level state. In practical applications, the case where the first signal is continuously in the low state may include, but is not limited to: the storage device to be detected is in the process of powering up the AC power supply, and the level of the first signal is continuously detected in the process until the power up is finished. In the above process, after the storage device to be detected is successfully powered on, the level state of the first signal can be kept in a low level state continuously, which can indicate that the storage device to be detected is in a plugging state. Alternatively, the case where the first signal transitions from a high state to a low state may include, but is not limited to: and the storage equipment to be detected is in the hot plug process. In the process, when the storage device to be detected is pulled down, the first signal is detected to be in a high-level state, hot plug is directly carried out on the storage device to be detected on the basis, the first signal is continuously detected after hot plug, and if the first signal is detected to be converted from the high-level state to the low-level state, the storage device to be detected is indicated to be hot plug in; otherwise, if the first signal is detected to still keep a high-level state after the storage device to be detected is plugged, the storage device to be detected is not plugged in place. It should be noted that the above explanation of the level state of the first signal is merely an exemplary description of the technical solution of the present application, and is not meant as a limitation of the technical solution of the present application.
Fig. 5 is a flowchart of a plug-in stable state detection of a storage device according to another exemplary embodiment of the present application. Referring to fig. 5, on the basis of the above embodiments, the method for determining whether the socket is stable by using the logic module may specifically include: if the storage device to be detected is spliced in place and a preset pulse sequence appears in the second signal within a preset time period, the storage device to be detected is determined to be stably spliced; or if the storage device to be detected is plugged in place and the second signal does not have a preset pulse sequence in a preset time period, determining that the storage device to be detected is plugged in place but not plugged stably.
Because the premise of stable plugging of the storage device to be detected is to be plugged in place, in the embodiment of the application, when the storage device to be detected is detected to be in the plugging in place state at present, the detection process of whether the storage device to be detected is stable in plugging or not can be performed. Otherwise, if the fact that the storage device to be detected is not plugged in place at present is detected, whether the storage device to be detected is plugged stably is detected can be omitted, invalid detection flow is reduced, and detection efficiency is improved.
Specifically, under the condition that the storage device to be detected is spliced in place, a second signal corresponding to the equipment activity signal pin is obtained based on the second interface, and splicing stable detection is carried out. Because the plugging process of the storage device requires time, when the second signal is detected, the second signal within the preset time length needs to be acquired for detection. The reason is that if the second signal is detected immediately at the current time when the plugging in position is detected, a detection result which is not stable in plugging can be obtained, and the detection result at the current time is output; if the storage device to be detected is plugged stably at the next moment, the second signal is not detected again at the moment because the detection result is output at the last moment, so that the finally obtained detection result whether the plugging is stable is inaccurate. Further, if the device maintenance is performed on the storage device to be detected based on the detection result, ineffective maintenance is caused, maintenance time is wasted, maintenance cost is increased, and the service life of the storage device is damaged due to excessive maintenance. Optionally, if the second signal in the preset time period is obtained when the plug-in is detected to be in place, and the obtained signal in the preset time period is detected, the finally obtained detection result is a detection result corresponding to the final state of the storage device to be detected, so that the technical effect of improving the accuracy of the detection result is achieved.
On the basis, a pulse sequence of the second signal in a preset time period can be detected, and whether the storage device to be detected is spliced stably is determined based on a detection result of the pulse sequence. Optionally, if a preset pulse sequence appears in the second signal, determining that the to-be-detected storage device is stable in plugging; and conversely, if the second signal does not have the preset pulse sequence, determining that the storage device to be detected is plugged in place but not plugged stably. By way of example, the preset pulse sequence may include, but is not limited to, more than 2 consecutive pulse sequences.
It should be noted that, in the above-mentioned in-place stable state detection of the storage device to be detected, optionally, if it is detected that the storage device to be detected is not plugged in place, the detection of the current round may be ended, and a state detection result corresponding to the current round is generated, until the next system power-up, restart recovery, hot plug and other conditions of the storage device to be detected occur, the in-place stable state detection is restarted; optionally, if the storage device to be detected is detected to be plugged in place, further plugging stable state detection is required on the basis. Optionally, if the storage device to be detected is detected to be not plugged and stable, ending the state detection of the current round, generating a detection result corresponding to the current round, and similarly restarting the in-place stable state detection until the next system power-on, restarting and recovering, hot plug and other conditions of the storage device to be detected occur; otherwise, if the fact that the to-be-detected storage device is stable in plugging is detected, corresponding detection results are generated, and state detection is finished.
In the technical scheme, the logic module is connected with a first signal corresponding to a grounding pin of the storage device to be detected and a second signal corresponding to an equipment activity signal pin of the storage device to be detected, detects the level state of the first signal, and determines the plugging in-place detection condition of the storage device to be detected based on the level state; further, when the storage device to be detected is determined to be plugged in place based on the first signal, the pulse sequence appearing in the second signal in the preset time period is detected, and the stable plugging detection condition of the storage device to be detected is determined based on whether the preset pulse sequence appears, so that the technical effect of improving the reliability of the storage device to be detected in the subsequent data transmission process is further achieved.
Fig. 6 is a schematic structural diagram of a device for detecting a bit stable state of a storage device according to another exemplary embodiment of the present application. As shown in fig. 6, the detection device 1 provided in the present application further includes: a prompt module 13; the prompt module 13 is connected with the logic module 11; the logic module 11 is used for outputting an in-place stable state signal of the storage device 2 to be detected; the prompting module 13 is configured to generate a plugging prompting signal of the storage device 2 to be detected according to the in-place steady state signal.
In order to enable maintenance personnel or users of storage equipment to know the plugging condition of the storage equipment, the detection device 1 provided by the embodiment of the application is further provided with the prompt module 13 on the original basis so as to timely inform the in-place stable state detection result of the storage equipment 2 to be detected, so that the storage equipment can be maintained timely or reliable data transmission with the storage equipment can be realized.
In an alternative embodiment, the prompting module 13 is connected to the logic module 11, and is configured to receive the status detection signal output by the logic module 11, and generate the socket prompting signal of the storage device 2 to be detected based on the status detection signal.
Specifically, the generated plugging prompt signals are different according to the different state detection signals output by the logic module 11. Optionally, when the logic module 11 outputs a state signal that is not plugged in place, a prompting signal that is not plugged in place is correspondingly generated; and when the logic module 11 outputs a state signal which is plugged in place but not plugged in stable, correspondingly generating a prompting signal which is not plugged in stable, and on the basis, performing thermal maintenance on the storage device 2 to be detected by equipment maintenance personnel based on the prompting signals which are not plugged in place and not plugged in stable, thereby improving maintenance efficiency. Optionally, when the logic module 11 outputs the signal of the in-place and stable state, a prompt signal for the stable insertion of the storage device 2 to be detected is correspondingly generated, which indicates that the storage device 2 to be detected already has the basic condition of data transmission, and the data transmission can be directly performed with the storage device.
In an alternative embodiment, the prompt module 13 is a BMC chip; the BMC chip is specifically used for: and when the storage device 2 to be detected is not plugged stably, a plugging prompt signal is generated to prompt a user to plug the storage device 2 to be detected again.
Specifically, the BMC (Baseboard management controller ) chip is a small operating system independent of the server system, is a chip integrated on the motherboard, and also has a product which is inserted on the motherboard in a PCIE format or the like, and has only a standard RJ45 network port as an external expression format, and has a firmware system of independent IP. In this embodiment of the present application, the BMC chip has signal access and signal processing functions, so that a corresponding prompt signal may be generated based on the state detection signal input by the logic module 11.
In the above scheme, after the logic module 11 outputs the detection signals corresponding to the detection results of each state of the storage device 2 to be detected, the prompting module 13 generates the corresponding prompting signals to perform the corresponding prompting based on the detection signals, so that the storage device can be maintained in time, and the maintenance efficiency of the device is improved; or, the data transmission with the storage device can be timely and reliably realized, and the data transmission reliability and transmission efficiency of the device are improved.
The application also provides electronic equipment, which comprises the detection device 1 and at least one storage device 2 to be detected, wherein the detection device is provided by any embodiment of the application. The detection device 1 in this embodiment has the same advantages as the detection device 1 described in the above embodiments, and will not be described in detail here.
Fig. 7 is a schematic structural diagram of an electronic device 01 provided in the present application. Referring to fig. 7, the electronic device 01 comprises a detection means 1 and at least one storage device 2 to be detected.
Note that, the electronic device 01 in the embodiment of the present application may be a server. In particular, the electronic device 01 may include, but is not limited to, products in which the electronic device 01 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, etc., and various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices (e.g., helmets, eyeglasses, watches, etc.), and other similar computing devices. Servers include, but are not limited to, blade servers, mainframe computers, and other suitable computers. The storage device 2 to be detected can be a storage device arranged in the electronic device 01 or the server, or can be a storage device which is singly arranged and can be connected with the electronic device 01 or the server, so as to realize the storage of data generated by the electronic device 01 or the server. It should be noted that, the storage device 2 to be detected in the embodiment of the present application is a storage device using a preset interface protocol, for example, the preset interface protocol may be U.2 (SFF-8639) interface protocol, m.2 interface protocol, SAS (Serial Attached SCSI, serial attached SCSI interface) protocol, SATA (Serial Advanced Technology Attachment, serial advanced technology attachment, a serial hardware driver interface based on industry standard) protocol, and an equal interface protocol. Optionally, on the basis of the interface protocol, the storage device may be a mechanical hard disk or a solid state hard disk using any one of the protocols.
Specifically, the detection device has been described in detail in the above embodiments for the detection process of the state of the storage device 2 to be detected, so that a detailed description thereof is omitted herein.
In the above technical scheme, the detection device included in the electronic device 01 obtains the signals corresponding to the grounding pin and the signals corresponding to the equipment activity signal pin in the storage device 2 to be detected through different interfaces, and obtains the plugging in-place stable condition of the storage device 2 to be detected by detecting the two signals, thereby realizing the technical effect of improving the reliability of the storage device 2 to be detected in the subsequent data transmission process.
On the basis of the above embodiments, the technical solution of the present application further provides a preferred embodiment. Fig. 8 is a schematic structural diagram of a device for detecting a bit stable state of a storage device according to the present preferred exemplary embodiment. Referring to fig. 8, in the preferred embodiment, the logic module is a CPLD chip, and the detection process of the in-place stable state is specifically described under different common conditions by taking the to-be-detected storage device as an SAS/SATA hard disk as an example.
Specifically, in fig. 8, the CPLD chip includes a GPIO1 pin and a GPIO2 pin. Connecting the GOIP1 pin with a P4 pin, namely a GND pin, of the hard disk to send a PRSNT# signal to the CPLD; the GPOI2 pin is connected with the P11 pin of the hard disk, namely the DAS pin, so as to realize the transmission of DAS signals to the CPLD. Furthermore, the CPLD chip is also connected with the BMC chip to realize the prompt of plugging signals based on the detection result.
Alternatively, if the hard disk is powered on for the first time at the current moment, the CPLD's steady state detection process in place may be seen in fig. 9. Specifically, the CPLD detects the signal output states of the P4 and P11 pins during the power-on BIOS Post process. If the P4 pin is detected to be in a low level state all the time and the P11 pin outputs more than 2 continuous pulses, the hard disk can be judged to be inserted stably; if the P4 pin is detected to be in a low level state, the CPLD judges that the hard disk is not in place, or if the P4 pin is detected to be in a low level state all the time, but the P11 pin does not continuously output more than 2 pulses, the CPLD judges that the hard disk is not inserted and stabilized. On the basis, the related fault information which is not in place or is not inserted stably is transmitted to the BMC chip, so that the BMC chip generates alarm information, and a user can perform quick thermal maintenance when identifying a fault error. Furthermore, after the BIOS Post is finished, the detection is stopped until the next system power-on or restarting is performed, and the hard disk in-place plug-in stability detection is performed again.
Alternatively, if the hard disk is hot swapped at the current moment, the CPLD's in-place steady state detection process may refer to fig. 10. Specifically, if the CPLD detects that the logic of the pin P4 of the hard disk turns over (switches from high level to low level), and detects that the pin P11 outputs more than 2 continuous pulses within 2 minutes (the inserted hard disk is identified by the OS), it can be determined that the hard disk has been inserted stably; otherwise, if the CPLD does not detect that the signal logic of the pin P4 of the hard disk turns over (continuously keeps high level), the CPLD judges that the hard disk is not in place; or if the CPLD detects that the logic of the P4 pin signal of the hard disk is inverted (switched from high level to low level), but within 2 minutes (the process of inserting the hard disk and identifying by the OS) the CPLD does not detect that the P11 pin output is continuous for more than 2 pulses, the CPLD judges that the hard disk is not inserted stably. On the basis, the related fault information which is not in place or is not inserted stably is transmitted to the BMC chip, so that the BMC chip generates alarm information, and a user can perform quick thermal maintenance when identifying a fault error.
According to the technical scheme, the CPLD judges whether the hard disk is in place or not based on the detected signal corresponding to the P4 pin, and judges whether the hard disk is stable in insertion or not based on the signal corresponding to the P11 pin when the hard disk is in place, so that an in-place stable detection result of the hard disk is obtained, and the reliability of the hard disk in the subsequent data transmission process is improved.
The application also provides a method for detecting the bit stable state of the storage device. The method is applied to the logic module introduced by any embodiment, wherein the logic module is arranged in the detection device and is provided with a first interface and a second interface; the first interface is used for being connected with a grounding pin of the storage device to be detected, and the second interface is used for being connected with a device activity signal pin of the storage device to be detected.
Fig. 11 is a flowchart of a method for detecting a bit stable state of a storage device according to an embodiment of the present application. Referring to fig. 11, the method includes:
s810, detecting a first signal accessed by a first interface and a second signal accessed by a second interface.
In this embodiment of the present application, the first signal is a signal corresponding to the ground pin, and the first signal may be transmitted to the logic module through the first interface for detection. Specifically, the first signal is detected, and whether the storage device to be detected is plugged in place can be determined. The second signal is a signal corresponding to the equipment activity signal pin, and the second signal can be transmitted to the logic module through the second interface for detection. Specifically, the second signal is detected, so that whether the storage device to be detected is stable in plugging can be determined.
S820, determining the in-place stable state of the storage device to be detected according to the first signal or according to the first signal and the second signal; the in-place stable state comprises whether the storage device to be detected is plugged in place or not and whether the storage device is plugged in place or not is stable.
In this application, the method for determining the in-place stable state of the storage device to be detected by the logic module according to the first signal or according to the first signal and the second signal may include: determining whether the storage device to be detected is spliced in place according to the first signal; and when the storage device is plugged in place, determining whether the storage device to be detected is stable in plugging according to the second signal.
Optionally, the method for determining whether the storage device to be detected is plugged in place according to the first signal may include: detecting a level state of the first signal; if the level state of the first signal is a high level state, determining that the storage device to be detected is not spliced in place; or if the level state of the first signal is changed from the high level state to the low level state or is in a continuous low level state, determining that the storage device to be detected is spliced in place.
Optionally, when the storage device is plugged in place, determining whether the storage device to be detected is plugged stably according to the second signal includes: if the storage device to be detected is spliced in place and a preset pulse sequence appears in the second signal within a preset time period, the storage device to be detected is determined to be stably spliced; or if the storage device to be detected is plugged in place and the second signal does not have a preset pulse sequence in a preset time period, determining that the storage device to be detected is plugged in place but not plugged stably.
On the basis of the embodiment, the checking device further comprises a prompting module, wherein the prompting module is connected with the logic module and is used for generating a plugging prompting signal of the storage device to be detected according to the in-place stable state signal output by the logic module.
In the technical scheme, the logic module obtains the plugging in-place detection condition of the storage device to be detected by accessing a first signal corresponding to the grounding pin of the storage device to be detected and accessing a second signal corresponding to the equipment activity signal pin of the storage device to be detected, and based on the detection result of the first signal; furthermore, the plugging stable detection condition of the storage device to be detected is obtained through the detection results of the first signal and the second signal, so that the reliability of the storage device to be detected in the subsequent data transmission process can be improved.
The application also provides a logic module. The logic module is used for executing the method for detecting the in-place stable state of the storage device, and is provided with a first interface and a second interface, wherein the first interface is used for being connected with a grounding pin of the storage device to be detected, and the second interface is used for being connected with a device activity signal pin of the storage device to be detected.
Fig. 12 is a schematic structural diagram of a logic module according to an embodiment of the present application. Referring to fig. 12, the logic module includes: a signal detection unit 910 and a state detection unit 920; wherein, the liquid crystal display device comprises a liquid crystal display device,
a signal detection unit 910, configured to detect a first signal accessed by the first interface and a second signal accessed by the second interface;
a state detection unit 920, configured to determine a bit stable state of the storage device to be detected according to the first signal or according to the first signal and the second signal; the in-place stable state comprises whether the storage device to be detected is plugged in place or not and whether the storage device is plugged in place or not is stable.
In the technical scheme, the logic module obtains the plugging in-place detection condition of the storage device to be detected by accessing a first signal corresponding to the grounding pin of the storage device to be detected and accessing a second signal corresponding to the equipment activity signal pin of the storage device to be detected, and based on the detection result of the first signal; furthermore, the plugging stable detection condition of the storage device to be detected is obtained through the detection results of the first signal and the second signal, so that the reliability of the storage device to be detected in the subsequent data transmission process can be improved.
Optionally, the state detection unit 920 is specifically configured to:
determining whether the storage device to be detected is spliced in place according to the first signal;
and when the storage device is plugged in place, determining whether the storage device to be detected is stable in plugging according to the second signal.
Optionally, the detection device further includes: the first end of the pull-up resistor is connected with a power supply, and the second end of the pull-up resistor is connected with the first interface; the state detection unit 920 is specifically configured to:
detecting a level state of the first signal;
if the level state of the first signal is a high level state, determining that the storage device to be detected is not spliced in place; or alternatively, the process may be performed,
and if the level state of the first signal is converted from the high level state to the low level state or is in a continuous low level state, determining that the storage device to be detected is spliced in place.
Optionally, the state detection unit 920 is specifically configured to:
if the storage device to be detected is spliced in place and a preset pulse sequence appears in the second signal within a preset time period, determining that the storage device to be detected is spliced stably; or alternatively, the process may be performed,
if the storage device to be detected is plugged in place and the second signal does not have a preset pulse sequence in a preset time period, determining that the storage device to be detected is plugged in place but not plugged stably.
Optionally, the logic module includes a CPLD chip; correspondingly, the first interface is a first GPIO pin of the CPLD chip, and the second interface is a second GPIO pin of the CPLD chip.
Optionally, the detection device further includes: a prompting module; the prompt module is connected with the logic module;
the logic module is used for outputting an in-place stable state signal of the storage device to be detected;
and the prompt module is used for generating a plugging prompt signal of the storage device to be detected according to the in-place stable state signal.
The application also provides another logic module. Fig. 13 is a schematic diagram of another logic module provided in accordance with an embodiment of the present application. Referring to fig. 13, the logic module 100 includes a memory 1001 and a processor 1002.
Wherein the memory is for storing computer instructions executable by the processor.
The processor, when executing the computer instructions, implements the steps in the method for detecting the bit stable state of the storage device with the processing server as the execution subject in the above embodiment. Reference may be made in particular to the relevant description of the embodiments of the method described above.
Alternatively, the memory may be separate or integrated with the processor. When the memory is provided separately, the server further includes a bus for connecting the memory and the processor.
The embodiment of the application further provides a computer readable storage medium, in which computer executable instructions are stored, and when the processor executes the computer executable instructions, the steps in the method for detecting the bit stable state of the storage device in the embodiment are implemented.
Embodiments of the present application also provide a computer program product comprising computer instructions which, when executed by a processor, implement the steps in the bit steady state detection method of the storage device in the above embodiments.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A device for detecting a stable state of a memory device in place, comprising: a logic module; the logic module is provided with a first interface and a second interface;
the first interface is used for being connected with a grounding pin of the storage device to be detected;
the second interface is used for being connected with the equipment activity signal pin of the storage equipment to be detected;
the logic module is used for determining the in-place stable state of the storage device to be detected according to the first signal accessed by the first interface or according to the first signal and the second signal accessed by the second interface; the in-place stable state comprises whether the storage device to be detected is plugged in place or not and whether the storage device to be detected is plugged in place or not.
2. The detection device according to claim 1, wherein the logic module is specifically configured to:
determining whether the storage device to be detected is spliced in place according to the first signal;
and when the storage device is plugged in place, determining whether the storage device to be detected is stable in plugging according to the second signal.
3. The detection apparatus according to claim 2, characterized in that the detection apparatus further comprises: the first end of the pull-up resistor is connected with a power supply, and the second end of the pull-up resistor is connected with the first interface;
The logic module determines whether the storage device to be detected is spliced in place according to the first signal, and the logic module comprises:
detecting a level state of the first signal;
if the level state of the first signal is a high level state, determining that the storage device to be detected is not spliced in place; or alternatively, the process may be performed,
and if the level state of the first signal is converted from the high level state to the low level state or is in a continuous low level state, determining that the storage device to be detected is spliced in place.
4. The detection apparatus according to claim 2, wherein the logic module, when plugged in place, determines whether the storage device to be detected is plugged stable according to the second signal, comprising:
if the storage device to be detected is spliced in place and a preset pulse sequence appears in the second signal within a preset time period, determining that the storage device to be detected is spliced stably; or alternatively, the process may be performed,
if the storage device to be detected is plugged in place and the second signal does not have a preset pulse sequence in a preset time period, determining that the storage device to be detected is plugged in place but not plugged stably.
5. The device according to any one of claims 1-4, wherein the logic module comprises a CPLD chip; correspondingly, the first interface is a first GPIO pin of the CPLD chip, and the second interface is a second GPIO pin of the CPLD chip.
6. The device according to any one of claims 1-4, further comprising: a prompting module; the prompt module is connected with the logic module;
the logic module is used for outputting an in-place stable state signal of the storage device to be detected;
and the prompt module is used for generating a plugging prompt signal of the storage device to be detected according to the in-place stable state signal.
7. The method is characterized by being applied to a logic module, wherein the logic module is provided with a first interface and a second interface; the first interface is used for being connected with a grounding pin of the storage device to be detected, and the second interface is used for being connected with an equipment activity signal pin of the storage device to be detected; the method comprises the following steps:
detecting a first signal accessed by the first interface and a second signal accessed by the second interface;
determining the in-place stable state of the storage device to be detected according to the first signal or according to the first signal and the second signal; the in-place stable state comprises whether the storage device to be detected is plugged in place or not and whether the storage device to be detected is plugged in place or not.
8. The logic module is characterized by being used for executing an in-place stable state detection method of the storage device, and is provided with a first interface and a second interface, wherein the first interface is used for being connected with a grounding pin of the storage device to be detected, and the second interface is used for being connected with a device activity signal pin of the storage device to be detected; comprising the following steps:
the signal detection unit is used for detecting a first signal accessed by the first interface and a second signal accessed by the second interface;
the state detection unit is used for determining the in-place stable state of the storage device to be detected according to the first signal or according to the first signal and the second signal; the in-place stable state comprises whether the storage device to be detected is plugged in place or not and whether the storage device to be detected is plugged in place or not.
9. A logic module, comprising: a memory, a processor;
a memory for storing the processor-executable instructions;
wherein the processor executes the executable instructions stored by the memory to implement the method for bit steady state detection of a memory device as recited in claim 7.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are for implementing the method of bit steady state detection of a storage device as claimed in claim 7.
CN202310514378.2A 2023-05-08 2023-05-08 Storage device in-place stable state detection device, method, logic module and medium Pending CN116539992A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310514378.2A CN116539992A (en) 2023-05-08 2023-05-08 Storage device in-place stable state detection device, method, logic module and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310514378.2A CN116539992A (en) 2023-05-08 2023-05-08 Storage device in-place stable state detection device, method, logic module and medium

Publications (1)

Publication Number Publication Date
CN116539992A true CN116539992A (en) 2023-08-04

Family

ID=87444823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310514378.2A Pending CN116539992A (en) 2023-05-08 2023-05-08 Storage device in-place stable state detection device, method, logic module and medium

Country Status (1)

Country Link
CN (1) CN116539992A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117138265A (en) * 2023-10-27 2023-12-01 深圳市宗匠科技有限公司 Ultrasonic beauty instrument and self-checking method for ultrasonic beauty instrument

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117138265A (en) * 2023-10-27 2023-12-01 深圳市宗匠科技有限公司 Ultrasonic beauty instrument and self-checking method for ultrasonic beauty instrument

Similar Documents

Publication Publication Date Title
US10846160B2 (en) System and method for remote system recovery
EP3035187B1 (en) Hard disk and management method
CN102880527B (en) Data recovery method of baseboard management controller
EP2798428B1 (en) Apparatus and method for managing operation of a mobile device
JP2020053017A (en) System and method for hybrid power source
CN116539992A (en) Storage device in-place stable state detection device, method, logic module and medium
CN107239372B (en) Electronic device and detection method thereof
CN107145198B (en) Method for improving compatibility of server to hard disk and mainboard thereof
CN111176913A (en) Circuit and method for detecting Cable Port in server
CN113204456A (en) Test method, tool, device and equipment for VPP interface of server
US20120054391A1 (en) Apparatus and method for testing smnp cards
CN112783721A (en) Method, device and system for monitoring I2C bus and storage medium
CN117251333A (en) Method, device, equipment and storage medium for acquiring hard disk information
CN105975382B (en) A kind of alarm method that hardware configuration changes
TWI687790B (en) Electronic system capable of detecting number of times for hot plugs
CN111190779A (en) Hard disk detection structure, hard disk detection method and hard disk
CN115033441A (en) PCIe equipment fault detection method, device, equipment and storage medium
CN115407941A (en) VMD function starting method and related assembly thereof
CN111459863B (en) NVME-MI-based chassis management system and method
CN112596983A (en) Monitoring method for connector in server
CN113609036A (en) Hard disk backboard based on U.3 interface
CN113076270A (en) Protocol configuration device and method of IO interface and related components
CN107977330B (en) Server system and method for detecting transmission mode of server system
TWI607317B (en) Computer system
CN114153388B (en) Hard disk system, hard disk configuration information refreshing method, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination