CN112783816A - Handheld dual-serial-port protocol capturing and analyzing diagnostic instrument and using method thereof - Google Patents

Handheld dual-serial-port protocol capturing and analyzing diagnostic instrument and using method thereof Download PDF

Info

Publication number
CN112783816A
CN112783816A CN202110003578.2A CN202110003578A CN112783816A CN 112783816 A CN112783816 A CN 112783816A CN 202110003578 A CN202110003578 A CN 202110003578A CN 112783816 A CN112783816 A CN 112783816A
Authority
CN
China
Prior art keywords
data
module
com1
com2
serial port
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.)
Granted
Application number
CN202110003578.2A
Other languages
Chinese (zh)
Other versions
CN112783816B (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.)
Dongfeng Automobile Co Ltd
Original Assignee
Dongfeng Automobile 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 Dongfeng Automobile Co Ltd filed Critical Dongfeng Automobile Co Ltd
Priority to CN202110003578.2A priority Critical patent/CN112783816B/en
Publication of CN112783816A publication Critical patent/CN112783816A/en
Application granted granted Critical
Publication of CN112783816B publication Critical patent/CN112783816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Communication Control (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

A hand-held double-serial-port protocol capturing and analyzing diagnostic instrument comprises an embedded MCU, a com1 serial port and a com2 serial port which are respectively connected with a device A and a device B in series, wherein the embedded MCU is internally provided with a com1 data capturing and caching and forwarding module, a com2 data capturing and caching and forwarding module and a protocol analyzing module, when the instrument is used, the com1 data capturing module captures com1 data and then puts the data into the caching module, the data is transferred to the device B according to the original format through the forwarding module, then the device B feeds back according to the specific protocol format, the com2 data capturing module captures the com2 data and then puts the data into the caching module, the data is transferred to the device A according to the original format through the forwarding module, and finally the protocol analyzing module analyzes whether the two groups of data judge device A, B are in normal communication. The design not only has wide application, but also can realize the analysis and diagnosis of the communication protocol without influencing the normal communication of the two devices.

Description

Handheld dual-serial-port protocol capturing and analyzing diagnostic instrument and using method thereof
Technical Field
The invention belongs to the field of communication and control of electronic equipment, and particularly relates to a handheld dual-serial-port protocol capture and analysis diagnostic apparatus and a use method thereof.
Background
The bus communication technology based on the serial communication mode is the most popular communication scheme in the modern times, compared with the parallel port communication mode, the bus communication technology is simple in wiring, low in cost and popular with people, and therefore the bus communication technology is widely used in the fields of automobile electronic and automobile communication control, industrial equipment communication control, measurement and acquisition module communication, instrument and meter communication, household appliances and the like. However, the serial port communication control mode is different from the common point-to-point parallel port mode, the 2-wire serial port communication mode is adopted for data exchange, the transmission frequency is high, signals cannot be seen, and cannot be directly observed or measured by tools such as a common multimeter, and therefore great troubles and puzzles are brought to technical staff in the development and exception troubleshooting processes of the equipment.
In the equipment applying the serial communication technology, the protocol capture, analysis and diagnosis are required to be carried out between two pieces of equipment in communication work in both the development and debugging of products and the fault removal after the equipment is abnormal, so that the problem can be accurately and quickly found; thus, a capturing and analyzing device is needed which can work between two devices (serially connected between the two devices) and also ensure the normal communication of the original devices; meanwhile, in order to enable an operator to conveniently carry the field device during abnormal troubleshooting and analysis and to operate and use the field device with a single hand, the device is required to have mobility and handheld functions, so that a portable double-serial-port protocol capturing and analyzing tool or device which can visually diagnose and analyze serial communication between two devices without a heavy notebook computer is urgently needed.
Disclosure of Invention
The invention aims to solve the problems in the prior art and provides a portable handheld dual-serial-port protocol capture and analysis diagnostic instrument which is convenient to carry and can easily analyze and diagnose the communication protocols of two devices and does not influence the normal communication of the two devices, and a using method thereof.
In order to achieve the above purpose, the technical scheme of the invention is as follows:
a hand-held double serial port protocol capturing and analyzing diagnostic instrument comprises an embedded MCU, a com1 serial port and a com2 serial port, wherein the com1 serial port and the com2 serial port are respectively connected with a device A and a device B in series, a com1 serial port data capturing module, a com1 data caching module, a com1 data forwarding module, a com2 serial port data capturing module, a com2 data caching module, a com2 data forwarding module and a protocol analyzing module are arranged inside the embedded MCU, a signal output end of the com1 serial port data capturing module is connected with signal input ends of the com1 data caching module and the com1 data forwarding module, a signal output end of the com2 serial port data capturing module is connected with signal input ends of the com2 data caching module and the com 588 data forwarding module, signal output ends of the com1 data caching module and the com2 data caching module are connected with a signal input end of the com analyzing module, a signal output end of the com1 data forwarding module is connected with a device B through a serial port 2, the signal output end of the com2 data forwarding module is connected with the equipment A through a com1 serial port;
and the protocol analysis module is used for judging whether the communication of the equipment A and the equipment B is normal or not.
The signal output end of the com1 data transfer module is connected with the com2 serial port, and the signal output end of the com2 data transfer module is connected with the com1 serial port through TTL-RS232 driving modules.
The diagnostic instrument is provided with a recording switch, and the signal output end of the recording switch is connected with an SD memory inside the diagnostic instrument through a com1 data cache module and a com2 data cache module.
And the signal output end of the recording switch is connected with the signal input ends of the com1 data cache module and the com2 data cache module through the key driving module.
The diagnostic apparatus is also provided with a capture switch, and the signal output end of the capture switch is connected with the signal input end of the protocol analysis module through the key driving module.
The diagnostic instrument is also provided with a capture/analysis mode switching key, and the signal output end of the capture/analysis mode switching key is connected with the embedded MCU through a key driving module.
The diagnostic apparatus is also provided with a mini liquid crystal display screen, and the signal input end of the mini liquid crystal display screen is connected with the signal output ends of the com1 data cache module, the com2 data cache module and the protocol analysis module through the liquid crystal driving module.
The diagnostic instrument is further provided with a power switch, the signal output end of the power switch is connected with the embedded MCU through the lithium battery management module, and the signal input end of the lithium battery management module is connected with the lithium battery pack.
A use method of a handheld dual-serial-port protocol capture and analysis diagnostic apparatus specifically comprises the following steps: firstly, a diagnostic instrument is connected in series between equipment A and equipment B, then when the equipment A communicates with the equipment B, a com1 serial port data capturing module circularly captures data of a com1 serial port in real time, if the com1 serial port has no data, the equipment A is judged to be in fault, if the com1 serial port has data, the data is stored in a com1 data cache module, the data is forwarded to the equipment B through a com2 serial port according to the original format through a com1 data forwarding module, then the equipment B feeds back according to a specific protocol format, a com2 serial port data capturing module circularly captures the data of the com2 serial port in real time, if the com2 serial port has no data, the equipment B is judged to be in fault, if the com2 serial port has data, the data is stored in a com2 data cache module, the data is forwarded to the equipment A through a com1 serial port according to the original format through a com1 protocol analysis module, and finally the com2 data comparison and analysis module forwards the com1 data to the equipment A, And the data in the com2 data cache module judges whether the communication of the equipment A and the equipment B is normal.
The protocol analysis module judges whether the communication of the equipment A and the equipment B is normal or not by analyzing whether the data frame formats in the com1 data buffer module and the com2 data buffer module are correct and consistent or not.
Compared with the prior art, the invention has the beneficial effects that:
the invention relates to a hand-held double serial port protocol capturing and analyzing diagnostic apparatus, which comprises an embedded MCU, a com1 serial port and a com2 serial port, wherein the com1 serial port and the com2 serial port are respectively connected with a device A and a device B in series, a com1 serial port data capturing module, a com1 data cache module, a com1 data forwarding module, a com2 serial port data capturing module, a com2 data cache module, a com2 data forwarding module and a protocol analyzing module are arranged in the embedded MCU, a signal output end of the com1 serial port data capturing module is connected with signal input ends of the com1 data cache module and the com1 data forwarding module, a signal output end of the com2 serial port data capturing module is connected with signal input ends of the com2 data cache module and the com2 data forwarding module, signal output ends of the com1 data cache module and the com2 data cache module are connected with a signal input end of the protocol analyzing module, a signal output end of the com1 data forwarding module is connected with a serial port 2 of the device B, the signal output end of the com2 data transfer module is connected with the device A through a com1 serial port, when the analysis diagnostic instrument is used, the diagnostic instrument is connected in series between the device A and the device B, then when the device A communicates with the device B, the com1 serial port data capture module circularly captures data of a com1 serial port in real time, if the com1 serial port has no data, the device A is judged to be in fault, if the com1 serial port has data, the data is stored in the com1 data cache module, the data is transferred to the device B through the com1 data transfer module according to the original format through a com2 serial port, then the device B feeds back according to the specific protocol format, the com2 serial port data capture module circularly captures the data of the com2 serial port in real time, if the com2 serial port has no data, the device B is judged to be in fault, if the com2 has data, the data is stored in the com2 data cache module, and the com1 is transferred to the device A through the original serial port, and finally, the protocol analysis module compares and analyzes the com1 data cache module and the data in the com2 data cache module to judge whether the communication of the equipment A and the equipment B is normal or not, on one hand, the design adopts an embedded MCU, the whole structure is compact, the weight is light, the carrying is convenient, the device can be applied to various scenes with small space or needing climbing operation or severe environment by hand, the cost is reduced, on the other hand, the device is directly connected between the two equipment in series, not only can easily capture, analyze and diagnose the communication protocols of the two equipment, but also does not influence the normal communication and work of the original two equipment. Therefore, the invention is not only convenient to carry and wide in application, but also can easily analyze and diagnose the communication protocols of the two devices without influencing the normal communication and work of the two devices.
Drawings
Fig. 1 is a schematic diagram of the structure of the present invention.
In the figure, the MCU1, the com1 serial data capturing module 11, the com1 data caching module 12, the com1 data forwarding module 13, the com2 serial data capturing module 14, the com2 data caching module 15, the com2 data forwarding module 16, the protocol analyzing module 17, the TTL-RS232 driving module 18, the com1 serial port 2, the com2 serial port 3, the recording switch 4, the key driving module 5, the SD memory 6, the capture switch 7, the capture/analysis mode switching key 8, the liquid crystal display 9, the liquid crystal driving module 91, the power switch 10, the lithium battery management module 20 and the lithium battery pack 30.
Detailed Description
The present invention will be described in further detail with reference to the following description and embodiments in conjunction with the accompanying drawings.
Referring to fig. 1, a handheld dual-serial port protocol capturing and analyzing diagnostic apparatus includes an embedded MCU1, a com1 serial port 2, a com2 serial port 3, the com1 serial port 2, the com2 serial port 3 are respectively connected in series with a device a and a device B, a com1 serial port data capturing module 11, a com1 data buffering module 12, a com1 data transferring module 13, a com2 serial port data capturing module 14, a com2 data buffering module 15, a com2 data transferring module 16, and a protocol analyzing module 17 are disposed inside an embedded MCU1, a signal output end of the com1 serial port data capturing module 11 is connected with signal input ends of the com1 data buffering module 12 and the com1 data transferring module 13, a signal output end of the com2 serial port data capturing module 14 is connected with signal input ends of the com2 data buffering module 15 and the com2 data transferring module 16, a signal output end of the com1 data buffering module 12 and the com2 data transferring module is connected with a signal input end of the protocol analyzing module 17, the signal output end of the com1 data transfer module 13 is connected with the device B through a com2 serial port 3, and the signal output end of the com2 data transfer module 16 is connected with the device A through a com1 serial port 2;
the protocol analysis module 17 is used for judging whether the communication between the device a and the device B is normal.
The signal output end of the com1 data transfer module 13 is connected with the com2 serial port 3, and the signal output end of the com2 data transfer module 16 is connected with the com1 serial port 2 through a TTL-RS232 driving module 18.
The diagnostic apparatus is provided with a recording switch 4, and the signal output end of the recording switch 4 is connected with an SD memory 6 inside the diagnostic apparatus through a com1 data buffer module 12 and a com2 data buffer module 15.
The signal output end of the recording switch 4 is connected with the signal input ends of the com1 data buffer module 12 and the com2 data buffer module 15 through the key driving module 5.
The diagnostic apparatus is also provided with a capture switch 7, and the signal output end of the capture switch 7 is connected with the signal input end of the protocol analysis module 17 through the key driving module 5.
The diagnostic apparatus is also provided with a capture/analysis mode switching key 8, and the signal output end of the capture/analysis mode switching key 8 is connected with the embedded MCU1 through the key driving module 5.
The diagnostic apparatus is also provided with a mini liquid crystal display screen 9, and the signal input end of the mini liquid crystal display screen 9 is connected with the signal output ends of the com1 data buffer module 12, the com2 data buffer module 15 and the protocol analysis module 17 through a liquid crystal driving module 91.
The diagnostic apparatus is further provided with a power switch 10, the signal output end of the power switch 10 is connected with the embedded MCU1 through the lithium battery management module 20, and the signal input end of the lithium battery management module 20 is connected with the lithium battery pack 30.
A use method of a handheld dual-serial-port protocol capture and analysis diagnostic apparatus specifically comprises the following steps: firstly, a diagnostic instrument is connected in series between a device A and a device B, then when the device A communicates with the device B, a com1 serial port data capturing module 11 circularly captures data of a com1 serial port 2 in real time, if the com1 serial port 2 has no data, the device A is judged to be in fault, if the com1 serial port 2 has data, the data is stored in a com1 data cache module 12 and is forwarded to the device B through a com2 serial port 3 according to the original format through a com1 data forwarding module 13, then the device B feeds back according to the specific protocol format, a com2 serial port data capturing module 14 circularly captures the data of the com2 serial port 3 in real time, if the com2 serial port 3 has no data, the device B is judged to be in fault, if the com2 serial port 3 has data, the data is stored in a com2 data cache module 15 and is forwarded to the device A through a com2 data forwarding module 16 according to the original com1 format, finally, the protocol analysis module 17 compares and analyzes the data in the com1 data buffer module 12 and the com2 data buffer module 15 to determine whether the communication between the device a and the device B is normal.
The protocol analysis module 17 determines whether the communication between the devices a and B is normal by analyzing whether the data frame formats in the com1 data buffer modules 12 and the com2 data buffer modules 15 are correct and consistent.
The principle of the invention is illustrated as follows:
the invention provides a handheld double-serial-port protocol capture and analysis diagnostic instrument, which adopts an embedded MCU structure, is simple, reliable and safe in work, long in service life and free from maintenance; the portable notebook computer has the advantages of compact structure, small size, light weight, convenient carrying, no need of a heavy notebook computer and low cost; the system is directly connected between two devices in series, so that the communication protocols of the two devices can be captured conveniently and easily, the communication condition can be analyzed and diagnosed, captured data and a diagnosis result can be displayed visually, and the normal communication and work of the two devices are not influenced.
The recording switch 4: if the recording switch 4 is pressed, the data stored in the com1 data buffer module 12 and the com2 data buffer module 15 will be stored in the SD memory 6 for further detailed analysis.
The capture switch 7: the capturing of the data of the com2 serial port 3 of the com1 serial port 2 can be controlled to start or stop through the capturing switch 7.
For the diagnosis of the two-device communication protocol, in addition to the foregoing method, the following diagnosis method may be adopted:
the diagnostic apparatus simulation device A of the invention sends a request data frame to the device B according to a known specific protocol, the device B feeds back or responds to the data frame according to a specific protocol format after receiving the request data frame, and then whether the communication of the device B is normal can be judged by analyzing whether the data frame format fed back by the device B is correct or not;
the diagnostic apparatus of the invention is used for simulating equipment B, a request data frame is sent to the equipment A according to a known specific protocol, the equipment A feeds back or responds to the data frame according to a specific protocol format after receiving the request data frame, and then whether the communication of the equipment A is normal can be judged by analyzing whether the format of the data frame fed back by the equipment A is correct or not.
Example 1:
referring to fig. 1, a handheld dual-serial port protocol capturing and analyzing diagnostic apparatus comprises an embedded MCU1, a com1 serial port 2, a com2 serial port 3, a recording switch 4, a capturing switch 7, a capturing/analyzing mode switching key 8, a mini-lcd 9 and a power switch 10, wherein the com1 serial port 2 and the com2 serial port 3 are respectively connected in series with a device a and a device B, a com1 serial port data capturing module 11, a com1 data caching module 12, a com1 data forwarding module 13, a com2 serial port data capturing module 14, a com2 data caching module 15, a com2 data forwarding module 16 and a protocol analyzing module 17 are arranged inside an embedded MCU1,
the signal output end of the com1 serial data capturing module 11 is connected with the signal input ends of the com1 data buffer module 12 and the com1 data forwarding module 13, the signal output end of the com2 serial data capturing module 14 is connected with the signal input ends of the com2 data buffer module 15 and the com2 data forwarding module 16, the signal output ends of the com1 data buffer module 12 and the com2 data buffer module 15 are connected with the signal input end of the protocol analysis module 17, the signal output end of the com1 data transfer module 13 is connected with the device B through the TTL-RS232 driving module 18 and the com2 serial port 3 in sequence, the signal output end of the com2 data transfer module 16 is connected with the device A through the TTL-RS232 driving module 18 and the com1 serial port 2 in sequence, the signal output end of the recording switch 4 is connected with the SD memory 6 inside the diagnostic apparatus through the com1 data buffer module 12 and the com2 data buffer module 15. The signal output end of the recording switch 4 is connected with the signal input ends of the com1 data buffer module 12 and the com2 data buffer module 15 through the key driving module 5. The signal output end of the capture switch 7 is connected with the signal input end of the protocol analysis module 17 through the key driving module 5, the signal output end of the capture/analysis mode switching button 8 is connected with the embedded MCU1 through the key driving module 5, the signal input end of the mini liquid crystal display 9 is connected with the signal output ends of the com1 data cache module 12, the com2 data cache module 15 and the protocol analysis module 17 through the liquid crystal driving module 91, the signal output end of the power switch 10 is connected with the embedded MCU1 through the lithium battery management module 20, and the signal input end of the lithium battery management module 20 is connected with the lithium battery pack 30.
The use method of the hand-held double-serial-port protocol capturing and analyzing diagnostic instrument specifically comprises the following steps:
1. firstly, the diagnostic instrument is connected in series between the equipment A and the equipment B, then the power switch 10 is pressed down, and the system is powered on and initializes the embedded MCU1, the serial port and the configuration parameters;
2. by switching to the capture mode by the capture/analysis mode switch 8 and pressing the capture switch 7, the com1 serial data capture module 11 starts to capture the data of the com1 serial port 2 in real time and cyclically, if the com1 serial port 2 has no data, then the failure of the equipment A is judged, if the com1 serial port 2 has data, the data is stored in the com1 data buffer module 12 and displayed on the mini liquid crystal display 9, the data is forwarded to the device B through the com1 data forwarding module 13 according to the original format via the com2 serial port 3, then the device B feeds back according to the specific protocol format, the com2 serial port data capturing module 14 captures the data of the com2 serial port 3 in real time in a circulating manner, if the com2 serial port 3 has no data, then the failure of the device B is judged, if the com2 serial port 3 has data, the data is stored in the com2 data buffer module 15 and displayed on the mini liquid crystal display 9, and the data is forwarded to the device A through the com2 data forwarding module 16 according to the original format via the com1 serial port 2;
3. the protocol analysis module 17 determines whether the communication between the devices a and B is normal by analyzing whether the data frame formats in the com1 data buffer modules 12 and the com2 data buffer modules 15 are correct and consistent.

Claims (10)

1. A hand-held dual-serial-port protocol capture and analysis diagnostic instrument is characterized in that:
the diagnostic instrument comprises an embedded MCU (1), a com1 serial port (2) and a com2 serial port (3), wherein the com1 serial port (2) and the com2 serial port (3) are respectively connected with a device A and a device B in series, a com1 serial port data capturing module (11), a com1 data caching module (12), a com1 data forwarding module (13), a com2 serial port data capturing module (14), a com2 data caching module (15), a com2 data forwarding module (16) and a protocol analysis module (17) are arranged in the embedded MCU (1), a signal output end of the com1 serial port data capturing module (11) is connected with signal input ends of the com1 data caching module (12) and the com1 data forwarding module (13), a signal output end of the com2 serial port data capturing module (14) is connected with signal input ends of the com2 data caching module (15), the com2 data forwarding module (16), and the com1 data caching module (12), The signal output end of the com2 data buffer module (15) is connected with the signal input end of the protocol analysis module (17), the signal output end of the com1 data transfer module (13) is connected with the device B through a com2 serial port (3), and the signal output end of the com2 data transfer module (16) is connected with the device A through a com1 serial port (2);
and the protocol analysis module (17) is used for judging whether the communication of the equipment A and the equipment B is normal or not.
2. The handheld dual serial port protocol capture and analysis diagnostic instrument of claim 1, wherein: the signal output end of the com1 data transfer module (13) is connected with the com2 serial port (3), and the signal output end of the com2 data transfer module (16) is connected with the com1 serial port (2) through a TTL-RS232 driving module (18).
3. The hand-held dual serial port protocol capture and analysis diagnostic instrument of claim 1 or 2, wherein: the diagnostic apparatus is provided with a recording switch (4), and the signal output end of the recording switch (4) is connected with an SD memory (6) inside the diagnostic apparatus through a com1 data buffer module (12) and a com2 data buffer module (15).
4. The hand-held dual-serial-port protocol capture and analysis diagnostic instrument of claim 3, wherein: and the signal output end of the recording switch (4) is connected with the signal input ends of the com1 data cache module (12) and the com2 data cache module (15) through the key driving module (5).
5. The hand-held dual serial port protocol capture and analysis diagnostic instrument of claim 1 or 2, wherein: the diagnostic apparatus is also provided with a capture switch (7), and the signal output end of the capture switch (7) is connected with the signal input end of the protocol analysis module (17) through the key driving module (5).
6. The hand-held dual serial port protocol capture and analysis diagnostic instrument of claim 1 or 2, wherein: the diagnostic instrument is also provided with a capture/analysis mode switching key (8), and the signal output end of the capture/analysis mode switching key (8) is connected with the embedded MCU (1) through a key driving module (5).
7. The hand-held dual serial port protocol capture and analysis diagnostic instrument of claim 1 or 2, wherein: the diagnostic apparatus is also provided with a mini liquid crystal display screen (9), and the signal input end of the mini liquid crystal display screen (9) is connected with the signal output ends of the com1 data cache module (12), the com2 data cache module (15) and the protocol analysis module (17) through a liquid crystal driving module (91).
8. The hand-held dual serial port protocol capture and analysis diagnostic instrument of claim 1 or 2, wherein: the diagnosis instrument is further provided with a power switch (10), the signal output end of the power switch (10) is connected with the embedded MCU (1) through the lithium battery management module (20), and the signal input end of the lithium battery management module (20) is connected with the lithium battery pack (30).
9. A method of using the handheld dual serial port protocol capture and analysis diagnostic instrument of claim 1, characterized in that:
the using method comprises the following steps: firstly, a diagnostic instrument is connected in series between a device A and a device B, then when the device A communicates with the device B, a com1 serial port data capture module (11) cyclically captures data of a com1 serial port (2) in real time, if the com1 serial port (2) has no data, the device A is judged to be in fault, if the com1 serial port (2) has data, the data is stored in a com1 data cache module (12), the data is forwarded to the device B through a com2 serial port (3) according to the original format through a com1 data forwarding module (13), then the device B feeds back according to a specific protocol format, a com2 serial port data capture module (14) cyclically captures the data of a com2 serial port (3) in real time, if the com2 serial port (3) has no data, the device B is judged to be in fault, if the com2 (3) has data, the data is stored in a com2 data cache module (15), and the data is forwarded to the device B through a com 2) according to the original serial port format through a com1, and finally, the protocol analysis module (17) compares and analyzes the data in the com1 data cache module (12) and the com2 data cache module (15) to judge whether the communication of the equipment A and the equipment B is normal.
10. The use method of the hand-held dual-serial-port protocol capture and analysis diagnostic apparatus of claim 9, wherein: the protocol analysis module (17) judges whether the communication of the equipment A and the equipment B is normal or not by analyzing whether the data frame formats in the com1 data buffer module (12) and the com2 data buffer module (15) are correct and consistent.
CN202110003578.2A 2021-01-04 2021-01-04 Handheld dual-serial-port protocol capturing and analyzing diagnostic instrument and using method thereof Active CN112783816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110003578.2A CN112783816B (en) 2021-01-04 2021-01-04 Handheld dual-serial-port protocol capturing and analyzing diagnostic instrument and using method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110003578.2A CN112783816B (en) 2021-01-04 2021-01-04 Handheld dual-serial-port protocol capturing and analyzing diagnostic instrument and using method thereof

