基于USB2.0的数据采集传输系统及其应用研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
在科学研究和工业生产等场合中常需要用到数据采集和传输技术,但是传统的通信方式由于传输速度和安装麻烦等问题,严重地限制着数据采集设备的发展和应用。USB技术很好的解决了上述的缺点,以其支持热插拔和即插即用,易于扩展,占用系统资源少等特点迅速得到了广泛的应用,而且USB2.0凭借其480Mbps的理论传输速度,更是得到了人们的青睐。
     本文在深入分析和探讨了USB2.0协议的基础上,以Philips公司的ISP1581 USB2.0接口器件为硬件平台,按照USB2.0协议要求开发了基于USB2.0的数据采集传输系统,为使用USB总线技术进行数据传输建立了硬软件平台,并将该系统应用于多通道动态心电记录仪与绝缘子污秽在线监测系统中,分别实现了USB的批量和中断两种传输方式。具体来说,本文的工作主要有以下几点:
     ①设计并制作了以Philips公司的ISP1581为基础的USB2.0数据采集传输系统硬件电路。
     ②开发了USB2.0数据采集传输软件平台,主要包括USB设备固件,驱动程序以及应用程序的开发。其中固件开发用C和汇编语言混合编写,该程序主要实现了USB总线的枚举,A/D转换以及主机与设备之间的信息交流等功能;驱动程序使用Numega公司的Driverworks开发工具包进行开发;应用程序用VC++开发,实现了对设备的设置和控制、数据的读写、波形的显示以及记录的回放等功能。
     ③设计制作了基于USB2.0的多通道动态心电记录仪。主要实现了心电模拟信号的采集,电池供电设计及供电模式的切换,大容量数据的存放及管理,低功耗设计以及USB批量传输形式的具体实现等。
     ④设计制作了基于USB2.0与SMS的绝缘子污秽紫外在线监测系统。重点完成了LP-1绝缘子污秽监测仪的开发以及基于SMS和USB2.0的数据传输通道的建立与实现,并制定了监测数据的传输格式及策略。该监测系统是USB2.0数据采集传输系统中断传输形式的一个实际应用。
     本文的初衷是研究USB2.0总线技术,并以实际应用为目的,用USB来解决设备和主机的接口问题,完成数据采集和信息的交换,从而达到对USB研究和应用的结合。根据研究需要,把USB2.0总线接口技术应用到实际数据采集系统中,实现了数据采集设备与计算机之间的方便连接,使采集系统具有了USB的优势。本次USB2.0技术的成功应用,对以后研究与应用USB2.0技术提供了现实依据。
Data acquisition and transmission technology are usually applied to many situations , such as scientific research and industry. Due to the speed and difficulty of installment, the further development and application of the data acquisition instruments were confined to the traditional communication ways. As a good solution to the problems, the USB(Universal Serial Bus) technology is widely used because of the attributes of hot-plug-in, plus-and-play, easy to expand, engrossing less system resourse. The USB2.0 has been paid much attention depending on the theory transfer rate of 480Mbps.
     The data acquisition and transmission system was developed with USB2.0 technology in this paper, based on deeply analyzing of USB2.0 protocol, which built up the hardware and sofeware platform for data acquisition and transmission with USB2.0 technology. As for application, the system was use in multicenter dynamic ECG recorder and contaminative insulators on-line detecting system, and the bulk and interrupt transmission were carried out in these system respectively. In detail, the main achievements of the research are shown below:
     ①The hardware circuit of system was designed, which based on ISP1581 USB2.0 interface chip of philips corporation. The bus work mode and data accessing mode were mainly considered in the process of design.
     ②The software platform of system was built up, which made up of fireware, device driver and application program. The fireware was complied with language C, whose primary functions were USB bus enumeration, A/D conversion and information communication between device and host computer. The device driver was developed with the saddlebag driverworks of Numega company. The application program was developed to control device, read-write data, display waveform and read-back record.
     ③The multicenter dynamic ECG recorder based on USB2.0 technology was designed, which mainly completed acquisition of ECG analog signals, switch of power supply mode, data management and data transmission with USB bulk transfer mode.
     ④The contaminative insulators on-line detecting system based on USB2.0 and SMS technology was designed, which was a practical application of USB2.0 data acquisition and transmission system with its interrupt transfer type. The develop of LP-1 insulators on-line detecter and the establishing of data transfer channel were the most important part in the whole system. The format of detecting data was set down for SMS transmission in this system.
     The paper combine USB2.0 study with its practical application, in order to solve interface problem between device and host computer, and complete data acquisition and information communication. Based on the need of subject, USB2.0 technologty is applied to practical data acquisition system, which made convenient connect between acquisition device and host computer, and provides USB advantage to acquisition device. The successful application of USB2.0 technology provides a good foundation for further study and application of USB.
