CN101179337B - Method of forwarding simple ring structure serial port modem signal - Google Patents
Method of forwarding simple ring structure serial port modem signal Download PDFInfo
- Publication number
- CN101179337B CN101179337B CN 200710125254 CN200710125254A CN101179337B CN 101179337 B CN101179337 B CN 101179337B CN 200710125254 CN200710125254 CN 200710125254 CN 200710125254 A CN200710125254 A CN 200710125254A CN 101179337 B CN101179337 B CN 101179337B
- Authority
- CN
- China
- Prior art keywords
- data
- transistor
- chip
- serial
- transmitted
- 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
Links
Images
Landscapes
- Optical Communication System (AREA)
Abstract
The invention discloses a one-loop structure serial port modem signal forwarding method. The method comprises the following steps that: a: a master device receives data from a serial port and then sends the data to a connected slave device through an optical port; b: the slave device receives the data and then forwards the data to a slave device serial port and at the same time forwards the data to the connected slave port at the next lower level through the optical port; the forwarding is cycled till the last slave device; c: the last slave device receives the data from the optical port of the device at the last higher level, forwards the data to the serial port and at the same time transmits the data to a master device through an optical device. By adopting a one-loop structure made of the serial port optical fiber modem, the invention has the following advantages that: 1) the circuit implementation is simple and the cost is low; 2) the RS-232 interface and RS-485 interface are provided at the same time; 3) the complex programmable logic device (CPLD) is adopted to realize the main structure design, which ensures high reliability; 4) the serial port speed can be as high as 1 M.
Description
Technical field
The present invention relates to communication technical field, relate in particular to the method that a kind of simple ring structure serial port modem signal is transmitted.
Background technology
In recent years, optical-fibre communications and optical fiber communication network have obtained development at full speed.No matter,, optical-fibre communications and optical fiber communication network have all more and more been used still in occasions such as television broadcasting, bank, schools in fields such as post and telecommunications, railway, army, oil, public security.
At present serial ports mostly adopts modem apparatus to the conversion of optical fiber, all adopts point-to-point communication, in the point-to-multipoint utilization, use very inconvenient, though the fiber plant that occupy loop is also arranged, but most twin nuclei that adopts, design complexity, cost height.
Summary of the invention
The technical problem to be solved in the present invention provides the method that a kind of simple ring structure serial port modem signal is transmitted, and the single ring architecture that adopts this modulator-demodulator to constitute is fit to occupy serial communication, point-to-multipoint data acquisition and automation control system utilization.
For solving the problems of the technologies described above, the objective of the invention is to be achieved through the following technical solutions.
The method that a kind of simple ring structure serial port modem signal is transmitted comprises step:
A: main equipment sends to coupled slave unit from the light mouth after serial ports receives data;
B: slave unit receives these data and is transmitted to its serial ports and simultaneously these data is transmitted to the next stage slave unit from the light mouth; So circulation is until last slave unit;
C: last slave unit receives these data and is transmitted to its serial ports from a last equipment light mouth and simultaneously these data is transmitted to main equipment from the light mouth.
Wherein, described master and slave equipment process of transmitting specifically comprises step:
A1: chip for driving is converted to serial data Transistor-Transistor Logic level and gives the complex programmable logic device (CPLD) chip;
The a2:CPLD chip carries out high frequency sampling to Transistor-Transistor Logic level, becomes the 8M data code flow, and the CMI serial type code signal that then the 8M data code flow is converted to 16M is exported to the Transistor-Transistor Logic level optical module;
A3:TTL level optical module becomes light signal to carry out long-distance transmissions the CMI serial type code conversion of Transistor-Transistor Logic level.
Wherein, described master and slave equipment receiving course specifically comprises step:
A11: master and slave equipment becomes the Transistor-Transistor Logic level signal to these data and gives the processing of CPLD chip by the Transistor-Transistor Logic level optical module after the light mouth receives data;
The a12:CPLD chip will extract clock in the CMI serial type of this 16M coding and recover the data of 8M, and becomes original serial type data to send to the serial port drive chip reduction of data of 8M;
A13: chip for driving is converted to serial data with Transistor-Transistor Logic level.
Wherein, described chip for driving comprises RS-232 chip for driving and RS-485 chip for driving
The single ring architecture that the present invention adopts the serial ports fibre optic modem to constitute, it has following beneficial effect: 1) circuit is realized simple, with low cost; 2) provide RS-232 interface and RS-485 interface simultaneously; 3) adopt the design of CPLD (CPLD) realization body, reliability height; 4) serial ports speed reaches as high as 1M.
Description of drawings
Fig. 1 is a structure principle chart of the present invention;
Fig. 2 a, Fig. 2 b are embodiment 1 schematic diagram;
Fig. 3 is the inventive method flow chart.
Embodiment
For ease of the present invention is further understood, now reach specific embodiment in conjunction with the accompanying drawings and describe the present invention.
See also shown in Figure 1, comprise chip for driving 101, CPLD (CPLD) chip 102, Transistor-Transistor Logic level optical module 103,64M clock crystal oscillator 104, power circuit 105, described chip for driving 101 is connected with CPLD chip 102, described CPLD chip 102 also links to each other with 64M clock crystal oscillator 104 with Transistor-Transistor Logic level optical module 103 respectively, and described power circuit 105 links to each other with above-mentioned each module respectively.
Wherein, chip for driving 101 comprises RS-485 chip, RS-232 chip.
Among the present invention, the single master who adopts the serial ports fibre optic modem to constitute is many to realize Optical Fiber Transmission from structure, and its master-slave equipment operation principle is:
Main equipment sends to coupled slave unit from the light mouth after serial ports obtains data, slave unit receives these data and is transmitted to its serial ports from a last equipment light mouth and simultaneously these data is transmitted to the next stage slave unit from the light mouth, so circulation is gone down, during to a last slave unit, this slave unit receives these data and is transmitted to serial ports from a last equipment light mouth and simultaneously these data is transmitted to main equipment from the light mouth.Main equipment is left intact after receiving these data.
If a certain slave unit gets access to data from serial ports in the loop, this slave unit is transmitted to the next stage slave unit to data from the light mouth at once, the next stage slave unit is transmitted to the next stage slave unit to these data from the light mouth simultaneously from being transmitted to serial ports after a last equipment light mouth receives these data, so circulation is gone down, during to a last slave unit, this slave unit receives these data and is transmitted to its serial ports from a last equipment light mouth and simultaneously these data is transmitted to main equipment from the light mouth.Main equipment is given its serial ports this data forwarding after receiving these data.
Embodiment 1:
Shown in Fig. 2 a, Fig. 2 b, signal forwarding process in the single ring architecture, because this programme is mainly used in the middle of the point-to-multipoint system, so main equipment and slave unit can not send data simultaneously, avoided the data collision in the optical fiber.The data of main equipment transmission simultaneously can be received by all slave units, and the data that all slave units send also can be received by main equipment, meet the point-to-multipoint system requirement.
Its concrete course of work is as follows:
1) main equipment process of transmitting
RS-232 chip for driving and RS-485 chip for driving are responsible for realizing the conversion of serial data to Transistor-Transistor Logic level.Serial ports Transistor-Transistor Logic level signal at first enters the CPLD chip.The CPLD chip carries out high frequency sampling to Transistor-Transistor Logic level, becomes the 8M data code flow, and the CMI serial type code signal that then the 8M data code flow is converted to 16M is exported to the Transistor-Transistor Logic level optical module of CPLD outside.Be responsible for that by optical module the CMI code stream of Transistor-Transistor Logic level is converted to light signal and carry out long-distance transmissions.Main equipment CPLD closes receive path always in whole process of transmitting.CPLD a bit of time (for example 0.5ms) of also will delaying time is opened receive path again after being sent completely, purpose be for the data that prevent from oneself to send after loop is transmitted by being received by main equipment.
2) main equipment receiving course
Main equipment becomes the Transistor-Transistor Logic level signal to these data by optical module and gives the CPLD chip and handle after the light mouth receives data.The CPLD chip at first extracts clock and recovers the data of 8M from the CMI serial type coding of this 16M, then the reduction of data of 8M is become original serial type data and sends to the serial port drive chip.RS-232 chip for driving and RS-485 chip for driving are responsible for realizing the conversion of Transistor-Transistor Logic level to serial data.If this moment, main equipment was in transmit status, this process will be closed, and serial ports output is forced logical one.
3) slave unit process of transmitting
RS-232 chip for driving and RS-485 chip for driving are responsible for realizing the conversion of serial data to Transistor-Transistor Logic level.Serial ports Transistor-Transistor Logic level signal at first enters the CPLD chip.The serial type data that receive simultaneously and recover and serial ports Transistor-Transistor Logic level data by the light mouth CPLD inner by with together (owing in point-to-multipoint system, not existing a plurality of equipment to send data conditions simultaneously, therefore this two paths of data directly with allow, and circuit is realized simple), the CPLD chip to after signal carry out high frequency sampling, become the 8M data code flow, the CMI serial type code signal that then the 8M data code flow is converted to 16M is exported to the Transistor-Transistor Logic level optical module of CPLD outside.Be responsible for that by optical module the CMI code stream of Transistor-Transistor Logic level is converted to light signal and carry out long-distance transmissions.Serial data process of transmitting and two functions of light mouth data forwarding process of slave unit in said process, have in fact been realized.
4) slave unit receiving course
Slave unit becomes the Transistor-Transistor Logic level signal to these data by optical module and gives the CPLD chip and handle after the light mouth receives data.The CPLD chip at first extracts clock and recovers the data of 8M from the CMI serial type of this 16M coding, then the reduction of data of 8M is become original serial type data and send to the serial port drive chip and transtation mission circuit carries out light mouth relaying.RS-232 chip for driving and RS-485 chip for driving are responsible for realizing the conversion of Transistor-Transistor Logic level to serial data.
See also shown in Figure 3ly, comprising:
Step 301: main equipment sends to coupled slave unit from the light mouth after serial ports receives data;
Step 302: slave unit receives these data and is transmitted to its serial ports and simultaneously these data is transmitted to the next stage slave unit from the light mouth; So circulation is until last slave unit;
Step 303: last slave unit receives these data and is transmitted to its serial ports from a last equipment light mouth and simultaneously these data is transmitted to main equipment from the light mouth.
More than method that a kind of simple ring structure serial port modem signal provided by the present invention is transmitted be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand core concept of the present invention; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (3)
1. the method that simple ring structure serial port modem signal is transmitted is characterized in that, comprises step:
A: main equipment sends to coupled slave unit from the light mouth after serial ports receives data;
B: slave unit receives these data and is transmitted to its serial ports and simultaneously these data is transmitted to the next stage slave unit from the light mouth; So circulation is until last slave unit;
C: last slave unit receives these data and is transmitted to its serial ports from a last equipment light mouth and simultaneously these data is transmitted to main equipment from the light mouth; Described master and slave equipment process of transmitting specifically comprises step:
A1: chip for driving is converted to serial data Transistor-Transistor Logic level and gives the complex programmable logic device (CPLD) chip;
The a2:CPLD chip carries out high frequency sampling to Transistor-Transistor Logic level, becomes the 8M data code flow, and the CMI serial type code signal that then the 8M data code flow is converted to 16M is exported to the Transistor-Transistor Logic level optical module;
A3:TTL level optical module becomes light signal to carry out long-distance transmissions the CMI serial type code conversion of Transistor-Transistor Logic level.
2. the method that simple ring structure serial port modem signal according to claim 1 is transmitted is characterized in that described master and slave equipment receiving course specifically comprises step:
A11: master and slave equipment becomes the Transistor-Transistor Logic level signal to these data and gives the processing of CPLD chip by the Transistor-Transistor Logic level optical module after the light mouth receives data;
The a12:CPLD chip will extract clock in the CMI serial type of this 16M coding and recover the data of 8M, and becomes original serial type data to send to the serial port drive chip reduction of data of 8M;
A13: chip for driving is converted to serial data with Transistor-Transistor Logic level.
3. the method that simple ring structure serial port modem signal according to claim 2 is transmitted is characterized in that described chip for driving comprises RS-232 chip for driving and RS-485 chip for driving.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710125254 CN101179337B (en) | 2007-12-19 | 2007-12-19 | Method of forwarding simple ring structure serial port modem signal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710125254 CN101179337B (en) | 2007-12-19 | 2007-12-19 | Method of forwarding simple ring structure serial port modem signal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101179337A CN101179337A (en) | 2008-05-14 |
CN101179337B true CN101179337B (en) | 2010-09-08 |
Family
ID=39405444
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200710125254 Active CN101179337B (en) | 2007-12-19 | 2007-12-19 | Method of forwarding simple ring structure serial port modem signal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101179337B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102318267A (en) * | 2009-07-29 | 2012-01-11 | 华为技术有限公司 | Data communication method, communication equipment and communication system |
CN104660369A (en) * | 2013-11-25 | 2015-05-27 | 北京卓越信通电子股份有限公司 | Method for velocity self-adaption of industrial serial port optical fiber transceiver |
CN107632357B (en) * | 2017-10-19 | 2019-08-02 | 东莞中子科学中心 | A kind of multimode fibre signal is fanned out to mechanism |
CN111308338A (en) * | 2018-12-11 | 2020-06-19 | 中国科学院沈阳自动化研究所 | Three-phase motor vibration online monitoring system using OPLC |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1439974A (en) * | 2002-01-15 | 2003-09-03 | 三星电子株式会社 | Bus system and its path detemining method |
CN1558617A (en) * | 2004-01-14 | 2004-12-29 | 华中科技大学 | Fiber-optical dual ring redundancy controller for controller local area network |
CN1739265A (en) * | 2003-10-17 | 2006-02-22 | 松下电器产业株式会社 | Data transmission system, data transmitter, and transmitting method |
-
2007
- 2007-12-19 CN CN 200710125254 patent/CN101179337B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1439974A (en) * | 2002-01-15 | 2003-09-03 | 三星电子株式会社 | Bus system and its path detemining method |
CN1739265A (en) * | 2003-10-17 | 2006-02-22 | 松下电器产业株式会社 | Data transmission system, data transmitter, and transmitting method |
CN1558617A (en) * | 2004-01-14 | 2004-12-29 | 华中科技大学 | Fiber-optical dual ring redundancy controller for controller local area network |
Also Published As
Publication number | Publication date |
---|---|
CN101179337A (en) | 2008-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100521637C (en) | Optical fiber-based high speed serial industrial real-time communication bus system and its control method | |
CN102761396B (en) | High-speed serial interface based on FPGA (Field Programmable Gate Array) | |
CN108011694B (en) | A kind of efficient data exchange method based on FC | |
CN101179337B (en) | Method of forwarding simple ring structure serial port modem signal | |
CN104618697B (en) | FPGA-based full-configuration Camera link optical fiber real-time image optical transceiver | |
RU2014109917A (en) | OPTICAL MEMORY EXPANSION ARCHITECTURE | |
CN205320075U (en) | Multi -service digit optical transmitter and receiver based on optic fibre ethernet | |
CN104660989B (en) | Optical fiber-to-full configuration type Camera link real-time image optical transceiver based on FPGA | |
CN111193891A (en) | FPGA-based Camera Link data receiving system and transmission method | |
CN107171728A (en) | 1B4B and the forward direction of Manchester's code, reverse transfer method and device, system | |
CN201142686Y (en) | Serial port fiber-optical modulator-demodulator unit | |
CN110676818B (en) | In-situ bus protection method and system based on star network topology | |
CN101072064B (en) | Ethernet relay device and method | |
CN113765582A (en) | System and method for realizing one-way transmission data of domestic-design redundant optical port | |
CN101631059B (en) | Communication unit for realizing real-time reconstitution of in-situ bus topological structure | |
CN100512225C (en) | Device and method for realizing fluid control information transfer | |
CN201910048U (en) | LVDS (Low Voltage Differential Signaling) node module | |
CN103124233B (en) | A kind of signal relay system and its implementation | |
CN105162514A (en) | Optical fiber ring network communication system and method | |
CN209823762U (en) | Ethernet line speed physical isolation optical fiber transmission device based on time division multiplexing | |
CN1228949C (en) | Optic transmission devices for hybrid network | |
CN103200398A (en) | Multi-channel light convergence video transmitter | |
CN105306421A (en) | PCI-E interface based signal processing method and PCI-E interface based signal processing device | |
CN101547054A (en) | Data receiving device of parallel optical inter-connected system based on programmable device and method thereof | |
CN217116263U (en) | Wavelength division multiplexing optical fiber transmission system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 518057 Three Blocks in District 1, Baiwangxin High-tech Industrial Park, Xili Street, Nanshan District, Shenzhen City, Guangdong Province Patentee after: Shenzhen Sanwang Communication Co., Ltd. Address before: 518057 East Block, 2 Building, 3 Floor, Jiuxiangling Industrial Zone, Xili Town, Nanshan District, Shenzhen City, Guangdong Province Patentee before: Sanwang Communication Technology Co., Ltd.Shenzhen |