Publications (2)

Publication Number Publication Date
CN112783816A true CN112783816A (en) 2021-05-11
CN112783816B CN112783816B (en) 2022-07-22

Family

ID=75753790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110003578.2A Active CN112783816B (en) 2021-01-04 2021-01-04 Handheld dual-serial-port protocol capturing and analyzing diagnostic instrument and using method thereof

Country Status (1)

Country Link
CN (1) CN112783816B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661420A (en) * 2009-08-28 2010-03-03 中兴通讯股份有限公司 External bus detector and method
US20170177538A1 (en) * 2015-12-18 2017-06-22 Viewmove Technologies, Inc. Communication system with serial ports for automatically identifying device types and communication protocols and method thereof
CN107153628A (en) * 2017-04-13 2017-09-12 Tcl通力电子(惠州)有限公司 The UART communicating circuits and electronic equipment of isolated form
CN108763033A (en) * 2018-05-18 2018-11-06 安徽康海时代科技股份有限公司 232 agreement of band liquid crystal display, 32 serial server
CN109313623A (en) * 2017-11-15 2019-02-05 深圳配天智能技术研究院有限公司 Switch the method and device of serial data transmission state
CN109871347A (en) * 2019-02-28 2019-06-11 山东超越数控电子股份有限公司 RS232 serial ports intersection, direct-connected line automatic switching module, system and method
EP3547149A1 (en) * 2018-03-29 2019-10-02 Quanta Computer Inc. Method and system for checking errors on cables
CN211669369U (en) * 2020-01-13 2020-10-13 山东互信智能科技有限公司 GNSS positioner based on Modbus agreement

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661420A (en) * 2009-08-28 2010-03-03 中兴通讯股份有限公司 External bus detector and method
US20170177538A1 (en) * 2015-12-18 2017-06-22 Viewmove Technologies, Inc. Communication system with serial ports for automatically identifying device types and communication protocols and method thereof
CN107153628A (en) * 2017-04-13 2017-09-12 Tcl通力电子(惠州)有限公司 The UART communicating circuits and electronic equipment of isolated form
CN109313623A (en) * 2017-11-15 2019-02-05 深圳配天智能技术研究院有限公司 Switch the method and device of serial data transmission state
EP3547149A1 (en) * 2018-03-29 2019-10-02 Quanta Computer Inc. Method and system for checking errors on cables
CN108763033A (en) * 2018-05-18 2018-11-06 安徽康海时代科技股份有限公司 232 agreement of band liquid crystal display, 32 serial server
CN109871347A (en) * 2019-02-28 2019-06-11 山东超越数控电子股份有限公司 RS232 serial ports intersection, direct-connected line automatic switching module, system and method
CN211669369U (en) * 2020-01-13 2020-10-13 山东互信智能科技有限公司 GNSS positioner based on Modbus agreement

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
徐海龙: "《电动拖拉机CAN 通信网络设计及硬件在环测试》", 《AGRICULTURAL EQUIPMENT & VEHICLE ENGINEERING》 *
谢子馨: "《计算机串口通信分析》", 《TELECOM POWER TECHNOLOGY》 *

