CN108052477A - The method for eliminating the interference of RS422 serial ports - Google Patents

The method for eliminating the interference of RS422 serial ports Download PDF

Info

Publication number
CN108052477A
CN108052477A CN201711205983.2A CN201711205983A CN108052477A CN 108052477 A CN108052477 A CN 108052477A CN 201711205983 A CN201711205983 A CN 201711205983A CN 108052477 A CN108052477 A CN 108052477A
Authority
CN
China
Prior art keywords
serial ports
data
serial
interference
register
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.)
Pending
Application number
CN201711205983.2A
Other languages
Chinese (zh)
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.)
Hwa Create Technology Corp Ltd
Original Assignee
Hwa Create Technology Corp 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 Hwa Create Technology Corp Ltd filed Critical Hwa Create Technology Corp Ltd
Priority to CN201711205983.2A priority Critical patent/CN108052477A/en
Publication of CN108052477A publication Critical patent/CN108052477A/en
Pending legal-status Critical Current

Links

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/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Abstract

The present invention relates to the technologies of RS422 serial ports.The interference that the present invention can generate when solving serial ports transceiving data, the problem of causing serial ports that can not work normally, serious influence is caused to product reliability, it is proposed that a kind of method for eliminating the interference of RS422 serial ports, technical solution can be summarized as:Start application program, by initialization of (a) serial ports;Serial data is sent to serial ports transmitting terminal inside application program, after serial ports transmitting terminal receives serial data, serial data is sent in transmitter register according to serial port protocol;When serial ports transmitting terminal is sent out required serial data, after serial ports receiving terminal receives corresponding data, and judge whether comprising interference data in corresponding data, if then all reading the interference data in receiving register, remove the space of receiving register shared by interference data.The invention has the advantages that by the way that the interference being stored in receiving register data are emptied, receiving register is avoided to be filled with, the problem of so as to cannot respond to serial ports transmitter register.

Description