引文
[1] 赵培华, 冯永祥. USB-RS485 模式在地震数据采集系统中应用, 电脑开发与应用: 2003 年, 第 16 卷第 9 期: 21~25
    [2] 张念淮, 江浩.《USB 总线接口开发指南, 北京, 国防工业出版社(第一版): 2001 年
    [3] 许永和等.《EZ-USB FX 系列单片机 USB 外围设各设计与应用》, 北京, 北京航空航人大学出版社(第一版): 2002 年: 3~5
    [4] Don Aderson. Universal Serial Bus System Archecture (Second Edition), Mindanies Inc.: 2001: 3~7
    [5] 萧世文.《USB2. 0 硬件设计》, 北京, 清华大学出版社(第一版): 2002 年: 2~10
    [6] 颜荣江等.《EZ-USB 2100 系列单片机原理编程及应用, 北京, 北京航空航天大学出版社(第一版): 2002 年: 1~4
    [7] On-The-Go Supplement to the USB2. 0 Specification, Revision 1.0, www. usb. org, Dec 18, 2001: 1~30
    [8] Kosta Koeman. Understanding USB On-The-Go, www. ednmag. com, 2001: 2~10
    [9] Don Aderson 著, 姜汉龙等译.《USB 系统体系》,中国电力出版社(第一版): 2001 年
    [10] 周立功 等,PDIUSBD12 USB 固件编程与驱动开发,北京:北京航空航天大学出版社,2003
    [11] Philips Semiconductors - Asia Product Innovation Centre. Firmware Programming Guide for ISP1581: 1998
    [12] Philips Semiconductors. ISP1581 Users Manual: 2001
    [13] CYGNAL Integrated Products Inc. DataSheet for Mixed-Signal ISP FLASH MCU Family C8051F020/1/2/3: 2003
    [14] 潘琢金等.《C8051Fxxx 高速单片机原理及应用》, 北京, 北京航空航天大学出版社: 2002
    [15] Woodward B, Istepanian RSH, Richards CI. Design of a telemedicine system using a mobile telephone. IEEE Transactions on Information Technology in Biomedicine: 2001, 5 (1): 13~15
    [16] Toral SL, Quero JM, Perez EM, et al. A microprocessor based system for ECG telemedicine and telecare. Materials Research Society Symposium–Proceedings: 2001, 626 (4): 526~529
    [17] 李军怀. 基于 Internet 的远程医疗系统设计与实现,计算机工程与应用: 2002, 8: 30~32
    [18] 赵负图.《信号采集与处理集成电路手册》, 化学工业出版社: 2002 年 9 月
    [19] 肖忠祥.《数据采集原理》, 西北工业大学出版社: 2001 年 2 月
    [20] 武安河,周利莉《.Windows 设备驱动程序(VxD 与 WDM)开发实务》,电子工业出版社: 2001年 9 月(第一版)
    [21] 贝克等著, 施诺等译.《Windows 2000 设备驱动程序设计指南》, 机械工业出版社: 2001 年(第二版)
    [22] 刘俊涛等. WDM 模式下 USB 设备驱动程序的设计, 计算机工程与设计: 2003, 24(6): 28~30
    [23] David J. Kruglinski,Scot Wingo,George Shepherd著, 希望图书创作室译. Programming Visual C++技术内幕(第五版修订版), 北京, 北京希望电子出版社: 1998
    [24] Peter Norton, Rob McGregor著, 孙凤英 等译. MFC开发Windows95/NT应用程序, 北京, 清华大学出版社: 1998
    [25] Lee,R.C, Tepfenhart, W.M 著, 麻志毅, 蒋严冰译. C++面向对象开发(第二版), 北京, 机械工业出版社: 2002
    [26] P. W. Hsia, J. M. Jenkns, Y Shimoni. An Automated System for ST Segment and Arrhythmia Analysis in Exercise Radionuclide Ventriculography, IEEE Trans. on Biomedical Engineering: vol. BME-33, NO. 6, pp. 585-593, June, 1986
    [27] 马言臣, 减明云, 马言邦. 对动态心电监护系统进行检测的探讨, 中国计量: 1998, 3: 32~33
    [28] 余学飞等.《医学电子仪器原理与设计》, 北京, 华南理工大学出版社: 2000
    [29] 陈大钦等,《模拟电子技术基础》, 北京, 高等教育出版社: 2000
    [30] 王恩美, 范鑫等. 一种新型心电信号采集及分析系统, 仪器仪表学报: 2001, 22 (4):368~370
    [31] 吕旭东, 段会龙. 高性能动态心电回放分析系统, 中国医疗器械杂志: 2001,18(3):261~265
    [32] 吴晓, 钱宗才, 张孝勇. 便携式动态心电记录仪的研制, 第四军医大学学报: 1998, 19: 40 ~ 42
    [33] 何立民.《单片机高级教程》, 北京, 北京航空航天大学出版社: 2000
    [34] 胡兵, 陶生桂, 朦克吐. 开关电源 EMC 设计中磁性元件的选用, 通信电源技术: 2004 年,第 21 卷(第 3 期): 17~21
    [35] Hubing T, Drewniak J L, Van Doren T P, et al. Power bus decoupling onmultilaver PCB [J].IEEE Trans EMC: 1995, 37 (2): 155~166
    [36] 杨志亮. Protel 99SE 电路原理图设计技术, 西安, 西北工业大学出版利: 2002
    [37] 杨保初等.《高电压技术》, 重庆, 重庆大学出版社: 2002
    [38] 清华大学,西安交通大学.《高电压绝缘》, 北京: 电力工业出版社
    [39] 陈耀高, 邓敏, 林力辉. 高压绝缘子在线监测系统简析, 电网技术: 2005, 25(11): 83~85
    [40] Weiguo Que and Sebo, S.A. Electric field and potential distributions along dry and clean non-ceramic insulators. 2001 Electrical Insulation Conference and Electrical Manufacturing & Coil Winding Conf.: 437~440
    [41] Jermendy, L. and Fogarasi, I., Detection of insulator ageing, 1999. PowerTech Budapest 99. International Conference on Electric Power Engineering: 128
    [42] Kikuchi, T., Nakauchi, H., Matsuoka, R., Akizuki, M.. Remote sensing system for faulty suspension insulator units, Properties and Applications of Dielectric Materials, 1997., Proceedings of the 5th International Conference, 1997: 766~769 vol.2
    [43] Hamamatsu Photonics K.K., Electron Tube Center, Flamse Sensor Uv Tron? R2868,U.S.A
    [44] 陈章其. 用于火焰探测的紫外光敏管, 传感技术学报: 1996, 1: 55~59
    [45] 郭琳等. 输电线路不良绝缘子检测方法分析, 电测与仪表: 1994, 8: 18~20
    [46] 柳燕. 大气臭氧层、紫外辐射与人类健康, 地球物理学进展: 1998, 13(3): 103~110
    [47] 黄晓玲. 紫外型火焰检测器的研制, 仪器仪表学报: 1999, 20 (5) : 23~25
    [48] 顾乐观, 孙才新.《电力系统的污秽绝缘》, 重庆, 重庆大学出版社: 1990
    [49] 李晓峰. 污秽电介质表面电特性及新型绝缘子的研究, 华中科技大学博士学位论文: 2003
    [50] SIEMENS Cellular Engines, AT Command Set, DocID: TC3X_ATC_01_V04.00
    [51] 陈东林, 谭云兰. 基于 GSM 短消息的编码方法及其编程实现, 计算机现代化: 2006 年第 3期, pp: 115~117
    [52] 陈东林, 谭云兰. 基于GSM短消息的解码方法及其编程实现, 井冈山学院学报: 第26卷第3 期, 2005, pp: 12~14

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700