CN108710037B - OPS state detection method, system and equipment - Google Patents

OPS state detection method, system and equipment Download PDF

Info

Publication number
CN108710037B
CN108710037B CN201810361218.8A CN201810361218A CN108710037B CN 108710037 B CN108710037 B CN 108710037B CN 201810361218 A CN201810361218 A CN 201810361218A CN 108710037 B CN108710037 B CN 108710037B
Authority
CN
China
Prior art keywords
ops
state
current
ops module
module
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.)
Active
Application number
CN201810361218.8A
Other languages
Chinese (zh)
Other versions
CN108710037A (en
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810361218.8A priority Critical patent/CN108710037B/en
Publication of CN108710037A publication Critical patent/CN108710037A/en
Application granted granted Critical
Publication of CN108710037B publication Critical patent/CN108710037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Abstract

The invention relates to a method, a system and equipment for detecting an OPS state, belonging to the technical field of OPS.A first interval range where an input current is positioned can be judged by detecting the current input to an OPS module by a power supply and comparing the input current with a preset threshold value, the current input to the OPS module by the power supply can be greatly changed when the states of the OPS module are different, the current state of the OPS module can be judged according to the first interval range, and under the condition of determining the current state of the OPS module, a complete machine system can carry out corresponding control operation on the OPS module, so that the operation fault caused by the difference of the states of the OPS module is avoided.

Description

OPS state detection method, system and equipment
Technical Field
The present invention relates to the field of OPS (Open Pluggable Specification) technologies, and in particular, to a method, a system, and a device for detecting an OPS state.
Background
With the rapid development of the OPS technology, the OPS module is widely applied to various electronic products, such as televisions, computers, and the like.
The OPS module can be combined with a display device of an electronic product in a plugging mode, and installation is facilitated. Use and maintenance. In the process of implementing the invention, the inventor finds that at least the following problems exist in the traditional technology: the OPS module generally adopts a standard 80PIN plug interface, and the interface does not reserve a PIN or interface definition for detecting the OPS state, so when the OPS module is used by a complete machine system, an operation fault occurs due to a difference of the OPS module state.
Disclosure of Invention
Based on this, it is necessary to provide an OPS state detection method, system and apparatus for solving the problem of operation failure caused by the difference of the states of the OPS modules when the conventional whole machine system uses the OPS modules.
An OPS state detection method comprises the following steps:
detecting an input current of the OPS module, wherein the input current is a current between the OPS module and a power supply;
judging a first interval range in which the input current is positioned according to a preset threshold, wherein the preset threshold is a parameter threshold related to the input current when the OPS module is in different states;
and judging the current state of the OPS module according to the first interval range.
According to the OPS state detection method, the current input to the OPS module by the power supply is detected, the input current is compared with the preset threshold value, the first interval range where the input current is located can be judged, the current input to the OPS module by the power supply can be greatly changed when the states of the OPS module are different, the current state of the OPS module can be judged according to the first interval range, under the condition that the current state of the OPS module is determined, the whole machine system can carry out corresponding control operation on the OPS module, operation faults caused by the difference of the states of the OPS module are avoided, the OPS state detection method does not depend on specific interfaces of the OPS module, and the OPS state detection method is suitable for the OPS modules with various interfaces.
In one embodiment, the step of detecting the input current of the OPS module comprises the steps of:
detecting the input current of the OPS module through a current detection device, and acquiring a voltage value which is output by the current detection device and corresponds to the input current;
the step of judging the first interval range of the input current according to the preset threshold comprises the following steps:
judging a second interval range of the voltage value according to a preset voltage threshold;
the step of judging the current state of the OPS module according to the first interval range comprises the following steps:
and judging the current state of the OPS module according to the second interval range.
In one embodiment, the step of judging the current state of the OPS module according to the second interval range includes the following steps:
if the second interval range is larger than or equal to the first voltage threshold, judging that the OPS module is in a starting state currently;
if the second interval range is the positive and negative error range of the second voltage threshold, judging that the OPS module is in the dormant state currently;
and if the second interval range is the positive and negative error range of the third voltage threshold, judging that the OPS module is in the sleep state currently.
In one embodiment, the OPS state detection method further includes the steps of:
setting an OPS module to be in a starting state, and recording a voltage value output by the current detection device at the moment as a first voltage threshold value;
setting an OPS module to be in a dormant state, and recording a voltage value output by the current detection device at the moment as a second voltage threshold;
and setting an OPS module to be in a sleep state, and recording the voltage value output by the current detection device at the moment as a third voltage threshold value.
In one embodiment, the step of recording the voltage value output by the current detection device at this time as the first voltage threshold comprises the steps of:
collecting a plurality of voltage values within a first preset time, and taking the average value of the voltage values as a first voltage threshold;
the step of recording the voltage value output by the current detection device at this time as the second voltage threshold value comprises the following steps:
collecting a plurality of voltage values within a second preset time, and taking the average value of the voltage values as a second voltage threshold;
the step of recording the voltage value output by the current detection device at this time as the third voltage threshold value comprises the following steps:
and collecting a plurality of voltage values within a third preset time, and taking the average value of the voltage values as a third voltage threshold.
In one embodiment, the OPS state detection method further includes the steps of:
and if the OPS module cannot be judged to be in a starting state, a dormant state or a sleeping state currently according to the second interval range, sending out a fault alarm of the OPS module.
In one embodiment, the OPS state detection method further includes the steps of:
and after the current state of the OPS module is determined, the current state information of the OPS module is sent to a main chip of the whole machine where the OPS module is located.
An OPS state detection system comprising:
the operation detection unit is used for detecting the input current of the OPS module, wherein the input current is the current between the OPS module and the power supply;
and the state judgment unit is used for judging a first interval range in which the input current is positioned according to a preset threshold value, and judging the current state of the OPS module according to the first interval range, wherein the preset threshold value is a parameter threshold value related to the input current when the OPS module is in different states.
According to the OPS state detection system, the operation detection unit detects the current input by the power supply to the OPS module, the state judgment unit compares the input current with the preset threshold value, the first interval range where the input current is located can be judged, the state of the OPS module is different, the current input by the power supply to the OPS module can be greatly changed, the current state of the OPS module can be judged according to the first interval range, under the condition that the current state of the OPS module is determined, the whole system can carry out corresponding control operation on the OPS module, operation faults caused by the difference of the states of the OPS module are avoided, the OPS state detection system does not depend on a specific interface of the OPS module in the detection process, and the OPS state detection system is suitable for the OPS modules with various different types of interfaces.
In one embodiment, the operation detection unit detects the input current of the OPS module through the current detection device, and obtains a voltage value corresponding to the input current output by the current detection device;
the state judgment unit judges a second interval range where the voltage value is located according to the preset voltage threshold, and judges the current state of the OPS module according to the second interval range.
In one embodiment, the state determination unit determines that the OPS module is currently in a power-on state when the second interval range is greater than or equal to the first voltage threshold; when the second interval range is the positive and negative error range of the second voltage threshold, judging that the OPS module is in the dormant state currently; and when the second interval range is the positive and negative error range of the third voltage threshold, judging that the OPS module is in the sleep state currently.
In one embodiment, the OPS state detection system further includes a threshold setting unit, configured to set a power-on state of the OPS module, and record a voltage value output by the current detection device at this time as a first voltage threshold; setting an OPS module to be in a dormant state, and recording a voltage value output by the current detection device at the moment as a second voltage threshold; and setting an OPS module to be in a sleep state, and recording the voltage value output by the current detection device at the moment as a third voltage threshold value.
In one embodiment, the threshold setting unit collects a plurality of voltage values within a first preset time, and takes an average value of the voltage values as a first voltage threshold; collecting a plurality of voltage values within a second preset time, and taking the average value of the voltage values as a second voltage threshold; and collecting a plurality of voltage values within a third preset time, and taking the average value of the voltage values as a third voltage threshold.
In one embodiment, the OPS state detection system further includes a fault alarm unit, configured to send out an OPS module fault alarm when the state determination unit cannot determine that the OPS module is currently in the power-on state, the sleep state, or the sleep state according to the second interval range.
In one embodiment, the OPS state detection system further includes an information sending unit, configured to send the current state information of the OPS module to a main chip of a complete machine where the OPS module is located after the state judgment unit determines the current state of the OPS module.
An OPS state detection device comprises a current detection device and a microprocessor;
the current detection device detects the input current of the OPS module, wherein the input current is the current between the OPS module and the power supply;
the microprocessor judges a first interval range in which the input current is positioned according to a preset threshold value, and judges the current state of the OPS module according to the first interval range, wherein the preset threshold value is a parameter threshold value related to the input current when the OPS module is in different states.
According to the OPS state detection equipment, the current detection device detects the current input by the power supply to the OPS module, the microprocessor compares the input current with the preset threshold value, the first interval range where the input current is located can be judged, the state of the OPS module is different, the current input by the power supply to the power supply can be greatly changed, the current state of the OPS module can be judged according to the first interval range, under the condition that the current state of the OPS module is determined, the whole machine system can carry out corresponding control operation on the OPS module, the operation fault caused by the difference of the states of the OPS module is avoided, the OPS state detection equipment does not depend on the specific interface of the OPS module in the detection process, and the OPS state detection equipment is suitable for the OPS modules with various different types of interfaces.
In one embodiment, the OPS state detection device further includes a main chip, and the microprocessor sends the current state information of the OPS module to the main chip after determining the current state of the OPS module.
A readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the OPS state detection method described above.
The readable storage medium realizes that the whole system can perform corresponding control operation on the OPS module under the condition of determining the current state of the OPS module through the stored executable program, avoids operation faults caused by the difference of the states of the OPS module, does not depend on a specific interface of the OPS module in the detection process, and is suitable for the OPS modules with various interfaces of different types.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the OPS state detection method when executing the program.
According to the computer equipment, the fact that the complete machine system can perform corresponding control operation on the OPS module under the condition that the current state of the OPS module is determined is achieved through the executable program running on the processor, operation faults caused by the difference of the states of the OPS module are avoided, the computer equipment does not depend on a specific interface of the OPS module in the detection process, and the computer equipment is suitable for the OPS modules of various interfaces of different types.
Drawings
FIG. 1 is a diagram illustrating an example of an application scenario of the OPS state detection method;
FIG. 2 is a schematic flow chart diagram of a method for OPS state detection in one embodiment;
FIG. 3 is a schematic flow chart of a method for detecting the OPS state in another embodiment;
FIG. 4 is a schematic flow chart of a method for detecting the OPS state in yet another embodiment;
FIG. 5 is a schematic flow chart diagram of an OPS state detection method in yet another embodiment;
FIG. 6 is a schematic diagram of the OPS state detection system in one embodiment;
FIG. 7 is a schematic diagram of an OPS state detection system in another embodiment;
FIG. 8 is a schematic diagram of an OPS state detection system in yet another embodiment;
FIG. 9 is a schematic diagram of the OPS state detection system in yet another embodiment;
FIG. 10 is a schematic diagram of the structure of an OPS state detection device in one embodiment;
fig. 11 is a schematic structural diagram of an OPS state detection device in another embodiment;
fig. 12 is a schematic structural diagram of an OPS state detecting device in still another embodiment;
fig. 13 is a schematic diagram of a specific application of the OPS state detection device in an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the detailed description and specific examples, while indicating the scope of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
Fig. 1 is an application environment schematic diagram of an OPS state detection method in an embodiment, the OPS state detection method may be applied to an intelligent interactive display device, the intelligent interactive display device is interconnected with an OPS module through an interface, the intelligent interactive display device may supply power to the OPS module through the interface, the intelligent interactive display device may detect an input current of the OPS module when supplying power to the OPS module, a first interval range where the input current is located is determined according to a preset threshold and the input current, and a current state of the OPS module is determined according to the first interval range. The OPS state detection method may be implemented in an intelligent interactive display device. The intelligent interactive display equipment can be different types of electronic equipment such as an electronic whiteboard, a liquid crystal all-in-one machine, a television, a desktop computer and a PC computer.
Referring to fig. 2, a flowchart of an OPS status detection method according to an embodiment is shown. The OPS state detection method in this embodiment includes the steps of:
step S110: detecting an input current of the OPS module, wherein the input current is a current between the OPS module and a power supply;
in this step, the OPS module may be an OPS microcomputer, which is an open-type pluggable computer module, connected to the whole system through a plug interface, and the power supply may be an external power supply or a power supply provided by the whole system;
step S120: judging a first interval range in which the input current is positioned according to a preset threshold, wherein the preset threshold is a parameter threshold related to the input current when the OPS module is in different states;
in this step, the first interval range is divided according to a preset threshold;
step S130: and judging the current state of the OPS module according to the first interval range.
In this embodiment, the current input to the OPS module by the power supply is detected, the input current is compared with a preset threshold, a first interval range where the input current is located can be determined, the state of the OPS module is different, the current input to the OPS module by the power supply can be greatly changed, the current state of the OPS module can be determined according to the first interval range, under the condition that the current state of the OPS module is determined, the whole system can perform corresponding control operation on the OPS module, and operation failure caused by the difference of the states of the OPS module is avoided.
Alternatively, the power supply may be a DC (direct current) power supply, which provides a stable direct current for the OPS module.
In one embodiment, as shown in fig. 3, the step of detecting the input current of the OPS module comprises the steps of:
detecting the input current of the OPS module through a current detection device, and acquiring a voltage value which is output by the current detection device and corresponds to the input current;
the step of judging the first interval range of the input current according to the preset threshold comprises the following steps:
judging a second interval range of the voltage value according to a preset voltage threshold;
the step of judging the current state of the OPS module according to the first interval range comprises the following steps:
and judging the current state of the OPS module according to the second interval range.
In this embodiment, the signal of the input current of the OPS module is not convenient to directly detect, so the input current of the OPS module is detected by the current detection device, the current detection device outputs a voltage value corresponding to the input current, the voltage value is convenient for subsequent data processing, and the state of the OPS module can be determined by determining the second interval range in which the voltage value is located by using the voltage value and the preset voltage threshold.
It should be noted that the voltage value is used to facilitate the detection and subsequent data processing, but the voltage value is not necessarily used, and the current value and the corresponding current threshold value are also used to perform the state detection of the OPS module.
In one embodiment, the step of judging the current state of the OPS module according to the second interval range includes the following steps:
if the second interval range is larger than or equal to the first voltage threshold, judging that the OPS module is in a starting state currently;
if the second interval range is the positive and negative error range of the second voltage threshold, judging that the OPS module is in the dormant state currently;
and if the second interval range is the positive and negative error range of the third voltage threshold, judging that the OPS module is in the sleep state currently.
In this embodiment, there may be three preset voltage thresholds, which are a first voltage threshold, a second voltage threshold and a third voltage threshold, respectively, and correspond to the power-on, sleep and sleep states of the OPS module. When the OPS module is normally started, the input current of the OPS module is larger, the corresponding voltage value is also larger, a first voltage threshold value can be used as a reference value, and in the normal operation process of the OPS module, the input current of the OPS module can fluctuate, so that the OPS module can be judged to be in a starting state when the voltage value is larger than or equal to the first voltage threshold value; when the OPS module is in a dormant state, the input current is smaller than that of starting, and the input current of the OPS module is relatively stable and has small fluctuation, so that the OPS module can be judged to be in the dormant state when the voltage value is in a positive and negative error range of a second voltage threshold; similarly, when the OPS module sleeps, the input current is smaller than the input current during the sleep, and at the time, the input current of the OPS module is relatively stable and has small fluctuation, so that the OPS module can be determined to be in the sleep state when the voltage value is within the positive and negative error range of the third voltage threshold.
It should be noted that the first voltage threshold is greater than the second voltage threshold, and the second voltage threshold is greater than the third voltage threshold.
In one embodiment, the OPS state detection method further includes the steps of:
setting an OPS module to be in a starting state, and recording a voltage value output by the current detection device at the moment as a first voltage threshold value;
setting an OPS module to be in a dormant state, and recording a voltage value output by the current detection device at the moment as a second voltage threshold;
and setting an OPS module to be in a sleep state, and recording the voltage value output by the current detection device at the moment as a third voltage threshold value.
In this embodiment, before the state detection is performed on the OPS module, the state of the OPS module may be set, and the voltage value corresponding to the state is recorded as the voltage threshold, so that the voltage threshold has higher accuracy, and for different types of OPS modules, the corresponding voltage threshold may be obtained through the setting and recording manner, so that the OPS state detection method may be applied to different types of OPS modules, and the application range of the OPS state detection method is expanded.
In one embodiment, the step of recording the voltage value output by the current detection device at this time as the first voltage threshold value comprises the steps of:
collecting a plurality of voltage values within a first preset time, and taking the average value of the voltage values as a first voltage threshold;
the step of recording the voltage value output by the current detection device at this time as the second voltage threshold value comprises the following steps:
collecting a plurality of voltage values within a second preset time, and taking the average value of the voltage values as a second voltage threshold;
the step of recording the voltage value output by the current detection device at this time as the third voltage threshold value comprises the following steps:
and collecting a plurality of voltage values within a third preset time, and taking the average value of the voltage values as a third voltage threshold.
In this embodiment, when recording the voltage value output by the current detection device, a plurality of voltage values in one state of the OPS module may be collected first, the plurality of voltage values are averaged, and the voltage average value is used as the voltage threshold value in the state, so that the error generated by the current detection device in the detection process can be eliminated, and the accuracy of detecting the OPS state is improved.
Optionally, the fluctuation of the input current of the OPS module is relatively large in the power-on state, and the fluctuation of the input current is relatively small in the sleep and sleep states, so that the first preset time may be set to be greater than the second preset time, and the first preset time is greater than the third preset time.
Optionally, because the input current of the OPS module in the power-on state fluctuates greatly, the minimum voltage value of the multiple voltage values within the first preset time may also be selected as the first voltage threshold.
In one embodiment, as shown in fig. 4, the OPS state detection method further includes the steps of:
and if the OPS module cannot be judged to be in a starting state, a dormant state or a sleeping state currently according to the second interval range, sending out a fault alarm of the OPS module.
In this embodiment, the second interval range may be different from the interval ranges corresponding to the three states of the OPS module, and if the second interval range is smaller than the first voltage threshold and is not in the positive and negative error ranges of the second voltage threshold and the third voltage threshold, it indicates that the OPS module is not in the power-on state, the sleep state, or the sleep state, and the OPS module may malfunction, which affects the output current and the corresponding voltage value, and may send out an OPS module malfunction alarm to prompt the OPS malfunction detection.
In one embodiment, as shown in fig. 5, the OPS state detection method further includes the steps of:
and after the current state of the OPS module is determined, the current state information of the OPS module is sent to a main chip of the whole machine where the OPS module is located.
In this embodiment, after determining the current state of the OPS module, the state information may be sent to a main chip of a complete machine where the OPS module is located, and after receiving the state information of the OPS module, the main chip may perform corresponding control operation on the OPS module according to an operation requirement, so as to avoid an operation fault caused by a difference in states of the OPS module.
According to the OPS state detection method, an OPS state detection system is further provided according to an embodiment of the invention, and the following describes an embodiment of the OPS state detection system in detail.
Fig. 6 is a schematic structural diagram of an OPS state detection system according to an embodiment. The OPS state detection system in this embodiment includes:
an operation detection unit 210 for detecting an input current of the OPS module, wherein the input current is a current between the OPS module and a power supply;
the state determining unit 220 is configured to determine a first interval range in which the input current is located according to a preset threshold, and determine a current state of the OPS module according to the first interval range, where the preset threshold is a parameter threshold related to the input current when the OPS module is in different states.
In this embodiment, the operation detection unit 210 detects the current input by the power supply to the OPS module, the state determination unit 220 compares the input current with a preset threshold, and can determine a first interval range in which the input current is located, when the states of the OPS module are different, the current input by the power supply to the OPS module may change greatly, and according to the first interval range, the current state of the OPS module may be determined, and in the case of determining the current state of the OPS module, the whole system may perform corresponding control operation on the OPS module, thereby avoiding an operation failure caused by a difference in the states of the OPS module, and the OPS state detection system does not depend on a specific interface of the OPS module in the detection process, and is suitable for the OPS modules with various different types of interfaces.
In one embodiment, the operation detection unit 210 detects the input current of the OPS module through the current detection device, and obtains a voltage value corresponding to the input current output by the current detection device;
the state determining unit 220 determines a second interval range of the voltage value according to the preset voltage threshold, and determines a current state of the OPS module according to the second interval range.
In one embodiment, when the second interval range is greater than or equal to the first voltage threshold, the state determining unit 220 determines that the OPS module is currently in the power-on state; when the second interval range is the positive and negative error range of the second voltage threshold, judging that the OPS module is in the dormant state currently; and when the second interval range is the positive and negative error range of the third voltage threshold, judging that the OPS module is in the sleep state currently.
In one embodiment, as shown in fig. 7, the OPS state detection system further includes a threshold setting unit 230, configured to set a power-on state of the OPS module, and record a voltage value output by the current detection device at this time as a first voltage threshold; setting an OPS module to be in a dormant state, and recording a voltage value output by the current detection device at the moment as a second voltage threshold; and setting an OPS module to be in a sleep state, and recording the voltage value output by the current detection device at the moment as a third voltage threshold value.
In one embodiment, the threshold setting unit 230 collects a plurality of voltage values within a first preset time, and takes an average value of the plurality of voltage values as a first voltage threshold; collecting a plurality of voltage values within a second preset time, and taking the average value of the voltage values as a second voltage threshold; and collecting a plurality of voltage values within a third preset time, and taking the average value of the voltage values as a third voltage threshold.
In an embodiment, as shown in fig. 8, the OPS state detection system further includes a fault alarm unit 240, configured to send out an OPS module fault alarm when the state judgment unit cannot judge that the OPS module is currently in the power-on state, the hibernation state, or the sleep state according to the second interval range.
In an embodiment, as shown in fig. 9, the OPS state detection system further includes an information sending unit 250, configured to send the current state information of the OPS module to a main chip of the whole device where the OPS module is located after the state judgment unit determines the current state of the OPS module.
The OPS state detection system and the OPS state detection method of the embodiment of the invention are in one-to-one correspondence, and the technical characteristics and the beneficial effects described in the embodiment of the OPS state detection method are all applicable to the embodiment of the OPS state detection system.
According to the OPS state detection method, an OPS state detection device is further provided according to an embodiment of the present invention, and the following describes an embodiment of the OPS state detection device in detail.
Fig. 10 is a schematic structural diagram of an OPS state detection device according to an embodiment. The OPS state detecting device in this embodiment includes a current detecting means 310 and a microprocessor 320;
the current detection device 310 detects an input current of the OPS module, wherein the input current is a current between the OPS module and the power supply;
the microprocessor 320 determines a first interval range of the input current according to a preset threshold, and determines a current state of the OPS module according to the first interval range, where the preset threshold is a parameter threshold related to the input current when the OPS module is in different states.
In this embodiment, the current detection device 310 detects the current input by the power supply to the OPS module, the microprocessor 320 compares the input current with a preset threshold, and can determine the first interval range where the input current is located, and when the state of the OPS module is different, the current input by the power supply to the OPS module will change greatly, and can determine the current state of the OPS module according to the first interval range, and when determining the current state of the OPS module, the whole system can perform corresponding control operation on the OPS module, thereby avoiding operation failure caused by the difference of the states of the OPS module, and the OPS state detection device does not depend on a specific interface of the OPS module in the detection process, and is suitable for the OPS modules with various different types of interfaces.
Alternatively, the current sensing device 310 may be integrated into the microprocessor 320.
In one embodiment, the current detection device 310 detects the input current of the OPS module;
the microprocessor 320 obtains the voltage value of the corresponding input current output by the current detection device 310, determines a second interval range in which the voltage value is located according to the preset voltage threshold, and determines the current state of the OPS module according to the second interval range.
In one embodiment, the microprocessor 320 determines that the OPS module is currently in the power-on state when the second interval range is greater than or equal to the first voltage threshold; when the second interval range is the positive and negative error range of the second voltage threshold, judging that the OPS module is in the dormant state currently; and when the second interval range is the positive and negative error range of the third voltage threshold, judging that the OPS module is in the sleep state currently.
In one embodiment, as shown in fig. 11, the microprocessor 320 sets the OPS module to be in a power-on state, and records the voltage value output by the current detection device at this time as the first voltage threshold; setting an OPS module to be in a dormant state, and recording a voltage value output by the current detection device at the moment as a second voltage threshold; and setting an OPS module to be in a sleep state, and recording the voltage value output by the current detection device at the moment as a third voltage threshold value.
Alternatively, the operation of setting the state of the OPS module may be performed manually directly on the OPS module.
In one embodiment, the microprocessor 320 collects a plurality of voltage values within a first preset time, and uses an average value of the plurality of voltage values as a first voltage threshold; collecting a plurality of voltage values within a second preset time, and taking the average value of the voltage values as a second voltage threshold; and collecting a plurality of voltage values within a third preset time, and taking the average value of the voltage values as a third voltage threshold.
In one embodiment, the microprocessor 320 issues an OPS module fault alarm when it cannot be determined that the OPS module is currently in the power-on state, the sleep state or the sleep state according to the second interval range.
In one embodiment, as shown in fig. 12, the OPS state detecting device further includes a main chip 330, and the microprocessor 320 transmits the current state information of the OPS module to the main chip 330 after determining the current state of the OPS module.
In this embodiment, after determining the current state of the OPS module, the state information may be sent to the main chip, and the main chip may perform corresponding control operation on the OPS module according to an operation requirement after receiving the state information of the OPS module, so as to avoid an operation failure caused by a difference in states of the OPS module. The master chip may be the master chip of the overall system where the OPS module is located.
In the above embodiment, the OPS state detection process can be implemented in the current detection device 310 and the microprocessor 320, and the OPS state detection apparatus corresponds to the OPS state detection method, and the technical features and the advantages thereof described in the above embodiment of the OPS state detection method are applicable to the embodiment of the OPS state detection apparatus.
According to the OPS state detection method, the embodiment of the invention also provides a readable storage medium and a computer device.
A readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the OPS state detection method described above.
The readable storage medium realizes that the whole system can perform corresponding control operation on the OPS module under the condition of determining the current state of the OPS module through the stored executable program, avoids operation faults caused by the difference of the states of the OPS module, does not depend on a specific interface of the OPS module in the detection process, and is suitable for the OPS modules with various interfaces of different types.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the OPS state detection method when executing the program.
According to the computer equipment, the fact that the complete machine system can perform corresponding control operation on the OPS module under the condition that the current state of the OPS module is determined is achieved through the executable program running on the processor, operation faults caused by the difference of the states of the OPS module are avoided, the computer equipment does not depend on a specific interface of the OPS module in the detection process, and the computer equipment is suitable for the OPS modules of various interfaces of different types.
It will be understood by those skilled in the art that all or part of the processes of implementing the OPS state detection method according to the above embodiments may be implemented by a computer program instructing associated hardware, where the program may be stored in a non-volatile computer-readable storage medium, and in an embodiment, the program may be stored in the storage medium of a computer system and executed by at least one processor in the computer system, so as to implement the processes including the embodiments of the OPS state detection method according to the above embodiments. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
In one embodiment, the OPS state detection method may be applied to an intelligent interactive flat panel display device. The whole system of the traditional intelligent interactive flat panel display equipment is connected with a standard 80PIN interface of an OPS module, because the standard 80PIN interface does not reserve PINs or interface definitions for detecting whether the OPS module is in a starting state, a sleeping state or a sleeping state, the whole system cannot identify the specific state of the OPS module, when the OPS module enters the sleeping state or the sleeping state, the whole system can judge that the OPS module is in the shutdown state, and therefore the running fault of the whole system can be caused.
The OPS state detection method can solve the above problems, and specifically includes the following steps:
as shown in fig. 13, when the OPS module is first adapted to the whole system, the OPS module is normally started up and enters the desktop, at this time, the MCU records and stores the voltage value a output by the current detection device in the system, the OPS module is set to enter the sleep state, at this time, the MCU records and stores the voltage value B output by the current detection device in the system, the OPS module is set to enter the sleep state, and at this time, the MCU records and stores the voltage value C output by the current detection device in the system;
after the learning setting is completed, when the whole machine system is used, the MCU can detect the voltage quantity X output by the current detection device in real time, when the voltage quantity X is larger than or equal to A, the MCU judges that the OPS module is in a normal starting use state currently, when the voltage quantity X is stably close to B, the MCU judges that the OPS module is in a dormant state currently, and when the voltage quantity X is stably close to C, the MCU judges that the OPS module is in a sleep state currently; in addition, the MCU cannot judge that the OPS module is in normal startup, dormancy or sleep, which indicates that the OPS module has a fault and can initiate fault alarm;
no matter the OPS module is in normal use, sleep or dormant state, the MCU can inform the judging state of the OPS to the main chip through the serial port or the USB interface in real time, and then the whole system can make corresponding control or prompt action.
The OPS state detection method can identify the starting, sleeping or dormant states of the OPS module, and can judge the OPS state through current learning even if the OPS modules of different manufacturers and different specifications are replaced by the whole system, so that the OPS state detection method can be suitable for various OPS modules of different types.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be implemented by a program instructing the relevant hardware. The program may be stored in a readable storage medium. Which when executed comprises the steps of the method described above. The storage medium includes: ROM/RAM, magnetic disk, optical disk, etc.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. An OPS state detection method is characterized by comprising the following steps:
detecting an input current of an OPS module, wherein the input current is a current between the OPS module and a power supply;
judging a first interval range in which the input current is positioned according to a preset threshold, wherein the preset threshold is a parameter threshold related to the input current when the OPS module is in different states;
judging the current state of the OPS module according to the first interval range, wherein the state comprises: a power-on state, a sleep state and a sleep state;
wherein the step of detecting the input current of the OPS module comprises the steps of: detecting the input current of the OPS module through a current detection device, and acquiring a voltage value which is output by the current detection device and corresponds to the input current;
the step of judging the first interval range of the input current according to the preset threshold value comprises the following steps: judging a second interval range of the voltage value according to a preset voltage threshold;
wherein, the step of judging the current state of the OPS module according to the first interval range comprises the following steps: and judging the current state of the OPS module according to the second interval range.
2. The OPS state detection method according to claim 1, wherein the step of determining the current state of the OPS module according to the second interval range includes the steps of:
if the second interval range is larger than or equal to a first voltage threshold, judging that the OPS module is in a starting state currently;
if the second interval range is a positive and negative error range of a second voltage threshold, judging that the OPS module is in a dormant state currently;
and if the second interval range is the positive and negative error range of the third voltage threshold, judging that the OPS module is in the sleep state currently.
3. The OPS state detection method according to claim 2, further comprising the steps of:
setting the OPS module to be in a starting state, and recording a voltage value output by the current detection device at the moment as the first voltage threshold value;
setting the OPS module to be in a dormant state, and recording a voltage value output by the current detection device at the moment as the second voltage threshold;
and setting an OPS module to be in a sleep state, and recording the voltage value output by the current detection device at the moment as the third voltage threshold.
4. The OPS state detecting method according to claim 3, wherein the step of recording the voltage value output by the current detecting means at that time as the first voltage threshold value comprises the steps of:
collecting a plurality of voltage values within a first preset time, and taking the average value of the voltage values as the first voltage threshold;
the step of recording the voltage value output by the current detection device at this time as the second voltage threshold value comprises the following steps:
collecting a plurality of voltage values within a second preset time, and taking the average value of the voltage values as the second voltage threshold;
the step of recording the voltage value output by the current detection device at this time as the third voltage threshold value comprises the following steps:
and collecting a plurality of voltage values within a third preset time, and taking the average value of the voltage values as the third voltage threshold.
5. The OPS state detection method according to claim 2, further comprising the steps of:
and if the OPS module cannot be judged to be in a starting state, a dormant state or a sleeping state currently according to the second interval range, sending out a fault alarm of the OPS module.
6. The OPS state detection method according to any claim 1 to 5, further comprising:
after the current state of the OPS module is determined, the current state information of the OPS module is sent to a main chip of a complete machine where the OPS module is located.
7. An OPS state detection system, comprising:
the device comprises an operation detection unit, a control unit and a control unit, wherein the operation detection unit is used for detecting the input current of an OPS module, and the input current is the current between the OPS module and a power supply;
a state determining unit, configured to determine a first interval range in which the input current is located according to a preset threshold, and determine a current state of the OPS module according to the first interval range, where the preset threshold is a parameter threshold related to the input current when the OPS module is in different states, and the state includes: a power-on state, a sleep state and a sleep state;
wherein the detecting the input current of the OPS module comprises: detecting the input current of the OPS module through a current detection device, and acquiring a voltage value which is output by the current detection device and corresponds to the input current;
wherein, the judging the first interval range where the input current is located according to the preset threshold value comprises: judging a second interval range of the voltage value according to a preset voltage threshold;
wherein the judging the current state of the OPS module according to the first interval range comprises: and judging the current state of the OPS module according to the second interval range.
8. An OPS state detecting device, comprising a current detecting means and a microprocessor;
the current detection device detects an input current of an OPS module, wherein the input current is a current between the OPS module and a power supply;
the microprocessor judges a first interval range in which the input current is positioned according to a preset threshold, and judges the current state of the OPS module according to the first interval range, wherein the preset threshold is a parameter threshold related to the input current when the OPS module is in different states, and the states include: a power-on state, a sleep state and a sleep state;
wherein the detecting the input current of the OPS module comprises: detecting the input current of the OPS module through a current detection device, and acquiring a voltage value which is output by the current detection device and corresponds to the input current;
wherein, the judging the first interval range where the input current is located according to the preset threshold value comprises: judging a second interval range of the voltage value according to a preset voltage threshold;
wherein the judging the current state of the OPS module according to the first interval range comprises: and judging the current state of the OPS module according to the second interval range.
9. The OPS state detection device according to claim 8, further comprising a main chip, wherein the microprocessor sends the current state information of the OPS module to the main chip after determining the current state of the OPS module.
CN201810361218.8A 2018-04-20 2018-04-20 OPS state detection method, system and equipment Active CN108710037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810361218.8A CN108710037B (en) 2018-04-20 2018-04-20 OPS state detection method, system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810361218.8A CN108710037B (en) 2018-04-20 2018-04-20 OPS state detection method, system and equipment

Publications (2)

Publication Number Publication Date
CN108710037A CN108710037A (en) 2018-10-26
CN108710037B true CN108710037B (en) 2021-04-13

Family

ID=63866807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810361218.8A Active CN108710037B (en) 2018-04-20 2018-04-20 OPS state detection method, system and equipment

Country Status (1)

Country Link
CN (1) CN108710037B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110441584B (en) * 2019-08-26 2020-11-17 珠海格力电器股份有限公司 Equipment running state monitoring method, device, storage medium and system
CN112181502B (en) * 2020-09-22 2022-02-08 长沙朗源电子科技有限公司 OPS computer control method and device of all-in-one machine equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202795224U (en) * 2009-07-15 2013-03-13 霍为民 Control circuit eliminating computer standby power consumption
CN104979892A (en) * 2015-07-02 2015-10-14 四川长虹教育科技有限公司 System and method for preventing OPS abnormal power failure of OPS-TV all-in-one machine

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5059889A (en) * 1990-03-08 1991-10-22 Texas Instruments Incorporated Parametric measurement unit/device power supply for semiconductor test system
CN201584592U (en) * 2009-11-30 2010-09-15 武汉电信器件有限公司 Electric mouth small type pluggable electric connecting module
CN204759339U (en) * 2015-06-19 2015-11-11 浙江大华技术股份有限公司 But protection device of OPS computer is standardized in open plug in all -in -one
CN206162275U (en) * 2016-10-28 2017-05-10 创维光电科技(深圳)有限公司 But OPS switching card supply circuit and OPS switching card are standardized in open plug
CN206339601U (en) * 2016-12-13 2017-07-18 广州视源电子科技股份有限公司 Pluggable module detection means

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202795224U (en) * 2009-07-15 2013-03-13 霍为民 Control circuit eliminating computer standby power consumption
CN104979892A (en) * 2015-07-02 2015-10-14 四川长虹教育科技有限公司 System and method for preventing OPS abnormal power failure of OPS-TV all-in-one machine

Also Published As

Publication number Publication date
CN108710037A (en) 2018-10-26

Similar Documents

Publication Publication Date Title
CN107145410B (en) Method, system and equipment for automatically powering on and starting up system after abnormal power failure
EP2372491B1 (en) Power lock-up setting method and electronic apparatus using the same
US9946600B2 (en) Method of detecting power reset of a server, a baseboard management controller, and a server
WO2018045687A1 (en) Plug module recognition circuit and method
CN108710037B (en) OPS state detection method, system and equipment
US20120005494A1 (en) Host computer and method for starting hard disks
CN111752776A (en) Cyclic power-on and power-off test method and system for server
US11216053B2 (en) Systems, apparatus, and methods for transitioning between multiple operating states
US8726088B2 (en) Method for processing booting errors
US20130283028A1 (en) Adapter identification system and method for computer
US7900030B2 (en) Method for determining a rebooting action of a computer system and related computer system
US9158646B2 (en) Abnormal information output system for a computer system
US20050086460A1 (en) Apparatus and method for wakeup on LAN
CN106371938A (en) Automatic intelligent delaying shutdown system and method
CN203455128U (en) Electric pressure cooker and pressure detection apparatus thereof
CN112463502B (en) Method, device and system for detecting pin state of programmable logic device
US9645627B2 (en) Computer stick docking system and power management method thereof
CN203455136U (en) Electric pressure cooker and fault detection device thereof
CN107179972A (en) For the method for calculation machine, microcontroller, test equipment and test system
CN109120999B (en) Method, system, device and storage medium for handling exception of CEC system
CN101373396B (en) Current limiting protecting apparatus and current limiting protecting method
WO2021169476A1 (en) Server expansion system, and power control method for same
US10795423B2 (en) Electronic apparatus with power saving mode, control method thereof, and storage medium
CN112214094B (en) Method and equipment for coping with power supply jitter of hard disk
TW202219941A (en) Method, apparatus, mainboard and related computer readable storage 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
GR01 Patent grant
GR01 Patent grant