CN112415936B - Serial port communication fault detection device and method - Google Patents

Serial port communication fault detection device and method Download PDF

Info

Publication number
CN112415936B
CN112415936B CN202011398497.9A CN202011398497A CN112415936B CN 112415936 B CN112415936 B CN 112415936B CN 202011398497 A CN202011398497 A CN 202011398497A CN 112415936 B CN112415936 B CN 112415936B
Authority
CN
China
Prior art keywords
communication
controller module
parameters
serial port
fault detection
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
CN202011398497.9A
Other languages
Chinese (zh)
Other versions
CN112415936A (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.)
Jiangmen Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Jiangmen Power Supply Bureau of Guangdong Power Grid 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 Jiangmen Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Jiangmen Power Supply Bureau of Guangdong Power Grid Co Ltd
Priority to CN202011398497.9A priority Critical patent/CN112415936B/en
Publication of CN112415936A publication Critical patent/CN112415936A/en
Application granted granted Critical
Publication of CN112415936B publication Critical patent/CN112415936B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention relates to a serial port communication fault detection device and a method, wherein the detection device comprises a shell, a display and a functional key module which are arranged on the shell, and a controller module which is arranged in the shell; the controller module is electrically connected with the display and the function key module respectively; the controller module is provided with an input interface and an output interface; the input interface and the output interface are provided with connecting wires for connecting equipment. The communication fault point is detected through the detection device, and after the communication fault occurs, the equipment with the communication fault can be positioned, so that the maintenance and management work of the transformer substation is more convenient, and the work efficiency is improved.

Description

