Serial port communication self-check method

A serial port communication and serial port technology, which is applied in the field of serial port communication self-inspection, can solve the problems of large manpower and material resources, human operation errors, cumbersome repeated wiring, etc., and achieve the effect of reducing test complexity and improving test speed

Inactive Publication Date: 2017-06-27
CHONGQING UNIV
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, most of these boards are tested by communicating with external serial communication devices, such as computers. In the case of many channels, repeated wiring is cumbersome, and human error is prone to occur, especially for different communication modes. RS-232, RS-422, and RS-485 have different wiring methods, and the devices connected to them are also different, so it takes a lot of manpower and material resources to complete this kind of test work

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0017] A serial port communication self-test method, comprising the following steps:

[0018] Step 1: The microprocessor sends instructions according to the type of the serial port to be detected, and selects the corresponding serial port drive unit working mode:

[0019] Step 2: The microprocessor sends a self-loop control instruction to the serial port drive unit through the drive and logic control unit, the serial port expansion chip and the isolation protection circuit, so that the serial port drive unit drives the controlled component, so that the The data receiving end and the data transmitting end of the serial port...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a serial port communication self-inspection method, comprising the following steps: a microprocessor sends an instruction according to the type of the serial port to be detected, and selects a corresponding serial port drive unit working mode; the microprocessor controls the serial port through the drive and logic The unit, the serial port expansion chip and the isolation protection circuit send a self-loop control command to the serial port drive unit, so that the serial port drive unit drives the controlled component, so that the data receiving end and the data transmitting end of the serial port drive unit pass through the The controlled components are directly connected; the microprocessor sends test data to the serial port drive unit, and the serial port drive unit returns the received test data directly from the data receiving end to the microprocessor device; the microprocessor compares the test data it receives with the test data it sends to detect where the serial port communication system is faulty, and the present invention can quickly test the serial port communication system without the need for external cables.

Description

technical field [0001] The invention relates to the technical field of communication systems, in particular to a serial port communication self-inspection method. Background technique [0002] In serial communication boards, especially multi-channel serial communication boards, it is very necessary to test whether each channel works well before putting it into use, especially in case of communication failure of the device , how to quickly locate which channel has a problem with sending or receiving is very necessary. At present, most of these boards are tested by communicating with external serial communication devices, such as computers. In the case of many channels, repeated wiring is cumbersome, and human error is prone to occur, especially for different communication modes. RS-232, RS-422, and RS-485 have different wiring methods, and the devices connected to them are also different, so it takes a lot of manpower and material resources to complete this kind of testing. ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/22
CPCG06F11/221
Inventor 徐易朗吴言
Owner CHONGQING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products