与LPC214x处理器USB方式通信的编程技术
DOI:
作者:
作者单位:

胜利油田博士后科研工作站,中石化胜利石油工程有限公司测井公司,中石化胜利石油工程有限公司测井公司动态模拟实验室,中石化胜利石油工程有限公司测井公司动态模拟实验室

作者简介:

通讯作者:

中图分类号:

TP311.52

基金项目:

中国博士后科学基金


The Programming Techniques of Communicating with LPC214x Processor in USB Mode
Author:
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

Fund Project:

China Postdoctoral Science Foundation

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    USB通信具有更方便、灵活、高效等特点,逐渐代替传统的RS-232、RS-485等通信方式,可用来解决测井过程数据传输量大的难题。主控芯片为LPC214x处理器的地面面板系统可与电脑以USB通信方式通信,在上位机中用C#、C++等语言进行编程,分别调用动态库EasyUSB214x,实现了计算机与LPC214x处理器USB方式通信,并阐述了编程过程的实现方法及其关键技术。通过测试后发现,利用C++调用动态库进行USB通信的程序运行时较为稳定。测井软件主体功能程序利用C#开发,C++开发USB通信程序,C#与C++组合开发的编程方法解决了测井数据高速传输的需求。

    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.

    参考文献
    相似文献
    引证文献
引用本文

张守伟,臧德福,张付明,刘树勤.与LPC214x处理器USB方式通信的编程技术计算机测量与控制[J].,2014,22(12).

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2014-05-11
  • 最后修改日期:2014-06-03
  • 录用日期:2014-06-04
  • 在线发布日期: 2014-12-10
  • 出版日期:
文章二维码