CN113472603B - Fault detection method and device of uplink communication module and computer equipment - Google Patents

Fault detection method and device of uplink communication module and computer equipment Download PDF

Info

Publication number
CN113472603B
CN113472603B CN202110594420.7A CN202110594420A CN113472603B CN 113472603 B CN113472603 B CN 113472603B CN 202110594420 A CN202110594420 A CN 202110594420A CN 113472603 B CN113472603 B CN 113472603B
Authority
CN
China
Prior art keywords
test
communication module
uplink communication
voltage
result
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
CN202110594420.7A
Other languages
Chinese (zh)
Other versions
CN113472603A (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.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau 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 Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN202110594420.7A priority Critical patent/CN113472603B/en
Publication of CN113472603A publication Critical patent/CN113472603A/en
Application granted granted Critical
Publication of CN113472603B publication Critical patent/CN113472603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)

Abstract

The application relates to a fault detection method and device of an uplink communication module, computer equipment and a storage medium. The method comprises the following steps: acquiring a fault detection request aiming at an uplink communication module in the electric power metering equipment; determining a target test type of the uplink communication module fault detection from at least one test type according to the fault detection request, wherein the test type comprises at least one type of reliability test, matching test and antenna test; and carrying out corresponding fault detection on the uplink communication module according to a target test mode corresponding to the target test type to obtain a fault detection result of the uplink communication module. Therefore, the fault detection method of the uplink communication module can realize various detection functions, so that specific faults of the uplink communication module can be timely and accurately detected, and the safe operation of the power system is further ensured.

Description

