CN106126466B - A kind of parallel data becomes the transmission method of serial data - Google Patents
A kind of parallel data becomes the transmission method of serial data Download PDFInfo
- Publication number
- CN106126466B CN106126466B CN201610480298.XA CN201610480298A CN106126466B CN 106126466 B CN106126466 B CN 106126466B CN 201610480298 A CN201610480298 A CN 201610480298A CN 106126466 B CN106126466 B CN 106126466B
- Authority
- CN
- China
- Prior art keywords
- data
- array
- time
- transmission
- currently received
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M9/00—Parallel/series conversion or vice versa
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
Abstract
A kind of parallel data becomes the transmission method of serial data, including extracts each scheduled parameter information in parallel channel, data transmission period of the parameter information for subregion difference parallel channel and different parallel channels;The data scheduled parameter information corresponding with each parallel channel that each parallel channel acquires is made into data packet transmission;The data packet of each parallel channel is subjected to serial transmission according to the sequence of arrival.The present invention under the premise of guaranteeing clock and data consistency, improves the accuracy of data transmission efficiency and transmission by the way that data and parameter information are packaged the case where transmission avoids data delay and data perturbation.
Description
Technical field
The present invention relates to the transmission methods that a kind of parallel data becomes serial data, belong to the communication of full duplex synchronous serial bus
Technical field.
Background technique
It is connect in exploitation BISS (Bidirectional Synchronous Serial, bi-directional synchronization serial line interface)-C agreement
When oralia card, we carry out five using FPGA (Field Programmable Gate Array, field programmable gate array) and lead to
Track data synchronous acquisition, this Five-channel synchronous data sampling mode is different from traditional high speed serialization synchronous collection method, passes
Even if the high speed serialization synchronous acquisition speed of system is quickly, each interchannel still remains the time difference in a channel.And it is this
Five-channel synchronous data sampling mode complete parallel, which is only, fundamentally solves stationary problem, meanwhile, Five-channel data are synchronous
Data are passed through into high speed serialization PCI-E (Peripheral Component Interconnect-Express, high speed after acquisition
External components interconnection) bus uploads to the process of program memory of computer.The prior art is in transmission process to Five-channel number
According to being ranked up, but it will lead to and first complete the channel of transmission and wait further channel, cause unnecessary delay, while also violating
The original intention of parallel acquisition, without being ranked up and will lead to interchannel data perturbation.
Summary of the invention
The present invention provides the transmission methods that a kind of parallel data becomes serial data, are postponed with solving data in the prior art
Or the problem of data perturbation, the present invention adopts the following technical scheme that thus:
A kind of parallel data becomes the transmission method of serial data, comprising:
The scheduled parameter information in each parallel channel is extracted, the parameter information is for subregion difference parallel channel and not
With the data transmission period of parallel channel;
The data of each parallel channel scheduled parameter information corresponding with each parallel channel is made into data packet
Transmission;
The data packet of each parallel channel is subjected to serial transmission according to the sequence received.
The transmission method that parallel data of the present invention becomes serial data is transmitted by being packaged data and parameter information
The case where avoiding data delay and data perturbation improves data transmission under the premise of guaranteeing clock and data consistency
The accuracy of efficiency and transmission.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the transmission method of parallel data change serial data described in the embodiment of the present invention;
Fig. 2 is the flow chart for the transmission method that another parallel data becomes serial data described in the embodiment of the present invention;
Fig. 3 is a kind of data parallel turn string of the transmission method of parallel data change serial data described in the embodiment of the present invention
Capable procedural block diagram;
Fig. 4 becomes 64 after being packaged in the transmission method of serial data for a kind of parallel data described in the embodiment of the present invention
Data.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Present embodiment provides a kind of transmission method of parallel data change serial data, as shown in Figure 1, comprising:
S110, each scheduled parameter information in parallel channel is extracted, the parameter information is used for subregion difference parallel channel
And the data transmission period of different parallel channels.
As optional, scheduled parameter information can be, but not limited to include: channel number, error message code and time mark
Note.Wherein, each parallel channel has corresponding number, and channel number is the number of parallel channel.Error message code can be
The transmission error that transmission process goes out, such as: CRC (Cyclic Redundancy Check, cyclic redundancy check) code etc..Specifically
Ground, the parameter information are generally binary data.
As optional, time label can be absolute type time, i.e., the data that described each parallel channel currently acquires
Time, i.e. the acquisition time of data.Time label can also be the relative type motor time, i.e., described each parallel channel currently acquires
Data time and last acquisition data time difference, i.e. the acquisition time of data is poor.Since the absolute type time holds very much
It easily more than the statement limit (65536) of 16 bits, therefore is recorded, is then reached according to the time of absolute type time
It is needed to be reset when to 65536, therefore when user receives the data packet after time label resets, the time in data packet need to be marked
Note adds 65536 after being converted to decimal data.
S120, the data of each parallel channel scheduled parameter information corresponding with each parallel channel is made into number
It is transmitted according to packet.
Further, the embodiment of the present invention is not specifically limited packaging method, as long as being able to achieve the number of parallel channel
It is transmitted according to being packaged with corresponding scheduled parameter information.
S130, the data packet of each parallel channel is subjected to serial transmission according to the sequence of arrival.
Such as: parallel channel 1, parallel channel 2, parallel channel 3, the number by acquisition synchronous with parallel channel 5 of parallel channel 4
According to being transmitted, if the data of parallel channel 1 end of transmission first, first the data packet of parallel channel 1 is transmitted, if parallel logical
Secondly second end of transmission of data in road 5 then transmits the data packet of parallel channel 5, and so on, which parallel channel passes
It is finished complete, the data packet of which parallel channel is transmitted, the parallel channel data in five channels are converted into serial biography to realize
It is defeated.
Another parallel data that present embodiment provides becomes the transmission method of serial data, as shown in Fig. 2, may be used also
To further comprise:
S210, the data packet for receiving serial transmission.
S220, the decoding data packet, the error message code verified in the data packet execute step if being proved to be successful
Rapid S230;If authentication failed thens follow the steps 240.
Further, the present invention is that embodiment does not do the type of error message code and the verification method of error message code
It is specific to limit, as long as can be realized the error correction to transmission data.
S230, the data in the data packet are assigned to the corresponding position array of channel number in data packet, and by the time
Mark the corresponding time array of assignment.
Specifically, convert decimal data for the data in the data packet, by the decimal data after conversion divided by
226The corresponding position array of channel number in data packet is obtained multiplied by 360 afterwards.If the time is labeled as the absolute type time, will mark the time
Label of binary time is converted to decimal number as unit of 10ns by note, and the absolute type time after reset need to add 65536,
The corresponding time array of channel number in data packet can be obtained.Such as;Time is labeled as one group of 16 bit binary data 1111
1100 1000, being converted into decimal data is 4040, and the position array obtained as unit of 10ns is 40.40 μ s.If
Time is labeled as the relative type motor time, then will mark the time and label of binary time is converted to the decimal system as unit of 10ns
Number, can be obtained the corresponding time array of channel number in data packet.Such as;Time is labeled as one group of 16 bit binary data 1111
1100 1000, being converted into decimal data is 4040, and the position array obtained as unit of 10ns is 40.40 μ s.
S240, the data packet is abandoned.
As the corresponding transmission speed of data that is optional, being currently received based on the position array and the calculating of time array
Degree and acceleration.
Further, when the time being labeled as the absolute type time, i.e., the described time array is that each parallel channel is currently adopted
The time of the data of collection is then connect based on the corresponding position array of the data being currently received and time array and last time
The corresponding position array of the data received and time array calculate the corresponding transmission speed of data being currently received and acceleration.
Specifically, pass through the corresponding position array of the data being currently received position corresponding with the data that the last time receives
Set the corresponding biography of data that the difference of array is currently received divided by the difference of the corresponding time array of two position arrays
Defeated speed;The difference that the data being currently received correspond to transmission speed transmission speed corresponding with the last data received is removed
The corresponding acceleration of data being currently received with the difference of the corresponding time array of two position arrays.Such as: assuming that
The corresponding position array of the data that last time receives is P1, and time array is T1 (absolute time), speed V1;It is current to receive
The corresponding position array of the data arrived is P2, and time array is T2 (absolute time), the then speed for the data being currently received are as follows:
V2=(P2-P1)/(T2-T1), acceleration are (V2-V1)/(T2-T1).
Further, when the time being labeled as the relative type motor time, i.e., the described time array is that each parallel channel is currently adopted
The time difference of the data of the time of the data of collection and last acquisition, then based on the corresponding position of the data being currently received
It is corresponding that array and time array and the last corresponding position array of data received calculate the data being currently received
Transmission speed and acceleration.Such as: assuming that the last corresponding position array of data received is P1, speed V1;Currently
The corresponding position array of the data received is P2, and time array is T (relative time), the then speed for the data being currently received
Are as follows: V2=(P2-P1)/T, acceleration are (V2-V1)/T.
Specifically, pass through the corresponding position array of the data being currently received position corresponding with the data that the last time receives
Set what the difference of array was currently received divided by the corresponding time array of the corresponding position array of the data being currently received
The corresponding transmission speed of data;The data being currently received are corresponded into transmission speed transmission corresponding with the last data received
The number that the difference of speed is currently received divided by the corresponding time array of the corresponding position array of the data being currently received
According to corresponding acceleration.
The data parallel that a kind of parallel data that present embodiment provides becomes the transmission method of serial data turns serial
Procedural block diagram can be to receive data packet as shown in figure 3, data packing process is realized in the BISS module of parallel channel
Sequence be followed successively by data packet 2, data packet 3, data packet 5, data packet 4 and data packet 1, therefore by first in first out (fifo,
First in first out) carry out data serial transmission.
By taking 64 data after being packaged are as shown in Figure 4 as an example, reality only has in figure from the data that BISS bus is read to be marked
" 26 data bit ", which is the data that arrive of actual acquisition, the i.e. corresponding binary data of position array.This 64
In data in the first row 32 only include 26 data bit, other 6 data bit are without physical meaning;32 difference tables in second row
Show: the channel number of highest four statements, low 16 statements are time labels, when can be absolute type time data or relative type motor
Between data.Each Zhan Yiwei of CRC, WAR, ERR in mark, respectively indicates:
CRC: whether the BISS data of the sampled point pass through CRC check;
Whether WAR:BISS sensor transmits warning message;
Whether ERR:BISS sensor sends error message.
The embodiment of the present invention is by being packaged the feelings that transmission avoids data delay and data perturbation for data and parameter information
Condition, by the initial data received be added the time label and path marking, make its by parallel acquisition to data become serially passing
Defeated process is not needed to sort and be managed.Simultaneously as PCIE (Peripheral Component Interconnect
Express, high speed peripheral component interconnection standard) transmission clock and board internal clocking be different clocks source, therefore the time mark
It is non-interference with PCIE transmission time sequence inside data packet, to improve the accuracy of data transmission efficiency and transmission.
The preferable specific embodiment of the present invention, but scope of protection of the present invention is not limited thereto, it is any to be familiar with this skill
The technical staff in art field is in the technical scope that the embodiment of the present invention discloses, and any changes or substitutions that can be easily thought of, should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (6)
1. the transmission method that a kind of parallel data becomes serial data, comprising:
The scheduled parameter information in each parallel channel is extracted, the parameter information is used for subregion difference parallel channel and difference simultaneously
The data transmission period of row of channels;The data that each parallel channel the is acquired scheduled ginseng corresponding with each parallel channel
Number information is made into data packet transmission;The data packet of each parallel channel is subjected to serial transmission according to the sequence of arrival;
The scheduled parameter information includes: channel number, error message code and time label;
The time for the data that the time currently acquires labeled as each parallel channel;
The parameter information is binary data;
It is characterized by further comprising:
It is corresponding based on the data being currently received when time array is the time for the data that each parallel channel currently acquires
Position array and time array and the last corresponding position array of data received and time array calculate current receive
The corresponding transmission speed of the data arrived and acceleration;Or,
When the time difference of the data of time and last acquisition that time array is the data that each parallel channel currently acquires,
Based on the corresponding position array of data being currently received and time array and the last corresponding position of data received
Array calculates the corresponding transmission speed of data being currently received and acceleration.
2. transmission method according to claim 1, which is characterized in that further include:
Receive the data packet of serial transmission;If it is available that the error message code identified in the data packet verifies the data,
Data in the data packet are assigned to the corresponding position array of channel number in data packet, and will mark assignment corresponding the time
Time array.
3. transmission method according to claim 2, which is characterized in that the data by the data packet are assigned to number
The step of position array corresponding according to channel number in packet includes:
Decimal data is converted by the data in the data packet, the decimal data after conversion is divided by 226It is obtained afterwards multiplied by 360
The corresponding position array of channel number into data packet.
4. transmission method according to claim 3, which is characterized in that further include:
If it is unavailable that the error message code identified in the data packet verifies the data, the data packet is abandoned.
5. transmission method according to claim 4, which is characterized in that described corresponding based on the data being currently received
Position array and time array and the last corresponding position array of data received and the calculating of time array currently connect
The step of corresponding transmission speed of the data received and acceleration includes:
Pass through the difference of the corresponding position array of the data being currently received position array corresponding with the data that the last time receives
The corresponding transmission speed of data that value is currently received divided by the difference of the corresponding time array of two position arrays;It will work as
Before the data that receive correspond to transmission speed transmission speed corresponding with the data that the last time receives difference divided by two positions
The corresponding acceleration of data that the difference of the corresponding time array of array is currently received.
6. transmission method according to claim 5, which is characterized in that described corresponding based on the data being currently received
Position array and time array and the last corresponding position array of data received calculate the data being currently received
The step of corresponding transmission speed and acceleration includes:
Pass through the difference of the corresponding position array of the data being currently received position array corresponding with the data that the last time receives
Value is corresponding divided by the data that the corresponding time array of the corresponding position array of the data being currently received is currently received
Transmission speed;
By the data being currently received correspond to the difference of transmission speed transmission speed corresponding with the data that receive of last time divided by
The corresponding acceleration of data that the corresponding time array of the corresponding position array of the data being currently received is currently received.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610480298.XA CN106126466B (en) | 2016-06-27 | 2016-06-27 | A kind of parallel data becomes the transmission method of serial data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610480298.XA CN106126466B (en) | 2016-06-27 | 2016-06-27 | A kind of parallel data becomes the transmission method of serial data |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106126466A CN106126466A (en) | 2016-11-16 |
| CN106126466B true CN106126466B (en) | 2019-10-11 |
Family
ID=57267270
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610480298.XA Active CN106126466B (en) | 2016-06-27 | 2016-06-27 | A kind of parallel data becomes the transmission method of serial data |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106126466B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110456454B (en) * | 2019-08-26 | 2020-07-17 | 光子算数(北京)科技有限责任公司 | Photon artificial intelligence chip interconnection device and inter-chip interconnection photon artificial intelligence chip |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101867452A (en) * | 2010-06-10 | 2010-10-20 | 国网电力科学研究院 | A communication method of serial real-time bus dedicated to electric power |
| CN103797734A (en) * | 2011-09-02 | 2014-05-14 | 纳派泰克股份公司 | Systems and methods for identifying a point in time of receipt of a data packet |
| CN105379220A (en) * | 2013-03-18 | 2016-03-02 | 吉林克斯公司 | Timestamp correction in a multi-lane communication link with skew |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7586925B2 (en) * | 2003-09-09 | 2009-09-08 | Sonus Networks, Inc. | Data adaptation protocol |
| CN103269433B (en) * | 2013-04-28 | 2016-06-29 | 广东威创视讯科技股份有限公司 | Method of transmitting video data and video-frequency data transmission system |
-
2016
- 2016-06-27 CN CN201610480298.XA patent/CN106126466B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101867452A (en) * | 2010-06-10 | 2010-10-20 | 国网电力科学研究院 | A communication method of serial real-time bus dedicated to electric power |
| CN103797734A (en) * | 2011-09-02 | 2014-05-14 | 纳派泰克股份公司 | Systems and methods for identifying a point in time of receipt of a data packet |
| CN105379220A (en) * | 2013-03-18 | 2016-03-02 | 吉林克斯公司 | Timestamp correction in a multi-lane communication link with skew |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106126466A (en) | 2016-11-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104954096B (en) | A high-speed synchronous serial communication data transmission method with one master and multiple slaves | |
| US10396921B2 (en) | Multi-lane synchronization method, synchronization apparatus and system, and computer storage medium | |
| CN104008078B (en) | Method for high-speed transmission between data transmission boards based on FPGA | |
| CN106341207A (en) | Coding block data flow sending and receiving method, device and system | |
| CN106598889A (en) | SATA (Serial Advanced Technology Attachment) master controller based on FPGA (Field Programmable Gate Array) sandwich plate | |
| CN108631873A (en) | Method, device, sending device, and receiving device for sending and receiving network management information | |
| CN116955262A (en) | An 8B/10B codec IP core based on FPGA | |
| CN102946293B (en) | A kind of parallel receive method based on DS coding and device thereof | |
| CN116418866A (en) | A FPGA prototype verification system, data transmission method, device and storage medium | |
| CN203574663U (en) | Automatic baud rate detection module | |
| CN103763090A (en) | Data transmission device and method | |
| CN103200127B (en) | Serial communication system and method between a kind of plate | |
| CN106126466B (en) | A kind of parallel data becomes the transmission method of serial data | |
| US20160036684A1 (en) | Method And Apparatus To Provide Both High Speed And Low Speed Signaling From The High Speed Transceivers On An Field Programmable Gate Array | |
| CN102394655A (en) | Manchester code converting method on MIC bus | |
| CN104009823B (en) | Dislocation detection and error correction circuit in a kind of SerDes technologies | |
| EP3387540B1 (en) | Serial data multiplexing | |
| US8731073B1 (en) | In-band lane alignment for a multi-lane transceiver | |
| CN104270155A (en) | Manchester code stream reception and anti-interference analysis method | |
| WO2017017562A1 (en) | Seamless addition of high bandwidth lanes | |
| CN106209307A (en) | Interconnected method and system between many FPGA sheets | |
| CN111865341B (en) | A transmitter circuit based on JESD204B protocol | |
| CN111026590B (en) | Data verification method and platform of interface circuit | |
| CN104836754A (en) | Method and device for achieving backboard auto-negotiation function by means of high speed Serdes | |
| CN116795758A (en) | Multichannel synchronous Biss-C protocol decoding transmission device based on FPGA |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |