CN113049871A - Voltage abnormity monitoring method and device and electronic equipment - Google Patents

Voltage abnormity monitoring method and device and electronic equipment Download PDF

Info

Publication number
CN113049871A
CN113049871A CN201911379049.1A CN201911379049A CN113049871A CN 113049871 A CN113049871 A CN 113049871A CN 201911379049 A CN201911379049 A CN 201911379049A CN 113049871 A CN113049871 A CN 113049871A
Authority
CN
China
Prior art keywords
voltage
sending
state
voltage information
main platform
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
CN201911379049.1A
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.)
Hangzhou Hikmicro Sensing Technology Co Ltd
Original Assignee
Hangzhou Hikmicro Sensing 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 Hangzhou Hikmicro Sensing Technology Co Ltd filed Critical Hangzhou Hikmicro Sensing Technology Co Ltd
Priority to CN201911379049.1A priority Critical patent/CN113049871A/en
Publication of CN113049871A publication Critical patent/CN113049871A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16528Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values using digital techniques or performing arithmetic operations
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16566Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533
    • G01R19/1659Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533 to indicate that the value is within or outside a predetermined range of values (window)
    • G01R19/16595Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533 to indicate that the value is within or outside a predetermined range of values (window) with multi level indication

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Power Sources (AREA)

Abstract

The application provides a voltage abnormity monitoring method, a voltage abnormity monitoring device and electronic equipment, wherein the method comprises the following steps: when the single chip microcomputer is started, acquiring a voltage value of a power supply of the network equipment; when the acquired voltage value is higher than a first threshold value or lower than a second threshold value, storing abnormal voltage information, and sending the abnormal voltage information to the main platform so that the main platform performs alarm processing based on the abnormal voltage information; wherein the first threshold is greater than the second threshold. The method can improve the timeliness and efficiency of discovering the voltage value abnormality of the power supply of the network equipment, and provides data support for abnormal restart or damage reason investigation of the network equipment.

Description