Serial port communication fault detection device and method
Technical Field
The invention relates to the field of communication equipment fault detection, in particular to a serial port communication fault detection device and method.
Background
The equipment that adopts serial communication in the present transformer substation, for example direct current power supply monitoring module, protocol conversion equipment and dispatch 101 relevant equipment of passageway etc. communication abnormity often appears and the interrupt, and professional maintainer can't pinpoint communication trouble equipment especially relates to the operating mode of many parties factory equipment communication interconnection, can't seek best solution, brings huge puzzlement for the maintenance management work of transformer substation.
Chinese patent document having publication number "CN 210924248U" and publication date of 2019, 11 and 28 discloses a tool suitable for detecting serial port communication of an industrial control host, which includes: the device comprises a signal processing unit, an external serial port unit, an indicator light unit and a power input unit; the power input unit supplies power to the signal processing unit; the signal processing unit receives serial port signals sent by the upper computer and converts the serial port signals into voltage signals so as to drive the indicator light unit to light up; the external serial port unit is connected with a serial port of the industrial control host; and the indicator light unit displays whether the communication of each serial port is normal. The method can improve the efficiency and accuracy of serial port communication detection, rapidly and accurately complete the inspection test of the industrial control host, the tool can simultaneously meet the requirements of a plurality of serial port communication tests, and the test result is displayed in an indicator lamp mode and is clear at a glance.
In the above scheme, only the industrial control host is detected, and when the industrial control host is connected with a plurality of communication devices, the fault devices except the industrial control host cannot be located.
Disclosure of Invention
The invention provides a serial communication fault detection device and method for solving the problem that communication fault equipment cannot be accurately positioned in the prior art, and the device and method can be used for positioning the equipment with communication faults.
In order to solve the technical problems, the invention adopts the technical scheme that: a serial port communication fault detection device comprises a shell, a display and a function key module which are arranged on the shell, and a controller module which is arranged in the shell; the controller module is electrically connected with the display and the function key module respectively; the controller module is provided with an input interface and an output interface; the input interface and the output interface are provided with connecting wires for connecting equipment.
In the above technical solution, the controller module is configured to monitor and analyze a communication packet. The display is used for displaying the communication parameters analyzed by the controller module, and the key module can operate the device.
Preferably, the controller module is an embedded development board. The embedded development board has a self-contained comparison and detection algorithm, and the embedded development board can be used only by carrying out application and improvement on the algorithm, so that the embedded development board is more convenient to use.
Preferably, the number of the input interfaces is three, and the three input interfaces are respectively an RS232 communication interface, an RS485 communication interface and an RS422 communication interface. Can adapt to communication interfaces with different wire systems.
The serial communication fault detection device based on the serial communication fault detection method further comprises the following steps:
the method comprises the following steps: when the host computer and the serial port of the equipment are in communication failure, the corresponding failed serial port wiring of the host computer is disconnected, and the host computer is connected by adopting a connecting line of an input interface;
step two: the controller module receives the communication information of the host and analyzes the communication information into communication parameters; comparing the communication parameters analyzed by the communication fault detection device with the actual operating normal parameters, and if the data of the communication parameters and the actual operating normal parameters are consistent, removing the host fault;
step three: disconnecting the fault serial port connection of the equipment; connecting the connecting line of the output interface with the serial port of the equipment, and analyzing the communication information of the host into communication parameters after the controller module receives the communication information; comparing the communication parameters analyzed by the communication fault detection device with the actual operating normal parameters, and if the data of the two parameters are consistent, eliminating the communication line fault;
step four: the connecting line of the input interface connecting line and the host computer is disconnected, and the controller module converts the communication parameters obtained in the second step or the third step into message data and sends the message data to the equipment; and if the response data frame cannot be received, the communication fault is in the equipment.
According to the scheme of the detection method, after serial port communication between the host and the equipment fails, the host, the communication channel and the equipment can be subjected to fault detection step by step through the detection device, so that specific fault positions can be located, all possible fault points can be checked one by one, and the condition that the fault points are omitted is avoided.
Preferably, the communication parameters input into the common serial devices of the transformer substation are written into the database of the controller module to serve as normal parameters of actual operation. The communication parameters of the common serial devices of the transformer substation are collected, wherein the communication parameters comprise serial port types, protocol conventions, baud rates and verification modes. These parameters are written into a database for the controller module's algorithm to scan in cycles before matching the communication parameters obtained from the host.
Preferably, the specific process of establishing the database includes: the protocol types and description documents of common serial devices of the transformer substation are collected, a host request and a transmission frame of a device response remote signaling message are picked, the transmission frame is written into a database queriable field, the corresponding transmission frame is disassembled, and the transmission frame is written into the database by taking a synchronous word, a control word and an information word as independent queriable fields.
Preferably, setting a bit error rate threshold of the controller module; the controller module cannot analyze host communication information, checks message CRC according to the protocol type, and judges that a communication channel fails if the error rate is higher than a set threshold value.
Preferably, the controller module cannot analyze the host communication information, inputs actual parameters, protocol types and description documents of the equipment into the controller module, and updates the database of the controller module.
Preferably, in the fourth step, the controller module automatically scans and matches the baud rate of the device with the typical baud rate to acquire the communication information of the device. The data size of matching can be reduced by adopting typical baud rate matching, and the matching efficiency is improved.
Preferably, the typical baud rates include 300, 1200, 2400, 9600, 19200, 38400, and 115200. The matching of the transformer substation is usually a few of typical baud rates, and the matching is carried out according to the baud rate commonly used by the transformer substation, so that the matching efficiency is further improved.
Compared with the prior art, the invention has the beneficial effects that: through the detection device and the corresponding detection method thereof, the equipment which is subjected to the communication fault after the communication fault occurs can be positioned, so that the maintenance and management work of the transformer substation is more convenient, and the work efficiency is improved.
Drawings
FIG. 1 is a schematic structural diagram of a serial communication fault detection device according to the present invention;
fig. 2 is a flowchart of a serial communication fault detection method according to the present invention.
Detailed Description
The drawings are for illustrative purposes only and are not to be construed as limiting the patent; for the purpose of better illustrating the embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product; it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted. The positional relationships depicted in the drawings are for illustrative purposes only and are not to be construed as limiting the present patent.
The same or similar reference numerals in the drawings of the embodiments of the present invention correspond to the same or similar components; in the description of the present invention, it should be understood that if there are terms such as "upper", "lower", "left", "right", "long", "short", etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the drawings, it is only for convenience of description and simplicity of description, but does not indicate or imply that the device or element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and therefore, the terms describing the positional relationships in the drawings are only used for illustrative purposes and are not to be construed as limitations of the present patent, and specific meanings of the terms may be understood by those skilled in the art according to specific situations.
The technical scheme of the invention is further described in detail by the following specific embodiments in combination with the attached drawings:
example 1
Fig. 1 shows an embodiment of a serial communication fault detection apparatus, which includes a housing 1, a display 2 and a function key module 3 disposed on the housing 1, and a controller module 4 disposed in the housing 1; the controller module 4 is respectively electrically connected with the display 2 and the function key module 3; the controller module 4 is provided with an input interface and an output interface; the input interface and the output interface are provided with connecting wires for connecting equipment;
the controller module 4 is used for monitoring and analyzing the communication message. The display 2 is used for displaying the communication parameters analyzed by the controller module 4, and the key module can operate the device.
Specifically, the controller module 4 is an embedded development board. The embedded development board has a self-contained comparison and detection algorithm, and the embedded development board can be used only by carrying out application and improvement on the algorithm, so that the embedded development board is more convenient to use. The number of the input interfaces is three, and the three input interfaces are respectively an RS232 communication interface, an RS485 communication interface and an RS422 communication interface. Can adapt to communication interfaces with different wire systems.
The working principle or working process of the invention is as follows: the host computer is connected with a host computer at a fault position through an input interface, the communication parameters of the host computer are detected and compared through the controller module 4 and are displayed in the display 2, and whether the host computer is in fault or not is judged through comparing the communication parameters; replacing the communication channel with the detection device, comparing the obtained communication parameters with the controller module 4, displaying the communication parameters on the display 2, and judging whether the communication channel has a fault; the controller module 4 is connected with the failed equipment through an output interface, converts the communication parameters into message data and sends the message data to the equipment; if the device response cannot be received, the communication fault is judged to be in the device.
The beneficial effects of this embodiment: after the communication fault occurs, the equipment which is subjected to the communication fault can be positioned, so that the maintenance and management work of the transformer substation is more convenient, and the work efficiency is improved.
Example 2
As shown in fig. 2, a serial communication fault detection method based on the serial communication fault detection device of embodiment 1 includes the following steps:
the method comprises the following steps: when the host computer and the serial port of the equipment are in communication failure, the corresponding failed serial port wiring of the host computer is disconnected, and the host computer is connected by adopting a connecting line of an input interface; and writing the communication parameters of the common serial port equipment of the transformer substation into a database of the controller module 4 as normal parameters of actual operation. The communication parameters of the common serial devices of the transformer substation are collected, wherein the communication parameters comprise serial port types, protocol conventions, baud rates and verification modes. These parameters are written into the database for the controller module 4 algorithm to scan in cycles before matching the communication parameters obtained from the host.
Step two: the controller module 4 receives the communication information of the host and analyzes the communication information into communication parameters; comparing the communication parameters analyzed by the communication fault detection device with the actual operating normal parameters, and if the data of the communication parameters and the actual operating normal parameters are consistent, removing the host fault;
step three: disconnecting the fault serial port connection of the equipment; connecting a connecting line of the output interface with a serial port of the equipment, and analyzing the communication information of the host into communication parameters after the controller module 4 receives the communication information; comparing the communication parameters analyzed by the communication fault detection device with the actual operating normal parameters, and if the data of the two parameters are consistent, eliminating the communication line fault;
step four: the connecting line of the input interface connecting line and the host computer is disconnected, the controller module 4 converts the communication parameters obtained in the second step or the third step into message data, and sends the message data to the equipment; and if the response data frame cannot be received, the communication fault is in the equipment. In this step, the controller module 4 automatically scans the baud rate of the matched device at the typical baud rate to obtain the communication information of the device. The data size of matching can be reduced by adopting typical baud rate matching, and the matching efficiency is improved.
Specifically, the specific process of establishing the database includes: the protocol types and description documents of common serial devices of the transformer substation are collected, a host request and a transmission frame of a device response remote signaling message are picked, the transmission frame is written into a database queriable field, the corresponding transmission frame is disassembled, and the transmission frame is written into the database by taking a synchronous word, a control word and an information word as independent queriable fields.
In addition, setting the bit error rate threshold of the controller module 4; the controller module 4 cannot analyze the host communication information, checks the message CRC according to the protocol type, and determines that the communication channel is faulty if the error rate is higher than a set threshold. The controller module 4 cannot analyze the host communication information, input actual parameters of the device, protocol types and description documents thereof into the controller module 4, and update the database of the controller module 4.
Specifically, typical baud rates include 300, 1200, 2400, 9600, 19200, 38400, and 115200. The matching of the transformer substation is usually a few of typical baud rates, and the matching is carried out according to the baud rate commonly used by the transformer substation, so that the matching efficiency is further improved.
It should be understood that the above-described embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the claims of the present invention.

