首页 | 本学科首页   官方微博 | 高级检索  
     

与LPC214x处理器USB方式通信的编程技术
引用本文:张守伟,臧德福,张付明,刘树勤.与LPC214x处理器USB方式通信的编程技术[J].计算机测量与控制,2014,22(12).
作者姓名:张守伟  臧德福  张付明  刘树勤
作者单位:1. 胜利油田博士后科研工作站,山东东营,257096
2. 中石化胜利石油工程有限公司测井公司,山东东营,257096
基金项目:中国博士后科学基金资助项目,中石化石油工程技术服务有限公司前瞻性科研项目,中石化胜利石油工程有限公司科研项目
摘    要:USB通信具有更方便、灵活、高效等特点,逐渐代替传统的RS-232、RS-485等通信方式,可用来解决测井过程数据传输量大的难题;主控芯片为LPC214x处理器的地面面板系统可与电脑以USB通信方式通信,在上位机中用C#、C++等语言进行编程,分别调用动态库EasyUSB214x,实现了计算机与LPC214x处理器USB方式通信,并阐述了编程过程的实现方法及其关键技术;通过测试后发现,利用C++调用动态库进行USB通信的程序运行时较为稳定;测井软件主体功能程序利用C#开发,C++开发USB通信程序,C#与C++组合开发的编程方法解决了测井数据高速传输的需求。

关 键 词:测井  地面面板  LPCx  USB通信  C#编程  C++编程
收稿时间:2014/5/11 0:00:00
修稿时间:2014/6/3 0:00:00

The Programming Techniques of Communicating with LPC214x Processor in USB Mode
ZANG De-fu and LIU Shu-qin.The Programming Techniques of Communicating with LPC214x Processor in USB Mode[J].Computer Measurement & Control,2014,22(12).
Authors:ZANG De-fu and LIU Shu-qin
Affiliation:Working station for postdoctoral scientific research in Shengli Oilfield,Dongying Shandong,Logging Company of Shengli Petroleum Engineering Co,Ltd SINOPEC,Dongying Shandong,Dynamic Simulation Laboratory of Logging Company of Shengli Petroleum Engineering Co,Ltd SINOPEC,Dongying Shandong,Dynamic Simulation Laboratory of Logging Company of Shengli Petroleum Engineering Co,Ltd SINOPEC,Dongying Shandong
Abstract: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 run time. 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.
Keywords:logging  ground panel  LPC214x  USB communication  C# programming  C++ programming
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《计算机测量与控制》浏览原始摘要信息
点击此处可从《计算机测量与控制》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号