CN113726529B - Singlechip and network equipment - Google Patents

Singlechip and network equipment Download PDF

Info

Publication number
CN113726529B
CN113726529B CN202010457559.2A CN202010457559A CN113726529B CN 113726529 B CN113726529 B CN 113726529B CN 202010457559 A CN202010457559 A CN 202010457559A CN 113726529 B CN113726529 B CN 113726529B
Authority
CN
China
Prior art keywords
voltage
abnormal
network equipment
power supply
voltage information
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
CN202010457559.2A
Other languages
Chinese (zh)
Other versions
CN113726529A (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.)
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 CN202010457559.2A priority Critical patent/CN113726529B/en
Publication of CN113726529A publication Critical patent/CN113726529A/en
Application granted granted Critical
Publication of CN113726529B publication Critical patent/CN113726529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • 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/16533Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application
    • G01R19/16538Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application in AC or DC supplies
    • 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/16576Circuits 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 comparing DC or AC voltage with one threshold
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/10Current supply arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

The application provides a single chip microcomputer and network equipment, the single chip microcomputer includes: the sampling unit is used for sampling the power supply voltage of the network equipment; the sampling period of the sampling unit is lower than a preset time threshold, the preset time threshold is determined based on the shortest voltage abnormal time of the network equipment, and the shortest voltage abnormal time is the shortest time from the occurrence of abnormal power supply voltage of the network equipment to the restoration of normal power supply voltage; and the communication unit is used for sending the abnormal voltage information to the main platform of the network equipment when the power supply voltage of the network equipment is abnormal, so that the main platform of the network equipment carries out alarm processing based on the abnormal voltage information. The embodiment of the application can improve the reliability of monitoring the abnormal supply voltage of the network equipment.

Description