Fault detection method and device for uplink communication module and computer equipment
Technical Field
The present application relates to the field of power device detection technologies, and in particular, to a method and an apparatus for detecting a fault of an uplink communication module, a computer device, and a storage medium.
Background
With the development of power equipment detection technology, the detection mode of the uplink communication module of the intelligent metering equipment is mainly fault detection according to a power standard, and at present, the fault detection of the uplink communication module is mainly tested according to a technical standard. .
However, in the method for testing the uplink communication module based on the power standard, the detection function is single, only data interaction with the master station can be realized, the operation reliability is poor, and the fault detection is not accurate enough.
Disclosure of Invention
In view of the above, it is necessary to provide a method and an apparatus for detecting a failure of an uplink communication module, a computer device, and a storage medium.
A fault detection method for an uplink communication module comprises the following steps:
acquiring a fault detection request aiming at an uplink communication module in the electric power metering equipment; determining a target test type of the uplink communication module fault detection from at least one test type according to the fault detection request, wherein the test type comprises at least one type of reliability test, matching test and antenna test; and performing corresponding fault detection on the uplink communication module according to a target test mode corresponding to the target test type to obtain a fault detection result of the uplink communication module.
In one embodiment, performing corresponding fault detection on the uplink communication module according to a target test mode corresponding to the target test type to obtain a fault detection result of the uplink communication module includes:
when the target test category is a reliability test, determining a target sub-test item from the sub-test items belonging to the reliability test category; performing reliability test according to the target sub-test item to obtain a fault detection result of the reliability test; the sub-test items comprise at least one of power consumption test, baud rate redundancy test, power fluctuation test, power change test and signal strength attenuation test of the uplink communication module.
In one embodiment, performing a reliability test according to the target sub-test item to obtain a fault detection result of the reliability test includes:
when the target sub-test item is a power consumption test, respectively acquiring static power consumption and dynamic power consumption of the uplink communication module, comparing the static power consumption with a static power consumption threshold value, comparing the dynamic power consumption with a dynamic power consumption threshold value, and determining a corresponding power consumption test result based on a comparison result; when the target sub-test project is a baud rate redundancy test, calculating a corresponding communication success rate by increasing the baud rate step length, and determining a corresponding baud rate redundancy test result based on the communication success rate; the communication success rate is the probability that the uplink communication module can receive communication signals after the baud rate step length is increased; when the target sub-test item is a power supply fluctuation test, the communication state of the uplink communication module is obtained by increasing the voltage step length, and a corresponding power supply fluctuation test result is determined based on the communication state; when the target sub-test item is a power supply change test, acquiring a first communication result of the uplink communication module when the voltage is reduced to a lowest threshold value at a voltage change rate and acquiring a second communication result of the uplink communication module when the voltage is increased to a highest threshold value at the voltage change rate, and determining a corresponding power supply change test result based on the first communication result and the second communication result; when the target sub-test item is a signal intensity attenuation test, acquiring the signal intensity of the uplink communication module by setting an attenuation value, and determining a corresponding signal intensity attenuation test result based on the signal intensity; and determining a fault detection result of the reliability test based on at least one of the power consumption test result, the baud rate redundancy test result, the power fluctuation test result, the power change test result and the signal strength attenuation test result.
In one embodiment, when the target sub-test item is a power variation test, acquiring a first communication result of the uplink communication module when the voltage decreases to a lowest threshold at a voltage variation rate and acquiring a second communication result of the uplink communication module when the voltage increases to a highest threshold at the voltage variation rate, and determining a corresponding power variation test result based on the first communication result and the second communication result includes:
when the target sub-test item is a power supply change test, setting a first voltage change rate and a second voltage change rate, wherein the first voltage change rate is greater than the second voltage change rate; when the voltage change rate is a first voltage change rate, acquiring a first communication state of the uplink communication module when the voltage rises from a voltage minimum threshold to a voltage maximum threshold at the first voltage change rate, and acquiring a second communication state of the uplink communication module when the voltage falls from the voltage maximum threshold to the voltage minimum threshold at the first voltage change rate; the first communication state and the second communication state are used as a first communication result when a power supply change test is carried out at a first voltage change rate; when the voltage change rate is a second voltage change rate, acquiring a third communication state of the uplink communication module when the voltage rises from the voltage minimum threshold to the voltage maximum threshold at the second voltage change rate, and acquiring a fourth communication state of the uplink communication module when the voltage falls from the voltage maximum threshold to the voltage minimum threshold at the second voltage change rate; taking the third communication state and the fourth communication state as a second communication result when a power supply change test is performed at a second voltage change rate; and taking the first communication result and the second communication result as power supply change test results.
In one embodiment, performing corresponding fault detection on the uplink communication module according to a target test mode corresponding to the target test type to obtain a fault detection result of the uplink communication module includes:
when the target test type is a matching test, starting the uplink communication module in response to a starting command, and recording the starting state of the uplink communication module; inputting a communication signal into the uplink communication module, and determining an interface test result of the uplink communication module according to the receiving condition of the uplink communication module; obtaining an output value of the power supply voltage of the uplink communication module by applying a current load; when the uplink communication module receives a shutdown instruction, performing shutdown operation on the uplink communication module; and the starting-up state, the interface test result, the output value of the power supply voltage of the uplink communication module and the shutdown state are jointly used as fault detection results obtained by carrying out the matching test.
In one embodiment, when the uplink communication module receives a shutdown instruction, performing a shutdown operation on the uplink communication module includes:
when the uplink communication module receives a shutdown instruction, the uplink communication module responds to the shutdown instruction and carries out soft shutdown operation by delaying preset time; and when the uplink communication module cannot respond to the shutdown instruction, performing hard shutdown operation by pulling down the switch pin.
In one embodiment, performing corresponding fault detection on the uplink communication module according to a target test mode corresponding to the target test type to obtain a fault detection result of the uplink communication module includes:
when the target test type is an antenna test, the uplink communication module is started by receiving a communication instruction, and the uplink communication module is in a communication state; inputting a communication signal into the uplink communication module, and acquiring signal intensity, return loss, standing wave ratio and scattering coefficient generated when an antenna of the uplink communication module responds to the communication signal through a network analyzer; determining impedance matching data based on the return loss and the standing wave ratio; and taking the signal intensity, the impedance matching data and the scattering coefficient as a fault detection result obtained by the antenna test.
A failure detection apparatus of an upstream communication module, the apparatus comprising:
the acquisition module is used for acquiring a fault detection request aiming at an uplink communication module in the electric power metering equipment;
a determining module, configured to determine, according to the fault detection request, a target test category for the fault detection of the uplink communication module from at least one test category, where the test category includes at least one category of a reliability test, a matching test, and an antenna test;
and the fault detection module is used for carrying out corresponding fault detection on the uplink communication module according to a target test mode corresponding to the target test type to obtain a fault detection result of the uplink communication module.
A computer device comprising a memory storing a computer program and a processor implementing the method of fault detection of an upstream communication module as claimed in any one of the above when the processor executes the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of fault detection of an upstream communication module as set forth in any of the above.
According to the method, the device, the computer equipment and the storage medium for detecting the faults of the uplink communication module, the fault detection request aiming at the uplink communication module in the electric power metering equipment is obtained; determining a target test type of the uplink communication module fault detection from at least one test type according to the fault detection request, wherein the test type comprises at least one of a reliability test, a matching test and an antenna test; and finally, carrying out corresponding fault detection on the uplink communication module according to a target test mode corresponding to the target test type to obtain a fault detection result of the uplink communication module. Therefore, the fault detection method of the uplink communication module can realize various detection functions, so that specific faults of the uplink communication module can be timely and accurately detected, and the safe operation of the power system is further ensured.
Drawings
FIG. 1 is a diagram of an exemplary implementation of upstream communication module failure detection;
fig. 2 is a schematic flowchart of a fault detection method of an uplink communication module in an embodiment;
FIG. 3 is a flowchart illustrating the reliability testing step for the target test class in one embodiment;
FIG. 4 is a flowchart illustrating the reliability testing step in one embodiment;
FIG. 5 is a flow diagram of an embodiment of a baud rate redundancy test;
FIG. 6 is a flowchart illustrating the power variation testing step in one embodiment of reliability testing;
FIG. 7 is a flowchart illustrating the reliability test as a match test step in one embodiment;
FIG. 8 is a diagram illustrating an embodiment of a boot timing sequence;
fig. 9 is a schematic diagram of an interface of an uplink communication module of a terminal in one embodiment;
FIG. 10 is a flowchart illustrating an exemplary embodiment in which the match test is a shutdown test;
FIG. 11 is a flowchart illustrating the antenna test procedure as the target test type in one embodiment;
FIG. 12 is a schematic diagram of an embodiment of an antenna scattering coefficient test;
fig. 13 is a schematic flowchart of a fault detection method of an upstream communication module in another embodiment;
fig. 14 is a block diagram of a fault detection apparatus of an upstream communication module in an embodiment;
FIG. 15 is a diagram showing an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for detecting the fault of the uplink communication module can be applied to the application environment shown in fig. 1. The testing device 102 communicates with the uplink communication module 104 through an interface, the communication mode may be RS485 serial communication, the testing device 102 may specifically be a terminal or a server, and the testing device 102 includes a DSP (Digital Signal Processing) technology power consumption sampling test, an MCU (micro controller Unit) module, a Digital power output, a module interface, and a sequence testing circuit. The test equipment 102 acquires the fault detection request; then, the test equipment 102 determines a target test type of the uplink communication module fault detection from at least one test type according to the fault detection request, wherein the test type includes at least one type of reliability test, matching test and antenna test; the test equipment 102 performs corresponding fault detection on the uplink communication module according to a target test mode corresponding to the target test type, so as to obtain a fault detection result of the uplink communication module; finally, the test device 102 obtains a fault detection result of the uplink communication module. The testing device 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the uplink communication module 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 2, a method for detecting a fault of an uplink communication module is provided, which is described by taking as an example that the method is applied to the test equipment in the foregoing 1, where the fault detection of the uplink communication module includes the following steps:
step 202, acquiring a fault detection request for an uplink communication module in the electric power metering equipment.
The electric power metering equipment is short for electric power measurement metering type equipment, the equipment can be intelligent metering equipment, and the intelligent metering equipment comprises an uplink communication module and a downlink communication module. The uplink communication module is used for communication between the intelligent metering terminal and the main station. The fault detection request is an indication for performing fault detection on an uplink communication module to be detected, which is installed on a control measurement core board, and the control measurement core board comprises a DSP (Digital Signal Processing) technical power consumption sampling test, an MCU (micro controller Unit) module, a Digital power output, a module interface and a time sequence test circuit.
Specifically, after the uplink communication module is connected to the control measurement core board in the test device, the control measurement core board obtains a fault detection request for the uplink communication module in the intelligent power metering device.
Step 204, according to the fault detection request, determining a target test type of the fault detection of the uplink communication module from at least one test type, where the test type includes at least one of a reliability test, a matching test, and an antenna test.
The fault detection types of the uplink communication module comprise a reliability test, a matching test and an antenna test. The reliability test can be used for evaluating the reliability, namely, the reliability characteristic quantity of the product is evaluated by utilizing a probability statistical method according to the reliability structure, the service life type and the reliability test information of each unit. The matching test is a matching test of the uplink communication module and the terminal, and the antenna test is a test for detecting the performance of an antenna in the uplink communication module.
Specifically, according to a request for fault detection, a control measurement core board in the test equipment determines a test type from a reliability test, a matching test, and an antenna test. For example, after the control measurement core board obtains a request for fault detection, the control measurement core board sequentially performs a reliability test, a matching test, and an antenna test. The control measurement core board may also perform the test according to a specific one or more tests in the selected test category as a target test category.
And step 206, performing corresponding fault detection on the uplink communication module according to a target test mode corresponding to the target test type to obtain a fault detection result of the uplink communication module.
Specifically, after the control measurement core board in the test device determines the target test type, the uplink communication module is subjected to a target test according to a target test method corresponding to the target test type, a test result corresponding to the target test is obtained, and then the test result corresponding to one or more target tests is used as a fault detection result.
In the fault detection method of the uplink communication module, firstly, a fault detection request aiming at the uplink communication module in the electric power metering equipment is obtained; determining a target test type of the uplink communication module fault detection from at least one test type according to the fault detection request, wherein the test type comprises at least one of a reliability test, a matching test and an antenna test; and finally, carrying out corresponding fault detection on the uplink communication module according to a target test mode corresponding to the target test type to obtain a fault detection result of the uplink communication module. Therefore, the fault detection method of the uplink communication module can realize various detection functions, so that specific faults of the uplink communication module can be timely and accurately detected, and the safe operation of the power system is further ensured.
In an embodiment, as shown in fig. 3, performing corresponding fault detection on the uplink communication module according to a target test mode corresponding to the target test type to obtain a fault detection result of the uplink communication module, specifically includes the following steps:
step 302, when the target test category is a reliability test, determining a target sub-test item from the sub-test items belonging to the reliability test category.
Specifically, when the control measurement core board in the test equipment performs a reliability test on the uplink communication module, the target sub-test item is determined according to the sub-test items of the reliability test category.
Step 304, performing reliability test according to the target sub-test item to obtain a fault detection result of the reliability test; the sub-test items comprise at least one of a power consumption test, a baud rate redundancy test, a power supply fluctuation test, a power supply change test and a signal strength attenuation test of the uplink communication module.
The power consumption test is used for testing the power consumption of the uplink communication module in a working state, the baud rate redundancy test is used for testing the communication quality of the uplink communication module at different baud rates, the power supply fluctuation test is used for testing the stability of the uplink communication module under power supply fluctuation, the power supply change test is used for testing the influence of power supply change on the communication reliability of the uplink communication module, and the signal strength attenuation test is used for testing the communication condition of the uplink communication module under signals with different strengths.
Specifically, a test corresponding to the target sub-test item is performed according to the target sub-test item, a result corresponding to the target sub-test item is obtained through the test, and then a test result corresponding to one or more target sub-test items is used as a fault detection result of the reliability test.
In this embodiment, when the target test category is a reliability test, a target sub-test item is first determined from sub-test items belonging to the reliability test category; finally, reliability testing is carried out according to the target sub-test project, and a fault detection result of the reliability testing is obtained; the sub-test items comprise at least one of a power consumption test, a baud rate redundancy test, a power supply fluctuation test, a power supply change test and a signal strength attenuation test of the uplink communication module. Therefore, when the reliability test is carried out on the uplink communication module, the reliability test result is determined according to the test results corresponding to the sub-test items, so that the reliability test result of the uplink communication module can be more comprehensive, and a maintainer can be helped to quickly know the fault information of the equipment.
In an embodiment, as shown in fig. 4, performing a reliability test according to the target sub-test item to obtain a fault detection result of the reliability test specifically includes:
step 402, when the target sub-test item is a power consumption test, respectively acquiring static power consumption and dynamic power consumption of the uplink communication module, comparing the static power consumption with a static power consumption threshold, comparing the dynamic power consumption with a dynamic power consumption threshold, and determining a corresponding power consumption test result based on a comparison result.
The static power consumption is the power consumed when the circuit state is stable, that is, the static power consumption is obtained by the product of the power supply voltage and the power supply current. The dynamic power consumption refers to the power consumption generated when a transistor is in a jump state when a chip works. When the target sub-test item is a power consumption test, respectively testing the apparent power consumption and the active power consumption in two working states, wherein the apparent power consumption is the total power which can be provided by the alternating current power supply, and the calculation formula is as follows:
S=U×I
the apparent power consumption S is the product of the effective voltage value U and the effective current value I; the active power consumption is the electric power required for keeping the electric equipment normally running, namely, the electric power for converting the electric energy into other forms of energy, and the calculation formula is as follows:
Figure BDA0003090423960000081
i.e. the active power consumption P passes the apparent power consumption S and the power factor angle
Figure BDA0003090423960000082
Can be obtained. The static power consumption threshold value is not more than 1W, and the dynamic power consumption threshold value is not more than 2.5W.
Specifically, when the target sub-test item is a power consumption test, the apparent power consumption and the active power consumption in different working states are respectively obtained. Measuring static power consumption, reading power supply working voltage and working current of uplink communication module, and calculating according to formula S 1 = UxI apparent power consumption for static power consumption, where S 1 For apparent power consumption of static power consumption, U is voltage effective value, I is current effective value, and power factor under the condition is sampled according to control measurement core board
Figure BDA0003090423960000083
According to
Figure BDA0003090423960000084
Calculating the active power consumption of static power consumption, wherein the active power consumption of the static power consumption is P 1 Comparing whether the active power consumption exceeds the threshold value or not according to the static power consumption threshold value; when dynamic power consumption is measured, the measurement core board is controlled to sample current and voltage of a power supply of the uplink communication module through the DSP technology, and the current and voltage are sampled according to the measurement core board
Figure BDA0003090423960000085
Calculating the apparent power consumption of the dynamic power consumption, wherein S 2 The apparent power consumption for the dynamic power consumption,
Figure BDA0003090423960000086
is a voltage,
Figure BDA0003090423960000087
For current, the power factor under the condition is obtained through the control measurement core board
Figure BDA0003090423960000088
According to
Figure BDA0003090423960000089
For calculating dynamic power consumptionActive power consumption, wherein P 2 And comparing whether the active power consumption exceeds the threshold value according to the dynamic power consumption threshold value. And finally, determining a power consumption test result based on a comparison result of the static power consumption and the dynamic power consumption, so that the power consumption condition of the uplink communication module can be detected in time, and the fault condition of the uplink communication module can be checked.
Step 404, when the target sub-test item is a baud rate redundancy test, calculating a corresponding communication success rate by increasing the baud rate step length, and determining a corresponding baud rate redundancy test result based on the communication success rate; the communication success rate is the probability that the uplink communication module can receive the communication signal after the baud rate step length is increased.
The baud rate is the number of symbols transmitted per second, which is a measure of the symbol transmission rate, and the redundancy is an amount which is redundant from a safety point of view, i.e. in order to ensure that an instrument, equipment or some work can operate normally even under abnormal conditions.
Specifically, please refer to the baud rate redundancy test flow chart of fig. 5. When the target sub-test item is the baud rate redundancy test, firstly, connecting a PC (Personal Computer) system, a core measurement core board and an uplink communication module, that is, connecting the control measurement core board through an RS232 interface, and connecting the control measurement core board to an RX (Received Data port) and a TX (Transmit Data port) of the communication module through a UART (Universal Asynchronous Receiver/Transmitter); then, when the normal baud rate is set to be 9600bps, the PC system sends a communication frame to the control measurement core board, and the control measurement core board sends the communication frame to the uplink communication module to detect whether the communication is successful; changing the baud rate according to 1% stepping on the basis of the normal baud rate, measuring the communication condition of the uplink communication module for multiple times after changing the baud rate each time, and calculating the communication success rate, wherein the modified baud rate is communicated through General Packet Radio Service (GPRS); and finally, determining the baud rate redundancy test result according to the communication success rate corresponding to each baud rate, so that the design margin of the communication baud rate in the uplink communication module can be obtained, and the fault condition of the uplink communication module can be checked.
Step 406, when the target sub-test item is a power supply fluctuation test, obtaining a communication state of the uplink communication module by increasing a voltage step, and determining a corresponding power supply fluctuation test result based on the communication state.
Wherein, the voltage step value is set, and the range of the power supply voltage is set as U n ±5%U n (rated voltage is U) n )。
Specifically, the communication state of the uplink communication module in a rated voltage state is tested, then a voltage step is increased based on the rated voltage to obtain an increased voltage, then a communication state corresponding to the increased voltage is obtained, and a power supply fluctuation test result of the uplink communication module is determined based on the communication state. For example, when the rated voltage is 5V, testing whether the uplink communication module can receive a communication frame under the condition of 5V, and returning the frame to the control measurement core board, if so, indicating that the communication is successful; set the voltage step size to 0.05V (i.e. 1% n ) And the power supply voltage ranges from 4.75V to 5.25V (i.e., the voltage range is U) n -5%U n To U n +5%U n ) (ii) a And then stepping the power supply by 0.05V step length, measuring the communication condition of the uplink communication module for multiple times after voltage stepping, namely after stepping the power supply voltage, detecting whether the module receives a communication frame and returns the frame by sending a communication frame to the uplink communication module, communicating for 10 times in each voltage state, and finally determining a power supply fluctuation test result through the communication state with the increased voltage. Therefore, the communication stability of the uplink communication module is detected by testing the communication state of the module in the power supply voltage range, and the troubleshooting of the uplink communication module is facilitated.
Step 408, when the target sub-test item is a power supply change test, obtaining a first communication result of the uplink communication module when the voltage decreases to the lowest threshold value at the voltage change rate, and obtaining a second communication result of the uplink communication module when the voltage increases to the highest threshold value at the voltage change rate, and determining a corresponding power supply change test result based on the first communication result and the second communication result.
The lowest threshold and the highest threshold of the power supply voltage are determined by the range of the power supply voltage, for example, if the range of the power supply voltage is 0V to 5V, the lowest threshold of the power supply voltage is 0V, and the highest threshold of the power supply voltage is 5V. The communication result of the uplink communication module is related to the communication state of the module, that is, a communication frame is sent to the communication module, whether the uplink communication module can receive the communication frame is detected, and the frame is returned to the control measurement core board, if yes, the communication of the module is successful, and if not, a feedback frame value is sent to control the measurement core board.
Specifically, when the target sub-test item is a power supply change test, when the voltage is reduced from the highest threshold to the lowest threshold at the speed of the voltage change rate, a first communication result when the voltage is reduced is obtained by sending a communication frame to the communication module; when the voltage rises from the lowest threshold to the highest threshold at the speed of the voltage change rate, a second communication result when the voltage rises is obtained by sending a communication frame to the communication module; and determining the result of the power supply change test according to the first communication result and the second communication result. Therefore, the influence of power supply fluctuation on the reliability of the uplink communication module can be obtained according to the result of the power supply change test, and the troubleshooting of the uplink communication module is facilitated.
Step 410, when the target sub-test item is a signal strength attenuation test, obtaining the signal strength of the uplink communication module by setting an attenuation value, and determining a corresponding signal strength attenuation test result based on the signal strength.
The intensity of the signal attenuation is controlled by a programmable attenuator, i.e. the intensity of the signal is adjusted by the step of the signal attenuation.
Specifically, when the target sub-test item is a signal intensity attenuation test, firstly setting module parameters placed in an attenuation box, then sending a communication frame to a control measurement core board in the test equipment by the PC system, setting GPRS (general packet radio service) communication by an MCU (microprogrammed control unit) module of the control measurement core board, sending the communication frame to an uplink communication module for communication, ensuring that the uplink communication module is normally communicated, and reading the signal intensity by a frequency spectrograph; then, obtaining the attenuated signal intensity based on the attenuation step each time, testing the communication state of the uplink communication module corresponding to the attenuated signal intensity, and reading the signal intensity of the module; and finally, determining a signal intensity attenuation test result according to the signal intensity. Therefore, the influence of the signal strength on the uplink communication module is detected through the signal strength attenuation test, and the troubleshooting of the uplink communication module is facilitated.
Step 412, determining a fault detection result of the reliability test based on at least one of the power consumption test result, the baud rate redundancy test result, the power fluctuation test result, the power variation test result, and the signal strength attenuation test result.
Specifically, according to the sub-test items, a control measurement core board in the test equipment sequentially performs a power consumption test, a baud rate redundancy test, a power fluctuation test, a power change test and a signal intensity attenuation test, or performs a test according to a specific test item or tests selected from the sub-test items as a target sub-test item, and then determines a fault detection result of the reliability test of the uplink communication module according to one or more of the power consumption test result, the baud rate redundancy test result, the power fluctuation test result, the power change test result and the signal intensity test result.
In this embodiment, a reliability test is sequentially performed according to the sub-test items or one or more tests in the sub-test items are selected as a target sub-test item to perform the reliability test, and then a fault detection result of the reliability test is determined based on at least one of a power consumption test result, a baud rate redundancy test result, a power fluctuation test result, a power variation test result, and a signal intensity attenuation result. Therefore, when the reliability test is performed on the uplink communication module, the reliability test result is determined according to the test results corresponding to the sub-test items, so that the reliability test result of the uplink communication module can be more comprehensive, and a maintainer can be helped to comprehensively analyze the reliability of the uplink communication module.
In one embodiment, as shown in fig. 6, when the target sub-test item is a power variation test, acquiring a first communication status of the uplink communication module when the voltage decreases to the lowest threshold at the voltage variation rate, and acquiring a second communication status of the uplink communication module when the voltage increases to the highest threshold at the voltage variation rate, and determining a corresponding power variation test result based on the first communication status and the second communication status specifically includes:
step 602, when the target sub-test item is a power supply variation test, setting a first voltage variation rate and a second voltage variation rate, wherein the first voltage variation rate is greater than the second voltage variation rate.
The first voltage change rate and the second voltage change rate are change rates in a voltage range, and the time of the first voltage change rate in the voltage range is less than the time of the second voltage change rate in the voltage range, namely, the power supply voltage is in a process of fast power-up and fast power-down when the first voltage change rate is changed, and the power supply voltage is in a process of slowly rising and slowly falling when the second voltage change rate is used.
Step 604, when the voltage change rate is the first voltage change rate, acquiring a first communication state of the uplink communication module when the voltage rises from the voltage minimum threshold to the voltage maximum threshold at the first voltage change rate, and acquiring a second communication state of the uplink communication module when the voltage falls from the voltage maximum threshold to the voltage minimum threshold at the first voltage change rate.
The lowest threshold and the highest threshold of the power supply voltage are determined by the range of the power supply voltage, for example, if the range of the power supply voltage is 0V to 5V, the lowest threshold is 0V, and the highest threshold is 5V.
Specifically, the PC system makes the uplink communication module in a communication state by sending an AT (Attention) command to a control measurement core board in the test equipment; then, a first communication state is acquired by increasing the first voltage change rate from the lowest voltage threshold to the highest voltage threshold, and a second communication state is acquired by increasing the first voltage change rate from the highest voltage threshold to the lowest voltage threshold. For example, the corresponding communication result is obtained by powering on within 1s and powering off within 1s, or the communication result of each process can be obtained by cycling the power-on and power-off processes for a certain number of times, and after the power-on and power-off processes within 1s are obtained, the communication state of the uplink communication module can be tested by continuing to power down for a certain time after power-on.
Step 606, the first communication state and the second communication state are used as a first communication result when a power supply change test is performed at a first voltage change rate.
Specifically, a first communication state and a second communication state at the time of rapid power-up and rapid power-down at a first voltage change rate are taken as a first communication result of the power supply change test.
Step 608, when the voltage change rate is the second voltage change rate, acquiring a third communication status of the uplink communication module when the voltage increases from the voltage lowest threshold to the voltage highest threshold at the second voltage change rate, and acquiring a fourth communication status of the uplink communication module when the voltage decreases from the voltage highest threshold to the voltage lowest threshold at the second voltage change rate.
Specifically, the PC system enables the uplink communication module to be in a communication state by sending an AT instruction to a control measurement core board in the test equipment; and then increasing the voltage from the lowest threshold to the highest threshold at a second voltage change rate to obtain a third communication state, and increasing the voltage from the highest threshold to the lowest threshold at the second voltage change rate to obtain a fourth communication state. For example, the range of the power voltage is 0V to 5V, and the second voltage change rate is a voltage change within a voltage range within a certain time interval (for example, the time interval is 5s, 10s, 20s, etc.), such as a third communication state of the upstream communication module when the voltage rises from 0V to 5V within 5s, and a fourth communication state of the upstream communication module when the voltage falls from 5V to 0V.
Step 610, using the third communication status and the fourth communication status as a second communication result when the power supply change test is performed at the second voltage change rate.
Specifically, the third communication state and the fourth communication state when the gradual rise and slow fall are performed at the second voltage change rate are taken as the second communication result of the power supply change test.
Step 612, using the first communication result and the second communication result as a power variation test result.
Specifically, a first communication result when fast power-up and power-down are performed at a first voltage change rate, and a second communication result when slow ramp-up and ramp-down are performed at a second voltage change rate are taken as power supply change test results.
In this embodiment, by obtaining a first communication result when the power supply voltage is quickly powered on and powered off at the first voltage change rate and a second communication result when the power supply voltage is slowly raised and lowered at the second voltage change rate, the influence of power supply fluctuation on the reliability of the uplink communication module can be obtained, which is beneficial to troubleshooting of the fault condition of the uplink communication module.
In an embodiment, as shown in fig. 7, performing corresponding fault detection on the uplink communication module according to a target test mode corresponding to the target test type to obtain a fault detection result of the uplink communication module, includes the following steps:
step 702, when the target test type is a matching test, starting the uplink communication module in response to the power-on command, and recording the power-on state of the uplink communication module.
Specifically, when the target test type is the matching test, the uplink communication module is powered on, a startup operation is executed in response to the startup instruction, and the startup state of the uplink communication module is recorded. For example, after the uplink communication module is powered ON, the measurement core board is controlled to pull down the ON/OFF pin 1s, and then the device is turned ON according to the timing sequence shown in fig. 8, and the state of the uplink communication module is recorded. When the uplink communication module is started, the direct power-off shutdown is supported, and the internal fault of the uplink communication module cannot be caused by the direct power-off.
Step 704, inputting a communication signal into the uplink communication module, and determining an interface test result of the uplink communication module according to the receiving condition of the uplink communication module.
In order to ensure that the interface of the uplink communication module is matched with the terminal, an interface matching test may be performed based on each interface definition of the uplink communication module, which is specifically referred to table 1.
Specifically, referring to the schematic interface diagram of the terminal uplink communication module shown in fig. 9, a communication signal is input into the uplink communication module, the receiving condition of the uplink communication module is determined by an oscilloscope, and then the interface test result of the uplink communication module is determined according to the receiving condition. For example, when the uplink communication module receives a communication frame, the interface test result is that each interface of the uplink communication module is matched with a terminal.
Table 1: interface definition table of uplink communication module of intelligent metering equipment
Figure BDA0003090423960000131
Figure BDA0003090423960000141
Step 706, obtaining the output value of the power supply voltage of the uplink communication module by applying a current load.
Specifically, the uplink communication module is placed in a control measurement core board in the test equipment, and a power supply voltage output value corresponding to the current load is obtained by applying different current loads. For example, firstly, under the condition of no load (i.e. no current load is applied), the voltage output value under the condition is obtained, and then the current load is increased by 1A step in sequence, so that the voltage output value under the corresponding current load is obtained.
Step 708, when the uplink communication module receives a shutdown instruction, performing a shutdown operation on the uplink communication module.
Specifically, after the uplink communication module is powered off, the uplink communication module receives a shutdown instruction, and performs a shutdown operation on the module.
Step 710, using the power-on state, the interface test result, the output value of the power voltage of the uplink communication module, and the power-off state as the fault detection result obtained by performing the matching test.
Specifically, when the target test type is a matching test, a power-on state of the uplink communication module after power-on according to a power-on sequence, a matching result of the module and the terminal, a power supply voltage output result of the module under different current load conditions, and a power-off state of the module after power-off are collectively used as a fault detection result obtained by performing the matching test.
In this embodiment, when the target test type is a matching test, the startup state of the uplink communication module, the matching result between the module and the terminal, the output result of the voltage of the module under different current loads, and the shutdown state of the module are tested, so as to obtain the fault detection result of the matching test, so that the matching test result of the uplink communication module is more comprehensive, and the service staff can be helped to quickly know the fault information of the device.
In an embodiment, as shown in fig. 10, when the upstream communication module receives a shutdown instruction, performing a shutdown operation on the upstream communication module specifically includes:
step 1002, when the uplink communication module receives a shutdown instruction, the uplink communication module responds to the shutdown instruction, and performs a soft shutdown operation by delaying a predetermined time.
The soft-off operation is to use software to end the ongoing process, so as to quit the operating system, and send a current pulse to turn off the power supply to achieve the purpose of turning off or restarting.
Specifically, when the uplink communication module receives a shutdown instruction, the uplink communication module responds to the shutdown instruction sent by the control measurement core board, delays for a predetermined time, and then shuts down the power supply of the module, thereby completing the soft shutdown operation. Wherein, the delay preset time can be 15s.
Step 1004, when the uplink communication module cannot respond to the shutdown instruction, performing a hard shutdown operation by pulling down a switch pin.
The hard shutdown operation is a normal shutdown operation using a non-computer system, and the operation of shutdown is required to be performed through a shutdown or restart key.
Specifically, when the uplink communication module cannot respond to a shutdown instruction sent by the control measurement core board, the ON/OFF pin is pulled down for 2s, the predetermined time is delayed, and then the voltage of the module is shut down, so that the hard shutdown operation is completed.
In this embodiment, when the uplink communication module receives a shutdown instruction, it is determined whether the uplink communication module responds to the shutdown instruction to implement a corresponding shutdown operation, so as to ensure that the uplink communication module can complete shutdown.
In an embodiment, as shown in fig. 11, performing corresponding fault detection on the uplink communication module according to a target test mode corresponding to the target test type to obtain a fault detection result of the uplink communication module specifically includes:
step 1102, when the target test type is an antenna test, starting the uplink communication module by receiving a communication instruction, and enabling the uplink communication module to be in a communication state.
Specifically, when the target test type is an antenna test, the PC system sends an AT command to the control measurement core board in the test device, so that the uplink communication module is in a communication state.
Step 1104, inputting a communication signal into the uplink communication module, and obtaining, by the network analyzer, a signal intensity, a return loss, a standing wave ratio, and a scattering coefficient, which are generated when the antenna of the uplink communication module responds to the communication signal.
When the impedance of the antenna is not matched with that of the uplink communication module, the high-frequency energy can generate a reflected wave in the antenna, so that return loss and standing-wave ratio can be generated. For the calculation of the return loss RL, the formula is as follows:
RL=-20log(ρ),ρ=|Γ|
in the calculation formula, Γ is a complex form of the reflection coefficient, and ρ is a real part of Γ. For the calculation of the standing wave ratio VSWP, the formula is as follows:
Figure BDA0003090423960000161
for the scattering coefficient, the forward transmission coefficient S can be matched 11 Taking into consideration, the scattering coefficient of the antenna is obtained, as shown in the schematic diagram of the antenna scattering coefficient test shown in fig. 12. The forward transmission coefficient S 11 The formula is as follows:
Figure BDA0003090423960000162
wherein, a 1 And a 2 Representing incident wave signals on ports 1, 2, b 1 And b 2 Representing the outgoing wave signals at ports 1, 2, forward transmission coefficient S 11 Meaning the reflection coefficient of port 1 when port 2 is matched.
Specifically, a communication signal is input to the communication module, parameter setting and test parameters of the network analyzer are set, calibration operation is performed through the calibration piece, and after calibration is completed, data of the signal strength, the return loss, the standing-wave ratio and the scattering coefficient are obtained through the network analyzer.
Step 1106, determining impedance matching data based on the return loss and standing wave ratio.
Specifically, data of return loss and standing-wave ratio can be acquired through a network analyzer, and whether the antenna is matched with the uplink communication module or not is determined based on the data of return loss and standing-wave ratio.
Step 1108, the signal strength, the impedance matching data and the scattering coefficient are used as the fault detection result obtained by the antenna test.
Specifically, the measured signal strength, the impedance matching data of the antenna and the module, and the scattering coefficient are used together as the fault detection result of the antenna test.
In this embodiment, when the target test type is an antenna test, and the uplink communication module is in a communication state, the signal strength test, the impedance matching test, and the scattering coefficient test are performed respectively, and the obtained signal strength data, the obtained impedance matching result, and the obtained scattering coefficient structure are used as a fault detection result of the antenna detection together, so that the antenna test result of the uplink communication module is more comprehensive, the fault condition of the antenna is detected timely and accurately, and a maintainer can be helped to know fault information of the device quickly.
In order to facilitate a clearer understanding of the technical solutions of the present application, a more detailed embodiment is provided below for description. Fig. 13 specifically illustrates a fault detection scheme for an uplink communication module. The scheme is composed of a PC system, a power supply, a vector network analyzer, an oscilloscope, a frequency spectrograph, a serial server, a control and measurement core board, an attenuator, a related equipment control switch and the like. According to the scheme, GPRS communication and RS485 serial port communication can be selected, wherein the PC system is connected with the control measurement core board in the test equipment through the serial port, when the uplink communication module needs to be subjected to fault detection, the uplink communication module to be detected can be placed at the base position of the control measurement core board, corresponding test is implemented based on the control measurement core board, and therefore the test result corresponding to the test is obtained. Specifically, first, a request for performing fault detection on an uplink communication module is acquired; the control measurement core board selects a target test type to be tested according to the test type, wherein the target test type can be a reliability test, a matching test and an antenna test for sequentially testing the uplink communication module, or can select one or more specific tests according to actual conditions, the reliability test comprises a power consumption test, a baud rate redundancy test, a power fluctuation test, a power supply change test and a signal strength attenuation test of the uplink communication module, the matching test comprises a starting time sequence test, a matching test of an interface and a terminal of the uplink communication module, a test of the power supply quality of the uplink communication module and a shutdown test, and the antenna test comprises a signal strength test, an impedance matching test determined by echo loss and standing-wave ratio and an antenna scattering coefficient test; and then, connecting a switch, a circuit and test equipment related to the target test type according to the determined target test type, and detecting the uplink communication module to be detected according to the test method of the target test type to obtain a fault detection result of the uplink communication module. Therefore, the fault detection method of the uplink communication module can realize multiple detection functions, so that the fault of the uplink communication module of the intelligent metering equipment can be detected in time, the maintenance personnel can know the fault information of the equipment quickly, and the safe operation of the power system is ensured.
It should be understood that although the various steps in the flowcharts of fig. 2-4, 6-7, 10-11 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least some of the steps in fig. 2-4, 6-7, 10-11 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or at least partially with other steps or with at least some of the other steps.
In one embodiment, as shown in fig. 14, there is provided a failure detection apparatus for an upstream communication module, the apparatus 1400 includes: an acquisition module 1402, a determination module 1404, and a fault detection module 1406, wherein:
an obtaining module 1402, configured to obtain a fault detection request for an uplink communication module in the electric power metering device.
A determining module 1404, configured to determine a target test category for the fault detection of the uplink communication module from at least one test category according to the fault detection request, where the test category includes at least one category of a reliability test, a matching test, and an antenna test.
The failure detection module 1406 is configured to perform corresponding failure detection on the uplink communication module according to a target test mode corresponding to the target test type, so as to obtain a failure detection result of the uplink communication module.
In one embodiment, the failure detection module 1406 is configured to determine a target sub-test item from the sub-test items belonging to the reliability test category when the target test category is a reliability test; performing reliability test according to the target sub-test item to obtain a fault detection result of the reliability test; the sub-test items comprise at least one of a power consumption test, a baud rate redundancy test, a power supply fluctuation test, a power supply change test and a signal strength attenuation test of the uplink communication module.
In an embodiment, the fault detection module 1406 is configured to, when the target sub-test item is a power consumption test, respectively obtain static power consumption and dynamic power consumption of the uplink communication module, compare the static power consumption with a static power consumption threshold, compare the dynamic power consumption with a dynamic power consumption threshold, and determine a corresponding power consumption test result based on a comparison result; when the target sub-test project is a baud rate redundancy test, calculating a corresponding communication success rate by increasing the baud rate step length, and determining a corresponding baud rate redundancy test result based on the communication success rate; the communication success rate is the probability that the uplink communication module can receive communication signals after the step length of the baud rate is increased; when the target sub-test item is a power supply fluctuation test, the communication state of the uplink communication module is obtained by increasing the voltage step length, and a corresponding power supply fluctuation test result is determined based on the communication state; when the target sub-test item is a power supply change test, acquiring a first communication result of the uplink communication module when the voltage is reduced to a lowest threshold value at a voltage change rate and acquiring a second communication result of the uplink communication module when the voltage is increased to a highest threshold value at the voltage change rate, and determining a corresponding power supply change test result based on the first communication result and the second communication result; when the target sub-test item is a signal strength attenuation test, acquiring the signal strength of the uplink communication module by setting an attenuation value, and determining a corresponding signal strength attenuation test result based on the signal strength; and determining a fault detection result of the reliability test based on at least one of the power consumption test result, the baud rate redundancy test result, the power fluctuation test result, the power change test result and the signal strength attenuation test result.
In one embodiment, the fault detection module 1406 is further configured to set a first voltage change rate and a second voltage change rate when the target sub-test item is a power supply change test, wherein the first voltage change rate is greater than the second voltage change rate; when the voltage change rate is a first voltage change rate, acquiring a first communication state of the uplink communication module when the voltage rises from a voltage minimum threshold to a voltage maximum threshold at the first voltage change rate, and acquiring a second communication state of the uplink communication module when the voltage falls from the voltage maximum threshold to the voltage minimum threshold at the first voltage change rate; the first communication state and the second communication state are used as a first communication result when a power supply change test is carried out at a first voltage change rate; when the voltage change rate is a second voltage change rate, acquiring a third communication state of the uplink communication module when the voltage rises from the voltage minimum threshold to the voltage maximum threshold at the second voltage change rate, and acquiring a fourth communication state of the uplink communication module when the voltage falls from the voltage maximum threshold to the voltage minimum threshold at the second voltage change rate; taking the third communication state and the fourth communication state as a second communication result when a power supply change test is carried out at a second voltage change rate; and taking the first communication result and the second communication result as power supply change test results.
In one embodiment, the fault detection module 1406 is further configured to start the uplink communication module in response to a power-on command and record a power-on state of the uplink communication module when the target test type is a matching test; inputting a communication signal into the uplink communication module, and determining an interface test result of the uplink communication module according to the receiving condition of the uplink communication module; obtaining an output value of the power supply voltage of the uplink communication module by applying a current load; when the uplink communication module receives a shutdown instruction, performing shutdown operation on the uplink communication module; and the starting state, the interface test result, the output value of the power supply voltage of the uplink communication module and the shutdown state are jointly used as fault detection results obtained by carrying out the matching test.
In one embodiment, the failure detecting module 1406 is further configured to, when the uplink communication module receives a shutdown instruction, respond to the shutdown instruction by delaying for a predetermined time to perform a soft shutdown operation; and when the uplink communication module cannot respond to the shutdown instruction, performing hard shutdown operation by pulling down the switch pin.
In one embodiment, the fault detection module 1406 is further configured to, when the target test category is an antenna test, start the uplink communication module by receiving a communication instruction, and enable the uplink communication module to be in a communication state; inputting a communication signal into the uplink communication module, and acquiring signal intensity, return loss, standing wave ratio and scattering coefficient generated when an antenna of the uplink communication module responds to the communication signal through a network analyzer; determining impedance matching data based on the return loss and the standing wave ratio; and taking the signal intensity, the impedance matching data and the scattering coefficient as a fault detection result obtained by the antenna test.
For specific limitations of the fault detection apparatus of the upstream communication module, reference may be made to the above limitations on the fault detection method of the upstream communication module, and details are not described herein again. All or part of each module in the fault detection device of the uplink communication module can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a test device, the internal structure of which may be as shown in fig. 15. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the fault detection data of the uplink communication module. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of fault detection for an upstream communication module.
Those skilled in the art will appreciate that the architecture shown in fig. 15 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the above-described method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (12)

