›› 2017, Vol. 30 ›› Issue (4): 40-.

• 论文 • 上一篇    下一篇

基于WinDriver的高速PCI卡驱动开发

刘敬辉 1,简献忠 1,肖儿良 1,姜冠祥 2,蔡留美 2,郑照平 2   

  1. (1.上海理工大学 光电信息与计算机工程学院,上海 200093;2.上海雄博精密仪器股份有限公司,上海 200444)
  • 出版日期:2017-04-15 发布日期:2017-04-11
  • 作者简介:刘敬辉(1991-),男,硕士研究生。研究方向:嵌入式系统。简献忠(1969-),男,博士,教授。研究方向:新能源等。
  • 基金资助:

    上海市宝山区科委产学研基金资助项目(bkw2015130)

Design on Driver Program of High Speed PCI Card Based on WinDriver

LIU Jinghui 1,JIAN Xianzhong 1,XIAO Erliang 1,JIANG Guanxiang 2,CAI Liumei 2,ZHENG Zhaopin 2   

  1. (1. School of Optical-Electrical and Computer Engineering, University of Shanghai for Science and Technology, Shanghai 200093,China; 2.Shanghai SUPORE Instruments Co.Ltd, Shanghai 200444,China)
  • Online:2017-04-15 Published:2017-04-11

摘要:

针对目前大数据背景下如何提高PCI卡高速传输稳定性的问题,文中提出了基于内核中断处理及DMA传输的PCI卡驱动程序设计方法。在WinDriver生成驱动框架的基础上,采取基于VC++6.0平台进行了DMA 数据传输的实现和中断响应处理的PCI驱动程序开发。将驱动程序封装为动态链接库,用户程序调用DLL驱动PCI卡,进行高速数据传输检测。实验发现,当数据传输速度达到131 MB/s时,驱动程序运行稳定可靠不丢帧不错帧,为高速稳定PCI卡驱动程序的设计供了一种思路。

关键词: WinDriver, PCI, 驱动程序, DLL

Abstract:

The method of designing the driver of PCI card was proposed which based on the kernel interrupt handling and DMA transfers, with regard to the problem of improve the stability of high-speed transmission PCI card and the environment of big data. PCI driver had been designed at platform of VC++6.0, which Based on the framework of driver generated by WinDriver, include the DMA data transfer and interrupt response processing. Then the driver was encapsulated into a DLL. User program drove PCI card by calling DLL, and processed the data transfers and detection. It was found that when the speed reached 131 MB/s, the driver was stable and reliable without losing frame or error frame, which provided a new way for the driver of high-speed and stable PCI card.

Key words: WinDriver, PCI, driver, DLL

中图分类号: 

  • TP319