Method for self-defining physical interface of serial port by software

A technology of software customization and physical interface, which is applied in the direction of program control devices, etc., can solve problems such as changes, sampling values ​​that cannot adapt to the frequency of AC volume, etc., to facilitate operations, eliminate the possibility of misselection, and avoid static interference Effect

Inactive Publication Date: 2015-11-11
NARI TECH CO LTD
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Purpose: In order to overcome the deficiencies in the prior art and solve the problem that the sampling value protection in the prior art cannot adapt to the change of the frequency of the communication volume, the present invention provides a method for the software to customize the physical interface of the serial port

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for self-defining physical interface of serial port by software
  • Method for self-defining physical interface of serial port by software
  • Method for self-defining physical interface of serial port by software

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention will be further described below in conjunction with specific examples.

[0019] A kind of software custom serial port physical interface method that the present invention proposes, comprises the following steps:

[0020] 1) Determine the relationship between input and output, where the input is 6 states: the respective sending and receiving states of RS232 / RS422 / RS485, and when RS232 / RS422 / RS485 is used as a slave, it only receives and does not send; the corresponding output is 5-way control Pin: RS232 send control, RS232 receive control, RS485 send control, RS485 receive control, RS422 receive control;

[0021] 2) Through four general-purpose logic gate chips 74AHC1G00GV, 74AHC1G04GV, 74AHC1G08GV, and 74AHC1G32GV, use 2 separate IO pins and master-slave IO pins of the CPU to control 6 states of the 3 chips. This not only saves the cost of optocouplers and wiring space, but also achieves mutual exclusion of logic, reducing the probability of error...

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 method for self-defining a physical interface of a serial port by software. An application program of an upper computer is used for determining the physical interface of the target serial port; the software is used for controlling enable selection of a main logic chip to a plurality of physical interface chips; one interface chip in the interface chips RS232 / RS422 / RS485 is only gated; and in a hardware loop, a plurality of 74-series logic chips are used for constructing a gating combination logic sequence, so that mutual exclusivity among different chips is ensured and the possibility of false gating is avoided. Therefore, the purpose of configuring the physical interface of the serial port is achieved and ports in the same position can be replaced with other physical interfaces. According to the method, terminals with different definitions can be staggered without replacing wiring terminals, and wire-jumping selection can be performed without pulling or inserting a board, so that electrostatic interference caused by hardware replacement can be avoided and field operation of project debugging personnel is convenient; and a connection type of the serial port also can be configured and recorded from a background, so that a communication manager has higher adaptability and reliability on the scene.

Description

technical field [0001] The invention relates to a method for software customizing the physical interface of a serial port, which belongs to the technical field of electric engineering. Background technique [0002] The communication management machine plays a very important role in the substation integrated automation system. It needs to communicate with other devices through the communication protocol and communication medium specified by the designer. Among them, the commonly used serial communication medium is RS232 / RS422 / RS485. Due to different application occasions or different interconnected manufacturers, the commissioning engineer needs to change the communication medium mode of the serial port according to the actual situation on the spot without changing the communication protocol. The number of built-in communication interfaces of the communication management machine is certain, so each communication port is required to be compatible with the physical interface of...

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
IPC IPC(8): G06F9/44
Inventor刘靖
OwnerNARI TECH CO LTD