Claims (7)

1. A serial communication fault detection method is based on a serial communication fault detection device, and the serial communication fault detection device comprises a shell (1), a display (2) and a function key module (3) which are arranged on the shell (1), and a controller module (4) which is arranged in the shell (1); the controller module (4) is electrically connected with the display (2) and the function key module (3) respectively; the controller module (4) is provided with an input interface and an output interface; the input interface and the output interface are provided with connecting wires for connecting equipment; the controller module (4) is used for monitoring and analyzing communication messages; the controller module (4) is an embedded development board; the number of the input interfaces is three, and the three input interfaces are respectively an RS232 communication interface, an RS485 communication interface and an RS422 communication interface; the method is characterized by comprising the following steps:
the method comprises the following steps: when the host computer and the serial port of the equipment are in communication failure, the corresponding failed serial port wiring of the host computer is disconnected, and the host computer is connected by adopting a connecting line of an input interface;
step two: the controller module (4) receives the communication information of the host and then analyzes the communication information into communication parameters; comparing the communication parameters analyzed by the communication fault detection device with the actual operating normal parameters, and if the data of the communication parameters and the actual operating normal parameters are consistent, removing the host fault;
step three: disconnecting the fault serial port connection of the equipment; connecting a connecting line of the output interface with a serial port of the equipment, and analyzing the communication information of the host into communication parameters after the controller module (4) receives the communication information; comparing the communication parameters analyzed by the communication fault detection device with the actual operating normal parameters, and if the data of the two parameters are consistent, eliminating the communication line fault;
step four: the connecting line of the input interface connecting line and the host computer is disconnected, and the controller module (4) converts the communication parameters obtained in the second step or the third step into message data and sends the message data to the equipment; and if the response data frame cannot be received, the communication fault is in the equipment.
2. The serial port communication fault detection method according to claim 1, characterized in that communication parameters input into common serial port equipment of the substation are written into a database of the controller module (4) as normal parameters of actual operation.
3. The method for detecting the serial port communication fault according to claim 1, wherein the specific process of establishing the database comprises the following steps: the protocol types and description documents of common serial devices of the transformer substation are collected, a host request and a transmission frame of a device response remote signaling message are picked, the transmission frame is written into a database queriable field, the corresponding transmission frame is disassembled, and the transmission frame is written into the database by taking a synchronous word, a control word and an information word as independent queriable fields.
4. The serial port communication fault detection method according to claim 1, wherein a bit error rate threshold of the controller module (4) is set; the controller module (4) cannot analyze the host communication information, checks the message CRC according to the protocol type, and judges the communication channel fault if the error rate is higher than a set threshold value.
5. The serial port communication fault detection method according to claim 1, wherein the controller module (4) cannot analyze host communication information, and inputs actual device parameters, protocol types and description documents thereof into the controller module (4) to update the database of the controller module (4).
6. The serial port communication fault detection method according to any one of claims 1 to 5, wherein in the fourth step, the controller module (4) automatically scans and matches the baud rate of the device with the typical baud rate to obtain the communication information of the device.
7. The method according to claim 6, wherein the typical baud rates include 300, 1200, 2400, 9600, 19200, 38400 and 115200.
CN202011398497.9A 2020-12-04 2020-12-04 Serial port communication fault detection device and method Active CN112415936B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011398497.9A CN112415936B (en) 2020-12-04 2020-12-04 Serial port communication fault detection device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011398497.9A CN112415936B (en) 2020-12-04 2020-12-04 Serial port communication fault detection device and method

