CN108462651A - A method of the 1394 asynchronous steaming transfer realized using DMA chain - Google Patents
A method of the 1394 asynchronous steaming transfer realized using DMA chain Download PDFInfo
- Publication number
- CN108462651A CN108462651A CN201611140239.4A CN201611140239A CN108462651A CN 108462651 A CN108462651 A CN 108462651A CN 201611140239 A CN201611140239 A CN 201611140239A CN 108462651 A CN108462651 A CN 108462651A
- Authority
- CN
- China
- Prior art keywords
- dma controller
- descriptor
- chain
- asynchronous
- dma
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9031—Wraparound memory, e.g. overrun or underrun detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9005—Buffering arrangements using dynamic buffer space allocation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9015—Buffering arrangements for supporting a linked list
Abstract
The invention belongs to onboard networks bussing technique fields, a kind of method for the 1394 asynchronous datas transmission realized using dma controller descriptor chain is proposed based on 1394 Open Host Controller Interface (OHCI) specifications, this method extends to the realization of asynchronous data and isochronous data transfers.The design scheme core of the present invention is the application method of dma controller descriptor chain.Based on 1394 OHCI agreements sending and receiving for asynchronous data is realized using the descriptor controller and descriptor pointer of dma controller.
Description
Technical field
The invention belongs to onboard networks bussing technique fields, a kind of using DMA controls based on 1394OHCI protocol realizations
The method for the 1394 asynchronous datas transmission that device descriptor chain is realized.
Background technology
Comprehensive task processor (IMP) is the key foundation platform of avionics system, have data, Graphics/Image and
The comprehensive treatment capability and system storage capacity of video.Input/output module abbreviation IOM modules, are the component parts of IMP, are
Ensure the core support module of airfight task-cycle.Input/output module is responsible for system administration, non-optical fiber interface data connect
It transmits/receives and send, inside and outside protocol conversion and Time Service.
IOM modules in comprehensive task processor are configured with special 1394B interfaces, using double remaining backup forms and C
Link terminal and Ku/Ka satellite link terminals are communicated, and system telemetry and investigation, the need for monitoring information real-time Transmission are met
It wants.1394B topological relations are as shown in Figure 1, wherein IOM1, IOM2, Ku/Ka chain terminal and C chains terminal include respectively that 2 tunnels are independent
1394B bus interface includes 3 Port per road 1394B interfaces, and IOM1, IOM2 are located inside IMP, backup each other.1394B is total
Line interface uses S400Beta operating modes, transmission rate 400Mbps.
Task system is using asynchronous data packet and C links terminal and Ku/Ka satellite link terminals in avionics system
It is communicated, completes the biography down of vedio data, be based on 1394OHCI agreements, using dma controller descriptor chain, realized different
Step flow data sends and receives, can the big datas transmission speed slow problem such as effective solution avionics system video,
Meet the requirement that task system passes down vedio data.
Invention content
A method of the 1394 asynchronous steaming transfer realized using DMA chain, 1394OHCI agreements support a plurality of types of DMA
Controller, each type of dma controller have oneself independent register space, support at least one dma controller description
Symbol.
Table 1DMA controllers and descriptor relationship correspond to table
The dma controller that this method is received using asynchronous transmission requests and whens waiting is realized the transmission of asynchronous data packet and is connect
It receives, operation of the dma controller to buffer circle is described using dma controller descriptor chain.Each dma controller descriptor
Corresponding one can DMA buffer, DMA buffer descriptor describes the essential information of buffering area, setting hardware uses the buffering area
Mode information;Include the following steps:
1. equipment initial phase:
1) 1394OHCI device hardwares initialize;
2) asynchronous transmission requests dma controller descriptor chain and the initialization that dma controller descriptor chain is received whens waiting, packet
Include the essential information of buffering area, setting hardware uses the information such as the mode of the buffering area;
3) pointer of dma controller descriptor is set;
4) dma controller parameter is set, dma controller is started;
5) it enables 1394OHCI equipment and sends and receives interruption, enabled hosts are interrupted;
2. data transfer phase
1) in asynchronous data transmission phase, the buffering area for being registered to hardware is managed using buffer circle mode, software
The dma controller descriptor last-of-chain that available buffering area addition is sent in buffer circle is selected successively, is released when being sent completely
The buffering area for having completed to send is put, dma controller descriptor chain head is updated, realizes the switching of buffer circle, asynchronous fluxion
According to sending, detailed process is as shown in Figure 2.
2) stage is received in asynchronous data, the buffering area for being registered to hardware is managed using buffer circle mode, is based on
The program, dma controller descriptor last-of-chain is updated when finishing receiving, and user updates dma controller descriptor after reading data
Chain head completes the switching of buffer circle, and it is as shown in Figure 3 that asynchronous data receives detailed process.
The present invention is based on 1394OHCI specifications to propose a kind of 1394 asynchronous flows realized using dma controller descriptor chain
The method of data transmission, this method extend to the realization of asynchronous data and isochronous data transfers.Its main feature is that implementation method is simple
It is single, using flexible, can the slow problem of big datas transmission speed such as effective solution avionics system video, answered at present
In the comprehensive task processor of certain type unmanned plane, meet the requirement that task system passes down vedio data.
Its major advantage is as follows:
1. the use of buffer circle so that the efficiency of dma controller has obtained significant raising;
2. the size of buffer circle can dynamically be configured according to the demand of application and actual hardware environment;
3. asynchronous data transmission using dma controller descriptor chain by the way of, 1394 protocol definitions can be extended to
Other types data.
Description of the drawings
Fig. 1 is 1394 topological diagrams.
Fig. 2 is asynchronous data transmission process figure;
Fig. 3 is asynchronous data receive process figure.
Specific implementation mode
In initial phase, initialization asynchronous transmission requests dma controller descriptor chain is retouched with reception dma controller whens waiting
The resource needed for symbol chain is stated, dma controller parameter is set, starts dma controller.
In data transfer phase, asynchronous transmission requests dma controller descriptor chain and reception dma controller descriptor whens waiting
Chain carries out switching at runtime in a manner of buffer circle.
This programme implementation steps are as follows:
1. equipment initial phase:
1) host interface (PCI) initializes, the initialization of 1394OHCI device hardwares;
2) buffer resource application, asynchronous transmission requests and the initialization that dma controller descriptor chain resource is received whens waiting,
Essential information, setting hardware including buffering area use the mode information of the buffering area;
3) initialization dma controller pointer is first descriptor for sending and receiving corresponding descriptor chain;
4) asynchronous transmission requests and reception dma controller parameter setting whens waiting, start dma controller;
5) it enables 1394OHCI equipment and sends and receives interruption, Host Interrupt is enabled;
2. data transfer phase
1) asynchronous data is sent, and after the inspection for completing parameter legitimacy, needs to carry out mutual exclusion protection operation to equipment,
Check whether the transmission state of equipment asynchronous transmission requests dma controller can be used, if normally, software selects loop buffer successively
The dma controller descriptor last-of-chain that available buffering area addition is sent in area, discharges when being sent completely and has completed transmission
Buffering area updates dma controller descriptor chain head, realizes that the switching of buffer circle, asynchronous data send detailed process such as
Shown in Fig. 2;Otherwise, transmission flow is exited.
2) asynchronous data receives, and the reception of data is completed by interrupt mode, update DMA controls in processing of breaking in the reception
Device descriptor last-of-chain processed, if user's registration interruption callback interface, the plot for directly receiving data return to user;Upper layer
When user reads data by reading data-interface, dma controller descriptor chain head is updated, the switching of buffer circle is completed,
It is as shown in Figure 3 that asynchronous data receives detailed process.
Symbol description:
IMP:Comprehensive task processor;
IOM:Input/output module;
OHCI:Open Host Control Interface;
DMA:Direct memory access.
Claims (1)
1. a kind of method for the 1394 asynchronous steaming transfer realized using DMA chain, 1394OHCI agreements support a plurality of types of DMA controls
Device processed, each type of dma controller have oneself independent register space, support at least one dma controller descriptor;
1 dma controller of table and descriptor relationship correspond to table
The dma controller that this method is received using asynchronous transmission requests and whens waiting realizes sending and receiving for asynchronous data packet,
Operation of the dma controller to buffer circle is described using dma controller descriptor chain;Each dma controller descriptor pair
Answer one can DMA buffer, DMA buffer descriptor describes the essential information of buffering area, setting hardware using the buffering area
Mode information;It is characterized in that including the following steps:
(1)Equipment initial phase:
1) 1394OHCI device hardwares initialize;
2) asynchronous transmission requests dma controller descriptor chain and the initialization that dma controller descriptor chain is received whens waiting, including it is slow
Rush the essential information in area, setting hardware uses the information such as the mode of the buffering area;
3) pointer of dma controller descriptor is set;
4) dma controller parameter is set, dma controller is started;
5) it enables 1394OHCI equipment and sends and receives interruption, enabled hosts are interrupted;
(2)Data transfer phase
1) in asynchronous data transmission phase, the buffering area for being registered to hardware is managed using buffer circle mode, and software is successively
The dma controller descriptor last-of-chain that available buffering area addition is sent in buffer circle is selected, is discharged when being sent completely
Buffering area through completing to send updates dma controller descriptor chain head, realizes the switching of buffer circle, asynchronous data hair
Send detailed process as shown in Figure 2;
2) stage is received in asynchronous data, the buffering area for being registered to hardware is managed using buffer circle mode, is based on the party
Case updates dma controller descriptor last-of-chain when finishing receiving, and user updates dma controller descriptor chain head after reading data,
Complete the switching of buffer circle.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611140239.4A CN108462651A (en) | 2016-12-12 | 2016-12-12 | A method of the 1394 asynchronous steaming transfer realized using DMA chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611140239.4A CN108462651A (en) | 2016-12-12 | 2016-12-12 | A method of the 1394 asynchronous steaming transfer realized using DMA chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108462651A true CN108462651A (en) | 2018-08-28 |
Family
ID=63221598
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611140239.4A Pending CN108462651A (en) | 2016-12-12 | 2016-12-12 | A method of the 1394 asynchronous steaming transfer realized using DMA chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108462651A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1332415A (en) * | 2000-05-16 | 2002-01-23 | 索尼公司 | Information handling unit and method, and network bridge using the same |
CN1658613A (en) * | 2004-02-20 | 2005-08-24 | 国际商业机器公司 | Method and system for facilitating inter-DSP data communications |
CN101937406A (en) * | 2009-06-29 | 2011-01-05 | 研祥智能科技股份有限公司 | Method and system for driving 1394 devices in VxWorks operating system |
US8019825B1 (en) * | 2006-12-01 | 2011-09-13 | Marvell International Ltd. | Packet buffer apparatus and method |
CN103049414A (en) * | 2012-12-28 | 2013-04-17 | 中国航空工业集团公司第六三一研究所 | Method for converting and transmitting data between FC (fiber channel) bus and CAN (controller area network) bus |
CN103064808A (en) * | 2011-10-24 | 2013-04-24 | 北京强度环境研究所 | Priority adjustable multiple-channel direct memory access (DMA) controller |
CN104461982A (en) * | 2014-12-09 | 2015-03-25 | 中国航空工业集团公司第六三一研究所 | Timed transmission processing method and timed transmission processing circuit for 1394 bus event messages |
-
2016
- 2016-12-12 CN CN201611140239.4A patent/CN108462651A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1332415A (en) * | 2000-05-16 | 2002-01-23 | 索尼公司 | Information handling unit and method, and network bridge using the same |
CN1658613A (en) * | 2004-02-20 | 2005-08-24 | 国际商业机器公司 | Method and system for facilitating inter-DSP data communications |
US8019825B1 (en) * | 2006-12-01 | 2011-09-13 | Marvell International Ltd. | Packet buffer apparatus and method |
CN101937406A (en) * | 2009-06-29 | 2011-01-05 | 研祥智能科技股份有限公司 | Method and system for driving 1394 devices in VxWorks operating system |
CN103064808A (en) * | 2011-10-24 | 2013-04-24 | 北京强度环境研究所 | Priority adjustable multiple-channel direct memory access (DMA) controller |
CN103049414A (en) * | 2012-12-28 | 2013-04-17 | 中国航空工业集团公司第六三一研究所 | Method for converting and transmitting data between FC (fiber channel) bus and CAN (controller area network) bus |
CN104461982A (en) * | 2014-12-09 | 2015-03-25 | 中国航空工业集团公司第六三一研究所 | Timed transmission processing method and timed transmission processing circuit for 1394 bus event messages |
Non-Patent Citations (4)
Title |
---|
代江波等: "《多任务并行IEEE1394协议栈设计》", 《计算机工程》 * |
张大朴: "《IEEE 1394协议及接口设计》", 《西安电子科技大学出版社》 * |
沈婷: "《基于IEEE1394的SoC软硬件协同设计和验证》", 《万方》 * |
马进等: "《基于DMA的1394总线高速数据传输实现》", 《计算机工程与设计》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1750401B1 (en) | USB 1.1 over a high speed link | |
CN106980582B (en) | Data processing method and device | |
JPH11175491A (en) | Multi-bus multiplex communication adaptor for dsp base | |
CN106155960A (en) | Shake hands and the UART serial port communication method of EDMA based on GPIO | |
CN107870662A (en) | The method of cpu reset and PCIe interface card in a kind of multi-CPU system | |
EP2389632B1 (en) | Communication protocol for sharing memory resources between components of a device | |
US9882737B2 (en) | Network system | |
US7047346B2 (en) | Transparent fiber channel concentrator for point to point technologies | |
CN106657076B (en) | TCP service implementation method and device for network name space | |
JP2814132B2 (en) | Multi-channel communication processing device | |
CN100391150C (en) | Data transfer device and data transfer method of virtual ether net device | |
CN104156332B (en) | High-performance parallel computing method based on external PCI-E connection | |
CN108462651A (en) | A method of the 1394 asynchronous steaming transfer realized using DMA chain | |
CN112148663A (en) | Data exchange chip and server | |
CN114445260B (en) | Distributed GPU communication method and device based on FPGA | |
US20130198548A1 (en) | Apparatus and method for saving power of usb device | |
JPS63157259A (en) | Establishment of communication | |
CN115374038A (en) | Interconnection method between devices compatible with PCIe structure and related devices | |
JPH0473178B2 (en) | ||
CN105718400A (en) | SPI based communication method | |
CN117251039A (en) | Equipment resetting method and device, storage medium and electronic equipment | |
JPS62121562A (en) | Data communication system | |
JPH03104348A (en) | Flow control system | |
CN207676336U (en) | Interconnecting device, telecommunication system | |
JP2564550B2 (en) | Integrated exchange |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180828 |
|
RJ01 | Rejection of invention patent application after publication |