Voltage abnormity monitoring method and device and electronic equipment
Technical Field
The present disclosure relates to the field of network devices, and in particular, to a voltage anomaly monitoring method and apparatus, and an electronic device.
Background
With the development of network technology, the deployment of network devices is becoming more popular, and some remote areas, such as webcams, may also deploy network devices.
In practical application, the network device is often restarted, and although experience shows that the condition is caused by unstable power supply voltage, workers are usually required to go to a site for investigation and verification to finally confirm the actual reason, so that time and labor are wasted, problems may not be reproduced, and the difficulty in solving the problems is increased.
Disclosure of Invention
In view of the above, the present application provides a voltage anomaly monitoring method and apparatus, and an electronic device.
Specifically, the method is realized through the following technical scheme:
according to a first aspect of an embodiment of the present application, a voltage anomaly monitoring method is provided, which is applied to a single chip microcomputer in a network device including the single chip microcomputer and a main platform, and the method includes:
when the single chip microcomputer is started, acquiring a voltage value of a power supply of the network equipment;
when the acquired voltage value is higher than a first threshold value or lower than a second threshold value, storing abnormal voltage information, and sending the abnormal voltage information to the main platform so that the main platform performs alarm processing based on the abnormal voltage information; wherein the first threshold is greater than the second threshold.
According to a second aspect of the embodiments of the present application, there is provided a voltage anomaly monitoring device applied to a single chip microcomputer in a network device including the single chip microcomputer and a main platform, the device including:
the acquisition unit is used for acquiring the voltage value of a power supply of the network equipment when the singlechip finishes starting;
the storage unit is used for storing abnormal voltage information when the voltage value acquired by the acquisition unit is higher than a first threshold value or lower than a second threshold value;
the sending unit is used for sending the abnormal voltage information to the main platform so that the main platform carries out alarm processing based on the abnormal voltage information; wherein the first threshold is greater than the second threshold.
According to a third aspect of embodiments of the present application, there is provided an electronic apparatus including:
a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; the processor is configured to execute machine-executable instructions to implement the above-described method.
According to the voltage anomaly monitoring method, the single chip microcomputer is integrated in the network equipment, and when the single chip microcomputer is started, the voltage value of a power supply of the network equipment is collected; when the acquired voltage value is higher than the first threshold value or lower than the second threshold value, the abnormal voltage information is stored, and the abnormal voltage information is sent to the main platform, so that the main platform carries out alarm processing based on the abnormal voltage information, the timeliness and the efficiency of discovering the voltage value abnormality of the power supply of the network equipment are improved, the reliability of monitoring the voltage abnormality by the network equipment is improved, and data support is provided for troubleshooting of abnormal restart or damage reasons of the network equipment.
Drawings
Fig. 1 is a schematic flow chart illustrating a voltage anomaly monitoring method according to an exemplary embodiment of the present application;
fig. 2 is a schematic architecture diagram illustrating a specific application scenario according to an exemplary embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating a voltage anomaly monitoring method according to an exemplary embodiment of the present application;
fig. 4 is a schematic structural diagram of a voltage anomaly monitoring device according to an exemplary embodiment of the present application;
fig. 5 is a schematic diagram of a hardware structure of the apparatus shown in fig. 4 according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In order to make the technical solutions provided in the embodiments of the present application better understood and make the above objects, features and advantages of the embodiments of the present application more comprehensible, the technical solutions in the embodiments of the present application are described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a schematic flow chart of a voltage anomaly monitoring method provided in an embodiment of the present application is shown, where the voltage anomaly monitoring method may be applied to a single chip microcomputer in a network device including the single chip microcomputer and a main platform, and as shown in fig. 1, the voltage anomaly monitoring method may include the following steps:
and S100, when the single chip microcomputer is started, acquiring the voltage value of a power supply of the network equipment.
In the embodiment of the present application, in order to find that the voltage (which may be referred to as a supply voltage) of the power supply of the network device is abnormal in time, the network device may monitor the voltage of the power supply.
In consideration of the fact that if the voltage of the power supply is monitored through the main platform of the network device, the situation that the network device is restarted or damaged due to the fact that the voltage is lower than the normal working voltage of the network device easily occurs, and further the voltage abnormal situation cannot be recorded, and whether the restarting or the damage of the network device is caused by the power supply reason cannot be determined in the subsequent process, therefore, in order to improve the reliability of the voltage abnormal monitoring, the voltage abnormal monitoring can be carried out through integrating the single chip microcomputer in the network device and the single chip microcomputer. The single chip microcomputer can still work normally under a very low voltage, so that the voltage in the voltage reduction process can be collected, the abnormal condition of the voltage can be recorded, and a data basis is provided for the reason analysis of the restart or damage of subsequent network equipment.
For example, the single chip microcomputer is usually started faster than the network device, so that the voltage value of the power supply of the network device can be acquired when the single chip microcomputer is started, and the voltage value does not need to be acquired when the network device is started, and the reliability of voltage anomaly monitoring is further improved.
The single chip microcomputer can acquire a voltage value of a power supply of the network equipment according to a preset strategy, and compares the acquired voltage value with a preset high voltage threshold (referred to as a first threshold) and a preset low voltage threshold (referred to as a second threshold); the first threshold is greater than the second threshold.
For example, the single chip microcomputer may acquire the voltage value of the power supply of the network device in real time, or the single chip microcomputer may periodically acquire the voltage value of the power supply of the network device.
And step S110, when the acquired voltage value is higher than a first threshold value or lower than a second threshold value, storing abnormal voltage information, and sending the abnormal voltage information to the main platform so that the main platform performs alarm processing based on the abnormal voltage information.
In the embodiment of the application, when the voltage value acquired by the single chip microcomputer is higher than a first threshold (namely, the voltage value of the power supply of the network equipment is too high) or lower than a second threshold (namely, the voltage value of the power supply of the network equipment is too low), the single chip microcomputer determines that the power supply voltage of the network equipment is abnormal, and at the moment, on one hand, the single chip microcomputer can store abnormal voltage information so that the reason can be checked based on the abnormal voltage information recorded by the single chip microcomputer when the subsequent network equipment is abnormally restarted or damaged; on the other hand, the single chip microcomputer can send the abnormal voltage information to the main platform, and the main platform carries out alarm processing so as to improve the timeliness and efficiency of finding the voltage value abnormality of the power supply of the network equipment.
Illustratively, the host platform may be a host chip of the network device.
For example, the abnormal voltage information may include, but is not limited to, a voltage collection time, a collected voltage value, a voltage state (such as a state in which the voltage value is higher than a first threshold (may be referred to as a high voltage state) or a state in which the voltage value is lower than a second threshold (may be referred to as a low voltage state)), and the like.
For example, if the voltage value collected by the single chip microcomputer at the time T1 is V1 and V1 is greater than the first threshold, the abnormal voltage information recorded by the single chip microcomputer may include: voltage acquisition time-T1, acquired voltage value-V1, and voltage state-high voltage state.
For another example, if the voltage value collected by the single chip microcomputer at the time T2 is V2 and V2 is smaller than the second threshold, the abnormal voltage information recorded by the single chip microcomputer may include: voltage acquisition time-T2, acquired voltage value-V2, and voltage state-low voltage state.
When the main platform receives the abnormal voltage information sent by the single chip microcomputer, alarm processing can be carried out based on the abnormal voltage information.
For example, the main platform may report the abnormal voltage information to the alarm platform to trigger an alarm.
In one example, the information interaction between the single chip microcomputer and the main platform can be carried out in a serial port communication mode.
It can be seen that, in the method flow shown in fig. 1, the voltage value of the power supply of the network device is monitored by the single chip when the startup is completed, and when the voltage value of the power supply of the network device is monitored to be abnormal, such as higher than the first threshold or lower than the second threshold, the abnormal voltage information is stored and reported to the master platform, so that the timeliness and efficiency of finding the abnormal voltage value of the power supply of the network device are improved, and data support is provided for abnormal restart or damage cause investigation of the network device.
In one possible embodiment, when the voltage value is higher than the first threshold value or lower than the second threshold value, saving the abnormal voltage information and sending the abnormal voltage information to the main platform may include:
when the abnormal voltage state changes, storing abnormal voltage information according to a first strategy, and sending the abnormal voltage information to the main platform;
and when the abnormity occurs and the voltage state is not changed, storing the abnormal voltage information according to a second strategy, and sending the abnormal voltage information to the main platform.
For example, in order to improve the flexibility of storing and transmitting the abnormal voltage information, for the case where an abnormality occurs, and the voltage state changes (which may be referred to as entering a certain abnormal state for the first time) and the case where an abnormality occurs, and the voltage state does not change (which may be referred to as entering the abnormal state for the non-first time), different strategies may be adopted to store and transmit the abnormal voltage information.
Correspondingly, when the single chip microcomputer monitors that the voltage of the power supply of the network equipment is abnormal, the single chip microcomputer can determine whether the voltage state of the network equipment is changed.
For example, the voltage condition may include, but is not limited to, a high voltage condition (i.e., the voltage of the power supply of the network device is above a first threshold), a low voltage condition (i.e., the voltage of the power supply of the network device is below a second threshold), or a normal voltage condition (i.e., the network device is within a range of the first threshold and the second threshold).
The voltage state change includes a change from a normal voltage state to a high voltage state, a change from a normal voltage state to a low voltage state, a change from a high voltage state to a low voltage state, a change from a low voltage state to a high voltage state, a change from a high voltage state to a normal voltage state, a change from a low voltage state to a normal voltage state, or the like.
In one example, the single-chip may maintain a voltage status flag that indicates whether the voltage status of the network device is a high-voltage status, a low-voltage status, or a normal voltage status. When the single chip microcomputer monitors that the voltage of the power supply of the network equipment is abnormal, whether the voltage state changes or not can be determined based on the voltage state zone bit.
For example, when the single chip microcomputer monitors that a power supply of the power supply voltage of the network equipment is higher than a first threshold value, if the voltage state flag bit indicates that the voltage state of the network equipment is a high-voltage state, the single chip microcomputer determines that the voltage state is not changed; and if the voltage state flag bit indicates that the voltage state of the network equipment is a low-voltage state or a normal voltage state, the singlechip determines that the voltage state changes.
For another example, when the single chip microcomputer monitors that the power supply of the power supply voltage of the network device is lower than the second threshold value, if the voltage state flag bit indicates that the voltage state of the network device is a low-voltage state, the single chip microcomputer determines that the voltage state is not changed; and if the voltage state flag bit indicates that the voltage state of the network equipment is a high-voltage state or a normal voltage state, the singlechip determines that the voltage state changes.
It should be noted that, when the single chip microcomputer determines that the voltage state changes, the value of the voltage state flag bit may be updated to a value consistent with the currently monitored voltage state.
For example, the initial value of the voltage status flag is a value (which may be referred to as a first value) for indicating that the power supply of the network device is in a normal voltage status; when the single chip determines that the voltage value of the power supply of the network device is abnormal according to the collected voltage value, the value of the voltage status flag bit may be set to a value (which may be referred to as a second value) for indicating that the power supply of the network device is in a high-voltage state or a value (which may be referred to as a third value) for indicating that the power supply of the network device is in a low-voltage state according to whether the collected voltage value is higher than the first threshold or lower than the second threshold.
Illustratively, when the single chip microcomputer monitors that the network equipment enters a certain abnormal state for the first time, the abnormal voltage information can be stored according to a first strategy, and the abnormal voltage information is sent to the main platform;
when the single chip microcomputer monitors that the network equipment does not enter a certain abnormal state for the first time, the abnormal voltage information can be stored according to a second strategy, and the abnormal voltage information is sent to the main platform.
Illustratively, the second strategy is different from the first strategy in transmission interval, that is, the single chip microcomputer transmits the abnormal voltage information to the main platform by adopting different transmission intervals.
In one example, saving the abnormal voltage information according to the first policy and transmitting the abnormal voltage information to the main platform may include: storing current voltage information and sending the current voltage information to a main platform;
storing the abnormal voltage information according to a second policy, and sending the abnormal voltage information to the main platform, which may include: when the duration time of the voltage abnormity does not reach a preset threshold value, current voltage information is stored according to a first time interval, when the duration time of the voltage abnormity reaches the preset time threshold value, the current voltage information is stored according to a second time interval, the current voltage information is sent to the main platform, and the second time interval is larger than the first time interval.
For example, in order to avoid too frequent alarm when the power supply of the network device is in a low-voltage state or a high-voltage state for a long time, the sending interval of the abnormal voltage information may be increased to reduce the alarm frequency when the network device is in the low-voltage state or the high-voltage state for a long time.
Correspondingly, when the single chip microcomputer monitors that the voltage of the power supply of the network equipment is abnormal and the voltage state changes, the current voltage information can be stored and sent to the main platform, namely when the single chip microcomputer monitors that the network equipment enters a certain voltage abnormal state for the first time, the single chip microcomputer stores the abnormal voltage information and sends the abnormal voltage information to the main platform.
When the single chip microcomputer monitors that the voltage of the power supply of the network equipment is abnormal and the voltage state is not changed, the single chip microcomputer can count the duration time of the voltage abnormality (the duration time that the voltage state of the network equipment is kept in the same abnormal state), and take different measures based on the duration time of the voltage abnormality.
Illustratively, when the duration of the voltage anomaly does not reach a preset time threshold (which can be set according to an actual scene, such as 1s), the single chip microcomputer can store the current voltage information according to a first time interval (which can be set according to the actual scene, such as 200ms), but does not send the anomalous voltage information to the main platform, so that the variation trend of the anomalous voltage is recorded under the condition that the alarm is prevented from being uploaded too frequently, and the problem is conveniently acquired and checked in the later stage.
When the voltage abnormity duration time reaches a preset time interval, the single chip microcomputer can store the current voltage information according to a second time interval (which can be set according to an actual scene, such as 10s), and send the current voltage information to the main platform.
In a possible embodiment, the sending state is not sent when the current voltage information is stored, and the sending state is updated to be sent when the current voltage information is sent to the main platform and the alarm success feedback message sent by the main platform is received, and the updated sending state is stored.
In this embodiment, in consideration of the fact that in practical application, there may be a case where the abnormal voltage information is not yet sent to the main platform or the main platform has not completed the alarm processing, and the network device is abnormally restarted or damaged, in this case, when the network device is restarted, the single chip may not be able to determine whether the recorded abnormal voltage information includes the abnormal voltage information that is not sent to the main platform or the main platform has not completed the alarm processing.
Based on this, for the abnormal voltage information that records, singlechip can also maintain the state of sending of abnormal voltage information.
Illustratively, the transmission status includes unsent or transmitted.
When the single chip microcomputer determines that the power supply voltage of the network equipment is abnormal based on the acquired voltage value, the single chip microcomputer can generate abnormal voltage information corresponding to the acquired voltage value and store the abnormal voltage information, and at the moment, the sending state included in the abnormal voltage information is unsent.
After the single chip microcomputer sends the abnormal voltage information to the main platform, the main platform can perform alarm processing based on the received abnormal voltage information.
When the main platform finishes the alarm processing, an alarm success feedback message can be sent to the single chip microcomputer to inform the single chip microcomputer that the alarm processing is finished, and at the moment, the single chip microcomputer can update the sending state included in the stored abnormal voltage information from unsent to sent.
In one example, the voltage abnormality monitoring method may further include:
when the single chip microcomputer is started, detecting whether abnormal voltage information with a non-transmitted transmission state is stored;
if yes, sending the voltage information with the sending state of non-sending to the main platform, updating the sending state to be sent when receiving an alarm success feedback message sent by the main platform, and storing the updated sending state.
In this example, in order to avoid that abnormal voltage information is not sent to the main platform or the main platform fails to complete alarm processing due to abnormal restart or damage of the network device, when the single chip microcomputer is started, the single chip microcomputer may query whether the stored abnormal voltage information has abnormal voltage information whose sending state is not sent.
If the abnormal voltage information exists, the single chip microcomputer can send the stored abnormal voltage information of which the sending state is not sent to the main platform.
For example, when the network device is restarted, the single chip microcomputer is usually restarted faster than the main platform. In addition, because the single chip microcomputer does not support an RTC (real time clock), a timer is generally used for timing, and therefore, in order to guarantee time synchronization between the single chip microcomputer and the master platform, the master platform issues a timing command to the single chip microcomputer at fixed intervals after the single chip microcomputer is restarted.
Correspondingly, when the single chip microcomputer is started, the stored abnormal voltage information with the sending state of unsent can be sent to the main platform when the timing command sent by the main platform is received, so that the abnormal voltage information is prevented from being sent to the main platform under the condition that the main platform is not started.
It should be noted that, in the embodiment of the present application, in order to avoid an oscillation phenomenon caused by fluctuation of the voltage above and below a threshold (such as the first threshold or the second threshold), a threshold (such as the first threshold or the second threshold) used for determining that the voltage enters the abnormal state from the normal state may be different from a threshold used for determining that the voltage returns to the normal state from the abnormal state.
For example, assuming that the threshold value for the voltage value of the power supply of the network device to enter the high-voltage state from the normal state is a first threshold value, and the threshold value for the voltage value of the power supply of the network device to enter the low-voltage state from the normal state is a second threshold value, the threshold value for the voltage value of the power supply of the network device to enter the normal state from the high-voltage state (referred to as a third threshold value herein) needs to be lower than the first threshold value, and the threshold value for the voltage value of the power supply of the network device to enter the normal state from the low-voltage state (.
For example, assuming that the normal operating voltage range of the network device is 30V to 50V (i.e., the first threshold is 50V, and the second threshold is 30V), that is, when the power supply voltage value of the network device is between 30V to 50V (including 30V or 50V), the power supply voltage of the network device is determined to be normal, the threshold range (which may be referred to as a voltage drop threshold range) for determining that the power supply voltage of the network device is restored from the abnormal state to the normal state may be 31V to 49V (i.e., the third threshold is 49V, and the fourth threshold is 31V).
In order to enable those skilled in the art to better understand the technical solutions provided in the embodiments of the present application, the following describes the technical solutions provided in the embodiments of the present application with reference to specific application scenarios.
Referring to fig. 2, a schematic structural diagram of a specific application scenario provided in an embodiment of the present application is shown in fig. 2, in the application scenario, a network device may acquire a voltage value of a power supply in real time through a single chip, and when it is determined that a voltage is abnormal, store abnormal voltage information (including voltage acquisition time, voltage value, voltage state, and transmission state) in an EEPROM (Electrically Erasable Programmable read only memory), report the abnormal voltage information to a main platform through a serial port, and report the abnormal voltage information to an alarm platform through the main platform.
In this embodiment, the main platform supports the following functions through serial communication with the single chip microcomputer:
1) reading and clearing all sent or unsent abnormal voltage information in the EEPROM through a serial port of the singlechip;
2) acquiring a current power supply voltage value in real time;
3) issuing a timing command to the singlechip;
4) sending the upper and lower threshold values (namely the first threshold value and the second threshold value) of the normal working voltage;
5) and acquiring the current version number of the singlechip.
Referring to fig. 3, based on the application scenario shown in fig. 2, the voltage anomaly monitoring implementation process is as follows:
1. after the system is powered on, the single chip microcomputer carries out resource initialization, then reads abnormal voltage information in the EEPROM and determines the initial position of writing of the abnormal voltage information.
Illustratively, in order to prolong the service life of the EEPROM, data is written into the EEPROM in a circulating writing mode, so that the singlechip can determine a writing address of newly added abnormal voltage information every time the singlechip is started, and the data is rewritten from a zero address after the EEPROM is fully written.
2. The single chip microcomputer collects the voltage value of a power supply of the network equipment in real time. When the acquired voltage value is larger than the upper threshold (namely the first threshold), high-voltage state processing is carried out; when the acquired voltage value is smaller than the lower threshold (namely the second threshold), low-voltage state processing is carried out; and when the acquired voltage value is less than or equal to the first threshold and greater than or equal to the second threshold, entering normal voltage state processing.
3. High-pressure state treatment: if the value of the voltage state flag bit is not the second value, namely the voltage state flag bit enters a high-voltage state for the first time, updating the value of the voltage state flag bit to be the second value, writing abnormal voltage information (current time, voltage value, voltage state and transmission state) into an EEPROM, and sending the abnormal voltage information to a main platform through a serial port to trigger alarm, wherein the transmission state is not sent; and when an alarm success feedback message returned by the main platform is received, updating the sending state in the recorded abnormal voltage information into a sent state. If the value of the voltage state zone bit is a second value, namely the voltage state zone bit does not enter a high-voltage state for the first time, a strategy of time-interval sending is adopted, namely voltage information is stored once every 200ms (namely the first time interval), and is not sent to the main platform (the sending state is not sent), the change trend of abnormal voltage is recorded, and the problem is conveniently checked in the later period; when the time interval from the last sending of the abnormal voltage information reaches 1S (namely, the second time interval), the abnormal voltage information is stored and sent every 10S (namely, the third time interval) so as to avoid too frequent alarm uploading caused by the fact that the power supply of the network equipment is in a high-voltage state for a long time.
4. And (3) low-pressure state treatment: if the value of the voltage state flag bit is not the third value, namely the voltage state flag bit enters a low-voltage state for the first time, updating the value of the voltage state flag bit to be the third value, writing abnormal voltage information (current time, voltage value, voltage state and transmission state) into an EEPROM, wherein the transmission state is not transmitted, and transmitting the abnormal voltage information to a main platform through a serial port to trigger alarm; and when an alarm success feedback message returned by the main platform is received, updating the sending state in the recorded abnormal voltage information into a sent state. If the value of the voltage state zone bit is a third value, namely the voltage state zone bit does not enter a low-voltage state for the first time, a strategy of time-division sending is adopted, namely voltage information (including time, voltage value, voltage state and other information) is stored once every 200ms and is not sent to a main platform (the sending state is not sent), the change trend of abnormal voltage is recorded, and the problem of later-stage acquisition and troubleshooting is facilitated; when the time interval from the last sending of the abnormal voltage information reaches 1S, the abnormal voltage information is stored and sent every 10S, so that the phenomenon that the alarm is uploaded too frequently due to the fact that a power supply of the network equipment is in a low-voltage state for a long time is avoided.
5. And (3) normal voltage state processing: when the voltage is at the normal operating voltage, the value of the voltage status flag bit is set to a first value.
6. Actively uploading unsent alarm information: because the single chip microcomputer does not support the RTC, a timer is adopted for timing, and a timing command is issued every fixed time through the main platform to calibrate the time of the single chip microcomputer. Therefore, when the single chip microcomputer receives the timing command of the main platform for the first time, the abnormal voltage information in the EEPROM can be read, and the stored abnormal voltage information with the sending state of non-sending is sent to the main platform, so that abnormal restarting or damage caused by the fact that the equipment does not send the abnormal voltage information to the main platform or the main platform does not finish alarm processing is avoided, and the problems of abnormal restarting and damage of the positioning equipment due to power supply reasons are greatly facilitated.
7. The main platform acquires information stored in the EEPROM: when the single chip receives the command issued by the main platform, the received command needs to be analyzed and processed so as to support the function supported by the serial port communication.
In the embodiment of the application, the singlechip is integrated in the network equipment, and when the singlechip is started, the voltage value of a power supply of the network equipment is acquired; when the acquired voltage value is higher than the first threshold value or lower than the second threshold value, the abnormal voltage information is stored, and the abnormal voltage information is sent to the main platform, so that the main platform carries out alarm processing based on the abnormal voltage information, the timeliness and the efficiency of discovering the voltage value abnormality of the power supply of the network equipment are improved, the reliability of monitoring the voltage abnormality by the network equipment is improved, and data support is provided for troubleshooting of abnormal restart or damage reasons of the network equipment.
The methods provided herein are described above. The following describes the apparatus provided in the present application:
referring to fig. 4, a schematic structural diagram of a voltage anomaly monitoring device provided in an embodiment of the present application is shown in fig. 4, where the voltage anomaly monitoring device may include:
the acquisition unit is used for acquiring the voltage value of the power supply of the network equipment when the singlechip is started;
the storage unit is used for storing abnormal voltage information when the voltage value acquired by the acquisition unit is higher than a first threshold value or lower than a second threshold value;
the sending unit is used for sending the abnormal voltage information to the main platform so that the main platform carries out alarm processing based on the abnormal voltage information; wherein the first threshold is greater than the second threshold.
In one embodiment, the storage unit is specifically configured to store abnormal voltage information according to a first policy when an abnormality occurs and a voltage state changes, and send the abnormal voltage information to the main platform through the sending unit; the voltage state comprises a high voltage state, a low voltage state or a normal voltage state;
and when the abnormal voltage occurs and the voltage state is not changed, storing abnormal voltage information according to a second strategy, and sending the abnormal voltage information to the main platform through the sending unit, wherein the sending interval of the second strategy is different from that of the first strategy.
In one embodiment, the storage unit is specifically configured to store current voltage information when an abnormality occurs and a voltage state changes, and send the current voltage information to the main platform through the sending unit;
when abnormity occurs and the voltage state is not changed, if the duration time of the voltage abnormity does not reach a preset time threshold value, current voltage information is stored according to a first time interval, if the duration time of the voltage abnormity reaches the preset time threshold value, the current voltage information is stored according to a second time interval, the current voltage information is sent to the main platform through the sending unit, and the second time interval is larger than the first time interval.
In an embodiment, the storing unit is further configured to, when the current voltage information is stored, determine that the sending status is unsent, and when the sending unit sends the current voltage information to the main platform and receives an alarm success feedback message sent by the main platform, update the sending status to sent, and store the updated sending status.
In one embodiment, the storage unit is further configured to detect whether voltage information with a non-transmitted transmission state is stored when the single chip microcomputer is started; if yes, sending the voltage information with the sending state of unsent to the main platform through the sending unit, updating the sending state to be sent when receiving the alarm success feedback message sent by the main platform, and storing the updated sending state.
Correspondingly, the application also provides a hardware structure of the device shown in fig. 4. Referring to fig. 5, the hardware structure may include: a processor and a machine-readable storage medium having stored thereon machine-executable instructions executable by the processor; the processor is configured to execute machine-executable instructions to implement the methods disclosed in the above examples of the present application.
Based on the same application concept as the method, embodiments of the present application further provide a machine-readable storage medium, where several computer instructions are stored, and when the computer instructions are executed by a processor, the method disclosed in the above example of the present application can be implemented.
The machine-readable storage medium may be, for example, any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (11)