Also Published As

Publication number Publication date
CN112783816B (en) 2022-07-22

Similar Documents

Publication Publication Date Title
CN105652852B (en) A kind of Inspection and monitoring system of high voltage transducer power unit and its mainboard
CN102087334B (en) High-reliability digital quantity acquisition system
CN106680672A (en) Portable switchgear partial discharge patrol detection system
CN107797005A (en) A kind of intelligent fatigue tester suitable for more PSU servers
CN205862221U (en) A kind of electric automobile fault diagnosis system based on CAN protocol and failure diagnostic apparatus
CN103424694A (en) Monitoring device and monitoring method for stepping motor
CN112783816B (en) Handheld dual-serial-port protocol capturing and analyzing diagnostic instrument and using method thereof
CN211478558U (en) Isolating switch opening and closing in-place detection platform
CN219777821U (en) Vehicle testing system
CN203433507U (en) A fault detection device for a computer mainboard
CN111026592A (en) Computer hardware detection device
CN205692361U (en) A kind of bearing remote fault diagnosis device based on GPRS technology
CN201561863U (en) Data quality assurance device for mining equipment fault diagnosis
CN203224569U (en) Resistance tester based on wireless transmission
CN208239092U (en) A kind of hand-held detection device of electric car
CN207184510U (en) A kind of computer network detection means
CN201828628U (en) Connector terminal fault detector
CN203825106U (en) Portable station signal detection terminal
CN201063810Y (en) Communication debug device and dual-mode terminal communication debug system
CN206177590U (en) Cab signal tester
CN118694801A (en) Data monitoring device and system
CN114123484B (en) Comprehensive fault diagnosis instrument and fault diagnosis method for secondary equipment of intelligent substation
CN221125123U (en) Multi-protocol USB wireless diagnostic instrument
CN207529642U (en) A kind of screen display monitoring device based on plug and play data transmission interface
CN216671739U (en) Be used for multi-functional communication tool of lithium cell BMS

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