The method for eliminating the interference of RS422 serial ports
Technical field
The present invention relates to RS422 Serial technologies, more particularly to eliminate the technology that RS422 serial ports disturbs.
Background technology
In daily project development and design, the interference of serial ports transceiving data generation is frequently encountered, causes serial ports can not Normal work, serious influence is caused to product reliability;Causing the common interference source that serial ports disturbs has:Accept as unavoidable serial ports and send number According to interference caused by line (TX+, TX-), other signals receive (RX+, RX-) caused interference close to serial ports, and build-out resistor does not conform to Resonance interference etc. caused by suitable.
The method that tradition eliminates interference has:Isolate interference signal by way of additional shielding line, incited somebody to action by pull down resistor Interference signal eliminate on the ground or by software enable the modes such as serial ports solve serial ports disturb mode.The solution by way of shielding The certainly crosstalk on transmission line, but the crosstalk for being begun to from circuit board end are that can not complete or cannot be completely clear by shielding Chu's interference.When the mode that software serial ports enables can cause height output frequency, serial ports forbidden energy enables gap and serial ports is caused to send number The problem of according to losing.When sending out data due to serial ports, data are to indicate data, in level change, the height of generation with level change Low pulse, is radiate by space or transmission line, is caused to receive on transmission line inducing level change, is passed back to serial ports reception End, when level is sufficiently more than the thresholding of high level, will indicate to receive data in serial ports receiving register, without to string Mouth receiving register operation, will result in serial ports receiving register and fills, and influence serial ports normal work.When on serial ports TX+ and TX- It when having the pulse that data generate, can be crosstalked on RX+ and RX-, just there is interference data buffer storage to exist in serial ports receiving register at this time The inside.
The content of the invention
The object of the present invention is to provide a kind of methods for eliminating the interference of RS422 serial ports, solve to produce during serial ports transceiving data Raw interference, the problem of causing serial ports that can not work normally, serious influence is caused to product reliability.
The present invention solves its technical problem, the technical solution adopted is that:The method for eliminating the interference of RS422 serial ports, feature It is, comprises the following steps:
Step 1 starts application program, by initialization of (a) serial ports;
Serial data is sent to serial ports transmitting terminal inside step 2, application program, serial ports transmitting terminal receives serial data Afterwards, serial data is sent in transmitter register according to serial port protocol;
Step 3, when serial ports transmitting terminal be sent out needed for serial data when, serial ports receiving terminal will receive corresponding data, After serial ports receiving terminal receives corresponding data, corresponding data is stored in receiving register, and judge in corresponding data whether Comprising interference data, if then entering step 4, otherwise without processing;
Step 4, all the interference data in reading receiving register, remove receiving register shared by interference data Space.
Specifically, it is described to enable initialization of (a) serial ports process including serial ports configuration, serial ports opening and serial ports in step 1, institute State serial ports configuration, serial ports is opened and serial ports enables equal Exactly-once.
The invention has the advantages that the method disturbed by above-mentioned elimination RS422 serial ports, is posted by that will be stored in reception Interference data in storage empty, and receiving register is avoided to be filled with, the problem of so as to cannot respond to serial ports transmitter register.
Specific embodiment
With reference to embodiment, detailed description of the present invention technical solution.
The method of the present invention for eliminating the interference of RS422 serial ports, comprises the steps of:
Step 1 starts application program, by initialization of (a) serial ports;
Serial data is sent to serial ports transmitting terminal inside step 2, application program, serial ports transmitting terminal receives serial data Afterwards, serial data is sent in transmitter register according to serial port protocol;
Step 3, when serial ports transmitting terminal be sent out needed for serial data when, serial ports receiving terminal will receive corresponding data, After serial ports receiving terminal receives corresponding data, corresponding data is stored in receiving register, and judge in corresponding data whether Comprising interference data, if then entering step 4, otherwise without processing;
Step 4, all the interference data in reading receiving register remove the sky of receiving register shared by interference data Between.
Embodiment
The method that the embodiment of the present invention eliminates the interference of RS422 serial ports, including lower step:
Step 1 starts application program, by initialization of (a) serial ports;
Serial data is sent to serial ports transmitting terminal inside step 2, application program, serial ports transmitting terminal receives serial data Afterwards, serial data is sent in transmitter register according to serial port protocol;
Step 3, when serial ports transmitting terminal be sent out needed for serial data when, serial ports receiving terminal will receive corresponding data, After serial ports receiving terminal receives corresponding data, corresponding data is stored in receiving register, and judge in corresponding data whether Comprising interference data, if then entering step 4, otherwise without processing;
Step 4, all the interference data in reading receiving register remove the sky of receiving register shared by interference data Between.
In the above method, in step 1, by initialization of (a) serial ports process preferably includes serial ports configuration, serial ports is opened and serial ports It is enabled, wherein, serial ports configuration, serial ports are opened and serial ports enables equal Exactly-once.

Claims (2)

1. eliminate the method for RS422 serial ports interference, which is characterized in that comprise the following steps:
Step 1 starts application program, by initialization of (a) serial ports;
Inside step 2, application program serial data, after serial ports transmitting terminal receives serial data, root are sent to serial ports transmitting terminal Serial data is sent in transmitter register according to serial port protocol;
Step 3, when serial ports transmitting terminal be sent out needed for serial data when, serial ports receiving terminal will receive corresponding data, serial ports After receiving terminal receives corresponding data, corresponding data is stored in receiving register, and judges whether included in corresponding data Data are disturbed, if then entering step 4, otherwise without processing;
Step 4, all the interference data in reading receiving register remove the sky of receiving register shared by interference data Between.
2. the method according to claim 1 for eliminating the interference of RS422 serial ports, which is characterized in that described to go here and there in step 1 Mouth initialization procedure includes serial ports configuration, serial ports is opened and serial ports enables, and the serial ports configuration, serial ports opening and serial ports enable Exactly-once.
CN201711205983.2A 2017-11-27 2017-11-27 The method for eliminating the interference of RS422 serial ports Pending CN108052477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711205983.2A CN108052477A (en) 2017-11-27 2017-11-27 The method for eliminating the interference of RS422 serial ports

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711205983.2A CN108052477A (en) 2017-11-27 2017-11-27 The method for eliminating the interference of RS422 serial ports