Singlechip and network equipment
Technical Field
The present application relates to the field of network devices, and in particular, to a single chip microcomputer and a network device.
Background
With the development of network technology, deployment of network devices is becoming more popular, and network devices, such as network cameras, are deployed in areas including more remote locations.
In practical application, the network device often has a restarting condition, and although the situation is known to be caused by unstable power supply voltage according to experience, a worker is usually required to arrange to go to a site to arrange a verification certificate to finally confirm the practical reason, so that time and labor are wasted, a problem may not be repeated, and the difficulty of solving the problem is increased.
Disclosure of Invention
In view of this, the present application provides a single chip microcomputer and a network device.
Specifically, the application is realized by the following technical scheme:
according to a first aspect of an embodiment of the present application, there is provided a single-chip microcomputer, applied to a network device, the single-chip microcomputer including:
the sampling unit is used for sampling the power supply voltage of the network equipment; the sampling period of the sampling unit is lower than a preset time threshold, the preset time threshold is determined based on the shortest voltage abnormal time of the network equipment, and the shortest voltage abnormal time is the shortest time from the occurrence of abnormal power supply voltage of the network equipment to the restoration of normal power supply voltage;
and the communication unit is used for sending the abnormal voltage information to the main platform of the network equipment when the power supply voltage of the network equipment is abnormal, so that the main platform of the network equipment carries out alarm processing based on the abnormal voltage information.
According to a second aspect of the embodiment of the present application, there is provided a network device, including the above-mentioned single-chip microcomputer and a main platform; wherein:
the main platform is used for receiving the abnormal voltage information sent by the singlechip and carrying out alarm processing based on the abnormal voltage information.
In the embodiment of the application, the singlechip is adopted to monitor the power supply voltage of the network equipment, and the singlechip with the sampling period meeting the requirement of the sampling unit is selected based on the shortest voltage abnormality time of the network, so that the sampling data can be obtained when the power supply voltage of the network equipment is abnormal, and the reliability of monitoring the power supply voltage abnormality of the network equipment is improved.
Drawings
Fig. 1 is a schematic structural diagram of a single-chip microcomputer according to an exemplary embodiment of the present application;
fig. 2 is a schematic structural diagram of another single-chip microcomputer according to another exemplary embodiment of the present application;
fig. 3 is a schematic structural diagram of a network device according to an exemplary embodiment of the present application;
FIG. 4 is a schematic architecture diagram of a specific application scenario according to an exemplary embodiment of the present application;
fig. 5 is a flowchart of a voltage anomaly monitoring method according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying 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 specification 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 better understand the technical solution provided by the embodiments of the present application and make the above objects, features and advantages of the embodiments of the present application more obvious, the technical solution in the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a schematic structural diagram of a single-chip microcomputer according to an embodiment of the present application is shown, where the single-chip microcomputer may be applied to a network device, as shown in fig. 1, and the single-chip microcomputer may include:
a sampling unit 110, configured to sample a supply voltage of a network device; the sampling period of the sampling unit is lower than a preset time threshold, the preset time threshold is determined based on the shortest voltage abnormal time of the network equipment, and the shortest voltage abnormal time is the shortest time from the occurrence of abnormal power supply voltage of the network equipment to the restoration of the normal power supply voltage;
and the communication unit 120 is configured to send the abnormal voltage information to a main platform of the network device, so that the main platform of the network device performs alarm processing based on the received abnormal voltage information.
In the embodiment of the application, in order to timely find out the abnormality of the power supply voltage of the network equipment, the network equipment can monitor the power supply voltage of the network equipment through the singlechip.
Considering that the external power supply mode of the network equipment generally comprises AC220 power grid power supply, wind-solar complementary power supply, iron tower centralized power supply and the like, equipment abnormality caused by power supply fluctuation and the like can occur frequently, in order to ensure that waveforms in a short time can be recorded when abnormal conditions such as drop/overshoot of power supply voltage occur, the singlechip is required to be ensured to have a sufficiently fast response rate and a sufficiently high sampling frequency.
The method can be used for determining the shortest time (called as the shortest voltage abnormality time in the text) from the occurrence of the abnormality to the restoration of the power supply voltage of the network equipment based on the external power supply mode of the network equipment, determining a time threshold based on the shortest voltage abnormality time, and when the power supply voltage of the network equipment is monitored by utilizing the singlechip, the sampling period in the selected singlechip needs to be lower than the preset time threshold so as to ensure that sampling data can be obtained when the power supply voltage is abnormal.
Illustratively, the abnormal supply voltage to the normal recovery includes: the supply voltage is changed from being in the normal voltage range to not being in the normal voltage range (e.g., exceeding the preset upper voltage limit, or being below the preset lower voltage limit), and then is restored from not being in the normal voltage range to being in the normal voltage range.
For example, taking the network device to supply power by using an external DC48V adapter as an example, the shortest time for recovering the normal supply voltage after the supply voltage drops/overshoots is about 1.5ms, so the sampling period of the sampling unit in the singlechip should be lower than 1.5ms.
In addition, considering that after the singlechip samples the power supply voltage of the network equipment once, whether the voltage abnormality occurs is determined by comparing the power supply voltage obtained by sampling with a preset voltage threshold (such as a preset voltage upper limit or a preset voltage lower limit), and abnormal voltage information is sent to a main platform of the network equipment when the voltage abnormality occurs, the singlechip performs next sampling after completing the series of logic processing, so that the processing time of one-time sampling, judging and reporting the abnormality is required to be ensured to be not more than 1.5ms.
In the embodiment of the present application, the sampling unit 110 may determine the power supply voltage of the network device based on the sampling result of the power supply voltage of the network device, and determine whether the power supply voltage of the network device is abnormal.
When the sampling unit 110 determines that the power supply voltage of the network device is abnormal, the communication unit 120 may be triggered to send abnormal voltage information to the main platform of the network device, and the main platform of the network device performs alarm processing based on the abnormal voltage information.
Therefore, in the embodiment of the application, the singlechip is adopted to monitor the power supply voltage of the network equipment, and the singlechip with the sampling period meeting the requirement of the sampling unit is selected based on the shortest voltage abnormality time of the network, so that the sampling data can be obtained when the power supply voltage of the network equipment is abnormal, and the reliability of monitoring the power supply voltage abnormality of the network equipment is improved.
As a possible embodiment, the sampling unit 110 may be specifically configured to sample the voltage of the voltage dividing circuit, and determine the supply voltage of the network device based on the sampling result.
For example, in practical application, the power supply voltage of the network device may be too high for the sampling chip, that is, the sampling chip is used to sample the power supply voltage of the network device, and the voltage value may exceed the voltage that can be borne by the sampling chip, so, in order to ensure that the sampling chip can work normally, the power supply voltage of the network device may be sampled by sampling the voltage dividing circuit, that is, the voltage of the sampling point is reduced by a specified multiple by using the voltage dividing circuit, and after the sampling point is sampled to obtain the sampling result, the power supply voltage of the network device may be determined based on the sampling result.
For example, assuming that the voltage of the sampling point is reduced by N1 times by the voltage dividing circuit, when the sampling result is obtained by sampling the sampling point, the product of the sampling result and N1 may be determined as the voltage value of the power supply voltage.
In one example, the voltage divider circuit includes a plurality of resistors in parallel.
For example, considering that there is a certain error in the resistance of the resistor, for example, there is a 1% error in the resistance of the resistor with high precision at present, so that there may be a certain error in the sampling result obtained by implementing voltage division based on a single resistor, so, in order to improve the sampling precision of the sampling unit, the voltage division circuit may be implemented by adopting a mode that a plurality of resistors are connected in parallel, that is, the influence of the error in the resistance of the single resistor on the sampling result is reduced by adopting a mode that a plurality of resistors are connected in parallel.
Illustratively, the plurality of resistors included in the voltage divider circuit may be high precision resistors, such as 1% precision resistors.
In this example, the greater the number of resistors connected in parallel in the voltage dividing circuit, the higher the accuracy of the sampling result, but the greater the power consumption of the voltage dividing circuit, and therefore, the number of resistors connected in parallel in the voltage dividing circuit can be determined in balance in consideration of the sampling accuracy and the power consumption.
For example, after the sampling unit obtains a sampling result by sampling the voltage of the voltage division circuit, the supply voltage of the network device may be determined based on the sampling result.
As a possible embodiment, the single-chip microcomputer is isolated from the main platform of the network device.
By way of example, considering that the external power supply of the network device is usually a non-isolated power supply, the communication rate between the singlechip and the main platform of the network device is easily affected, and abnormal voltage information may not be reported in time, so that in order to improve the communication rate between the singlechip and the main platform of the network device, the singlechip and the main platform of the network device may be isolated.
In one example, the single chip microcomputer is isolated from the main platform of the network device in a digital isolation mode.
For example, considering that the common split optical coupling isolation scheme can generally only meet the requirement of a lower communication rate (about 9600 baud rate), when the communication rate is higher, the common split optical coupling isolation scheme cannot obtain the required isolation effect, so that the single chip microcomputer and the main platform of the network device can be isolated in a digital isolation mode (for example, a digital isolator is adopted) to ensure that high-rate communication between the single chip microcomputer and the main platform of the network device is not interfered by external power supply.
As a possible embodiment, as shown in fig. 2, the single-chip microcomputer may further include:
and a storage unit 130 for storing abnormal voltage information.
For any one of the stored abnormal voltage information, the initial transmission state of the abnormal voltage information is an unsent state, and when the communication unit 120 transmits the abnormal information to the main platform of the network device and receives an alarm success feedback message sent by the main platform of the network device, the transmission state of the abnormal voltage information is updated to be transmitted.
For example, considering that in practical application, abnormal voltage information may not be sent to the main platform, or the main platform has not completed alarm processing, the network device is abnormally restarted or damaged, in this case, in order to ensure the safety of the single-chip microcomputer adopting the determined abnormal voltage information, the single-chip microcomputer may store the abnormal voltage information through the storage unit 130, and further, when the network device is abnormally restarted or damaged, the stored abnormal voltage information may be sent to the main platform of the network device after the network device completes restarting, or the abnormal voltage information may be read from the storage unit of the single-chip microcomputer in a manual manner in a subsequent flow, so as to analyze the damage reason of the network device based on the abnormal voltage information.
For example, it is contemplated that when the network device is restarted, the single-chip microcomputer may not be able to determine whether the recorded abnormal voltage information includes abnormal voltage information that is not sent to the main platform or that does not complete the alarm process.
Based on this, the singlechip may also maintain the transmission state of the abnormal voltage information with respect to the stored abnormal voltage information.
The transmission status includes, for example, either not transmitted or transmitted.
When the singlechip determines that the power supply voltage of the network equipment is abnormal based on the acquired voltage value, the singlechip can generate abnormal voltage information corresponding to the acquired voltage value and store the abnormal voltage information, and at the moment, the transmission state included in the abnormal voltage information is not transmitted.
After the communication unit 120 of the singlechip 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 alarm processing, an alarm success feedback message can be sent to the singlechip to inform the singlechip that alarm processing is finished, and at the moment, the singlechip can update the sending state included in the stored abnormal voltage information from not sent to sent.
In one example, storage unit 130 may include one or more non-self memories.
For example, considering that the storage space of the memory of the singlechip is usually smaller, the quantity of the abnormal voltage information which can be stored is lower, in order to ensure that the singlechip has enough storage space to store the abnormal voltage information, the singlechip can be externally connected with one or more non-self memories according to the requirement.
In one embodiment, the present application further provides a network device, as shown in fig. 3, where the network device may include a single-chip microcomputer 300 and a main platform 310; wherein:
the single-chip microcomputer 300 may be a single-chip microcomputer described in any of the above embodiments;
the main platform 310 may be configured to receive abnormal voltage information sent by the singlechip, and perform alarm processing based on the abnormal voltage information.
In one example, the main platform 310 may be further configured to send an alarm success feedback message to the singlechip 300 when abnormal voltage information sent by the singlechip 300 is received and alarm processing is completed based on the received abnormal voltage information.
In order to enable those skilled in the art to better understand the technical scheme provided by the embodiment of the present application, the technical scheme provided by the embodiment of the present application is described below in connection with a specific application scenario.
Referring to fig. 4, a schematic structural diagram of a network device for monitoring a supply voltage by using a single-chip microcomputer according to an embodiment of the present application is shown in fig. 4, and an example of power supply voltage monitoring by using an STM8 single-chip microcomputer is shown. The network equipment is externally powered by a DC48V adapter, the external power supply is converted into 5V through a Direct Current/Direct Current (DC) converter, and then stable 3.3V power supply is carried out for the STM8 singlechip through an LDO (LowDropout Regulator, low dropout linear voltage regulator). The voltage of the voltage dividing circuit is sampled to determine the power supply voltage, and the voltage dividing circuit adopts 3 parallel designs of 1% precision resistors, so that the sampling precision is improved.
The STM8 singlechip communicates with the main platform through a USART (Universal Synchronous/Asynchronous Receiver/Transmitter, universal synchronous/asynchronous serial receiver/Transmitter) protocol, and because external power supply is a non-isolated power supply, more interference exists, the communication between the STM8 and the main control needs to be isolated. The common discrete optical coupling isolation scheme can only meet the communication rate of 9600 baud rate and cannot meet the communication rate requirement of the STM8 singlechip, so that a digital isolator can be adopted for isolation to meet the UART (Universal Asynchronous Receiver/Transmitter, universal asynchronous receiver Transmitter) communication rate of the STM8 singlechip.
Taking an example that an STM8 singlechip adopts a 10-bit ADC (Analog-to-Digital Converter) pin, sampling a voltage value can obtain the data size of 16 bits, if UTC (Coordinated Universal Time, international coordination time) time information is attached, the data size can reach 32-64 bits, and 128bytes EEPROM (Electrically Erasable Programmable read only memory, electrically erasable programmable read-only memory) carried by the STM8 singlechip can not meet the requirement, so that the storage space can be expanded by an external memory mode.
For example, a 128kb serial EEPROM may be used, with UTC voltage information data being stored at approximately 1.6W, while the SPI interface may guarantee a faster data storage rate.
Because the STM8 singlechip only needs to use ADC pins and communication functions theoretically, the power consumption is lower. Taking an STM8 singlechip with 100mA power consumption of 3.3V as an example, only using ADC pins and a communication function, the power consumption is about 20mA, and when the whole network equipment is powered down, the time for the power supply of the STM8 singlechip to drop from 3.3V to 2.95V (minimum working voltage) is about 1.6ms, so that the SMT8 singlechip can have enough time to sample the external drop voltage waveform under the condition that the whole network equipment is powered down without reserving a battery.
By way of example, the working time of the STM8 singlechip after power failure of the network equipment can be prolonged by adding a capacitor.
Referring to fig. 5, in this embodiment, the voltage anomaly monitoring implementation flow is as follows:
1. after the system is powered on, the SMT8 singlechip performs resource initialization, reads the abnormal voltage information in the EEPROM, and determines the initial position of writing the abnormal voltage information.
For example, in order to prolong the service life of the EEPROM, the data is written into the EEPROM in a cyclic writing manner, so that the SMT8 singlechip can determine the writing address of the newly added abnormal voltage information when the EEPROM is started each time, and when the EEPROM is full, the writing is restarted from the zero address.
2. And the SMT8 singlechip is used for judging whether the voltage abnormality exists or not based on the power supply voltage of the network equipment determined by sampling. When the power supply voltage is greater than the upper limit of the threshold value, entering a high-voltage state for processing; when the power supply voltage is smaller than the lower limit of the threshold value, entering a low-voltage state for processing; the normal voltage state processing is entered when the supply voltage is between the lower threshold limit and the upper threshold limit, i.e., within the normal voltage range.
For example, the SMT8 single-chip microcomputer may maintain a voltage status flag bit for indicating that the power supply voltage of the network device is in a high voltage state, a low voltage state, or a normal voltage state. When the SMT8 singlechip monitors that the power supply voltage of the network equipment is abnormal, whether the voltage state changes or not can be determined based on the voltage state flag bit
In this embodiment, the initial value of the voltage status flag bit is a value (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 SMT8 single-chip microcomputer determines that the power supply voltage of the network device is abnormal, the value of the voltage state flag bit may be set to a value (may be referred to as a second value) for indicating that the power supply voltage of the network device is in a high voltage state or a value (may be referred to as a third value) for indicating that the power supply voltage of the network device is in a low voltage state according to whether the power supply voltage is higher than the upper threshold limit or lower than the lower threshold limit
3. High-pressure state processing: if the value of the voltage state flag bit is not the second value, namely the first time of entering a high voltage state, updating the value of the voltage state flag bit to be the second value, writing abnormal voltage information (the current time, the voltage value, the voltage state and the sending state) into the EEPROM, at the moment, sending the abnormal voltage information to be not sent, and sending the abnormal voltage information to a main platform to trigger an alarm; and when receiving an alarm success feedback message returned by the main platform, updating the transmission state in the stored abnormal voltage information to be transmitted. If the value of the voltage state flag bit is a second value, namely, the voltage state flag bit does not enter a high voltage state for the first time, a strategy of time-division transmission is adopted, namely, voltage information is stored once every 200ms (namely, the first time interval) and is not transmitted to a main platform (the transmission state is not transmitted), the change trend of abnormal voltage is recorded, and the later acquisition and investigation are facilitated; when the time interval from the last transmission of the abnormal voltage information reaches 1S (i.e., the second time interval), the abnormal voltage information is stored and transmitted every 10S (i.e., the third time interval), so as to avoid frequent alarm uploading caused by long-term high-voltage state of the power supply of the network equipment.
4. Low pressure state processing: if the value of the voltage state flag bit is not the third value, namely the low voltage state is entered for the first time, updating the value of the voltage state flag bit to be the third value, writing abnormal voltage information (the current time, the voltage value, the voltage state and the sending state) into the EEPROM, at the moment, sending the abnormal voltage information to be not sent, and sending the abnormal voltage information to a main platform to trigger an alarm; and when receiving an alarm success feedback message returned by the main platform, updating the transmission state in the stored abnormal voltage information to be transmitted. If the value of the voltage state flag bit is a third value, namely, the voltage state flag bit does not enter a low voltage state for the first time, a strategy of time-division transmission is adopted, namely, voltage information (including information of time, voltage value, voltage state and the like) is recorded every 200ms and is not transmitted to a main platform (the transmitting state is not transmitted), the change trend of abnormal voltage is recorded, and the later acquisition and investigation of problems are facilitated; when the time interval from the last transmission of the abnormal voltage information reaches 1S, the abnormal voltage information is stored and transmitted every 10S, so that the problem that the alarm is uploaded too frequently due to the fact that the power supply of the network equipment is in a low-voltage state for a long time is avoided.
5. Normal voltage state processing: when the voltage is in the normal voltage range, the value of the voltage status flag bit is set to a first value.
6. The alarm information which is not sent is actively uploaded: because the SMT8 singlechip does not support RTC, a timer is adopted for timing, and a timing command is issued by the main platform every fixed time, so that the time of the SMT8 singlechip is calibrated. Therefore, when the SMT8 singlechip 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 not being sent is sent to the main platform, so that abnormal restarting or damage occurs when the equipment does not send the abnormal voltage information to the main platform or the main platform does not complete alarm processing, and the problem of abnormal restarting and damage of the positioning equipment due to power supply is greatly facilitated.
7. The main platform acquires information stored in the EEPROM: when the SMT8 singlechip receives a 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 communication.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather to enable any modification, equivalent replacement, improvement or the like to be made within the spirit and principles of the application.

Claims (8)

1. The utility model provides a singlechip, its characterized in that is applied to network equipment, the singlechip includes:
the sampling unit is used for sampling the power supply voltage of the network equipment; the sampling period of the sampling unit is lower than a preset time threshold, the preset time threshold is determined based on the shortest voltage abnormal time of the network equipment, and the shortest voltage abnormal time is the shortest time from the occurrence of abnormal power supply voltage of the network equipment to the restoration of normal power supply voltage;
the communication unit is used for sending abnormal voltage information to a main platform of the network equipment when the power supply voltage of the network equipment is abnormal, so that the main platform of the network equipment carries out alarm processing based on the abnormal voltage information;
wherein, the singlechip still includes:
a storage unit for storing abnormal voltage information;
when the network equipment is abnormally restarted or damaged, after the network equipment is restarted, the initial sending state of any stored abnormal voltage information is an unsent state, and when the communication unit sends the abnormal voltage information to a main platform of the network equipment and receives an alarm success feedback message sent by the main platform of the network equipment, the sending state of the abnormal voltage information is updated to be sent;
wherein, the abnormal occurrence of the power supply voltage comprises that the power supply voltage is in a high-voltage state or in a low-voltage state;
the communication unit is specifically configured to write abnormal voltage information into the storage unit and send the abnormal voltage information to the main platform to trigger an alarm when the power supply voltage of the network device first enters a high-voltage state; storing abnormal voltage information at intervals of a first time when the power supply voltage of the network equipment does not enter a high-voltage state for the first time, and setting the transmission state of the abnormal voltage information to be not transmitted; storing and transmitting the abnormal voltage information at intervals of a third time interval under the condition that the time interval from the last transmission of the abnormal voltage information reaches the second time interval;
and/or under the condition that the power supply voltage of the network equipment enters a low-voltage state for the first time, writing the abnormal voltage information into a storage unit, and sending the abnormal voltage information to a main platform to trigger an alarm; storing abnormal voltage information at intervals of a first time when the power supply voltage of the network equipment does not enter a low-voltage state for the first time, and setting the transmission state of the abnormal voltage information to be not transmitted; in the case where the time interval from the last transmission of the abnormal voltage information reaches the second time interval, the abnormal voltage information is stored and transmitted at every third time interval.
2. The singlechip as recited in claim 1, wherein,
the sampling unit is specifically configured to sample a voltage of the voltage division circuit, and determine a supply voltage of the network device based on a sampling result.
3. The single-chip microcomputer according to claim 2, wherein the voltage dividing circuit comprises a plurality of resistors connected in parallel.
4. The single-chip microcomputer of claim 1, wherein the single-chip microcomputer is isolated from a main platform of the network device.
5. The single-chip microcomputer according to claim 4, wherein the single-chip microcomputer is isolated from a main platform of the network device in a digital isolation manner.
6. The single-chip microcomputer of claim 1, wherein the memory unit comprises one or more non-self-contained memories.
7. A network device, comprising the single-chip microcomputer and the main platform according to any one of claims 1 to 6; wherein:
the main platform is used for receiving the abnormal voltage information sent by the singlechip and carrying out alarm processing based on the abnormal voltage information.
8. The network device of claim 7, wherein the network device,
the main platform is also used for sending an alarm success feedback message to the singlechip when the abnormal voltage information sent by the singlechip is received and alarm processing is completed based on the abnormal voltage information.
CN202010457559.2A 2020-05-26 2020-05-26 Singlechip and network equipment Active CN113726529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010457559.2A CN113726529B (en) 2020-05-26 2020-05-26 Singlechip and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010457559.2A CN113726529B (en) 2020-05-26 2020-05-26 Singlechip and network equipment

Publications (2)

Publication Number Publication Date
CN113726529A CN113726529A (en) 2021-11-30
CN113726529B true CN113726529B (en) 2023-11-21

Family

ID=78672143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010457559.2A Active CN113726529B (en) 2020-05-26 2020-05-26 Singlechip and network equipment

Country Status (1)

Country Link
CN (1) CN113726529B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114660499A (en) * 2022-04-25 2022-06-24 重庆紫光华山智安科技有限公司 Power monitoring method, system, device and medium for network camera

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016019486A1 (en) * 2014-08-04 2016-02-11 深圳欧陆通电子有限公司 Power supply and battery management module compatible with common redundant power supply
CN205283253U (en) * 2015-12-23 2016-06-01 上海宝康电子控制工程有限公司 Paper record appearance is not had in alternating voltage remote monitoring
WO2018192435A1 (en) * 2017-04-18 2018-10-25 中兴通讯股份有限公司 Alarm method and device for electric equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016019486A1 (en) * 2014-08-04 2016-02-11 深圳欧陆通电子有限公司 Power supply and battery management module compatible with common redundant power supply
CN205283253U (en) * 2015-12-23 2016-06-01 上海宝康电子控制工程有限公司 Paper record appearance is not had in alternating voltage remote monitoring
WO2018192435A1 (en) * 2017-04-18 2018-10-25 中兴通讯股份有限公司 Alarm method and device for electric equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
电力计量装置电压异常状态检测系统设计;姜思卓等;《计算机测量与控制》;20200225(第02期);39-41页 *

Also Published As

Publication number Publication date
CN113726529A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN101124619B (en) Digital power manager for controlling and monitoring an array of point-of-load regulators
US7612472B2 (en) Method and apparatus for monitoring energy storage devices
CN102870097A (en) Maintenance controller, maintenance method, and maintenance system
CN109937584A (en) A kind of fault detection method of intelligent door lock, intelligent door lock and storage medium
EP2941708A2 (en) System and method for developing, deploying and implementing power system computer applications
CN110766928A (en) Mine intelligent sensor data acquisition method based on Internet of things
CN113726529B (en) Singlechip and network equipment
CN105765469B (en) Wireless instruments, wireless communication system, wireless module, interface module and communication means
CN102840992A (en) Satellite-borne self-testing method based on satellite network
EP3236667B1 (en) Electronic device and method
CN103760876A (en) Alarm information storing method and device
US9397500B2 (en) Inverter with extended endurance memory
CN110620674B (en) Configuration method of monitoring system and computer equipment
CN102931730A (en) Distribution network automation system and battery management method thereof
CN106849346B (en) A kind of system for testing power distribution automation equipment time adjustment function and timekeeping performance
CN114189897B (en) Fault detection method and device for wireless sensor system
KR101102120B1 (en) Channel diagnostic method in/out modules base on fielbus network and diagnostic information generation device using the same
CN106468911B (en) A kind of fault message backup method for fault diagnosis
CN110597120B (en) Acquisition terminal and method based on power line carrier
CN111817820B (en) Equipment coding method and device and coding system based on two buses
CN105871626B (en) A kind of method and system of communication equipment power supply centralized management
CN113049871B (en) Voltage abnormality monitoring method and device and electronic equipment
JP2021106012A (en) Monitoring system
WO2006134650A1 (en) Communication device, communication control method, communication control program, and computer-readable recording medium containing the communication control program
CN112824127B (en) Multi-path acquisition temperature limit protection device and method for train storage battery box

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