1. A method for detecting a fault of an uplink communication module, the method comprising:
acquiring a fault detection request aiming at an uplink communication module in the electric power metering equipment;
determining a target test type of the uplink communication module fault detection from at least one test type according to the fault detection request, wherein the test type comprises a reliability test, a matching test and an antenna test; the matching test is to obtain a fault detection result for matching test by testing the starting state of the uplink communication module, the matching result of the uplink communication module and the terminal, the output result of the voltage of the uplink communication module under different current load conditions and the stopping state of the uplink communication module; the antenna test is to respectively perform a signal strength test, an impedance matching test and a scattering coefficient test when the uplink communication module is in a communication state, and the obtained signal strength data, the impedance matching result and the scattering coefficient result are jointly used as a fault detection result of the antenna test;
when the target test category is a reliability test, determining a target sub-test item from the sub-test items belonging to the reliability test category; the sub-test items comprise a power consumption test, a baud rate redundancy test, a power supply fluctuation test, a power supply change test and a signal intensity attenuation test of the uplink communication module;
when the target sub-test item is a power consumption test, respectively acquiring static power consumption and dynamic power consumption of the uplink communication module, comparing the static power consumption with a static power consumption threshold value, comparing the dynamic power consumption with a dynamic power consumption threshold value, and determining a corresponding power consumption test result based on a comparison result;
when the target sub-test item is a baud rate redundancy test, calculating a corresponding communication success rate by increasing the baud rate step length, and determining a corresponding baud rate redundancy test result based on the communication success rate; the communication success rate is the probability that the uplink communication module can receive communication signals after the step length of the baud rate is increased;
when the target sub-test item is a power supply fluctuation test, the communication state of the uplink communication module is obtained by increasing the voltage step length, and a corresponding power supply fluctuation test result is determined based on the communication state;
when the target sub-test item is a power supply change test, acquiring a first communication result of the uplink communication module when the voltage is reduced to a lowest threshold value at a voltage change rate, and acquiring a second communication result of the uplink communication module when the voltage is increased to a highest threshold value at the voltage change rate, and determining a corresponding power supply change test result based on the first communication result and the second communication result;
when the target sub-test item is a signal strength attenuation test, acquiring the signal strength of the uplink communication module by setting an attenuation value, and determining a corresponding signal strength attenuation test result based on the signal strength;
and determining a fault detection result of the reliability test based on at least one of the power consumption test result, the baud rate redundancy test result, the power fluctuation test result, the power change test result and the signal strength attenuation test result.
2. The method according to claim 1, wherein when the target sub-test item is a power supply change test, acquiring a first communication result of the uplink communication module when the voltage decreases to a lowest threshold value at a voltage change rate and acquiring a second communication result of the uplink communication module when the voltage increases to a highest threshold value at the voltage change rate, and determining a corresponding power supply change test result based on the first communication result and the second communication result comprises:
when the target sub-test item is a power supply change test, setting a first voltage change rate and a second voltage change rate, wherein the first voltage change rate is greater than the second voltage change rate;
when the voltage change rate is a first voltage change rate, acquiring a first communication state of the uplink communication module when the voltage rises from a voltage lowest threshold to a voltage highest threshold at the first voltage change rate, and acquiring a second communication state of the uplink communication module when the voltage falls from the voltage highest threshold to the voltage lowest threshold at the first voltage change rate;
the first communication state and the second communication state are used as a first communication result when a power supply change test is carried out at a first voltage change rate;
when the voltage change rate is a second voltage change rate, acquiring a third communication state of the uplink communication module when the voltage rises from the voltage lowest threshold to the voltage highest threshold at the second voltage change rate, and acquiring a fourth communication state of the uplink communication module when the voltage falls from the voltage highest threshold to the voltage lowest threshold at the second voltage change rate;
taking the third communication state and the fourth communication state as a second communication result when a power supply change test is carried out at a second voltage change rate;
and taking the first communication result and the second communication result as power supply change test results.
3. The method of claim 1, further comprising:
when the target test type is a matching test, starting the uplink communication module in response to a starting instruction, and recording the starting state of the uplink communication module;
inputting a communication signal into the uplink communication module, and determining an interface test result of the uplink communication module according to the receiving condition of the uplink communication module;
obtaining an output value of the power supply voltage of the uplink communication module by applying a current load;
when the uplink communication module receives a shutdown instruction, performing shutdown operation on the uplink communication module;
and taking the starting state, the interface test result, the output value of the power supply voltage of the uplink communication module and the shutdown state as a fault detection result obtained by performing the matching test.
4. The method according to claim 3, wherein said performing a shutdown operation on the upstream communication module when the upstream communication module receives a shutdown instruction includes:
when the uplink communication module receives a shutdown instruction, the uplink communication module responds to the shutdown instruction and carries out soft shutdown operation by delaying preset time;
and when the uplink communication module cannot respond to the shutdown instruction, performing hard shutdown operation by pulling down a switch pin.
5. The method of claim 1, further comprising:
when the target test type is an antenna test, starting the uplink communication module by receiving a communication instruction, and enabling the uplink communication module to be in a communication state;
inputting a communication signal into the uplink communication module, and acquiring signal intensity, return loss, standing wave ratio and scattering coefficient generated when an antenna of the uplink communication module responds to the communication signal through a network analyzer;
determining impedance matching data based on the return loss and the standing wave ratio;
and taking the signal intensity, the impedance matching data and the scattering coefficient as a fault detection result obtained by the antenna test.
6. A failure detection apparatus for an upstream communication module, the apparatus comprising:
the acquisition module is used for acquiring a fault detection request aiming at an uplink communication module in the electric power metering equipment;
the determining module is used for determining a target test type of the fault detection of the uplink communication module from at least one test type according to the fault detection request, wherein the test type comprises a reliability test, a matching test and an antenna test; the matching test is to obtain a fault detection result for matching test by testing the starting state of the uplink communication module, the matching result of the uplink communication module and a terminal, the output result of the voltage of the uplink communication module under different current load conditions and the stopping state of the uplink communication module; the antenna test is to respectively perform a signal strength test, an impedance matching test and a scattering coefficient test when the uplink communication module is in a communication state, and the obtained signal strength data, the impedance matching result and the scattering coefficient result are jointly used as a fault detection result of the antenna test;
the fault detection module is used for determining a target sub-test item from the sub-test items belonging to the reliability test category when the target test category is the reliability test; the sub-test items comprise a power consumption test, a baud rate redundancy test, a power supply fluctuation test, a power supply change test and a signal strength attenuation test of the uplink communication module;
the fault detection module is further configured to, when the target sub-test item is a power consumption test, respectively obtain static power consumption and dynamic power consumption of the uplink communication module, compare the static power consumption with a static power consumption threshold, compare the dynamic power consumption with a dynamic power consumption threshold, and determine a corresponding power consumption test result based on a comparison result; when the target sub-test item is a baud rate redundancy test, calculating a corresponding communication success rate by increasing the baud rate step length, and determining a corresponding baud rate redundancy test result based on the communication success rate; the communication success rate is the probability that the uplink communication module can receive communication signals after the baud rate step length is increased; when the target sub-test item is a power supply fluctuation test, the communication state of the uplink communication module is obtained by increasing the voltage step length, and a corresponding power supply fluctuation test result is determined based on the communication state; when the target sub-test item is a power supply change test, acquiring a first communication result of the uplink communication module when the voltage is reduced to a lowest threshold value at a voltage change rate, and acquiring a second communication result of the uplink communication module when the voltage is increased to a highest threshold value at the voltage change rate, and determining a corresponding power supply change test result based on the first communication result and the second communication result; when the target sub-test item is a signal intensity attenuation test, acquiring the signal intensity of the uplink communication module by setting an attenuation value, and determining a corresponding signal intensity attenuation test result based on the signal intensity; and determining a fault detection result of the reliability test based on at least one of the power consumption test result, the baud rate redundancy test result, the power fluctuation test result, the power change test result and the signal strength attenuation test result.
7. The apparatus of claim 6, wherein the failure detection module is configured to set a first voltage change rate and a second voltage change rate when the target sub-test item is a power supply change test, and the first voltage change rate is greater than the second voltage change rate; when the voltage change rate is a first voltage change rate, acquiring a first communication state of the uplink communication module when the voltage rises from a voltage lowest threshold to a voltage highest threshold at the first voltage change rate, and acquiring a second communication state of the uplink communication module when the voltage falls from the voltage highest threshold to the voltage lowest threshold at the first voltage change rate; the first communication state and the second communication state are used as a first communication result when a power supply change test is carried out at a first voltage change rate; when the voltage change rate is a second voltage change rate, acquiring a third communication state of the uplink communication module when the voltage rises from the voltage lowest threshold to the voltage highest threshold at the second voltage change rate, and acquiring a fourth communication state of the uplink communication module when the voltage falls from the voltage highest threshold to the voltage lowest threshold at the second voltage change rate; taking the third communication state and the fourth communication state as a second communication result when a power supply change test is carried out at a second voltage change rate; and taking the first communication result and the second communication result as power supply change test results.
8. The apparatus according to claim 6, wherein the failure detection module is configured to, when the target test category is a matching test, start the uplink communication module in response to a power-on instruction, and record a power-on state of the uplink communication module; inputting a communication signal into the uplink communication module, and determining an interface test result of the uplink communication module according to the receiving condition of the uplink communication module; obtaining an output value of the power supply voltage of the uplink communication module by applying a current load; when the uplink communication module receives a shutdown instruction, performing shutdown operation on the uplink communication module; and taking the starting-up state, the interface test result, the output value of the power supply voltage of the uplink communication module and the shutdown state as fault detection results obtained by performing the matching test.
9. The apparatus according to claim 6, wherein the failure detection module is configured to, when the uplink communication module receives a shutdown instruction, perform a soft shutdown operation by delaying for a predetermined time in response to the shutdown instruction; and when the uplink communication module cannot respond to the shutdown instruction, performing hard shutdown operation by pulling down a switch pin.
10. The apparatus according to claim 6, wherein the failure detection module is configured to, when the target test category is an antenna test, turn on the uplink communication module by receiving a communication instruction, and enable the uplink communication module to be in a communication state; inputting a communication signal into the uplink communication module, and acquiring signal intensity, return loss, standing wave ratio and scattering coefficient generated when an antenna of the uplink communication module responds to the communication signal through a network analyzer; determining impedance matching data based on the return loss and the standing wave ratio; and taking the signal intensity, the impedance matching data and the scattering coefficient as a fault detection result obtained by the antenna test.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202110594420.7A 2021-05-28 2021-05-28 Fault detection method and device of uplink communication module and computer equipment Active CN113472603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110594420.7A CN113472603B (en) 2021-05-28 2021-05-28 Fault detection method and device of uplink communication module and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110594420.7A CN113472603B (en) 2021-05-28 2021-05-28 Fault detection method and device of uplink communication module and computer equipment

