CN110430023A - A kind of data transmission method suitable for SpaceWire bus communication - Google Patents
A kind of data transmission method suitable for SpaceWire bus communication Download PDFInfo
- Publication number
- CN110430023A CN110430023A CN201910667362.9A CN201910667362A CN110430023A CN 110430023 A CN110430023 A CN 110430023A CN 201910667362 A CN201910667362 A CN 201910667362A CN 110430023 A CN110430023 A CN 110430023A
- Authority
- CN
- China
- Prior art keywords
- data
- transmission
- data block
- packet
- information table
- 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
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
Abstract
A kind of data transmission method suitable for SpaceWire bus communication, data sending terminal packaged data packet, splice each data packet and generates data block, and generate the characteristic information table for describing this data block, then starting is sent, data block is sent to data receiver, control data receiver receives data block and parses its characteristic information table, according to the data length in data block characteristics information table, the type of data packet, parsing data block acquires each data packet, if successfully obtaining all data packets, then acknowledgement transmissions successful respond accords with, otherwise acknowledgement transmissions unsuccessfully reply symbol, data sending terminal receives response symbol, judgement this time send data block whether transmission success, transmission is restarted if unsuccessful transmission, the transmission of next data block is carried out if transmission success, until completing the transmission of all data packets.
Description
Technical field
The present invention relates to a kind of data transmission methods suitable for SpaceWire bus communication, are mainly used for satellite
The design and realization of SpaceWire bus communication efficiently, are reliably completed SpaceWire bus communication, belong to Spacecraft Control skill
Art field.
Background technique
SpaceWire is a kind of high speed, point-to-point, full duplex serial bus network, at present external more
It is applied successfully in a space tasks.Domestic space flight is also inexorable trend, SpaceWire bus transfer using SpaceWire bus
Data content have a characteristic that
(1) SpaceWire bus is transmitted in the form of based on data packet, and each node is completely reciprocity in network, and
There is no limit for the size of data packet;
(2) transfer acknowledgement mechanism of the undefined communication response of SpaceWire bus, needs to be transmitted by upper-layer protocol
Success, which confirms, to be ensured;
Traditional SpaceWire bus communication design method is generally based on the data transmission of fixed time sequence, there is following lack
Point:
(1) conventional method is based on without confirmation transmission of data blocks, and communication two party is not shaken hands, and transmission reliability is dependent on fixation
Timing, the possible packet loss under specific time sequence, communication reliability design is insufficient;
(2) conventional method does not have the Error Control agreement of design data packet level-one, and the transmitting terminal of data can not confirm data
Whether transmission succeeds;
(3) the typically no design that data transmission fails are initiated with transmission again of conventional method;
Summary of the invention
Technology of the invention solves the problems, such as: overcoming the problems, such as that prior art reliability in asynchronous transmission is insufficient, provides
A kind of data transmission method suitable for SpaceWire bus communication, solves and depends critically upon fixed time sequence in conventional method
Data transmission and without transmission success confirmation the problem of.
The technical solution of the invention is as follows: a kind of data transmission method suitable for SpaceWire bus communication, including
Following steps:
1) data are pre-processed, transmitting terminal is packaged and generates characteristic information table;
2) transmitting terminal transmits pretreated data, and receiving end is parsed to obtain each to the data received
Data packet, and complete data transmission confirmation.
The step 1) method particularly includes:
(11) data sending terminal is packaged each data packet that this period needs transmit in SpaceWire bus, and splicing is each
A data packet generates i-th of data block to be transmitted;The data packet is the base in SpaceWire network for information transmission
This protocol Data Unit, including type of data packet, data packet length, valid data, check field;The data block is data
The set of packet, for the data content once transmitted in SpaceWire network;
(12) data sending terminal generates the feature letter for describing this data block according to the feature of i-th of data block to be transmitted
Cease table;The characteristic information table is the data field for describing data block characteristics information, including transmission handshake, transmission meter
Number, data length, data packet type;Wherein, handshake is the mark that data sending terminal and receiving end carry out transmission confirmation
Symbol;The type of data packet is to distinguish the identifier of type of data packet.
The step 2) method particularly includes:
(21) data sending terminal log-on data is sent, by current i-th of data block to be sent together with its characteristic information table
It is sent to data receiver, wherein the transmission in characteristic information table counts the serial number i for being set to current data block to be transmitted;Its
In, i is positive integer, i=1,2 ..., and initial value is 1;
(22) control data receiver, which receives, data block and parses its characteristic information table, judge handshake whether match and
Receive data block counting N whether be equal to transmission count i, if handshake matching and N=i, is transferred to step (23), otherwise into
Enter step (25);Wherein, N is positive integer, N=1,2 ..., and initial value is 1;
(23) control data receiver is according to data length, the number in the characteristic information table for the n-th data block being resolved to
According to the type of packet, parses data block and acquires each data packet, if successfully obtaining all data packets, be transferred to step (24),
Otherwise (25) are entered step;
(24) N=N+1, control data receiver reply data block transmission success confirmation response symbol;It enters step later
(26);The response symbol is the data word for being used for transmission confirmation, including handshake, transmission count, transmission acknowledgement indicator position;Institute
Transmission acknowledgement indicator position is stated as the description whether successful identifier of this transmission of data blocks;
(25) unsuccessfully confirmation response accords with the transmission of control data receiver reply data block;(26) are entered step later;
(26) data block transmitting terminal receives transmission confirmation response symbol, judges whether i-th of transmission of data blocks succeeds, if transmission
Success, then enter step (27), be otherwise transferred to step (21) and transmitted again;
(27) i=i+1 is repeated step (21)-step (28), carries out the transmission of data next time.
Compared with the prior art, the invention has the advantages that:
(1) present invention for SpaceWire bus communication without transfer acknowledgement mechanism the characteristics of, the present invention is using transmission association
The mode of confirmation is shaken hands and transmitted to view layer, solves the problems, such as that data transmit possible packet loss, improve data transfer under asynchronous timing
Reliability.
(2) present invention for all communications activities by that can dynamically distribute using data block as the communication modes of transmission unit
Bandwidth simultaneously changes the communication activity in bus in real time;It is off line to solve transmission time sequence complex situations when using data packet as transmission unit
Network resource is easy the problem of conflict, the demands that meet in data transmission that data packet type is complicated and changeable, length is not fixed etc., significantly
Improve bus transfer efficiency and transmission reliability;
(3) present invention designs a kind of characteristic information table for describing data transmission characteristics, the dynamic generation when data block generates
Data characteristics table is transmitted together with data block, can be arbitrarily inserted into random data packet in the transmission of periodic data packet and be passed
It is defeated, so that data transmission has better flexibility and scalability;
Detailed description of the invention
Fig. 1 is that the present invention is based on the SpaceWire bus protocol design method flow charts of transmission of data blocks;
Fig. 2 is data chunk of the present invention into figure;
Fig. 3 is data block characteristics information table of the present invention;
Specific embodiment
In view of the deficiencies of the prior art, the present invention provides a kind of transmission side datas suitable for SpaceWire bus communication
Method, aiming at the problem that tradition depends critically upon the data transmission of fixed time sequence and confirms without transmission success, using data block spy
The mode for levying information table description proposes number according to the species characteristic of transmission handshake, transmission counting, data length, data packet
According to block transmission and communication method, effective description is carried out by data content of the characteristic information table to transmission, has passed through protocol handshake solution
The certainly reliability of data transmission, has realize authentic data between data sending terminal, data receiver compared with prior art
Transmission, significantly improves bus transfer efficiency and transmission reliability.The method of the present invention is explained in detail with reference to the accompanying drawing
And explanation.
It is as shown in Figure 1 a kind of data transmission method flow chart suitable for SpaceWire bus communication of the present invention, including
Steps are as follows:
Step 1: data prediction, pretreatment the following steps are included:
(1) data sending terminal is packaged each data packet (including period that this period needs to transmit in SpaceWire bus
Property data packet, random data packet, fixed-length data packet, variable-length packet), splice each data packet and generate to be transmitted i-th
A data block;The data packet is the basic agreement data cell in SpaceWire network for information transmission, including data
Packet type, data packet length, valid data, check field;The data block is the set of data packet, is SpaceWire net
The data content once transmitted in network.The composition of data packet and data block is as shown in Figure 2.
(2) data sending terminal establishes data transmission characteristics model according to the feature of i-th of data block to be transmitted, generates
The characteristic information table for describing this data block describes the communication feature of this data transmission, is illustrated in figure 3 data characteristics of the present invention
Model information figure;The characteristic information table is the data field for describing data block characteristics information, including transmission handshake, biography
Defeated counting, data length, data packet type;Wherein, handshake is that data sending terminal and receiving end carry out transmission confirmation
Identifier;The type of data packet is to distinguish the identifier of type of data packet;
Step 2: data transmission procedure, data transmission procedure the following steps are included:
(3) data sending terminal log-on data is sent, and current i-th of data block to be sent is sent out together with its characteristic information table
It send to data receiver, wherein the transmission in characteristic information table counts the serial number i for being set to current data block to be transmitted;Wherein, i
For positive integer, i=1,2 ..., and initial value is 1;
(4) control data receiver, which receives, data block and parses its characteristic information table, judge handshake whether match and
Receive data block counting N whether be equal to transmission count i, if handshake matching and N=i, is transferred to step (5), otherwise into
Enter step (7);Wherein, N is positive integer, N=1,2 ..., and initial value is 1;Such as: if this communication transmitting terminal is together with data
The handshake in characteristic information table that block is sent together is 0xEBF1, and transmission is counted as 3, the letter of shaking hands of data receiver maintenance
Number be 0xEBF1, and data block count to be received be 3, then be transferred to step (5).
(5) control data receiver is according to the data length in the characteristic information table for the n-th data block being resolved to, data
The type of packet parses data block, and obtains each number according to data packet Packet type, data packet length, check field acquisition of information
According to packet, if successfully obtaining all data packets, step (6) is transferred to, (7) are otherwise entered step;
Step 3: data transmission confirmation, data transmission confirmation the following steps are included:
(6) N=N+1, control data receiver reply data block transmission success confirmation response symbol;(8) are entered step later;
The response symbol is the data word for being used for transmission confirmation, including handshake, transmission count, transmission acknowledgement indicator position, such as: needle
Number of cases is passed the imperial examinations at the provincial level according to transmission to step (4), and handshake 0xEBF1 is transmitted and is counted as 3, handshake 0xAA;The transmission
Acknowledgement indicator position is the description whether successful identifier of this transmission of data blocks, such as: transmission success identifier is 0xAA, transmission
Failure flags symbol is 0x55;
(7) unsuccessfully confirmation response accords with the transmission of control data receiver reply data block;(8) are entered step later;
(8) data block transmitting terminal receives transmission confirmation response symbol, judges whether i-th of transmission of data blocks succeeds, if transmission
Success, then enter step (9), be otherwise transferred to step (3) and transmitted again;
(9) i=i+1 is repeated step (1)-step (8), carries out the transmission of data next time.
The content that description in the present invention is not described in detail belongs to the well-known technique of those skilled in the art.
Claims (3)
1. a kind of data transmission method suitable for SpaceWire bus communication, it is characterised in that include the following steps:
1) data are pre-processed, transmitting terminal is packaged and generates characteristic information table;
2) transmitting terminal transmits pretreated data, and receiving end parses the data received to obtain each data
Packet, and complete data transmission confirmation.
2. a kind of data transmission method suitable for SpaceWire bus communication according to claim 1, feature exist
In: the step 1) method particularly includes:
(11) data sending terminal is packaged each data packet that this period needs transmit in SpaceWire bus, splices each number
I-th of data block to be transmitted is generated according to packet;The data packet is the basic association in SpaceWire network for information transmission
Discuss data cell, including type of data packet, data packet length, valid data, check field;The data block is data packet
Set, for the data content once transmitted in SpaceWire network;
(12) data sending terminal generates the characteristic information table for describing this data block according to the feature of i-th of data block to be transmitted;
The characteristic information table is the data field for describing data block characteristics information, including transmission handshake, transmission count, data
Length, the type of data packet;Wherein, handshake is the identifier that data sending terminal and receiving end carry out transmission confirmation;Data
The type of packet is to distinguish the identifier of type of data packet.
3. a kind of data transmission method suitable for SpaceWire bus communication according to claim 1, feature exist
In: the step 2) method particularly includes:
(21) data sending terminal log-on data is sent, and current i-th of data block to be sent is sent together with its characteristic information table
To data receiver, wherein the transmission in characteristic information table counts the serial number i for being set to current data block to be transmitted;Wherein, i is
Positive integer and initial value are 1;
(22) control data receiver receives data block and parses its characteristic information table, judges whether handshake matches and receive
Whether the counting N of data block, which is equal to transmission, counts i, if handshake matching and N=i, are transferred to step (23), otherwise enters step
Suddenly (25);Wherein, N is positive integer and initial value is 1;
(23) control data receiver is according to the data length in the characteristic information table for the n-th data block being resolved to, data packet
Type, parsing data block acquire each data packet, if successfully obtaining all data packets, be transferred to step (24), otherwise
Enter step (25);
(24) N=N+1, control data receiver reply data block transmission success confirmation response symbol;(26) are entered step later;Institute
Stating response symbol is the data word for being used for transmission confirmation, including handshake, transmission count, transmission acknowledgement indicator position;The transmission
Acknowledgement indicator position is the description whether successful identifier of this transmission of data blocks;
(25) unsuccessfully confirmation response accords with the transmission of control data receiver reply data block;(26) are entered step later;
(26) data block transmitting terminal receive transmission confirmation response symbol, judge whether i-th of transmission of data blocks succeeds, if transmit at
Function, then enter step (27), is otherwise transferred to step (21) and is transmitted again;
(27) i=i+1 is repeated step (21)-step (28), carries out the transmission of data next time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910667362.9A CN110430023B (en) | 2019-07-23 | 2019-07-23 | Data transmission method suitable for SpaceWire bus communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910667362.9A CN110430023B (en) | 2019-07-23 | 2019-07-23 | Data transmission method suitable for SpaceWire bus communication |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110430023A true CN110430023A (en) | 2019-11-08 |
CN110430023B CN110430023B (en) | 2022-05-24 |
Family
ID=68411963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910667362.9A Active CN110430023B (en) | 2019-07-23 | 2019-07-23 | Data transmission method suitable for SpaceWire bus communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110430023B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113489682A (en) * | 2021-06-08 | 2021-10-08 | 北京控制工程研究所 | Communication method and system of variable-length data protocol based on SpaceWire bus communication |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2541851A1 (en) * | 2011-06-30 | 2013-01-02 | Astrium Limited | Apparatus and method for use in a spacewire-based network |
US20140347974A1 (en) * | 2011-11-22 | 2014-11-27 | Thales | Data transmission network and programmable network node |
CN106789295A (en) * | 2016-12-29 | 2017-05-31 | 中国科学院长春光学精密机械与物理研究所 | A kind of SpaceWire bus communication systems and its supervision equipment |
CN106888121A (en) * | 2017-03-01 | 2017-06-23 | 北京控制工程研究所 | A kind of 1553B bus protocol emulation modes based on transmission of data blocks |
CN108234337A (en) * | 2017-12-06 | 2018-06-29 | 北京时代民芯科技有限公司 | A kind of SpaceWire bus routers for supporting host interface |
CN109194555A (en) * | 2018-07-20 | 2019-01-11 | 航天东方红卫星有限公司 | A kind of improved moonlet data transmission subsystem bus scheduling system |
-
2019
- 2019-07-23 CN CN201910667362.9A patent/CN110430023B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2541851A1 (en) * | 2011-06-30 | 2013-01-02 | Astrium Limited | Apparatus and method for use in a spacewire-based network |
US20140347974A1 (en) * | 2011-11-22 | 2014-11-27 | Thales | Data transmission network and programmable network node |
CN106789295A (en) * | 2016-12-29 | 2017-05-31 | 中国科学院长春光学精密机械与物理研究所 | A kind of SpaceWire bus communication systems and its supervision equipment |
CN106888121A (en) * | 2017-03-01 | 2017-06-23 | 北京控制工程研究所 | A kind of 1553B bus protocol emulation modes based on transmission of data blocks |
CN108234337A (en) * | 2017-12-06 | 2018-06-29 | 北京时代民芯科技有限公司 | A kind of SpaceWire bus routers for supporting host interface |
CN109194555A (en) * | 2018-07-20 | 2019-01-11 | 航天东方红卫星有限公司 | A kind of improved moonlet data transmission subsystem bus scheduling system |
Non-Patent Citations (1)
Title |
---|
龚泉铭等: "面向大容量存储的SpaceWire传输层协议设计", 《电子设计工程》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113489682A (en) * | 2021-06-08 | 2021-10-08 | 北京控制工程研究所 | Communication method and system of variable-length data protocol based on SpaceWire bus communication |
Also Published As
Publication number | Publication date |
---|---|
CN110430023B (en) | 2022-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105120439A (en) | Beidou long message communication method | |
CN105790899B (en) | A kind of single feedback retransmission method based on fountain codes | |
CN111711609A (en) | Protocol design method in serial port communication | |
WO2011137640A1 (en) | File transmission method, file transmission apparatus and file reception apparatus | |
CN107567107A (en) | A kind of method and device for transmitting data | |
CN102868609A (en) | Maximum transmission unit consultation method and data terminal | |
CN112637149B (en) | Data communication method between asymmetric security policy partitions | |
CN110311847A (en) | A kind of bulk data transmission method and device | |
CN103944880B (en) | A kind of method of ZigBee data transfers | |
CN105871512B (en) | A kind of data transmission method and device | |
CN112566282A (en) | Internet of things information transmission mode and platform | |
CN105100100A (en) | UDP transmission method and system suitable for distributed network | |
CN103312719A (en) | Rate self-adaptive transmission method based on UDP (User Datagram Protocol) under network environment | |
CN107508828B (en) | A kind of very-long-range data interaction system and method | |
CN110430023A (en) | A kind of data transmission method suitable for SpaceWire bus communication | |
CN109756475A (en) | Data transmission method and device in a kind of unilateral network | |
CN109150416A (en) | Data transmission method and device | |
US7680122B2 (en) | Communication method for data communication based on point-to-point protocol | |
WO2022127448A1 (en) | Message transmission method, terminals and storage medium | |
CN107046452A (en) | A kind of data high bandwidth high reliability transport method | |
CN106888121B (en) | A kind of 1553B bus protocol emulation mode based on transmission of data blocks | |
CN101409611B (en) | Communication method for IP scheduling | |
CN105721454B (en) | A kind of connection management method of the reliable transmission based on UDP | |
CN108234595A (en) | Log transmission method and system | |
CN109151904B (en) | Lora message reassembly and retransmission method, sending end and receiving end |
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 |