CN106982199A - A kind of Manchester code communications protocol adaptive approach based on FPGA and CPLD - Google Patents
A kind of Manchester code communications protocol adaptive approach based on FPGA and CPLD Download PDFInfo
- Publication number
- CN106982199A CN106982199A CN201610298665.4A CN201610298665A CN106982199A CN 106982199 A CN106982199 A CN 106982199A CN 201610298665 A CN201610298665 A CN 201610298665A CN 106982199 A CN106982199 A CN 106982199A
- Authority
- CN
- China
- Prior art keywords
- data
- module
- code
- communications protocol
- cpld
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
- H04L69/32—Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
- H04L69/322—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
- H04L69/324—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Communication Control (AREA)
Abstract
The present invention relates to a kind of Manchester code communications protocol adaptive approach based on FPGA and CPLD, including:Preset data receiver, decoding, coding, the sending module of different Manchester code communications protocol.The adaptive method of this Manchester code communications protocol based on FPGA/CPLD, the frame format of automatic identification input data reads data content, and the output data frame format that selection matches.The different communications protocol that different system is used can be realized with the identical codings of identical FPGA/CPLD, one Universal joint of completion, function is easy to the adaptive data link layer protocol component of extension, makes it to better meet the communicating requirement under the conditions of various industrial control systems.
Description
Technical field
The present invention provides a kind of Manchester code communications protocol adaptive approach based on FPGA and CPLD, belongs to Industry Control
Automated communication field.
Background technology
Manchester code has the following advantages that compared with binary code:There is saltus step in the middle of each bit symbols in waveform, therefore
Clock signal, is easy to receiving terminal to extract clock signal;During transmission system power dissipation can be reduced without DC component;Manchester code
Transmission means is very suitable for being switched fast for multichannel data.So Manchester code is used widely in many fields, such as electricity
Believe industry, Industry Control, vehicle bus, petroleum exploration prospect pit etc..
Chinese patent CN105187070A discloses a kind of manchester encoded signals coding/decoding method, including:Receive Manchester
Encoded signal;Sampling period is determined according to the theoretical head level duration of the manchester encoded signals, in each code
Equal number of multiple sampled points are equably set in former and later two sampling periods of member, and obtain each sampled point it is corresponding it is high,
Low level;The Manchester's code is believed according to the number of the high level sampled point in former and later two sampling periods of the code element
Number it is modified;According to Manchester's code rule, revised data-signal is decoded.The invention can only recognize single
Manchester code communications protocol, do not possess versatility and compatibility in current complicated, multifarious industrial control system.
Chinese patent CN103888143A discloses a kind of Manchester code receiving circuit, and it includes:Analog circuit, its by with
It is set to and the analog signal received by communication transmission path is converted into the data signal based on Manchester code;With characteristic compensation list
Member, it is configured to compensate at least one in rising delay characteristic and fall delay characteristic, wherein in the rising delay characteristic
The rise time of the data signal is more than fall time, and the fall time of data signal described in the fall delay characteristic is more than
Rise time.The invention circuit contains analog circuit, digital circuit, and signal integrity is unreliable, and circuit is numerous and diverse.
The content of the invention
The present invention is in order to solve the above problems, it is proposed that a kind of Manchester code communications protocol based on FPGA and CPLD is adaptive
Induction method, including:
Data receiver, decoding, coding, the sending module of different Manchester code communications protocol are preset, is received, decoder module is used
Address code and numeric data code are parsed in data of the reception from data link layer, and by data, coding, sending module are used for ground
Location code and numeric data code are compiled into the data frame of different-format and send out data link layer.
Data frame format recognizes that the data link layer protocols different in module, the module with adapting to correspond to the data of different priorities
Frame format, the address code and numeric data code that currently valid data frame format is taken out in data frame format identification with adapting to module is transmitted to application
Layer, while being transmitted to the data qualified address code of data link layer and the form of numeric data code for application layer.
The adaptive method of this Manchester code communications protocol based on FPGA/CPLD, the frame lattice of automatic identification input data
Formula, reads data content, and the output data frame format that selection matches.The different communications protocol that different system is used can use
Identical FPGA/CPLD is identical to be encoded to realize, one Universal joint of completion, and function is easy to the adaptive data of extension
Link layer protocol component, makes it to better meet the communicating requirement under the conditions of various industrial control systems.
Brief description of the drawings
Fig. 1 is a kind of Manchester code signal decoding method of the prior art.
Fig. 2 is a kind of block diagram of Manchester code communications protocol adaptive approach based on FPGA/CPLD of the present invention.
Embodiment
The Manchester code communications protocol adaptive approach based on FPGA/CPLD of the present invention, including:Preset different Man Chesi
Data receiver, decoding, coding, the sending module of special code communications protocol, are received, decoder module is used to receive from data link
The data of layer, and data are parsed into address code and numeric data code, coding, sending module are used to address code and numeric data code being compiled into
The data frame of different-format simultaneously sends out data link layer.
Using PLDs such as FPGA and CPLD as carrier, recognized using Manchester code as the communications protocol of coding rule
With processing method;The data received from port by receiving the decode module, by data frame analyzing go out address code and numeric data code and
Data valid bit mark;Data content is transmitted to corresponding by data frame format identification to adaptation module according to data valid bit and address code
Register, and send enable signal to decoding, sending module;Application layer receives the data that module is recognized and adapted to from data frame,
And the data that will be exported mix address code and are transmitted to coding, sending module;The final data frame lattice selected according to enable bit with receiving
Coding that formula matches, sending module send signal.
The above-mentioned Manchester code communications protocol adaptive approach based on FPGA and CPLD, preset several reception, decoding mould
Block, all receptions, decoder module count the length of each frame data, when data frame length and respective built-in length setting phase
Timing exports effective bit identification, and a kind of each signal of data frame format of resume module is a kind of Manchester code communications protocol, is connect
Receive, the quantity of decoder module according to required compatible number of protocols depending on, receive, coding module OPADD yard, numeric data code and
Effective marker position.
The above-mentioned Manchester code communications protocol adaptive approach based on FPGA and CPLD, data frame format identification is with adapting to mould
Block, which is received, only has a kind of communications protocol under all receptions, the output signal of decoder module, a pair of communication devices, corresponding some
In individual reception, decoder module, only one of which is effective work and can provide effective bit flag, data frame format identification and adaptation mould
Root tuber chooses a reception, the output of decoder module according to effective marker position, and other receptions, the output filtering of decoder module are fallen,
Application layer is recognized from data frame format reads data content with adapting to module.
The above-mentioned Manchester code communications protocol adaptive approach based on FPGA and CPLD, it is corresponding with reception, decoder module
, preset several coding sending module, each data frame format has unique reception, decoder module and coding, sends mould
Block, the data that application layer will be exported are sent to all codings, sending module, according to send enable bit, only one of which coding,
The output of sending module will be spread out of from sending port.
As shown in Fig. 2 the above-mentioned Manchester code communications protocol adaptive approach based on FPGA and CPLD, including following step
Suddenly (by taking data frame format n as an example):
Step one:Port receives the Manchester code protocol data that a frame data frame format is n, all receptions, decoding
Module is all handled this frame data, but can only be handled frame format n reception, decoder module and can be exported effective bit flag,
Receive, (agreement n) OPADDs code, numeric data code and significance bit (n) indicate decoder module;
Step 2:
3) after data frame format identification is handled with address code of the adaptation module selection with significance bit (n) mark, numeric data code (n)
It is transmitted to application layer;
4) data frame format identification sends enable bit (n) with adapting to module output;
Step 3:Data are transmitted to all codings, sending module by application layer;Send enable bit (n) and enable coding, sending module
(agreement n's) outputs data to output port.
The described Manchester code communications protocol adaptive approach based on FPGA and CPLD, support it is all based on FPGA and
CPLD Manchester code communications protocol, communications protocol is different and different according to Manchester code data frame length.
It is described above to be merely exemplary for the purpose of the present invention, and it is nonrestrictive, and those of ordinary skill in the art understand, not
In the case of departing from the spirit and scope that claims appended below is limited, many modifications, change or equivalent can be made, but all
It will fall within the scope of protection of the present invention.
Claims (7)
1. a kind of Manchester code communications protocol adaptive approach based on FPGA and CPLD, it is characterised in that:Default difference
Data receiver, decoding, coding, the sending module of Manchester code communications protocol, wherein
Receive, decoder module is used to receive the data from data link layer, and data are parsed into address code and numeric data code;
Coding, sending module are used to address code and numeric data code are compiled into the data frame of different-format and data link layer is sent out;
Data frame format recognizes that the data link layer protocols different in module, the module with adapting to correspond to the data of different priorities
Frame format, the address code and numeric data code that currently valid data frame format is taken out in data frame format identification with adapting to module is transmitted to application
Layer, while being transmitted to the data qualified address code of data link layer and the form of numeric data code for application layer.
2. the Manchester code communications protocol adaptive approach according to claim 1 based on FPGA and CPLD, including:
Using PLDs such as FPGA and CPLD as carrier, recognized using Manchester code as the communications protocol of coding rule with locating
Reason method;The data received from port, which are passed through, receives the decode module, and data frame analyzing is gone out into address code and numeric data code and data
Effective bit flag;Data frame format is recognized is transmitted to corresponding deposit according to data valid bit and address code to adaptation module by data content
Device, and send enable signal to decoding, sending module;Application layer receives the data that module is recognized and adapted to from data frame, and
The data that will be exported mix address code and are transmitted to coding, sending module;The final data frame format selected according to enable bit with receiving
Coding, the sending module matched sends signal.
3. the Manchester code communications protocol adaptive approach according to claim 1 based on FPGA and CPLD, wherein
Preset several reception, decoder module, all receptions, decoder module count the length of each frame data, when data frame length with
Respective built-in length sets and exports effective bit identification when matching, and each reception, decoder module handle a kind of data frame format
Signal is a kind of Manchester code communications protocol, depending on reception, quantity number of protocols of compatibility needed for of decoder module, is connect
Receipts, coding module OPADD code, numeric data code and effective marker position.
4. the Manchester code communications protocol adaptive approach according to claim 1 based on FPGA and CPLD, wherein
Data frame format is recognized to be received only one under all receptions, the output signal of decoder module, a pair of communication devices with adapting to module
Plant in communications protocol, corresponding several reception, decoder modules, only one of which is effective work and can provide effective bit flag,
Data frame format is recognized chooses receptions, the output of decoder module with adapting to module according to effective marker position, and other are received,
The output filtering of decoder module is fallen, and application layer is recognized from data frame format reads data content with adapting to module.
5. the Manchester code communications protocol adaptive approach according to claim 1 based on FPGA and CPLD, wherein
With the preset several coding sending module received, decoder module is corresponding, each data frame format has unique reception, solution
Code module and coding, sending module, the data that application layer will be exported are sent to all codings, sending module, made according to transmission
Energy position, only one of which coding, the output of sending module will be spread out of from sending port.
6. the Manchester code communications protocol adaptive approach according to claim 1 based on FPGA and CPLD, including
Following steps:
Step one:Port receives the Manchester code protocol data that a frame data frame format is n, all receptions, decoding
Module is all handled this frame data, but can only be handled frame format n reception, decoder module and can be exported effective bit flag,
Agreement n reception, decoder module OPADD code, numeric data code and effective bit flag;
Step 2:
1) data frame format identification is transmitted to after being handled and answered with adapting to address code of the module selection with effective bit flag, numeric data code n
With layer;
2) data frame format identification sends enable bit n with adapting to module output;
Step 3:Data are transmitted to all codings, sending module by application layer;Send enable bit n and enable agreement n coding, hair
That send module outputs data to output port.
7. the Manchester code communications protocol adaptive approach according to claim 1 based on FPGA and CPLD, is supported
All Manchester code communications protocol based on FPGA and CPLD, wherein communications protocol is according to Manchester code data frame length
It is different and different.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610298665.4A CN106982199B (en) | 2016-05-06 | 2016-05-06 | Manchester code communication protocol self-adaption method based on FPGA and CPLD |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610298665.4A CN106982199B (en) | 2016-05-06 | 2016-05-06 | Manchester code communication protocol self-adaption method based on FPGA and CPLD |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106982199A true CN106982199A (en) | 2017-07-25 |
CN106982199B CN106982199B (en) | 2020-04-14 |
Family
ID=59340102
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610298665.4A Active CN106982199B (en) | 2016-05-06 | 2016-05-06 | Manchester code communication protocol self-adaption method based on FPGA and CPLD |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106982199B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111934537A (en) * | 2020-08-21 | 2020-11-13 | 湖北师范大学 | Anti-interference method for driving signal of cascade converter |
CN113014480A (en) * | 2019-12-20 | 2021-06-22 | 中国科学院沈阳自动化研究所 | Industrial edge intelligent gateway based on FPGA technology |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1728713A (en) * | 2004-07-27 | 2006-02-01 | 邓里文 | Method for transmtitig digital video |
CN1842069A (en) * | 2005-03-31 | 2006-10-04 | 欧姆龙株式会社 | Received data compensating device |
US20070106680A1 (en) * | 2001-06-27 | 2007-05-10 | Mci, Llc. | Digital media asset management system and method for supporting multiple users |
CN101184030A (en) * | 2007-11-06 | 2008-05-21 | 浙江工业大学 | FPGA based Ethernet interface drive set |
CN101478466A (en) * | 2009-01-16 | 2009-07-08 | 中国北车股份有限公司大连电力牵引研发中心 | MVB analogue signal input module based on FPGA |
CN101976074A (en) * | 2010-11-03 | 2011-02-16 | 浙江工业大学 | Industrial control system based on field bus and control network |
CN102045334A (en) * | 2010-09-27 | 2011-05-04 | 北京泰豪智能工程有限公司 | Protocol conversion method and device |
CN102098131A (en) * | 2009-12-15 | 2011-06-15 | 航天科工惯性技术有限公司 | Dynamic parameter configuration-based general framing and de-framing method for serial port data frames |
CN102103701A (en) * | 2009-12-16 | 2011-06-22 | 索尼公司 | Signal processing apparatus and signal processing method |
CN102170326A (en) * | 2011-03-23 | 2011-08-31 | 武汉华中数控股份有限公司 | Serial communication method of position measuring equipment and device thereof |
CN102394655A (en) * | 2011-10-31 | 2012-03-28 | 中国兵器工业集团第二一四研究所苏州研发中心 | Manchester code converting method on MIC bus |
US8350734B1 (en) * | 2008-12-10 | 2013-01-08 | Ess Technology, Inc. | Method and apparatus for digital to analog conversion of data stream with random and low-frequency periodic jitter |
CN103676933A (en) * | 2013-11-21 | 2014-03-26 | 上海申通地铁集团有限公司 | MVB (multifunction vehicle bus) analysis device |
CN103795680A (en) * | 2012-10-29 | 2014-05-14 | 苏州工业园区新宏博通讯科技有限公司 | Communication method supporting multiple communication protocols, and electric energy meter |
CN104301521A (en) * | 2014-09-17 | 2015-01-21 | 浙江铭众生物医学创业投资有限公司 | Modulation mode and communication circuit based on mobile phone audio interface and communication method of communication circuit based on mobile phone audio interface |
CN104486030A (en) * | 2014-11-19 | 2015-04-01 | 中国科学院自动化研究所 | Rocket projectile collinear loading and setting communication system and method |
-
2016
- 2016-05-06 CN CN201610298665.4A patent/CN106982199B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070106680A1 (en) * | 2001-06-27 | 2007-05-10 | Mci, Llc. | Digital media asset management system and method for supporting multiple users |
CN1728713A (en) * | 2004-07-27 | 2006-02-01 | 邓里文 | Method for transmtitig digital video |
CN1842069A (en) * | 2005-03-31 | 2006-10-04 | 欧姆龙株式会社 | Received data compensating device |
CN101184030A (en) * | 2007-11-06 | 2008-05-21 | 浙江工业大学 | FPGA based Ethernet interface drive set |
US8350734B1 (en) * | 2008-12-10 | 2013-01-08 | Ess Technology, Inc. | Method and apparatus for digital to analog conversion of data stream with random and low-frequency periodic jitter |
CN101478466A (en) * | 2009-01-16 | 2009-07-08 | 中国北车股份有限公司大连电力牵引研发中心 | MVB analogue signal input module based on FPGA |
CN102098131A (en) * | 2009-12-15 | 2011-06-15 | 航天科工惯性技术有限公司 | Dynamic parameter configuration-based general framing and de-framing method for serial port data frames |
CN102103701A (en) * | 2009-12-16 | 2011-06-22 | 索尼公司 | Signal processing apparatus and signal processing method |
CN102045334A (en) * | 2010-09-27 | 2011-05-04 | 北京泰豪智能工程有限公司 | Protocol conversion method and device |
CN101976074A (en) * | 2010-11-03 | 2011-02-16 | 浙江工业大学 | Industrial control system based on field bus and control network |
CN102170326A (en) * | 2011-03-23 | 2011-08-31 | 武汉华中数控股份有限公司 | Serial communication method of position measuring equipment and device thereof |
CN102394655A (en) * | 2011-10-31 | 2012-03-28 | 中国兵器工业集团第二一四研究所苏州研发中心 | Manchester code converting method on MIC bus |
CN103795680A (en) * | 2012-10-29 | 2014-05-14 | 苏州工业园区新宏博通讯科技有限公司 | Communication method supporting multiple communication protocols, and electric energy meter |
CN103676933A (en) * | 2013-11-21 | 2014-03-26 | 上海申通地铁集团有限公司 | MVB (multifunction vehicle bus) analysis device |
CN104301521A (en) * | 2014-09-17 | 2015-01-21 | 浙江铭众生物医学创业投资有限公司 | Modulation mode and communication circuit based on mobile phone audio interface and communication method of communication circuit based on mobile phone audio interface |
CN104486030A (en) * | 2014-11-19 | 2015-04-01 | 中国科学院自动化研究所 | Rocket projectile collinear loading and setting communication system and method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113014480A (en) * | 2019-12-20 | 2021-06-22 | 中国科学院沈阳自动化研究所 | Industrial edge intelligent gateway based on FPGA technology |
CN111934537A (en) * | 2020-08-21 | 2020-11-13 | 湖北师范大学 | Anti-interference method for driving signal of cascade converter |
Also Published As
Publication number | Publication date |
---|---|
CN106982199B (en) | 2020-04-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
MY195980A (en) | Transmission Apparatus, Reception Apparatus, Communication Method, and Integrated Circuit | |
CN202372976U (en) | Switching circuit of time-share multiplexing serial port | |
CN104618058B (en) | The medium-rate variable modulator frame by frame encoded based on LDPC | |
CN103248434A (en) | Communication method for electronic device | |
CN107637023A (en) | For transmitting the method for message, transceiver and electronic control unit for motor vehicle in data highway system | |
CN106982199A (en) | A kind of Manchester code communications protocol adaptive approach based on FPGA and CPLD | |
CN105243039A (en) | Serial port communication system and method | |
CN104717036A (en) | Differential Manchester decoding circuit and system | |
CN101834964B (en) | Voice data transmission processing method | |
CN101308480A (en) | Method for host serial simultaneously connecting multiple asynchronous serial equipment | |
CN203179270U (en) | Wireless remote control device capable of automatically matching codes | |
RU2511429C2 (en) | Serial interface transceiver with galvanic isolation element | |
CN102364947B (en) | Multipath IP video coding card based on PCIe bridge | |
CN210137320U (en) | RS485 circuit capable of automatically switching receiving and transmitting states | |
CN103023610B (en) | The data transmission method of 485 interfaces and device | |
CN102098054B (en) | Self-adaptive analog-to-digital conversion board card based on FPGA (field programmable gate array) | |
US5063561A (en) | Procedure and apparatus for transmitting binary messages in a serial communication bus | |
CN100362533C (en) | Digital quantity output device | |
CN107005516B (en) | Inter-block interference suppression using null guard intervals | |
CN208971526U (en) | Complex interface module | |
CN201584967U (en) | Asi relay module | |
CN103200210B (en) | Digital quantity input equipment and method based on High-Level Data Link Control | |
CN107423648B (en) | RFID reader capable of improving forward anti-interference function | |
CN107707558B (en) | Data transmission system of multi-industry bus | |
US12009954B2 (en) | Device and method for decoding data from wireless signals |
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 |