Publications (2)

Publication Number Publication Date
CN112415936A CN112415936A (en) 2021-02-26
CN112415936B true CN112415936B (en) 2021-10-12

Family

ID=74829903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011398497.9A Active CN112415936B (en) 2020-12-04 2020-12-04 Serial port communication fault detection device and method

Country Status (1)

Country Link
CN (1) CN112415936B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117148018B (en) * 2023-10-27 2024-03-26 南方电网数字电网研究院有限公司 Function test system and method for power distribution module

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1952906A (en) * 2005-10-21 2007-04-25 鸿富锦精密工业(深圳)有限公司 Test system and method of serial port of host computer
CN206133543U (en) * 2016-10-18 2017-04-26 赵伟 Serial communication detection device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915030B (en) * 2012-10-25 2015-07-15 无锡建仪仪器机械有限公司 RS232 (recommended standard 232) serial port fFault diagnosis device applied to controller of tester
CN104461814B (en) * 2013-09-16 2018-10-30 研祥智能科技股份有限公司 A kind of the serial ports test method and system of computer
US20160217674A1 (en) * 2015-01-26 2016-07-28 Trane International Inc. Remote monitoring of an hvac system for fault detection and diagnostics
CN106897179A (en) * 2017-02-23 2017-06-27 重庆大学 A kind of serial communication self checking method
US20190286537A1 (en) * 2018-03-13 2019-09-19 Carrier Corporation Detection of wiring faults in serial bus connected components

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1952906A (en) * 2005-10-21 2007-04-25 鸿富锦精密工业(深圳)有限公司 Test system and method of serial port of host computer
CN206133543U (en) * 2016-10-18 2017-04-26 赵伟 Serial communication detection device