Publications (2)

Publication Number Publication Date
CN113472603A CN113472603A (en) 2021-10-01
CN113472603B true CN113472603B (en) 2022-12-23

Family

ID=77871731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110594420.7A Active CN113472603B (en) 2021-05-28 2021-05-28 Fault detection method and device of uplink communication module and computer equipment

Country Status (1)

Country Link
CN (1) CN113472603B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201015300A (en) * 2008-10-03 2010-04-16 Inventec Corp Automatic testing system and method
CN104793083B (en) * 2015-04-23 2017-11-03 广西电网有限责任公司电力科学研究院 A kind of communication unit interchangeability test system and its exchange method
CN109618364B (en) * 2018-12-26 2022-03-29 华立科技股份有限公司 Detection system and detection method for uplink communication module of terminal
CN111106879A (en) * 2019-12-04 2020-05-05 广东电网有限责任公司 Uplink communication fault visual detection system for metering automation terminal
CN111703590A (en) * 2020-04-30 2020-09-25 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Complex system reliability test method and device, computer equipment and storage medium
CN112463478A (en) * 2020-11-17 2021-03-09 武汉木仓科技股份有限公司 Interface test method and device of circuit board and test equipment
CN112526276A (en) * 2020-12-23 2021-03-19 国网江苏省电力有限公司 Interface converter detection method