1. A voltage abnormity monitoring method is applied to a single chip microcomputer in network equipment comprising the single chip microcomputer and a main platform, and the method comprises the following steps:
when the single chip microcomputer is started, acquiring a voltage value of a power supply of the network equipment;
when the acquired voltage value is higher than a first threshold value or lower than a second threshold value, storing abnormal voltage information, and sending the abnormal voltage information to the main platform so that the main platform performs alarm processing based on the abnormal voltage information; wherein the first threshold is greater than the second threshold.
2. The method of claim 1, wherein saving abnormal voltage information and sending the abnormal voltage information to the primary platform when the voltage value is above a first threshold or below a second threshold comprises:
when abnormity occurs and the voltage state changes, storing abnormal voltage information according to a first strategy, and sending the abnormal voltage information to the main platform; the voltage state comprises a high voltage state, a low voltage state or a normal voltage state;
and when the abnormal voltage occurs and the voltage state is not changed, storing abnormal voltage information according to a second strategy, and sending the abnormal voltage information to the main platform, wherein the sending intervals of the second strategy and the first strategy are different.
3. The method of claim 2, wherein storing abnormal voltage information according to a first policy and sending the abnormal voltage information to the host platform comprises: saving current voltage information and sending the current voltage information to the main platform;
storing abnormal voltage information according to a second strategy, and sending the abnormal voltage information to the main platform comprises: when the duration time of the voltage abnormity does not reach a preset time threshold value, current voltage information is stored according to a first time interval, when the duration time of the voltage abnormity reaches the preset time threshold value, the current voltage information is stored according to a second time interval, the current voltage information is sent to the main platform, and the second time interval is larger than the first time interval.
4. The method according to any one of claims 1 to 3, wherein the sending state is unsent when the current voltage information is saved, and the sending state is updated to sent when the current voltage information is sent to the master platform and the alarm success feedback message sent by the master platform is received, and the updated sending state is saved.
5. The method of claim 4, further comprising:
when the single chip microcomputer is started, detecting whether voltage information with a sending state of non-sending is stored;
if yes, sending the voltage information with the sending state of non-sending to the main platform, updating the sending state to be sent when receiving the alarm success feedback message sent by the main platform, and storing the updated sending state.
6. A voltage anomaly monitoring device is characterized in that the device is applied to a single chip microcomputer in network equipment comprising the single chip microcomputer and a main platform, and the device comprises:
the acquisition unit is used for acquiring the voltage value of the power supply of the network equipment when the singlechip is started;
the storage unit is used for storing abnormal voltage information when the voltage value acquired by the acquisition unit is higher than a first threshold value or lower than a second threshold value; wherein the first threshold is greater than the second threshold;
the sending unit is used for sending the abnormal voltage information to the main platform so that the main platform carries out alarm processing based on the abnormal voltage information; wherein the first threshold is greater than the second threshold.
7. The apparatus of claim 6,
the storage unit is specifically configured to store abnormal voltage information according to a first policy when an abnormality occurs and a voltage state changes, and send the abnormal voltage information to the main platform through the sending unit; the voltage state comprises a high voltage state, a low voltage state or a normal voltage state;
and when the abnormal voltage occurs and the voltage state is not changed, storing abnormal voltage information according to a second strategy, and sending the abnormal voltage information to the main platform through the sending unit, wherein the sending interval of the second strategy is different from that of the first strategy.
8. The apparatus of claim 7,
the storage unit is specifically used for storing current voltage information when an abnormality occurs and the voltage state changes, and sending the current voltage information to the main platform through the sending unit;
when abnormity occurs and the voltage state is not changed, if the duration time of the voltage abnormity does not reach a preset time threshold value, current voltage information is stored according to a first time interval, if the duration time of the voltage abnormity reaches the preset time threshold value, the current voltage information is stored according to a second time interval, the current voltage information is sent to the main platform through the sending unit, and the second time interval is larger than the first time interval.
9. The apparatus according to any one of claims 6 to 8,
the storage unit is further configured to update the sending state to sent when the sending unit sends the current voltage information to the main platform and receives an alarm success feedback message sent by the main platform, and store the updated sending state.
10. The apparatus of claim 9,
the storage unit is also used for detecting whether voltage information with a non-transmitted transmission state is stored or not when the singlechip is started; if yes, sending the voltage information with the sending state of unsent to the main platform through the sending unit, updating the sending state to be sent when receiving the alarm success feedback message sent by the main platform, and storing the updated sending state.
11. An electronic device, comprising:
a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; the processor is configured to execute machine executable instructions to implement the method steps of any of claims 1-5.
CN201911379049.1A 2019-12-27 2019-12-27 Voltage abnormity monitoring method and device and electronic equipment Pending CN113049871A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911379049.1A CN113049871A (en) 2019-12-27 2019-12-27 Voltage abnormity monitoring method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911379049.1A CN113049871A (en) 2019-12-27 2019-12-27 Voltage abnormity monitoring method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113049871A true CN113049871A (en) 2021-06-29