Also Published As

Publication number Publication date
CN112415936A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
US7768418B2 (en) Power patch panel with guided MAC capability
CN105203980B (en) A kind of power quality self-checking system and its self checking method
KR102648377B1 (en) Intelligent integrated wiring board with network cable quality monitoring
EP1074917A2 (en) System and method for determining connection accuracy at an interface
CN104090252B (en) Comprehensive detecting system and method for cable type fault indicator
CN108848008B (en) Online fault diagnosis method for telecontrol device of transformer substation
CN111147342B (en) MVB bus fault diagnosis method and system based on communication chip
CN112415936B (en) Serial port communication fault detection device and method
CN112034388A (en) Automatic wire harness detection system and detection method
CN104076808A (en) Fault diagnosis system and method for industrial control equipment
CN106324420B (en) A kind of display fault detection method
CN212255646U (en) Circuit on-off inspection tester with camera
CN111983422A (en) Automatic identification adapter for ATE automatic test system and identification method thereof
CN107562561A (en) Computer hardware rapid diagnostic test system
CN101661420A (en) External bus detector and method
CN218352516U (en) ModbusRTU test system
CN111026592A (en) Computer hardware detection device
CN112748324B (en) Fixed value station manual operator test detection device
CN112711502B (en) Gao Wenkao machine testing method, control end, tooling end and system for iMS-CPU board
CN112666386A (en) Machining equipment state identification and analysis method based on current detection learning
CN210038378U (en) Fault repair system of liquid crystal display
KR20220146230A (en) Apparatus for detection wiring mismatch of electric device
CN206096342U (en) Self -diagnosis is from feeder automation device of maintaining on line
CN212460547U (en) Board card self-checking monitoring system
CN217283477U (en) LED lamp detection circuit and LED lamp driving system

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