Also Published As

Publication number Publication date
CN113472603A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
US20120192003A1 (en) Computer status monitoring device, computer monitoring system and computer status monitoring method
CN112014788B (en) Load identification module detection method based on wave recording file playback
CN105425201A (en) Metering chip simulation test method used for intelligent electric energy meter software reliability detection
US11415627B2 (en) Method for automatically testing processor
WO2017193514A1 (en) Circuit for eliminating electrical leakage in device in shutdown state
US20230259432A1 (en) Testing method and testing device
US20230152389A1 (en) Method for Detecting Storage Battery of Vehicle and Battery Detection Device
CN111239637B (en) Server power supply current sharing detection device and method
CN115902383A (en) Power consumption testing method and device of smart card and related product
CN113472603B (en) Fault detection method and device of uplink communication module and computer equipment
CN113933694A (en) Method and device for detecting running state of optical coupling relay
CN114167132A (en) Power consumption detection method and device of wireless terminal, electronic equipment and storage medium
CN106301622A (en) Interference detection method and interference detection system
US8078422B2 (en) System and method for testing frequency range
CN211148838U (en) Air conditioner internal unit testing device
US10992378B2 (en) Information processing apparatus and optical fiber inspection method
CN115150875B (en) Test method and test system for Bluetooth function of intelligent electric energy meter
CN111521952A (en) Synchronous rectification circuit, charger and synchronous rectification circuit control method and system
US9158319B2 (en) Closed-loop adaptive voltage scaling for integrated circuits
CN115437865A (en) Method, device, equipment and medium for testing abnormal power failure of hard disk
CN111693754B (en) Device, equipment and method for detecting PIN voltage of communication module
CN117805715B (en) Smart jack, calibration detection method, device and product thereof
CN107966975A (en) A kind of fan control board test system and method
CN110543393A (en) test type PSU (Power System Unit) for server and test method
TWI712925B (en) Electronic apparatus and control method thereof

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