Family

ID=76506997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911379049.1A Pending CN113049871A (en) 2019-12-27 2019-12-27 Voltage abnormity monitoring method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113049871A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006129557A (en) * 2004-10-26 2006-05-18 Toyota Motor Corp Hybrid control system
CN104319563A (en) * 2014-10-29 2015-01-28 中山市马迅电器有限公司 Intelligent air conditioner socket with abnormity warning function
US20160055046A1 (en) * 2013-04-01 2016-02-25 Zte Corporation System fault detection and processing method, device, and computer readable storage medium
CN205453782U (en) * 2016-03-23 2016-08-10 郑家亮 Network equipment state remote monitoring device
CN106407077A (en) * 2016-09-21 2017-02-15 广州华多网络科技有限公司 A real-time alarm method and system
CN106443363A (en) * 2016-11-21 2017-02-22 深圳供电局有限公司 Method, device and system for monitoring power supply capacity abnormality in power grid
CN106992900A (en) * 2016-01-20 2017-07-28 北京国双科技有限公司 The method and intelligent early-warning notification platform of monitoring and early warning
CN107359609A (en) * 2017-07-05 2017-11-17 许昌许继昌龙电能科技股份有限公司 The monitoring method and device of abnormal voltage in power system
CN108173349A (en) * 2018-01-24 2018-06-15 宁波大家小家网络科技有限公司 A kind of method and system of the power generation data monitoring analysis of photovoltaic power generation apparatus
CN108594120A (en) * 2017-12-28 2018-09-28 努比亚技术有限公司 Detection method, device and the computer readable storage medium of battery status
CN108959025A (en) * 2018-06-27 2018-12-07 郑州云海信息技术有限公司 A kind of server alarm method, device and server
CN109560963A (en) * 2018-11-23 2019-04-02 北京车和家信息技术有限公司 Monitoring alarm method, system and computer readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006129557A (en) * 2004-10-26 2006-05-18 Toyota Motor Corp Hybrid control system
US20160055046A1 (en) * 2013-04-01 2016-02-25 Zte Corporation System fault detection and processing method, device, and computer readable storage medium
CN104319563A (en) * 2014-10-29 2015-01-28 中山市马迅电器有限公司 Intelligent air conditioner socket with abnormity warning function
CN106992900A (en) * 2016-01-20 2017-07-28 北京国双科技有限公司 The method and intelligent early-warning notification platform of monitoring and early warning
CN205453782U (en) * 2016-03-23 2016-08-10 郑家亮 Network equipment state remote monitoring device
CN106407077A (en) * 2016-09-21 2017-02-15 广州华多网络科技有限公司 A real-time alarm method and system
CN106443363A (en) * 2016-11-21 2017-02-22 深圳供电局有限公司 Method, device and system for monitoring power supply capacity abnormality in power grid
CN107359609A (en) * 2017-07-05 2017-11-17 许昌许继昌龙电能科技股份有限公司 The monitoring method and device of abnormal voltage in power system
CN108594120A (en) * 2017-12-28 2018-09-28 努比亚技术有限公司 Detection method, device and the computer readable storage medium of battery status
CN108173349A (en) * 2018-01-24 2018-06-15 宁波大家小家网络科技有限公司 A kind of method and system of the power generation data monitoring analysis of photovoltaic power generation apparatus
CN108959025A (en) * 2018-06-27 2018-12-07 郑州云海信息技术有限公司 A kind of server alarm method, device and server
CN109560963A (en) * 2018-11-23 2019-04-02 北京车和家信息技术有限公司 Monitoring alarm method, system and computer readable storage medium