Publications (1)

Publication Number Publication Date
CN108052477A true CN108052477A (en) 2018-05-18

Family

ID=62120640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711205983.2A Pending CN108052477A (en) 2017-11-27 2017-11-27 The method for eliminating the interference of RS422 serial ports

Country Status (1)

Country Link
CN (1) CN108052477A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751291A (en) * 2009-12-30 2010-06-23 广东威创视讯科技股份有限公司 Method of sharing one serial port by application programs and device
CN102629240A (en) * 2012-02-13 2012-08-08 上海创远仪器技术股份有限公司 Method and device for serial communication
CN103918206A (en) * 2011-11-08 2014-07-09 马维尔国际贸易有限公司 Methods and apparatus for mitigating known interference
CN104616467A (en) * 2014-11-12 2015-05-13 江苏大学 Electric vehicle braking energy recovery system data acquisition method
US20160014270A1 (en) * 2002-08-08 2016-01-14 Global Tel*Link Corp. Telecommunication call management and monitoring system with voiceprint verification

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160014270A1 (en) * 2002-08-08 2016-01-14 Global Tel*Link Corp. Telecommunication call management and monitoring system with voiceprint verification
CN101751291A (en) * 2009-12-30 2010-06-23 广东威创视讯科技股份有限公司 Method of sharing one serial port by application programs and device
CN103918206A (en) * 2011-11-08 2014-07-09 马维尔国际贸易有限公司 Methods and apparatus for mitigating known interference
CN102629240A (en) * 2012-02-13 2012-08-08 上海创远仪器技术股份有限公司 Method and device for serial communication
CN104616467A (en) * 2014-11-12 2015-05-13 江苏大学 Electric vehicle braking energy recovery system data acquisition method

Similar Documents

Publication Publication Date Title
US9753887B2 (en) Receiver training during a SATA out of band sequence
US4592072A (en) Decoder for self-clocking serial data communications
US20150215227A1 (en) Overload protection of a transformer loaded line driver
US8671234B2 (en) Level shifting cable adaptor and chip system for use with dual-mode multi-media device
CN108155964A (en) FPGA multi-channel serial data dynamic alignment methods based on training sequence
WO2012161848A2 (en) Conversion of multimedia data streams for use by connected devices
EP2101438A3 (en) Communication system, receiver and reception method
CN102362438B (en) Underwater communication system
CN111371542B (en) Method and apparatus for clock and data recovery for a pulse-based multiline
US11431531B2 (en) Termination for high-frequency transmission lines
CN103888693A (en) Image transmission device
US7103128B2 (en) Data synchronization circuit and communication interface circuit
US8572200B2 (en) Master/slave decision device and master/slave decision method applied to network device
KR100668004B1 (en) Method and apparatus for optimizing timing for a multi-drop bus
CN101729237A (en) Serial signal receiving device, serial transmission system and serial transmission method
CN108052477A (en) The method for eliminating the interference of RS422 serial ports
EP2667518A1 (en) Receiving apparatus for test signal, electronic apparatus therefor and signal receiving method thereof
CN105808476A (en) Clock domain crossing data transmission method and device
US7139344B2 (en) Method and apparatus for effecting synchronous pulse generation for use in variable speed serial communications
CN106021151A (en) Signal enhancing board as well as signal enhancing method and system
US20130343439A1 (en) Physical transceiver gearbox
CN110635892A (en) Data sampling system based on synchronization 422 standard
US20030112827A1 (en) Method and apparatus for deskewing parallel serial data channels using asynchronous elastic buffers
US7372380B2 (en) Data transmitting/receiving device
TWI589892B (en) Interface chip and built-in self-test method therefor

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180518