摘要
USB通信具有更方便、灵活、高效等特点,逐渐代替传统的RS-232、RS-485等通信方式,可用来解决测井过程数据传输量大的难题;主控芯片为LPC214x处理器的地面面板系统可与电脑以USB通信方式通信,在上位机中用C#、C++等语言进行编程,分别调用动态库EasyUSB214x,实现了计算机与LPC214x处理器USB方式通信,并阐述了编程过程的实现方法及其关键技术;通过测试后发现,利用C++调用动态库进行USB通信的程序运行时较为稳定;测井软件主体功能程序利用C#开发,C++开发USB通信程序,C#与C++组合开发的编程方法解决了测井数据高速传输的需求。
With more convenient,flexible and efficient features,USB communication is gradually replacing the traditional communications such as RS-232,RS-485 or other means.And it can be used to solve the problem of large data transmission in the logging process.The ground panel system,its master processor chip is LPC214x,can be communicated with computer in USB mode.So USB communicating is realized between the computer and the processor of LPC214x by the ways of C #,C+ + languages programming in which dynamic library EasyUSB214x is used separately in the computer system.And the programming methods and its key technologies are described thoroughly.The test results show that USB communication program is more stable which is programmed by C+ + using dynamic library at runtime.The main function of the logging software is programed by using of C# language,and USB communication program is developed by C++.The combined development of C# and C+ + software has been used to solve the communication needs of high-speed transmission of data in the logging.
出处
《计算机测量与控制》
北大核心
2014年第12期4194-4196,共3页
Computer Measurement &Control
基金
中国博士后科学基金资助项目(2013M541956)
中石化石油工程技术服务有限公司前瞻性科研项目(JP13013)
中石化胜利石油工程有限公司科研项目(SKC1401)