Similar Documents

Publication Publication Date Title
US7882313B2 (en) Data recording system
US20110208324A1 (en) Sysyem, method, and apparatus for maintenance of sensor and control systems
US20080229125A1 (en) Power managing method of a scheduling system and related scheduling system
CN109391647B (en) Storage resource recovery method, device and system
CN108897658B (en) Method and device for monitoring master database, computer equipment and storage medium
CN111796959B (en) Self-healing method, device and system for host container
CN104346264A (en) System and method for processing system event logs
CN111538613B (en) Cluster system exception recovery processing method and device
CN109474470A (en) One kind is from monitoring method and device
CN108600284B (en) Ceph-based virtual machine high-availability implementation method and system
CN115658113A (en) Server self-starting method and device, readable storage medium and electronic equipment
CN113190256B (en) Upgrading method, device and equipment
CN108628705B (en) Database recovery method and device, computer equipment and storage medium
CN111342986B (en) Distributed node management method and device, distributed system and storage medium
CN110543398A (en) method and system for recording fault information
CN113467919A (en) Process management method, system and storage medium based on block chain
US11930292B2 (en) Device state monitoring method and apparatus
CN113049871A (en) Voltage abnormity monitoring method and device and electronic equipment
CN111917576A (en) Control method and device for storage cluster
CN111949449A (en) Firmware recovery method, device, system, computer equipment and storage medium
CN104158843A (en) Storage unit invalidation detecting method and device for distributed file storage system
CN109633331B (en) Data storage method and fault recording device
JP2010147804A (en) Transmitting apparatus, and unit mounted on the same
RU2531773C1 (en) Air conditioning unit
CN116015425A (en) Optical module control method and device, storage medium and electronic device

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