高速串口的软件设计模式研究
DOI:
CSTR:
作者:
作者单位:

(北京机电工程研究所,北京 100074)

作者简介:

姚蓓窈(1989-),女,陕西人,硕士在读,主要从事通信与遥测技术方向的研究。[FQ)]

通讯作者:

中图分类号:

TN929.5

基金项目:


Software Design Model of High Speed Serial Communication
Author:
Affiliation:

(Beijing Research Institute of Mechanical and Electrical Engineering, Beijing 100074,China)

Fund Project:

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

    高速串口具有较大数据吞吐量,在耗时可观的任务环境中,极易产生因读取串口缓存不及时而导致数据丢失的现象;针对该缺陷,提出了一种适用于高速串口的上位机软件设计模式,采用Windows API和重叠I/O方法搭建串口数据的读写操作;该模式运用多线程技术,对其数据一致性问题进行了论证;对于使用串口传输JEPG图像压缩码流的特殊应用场合,进行了优化设计;对使用波特率为2.5M的高速串口传输尺寸为640*480、帧频为12Hz、压缩比为12.5的图像测试表明,提出的设计模式满足工程应用需求。

    Abstract:

    The high-speed serial communication works with a mass of data streams. The buffer overflows in result of reading delayed in situation of time-limited tasks. The paper proposed a software design model to solve the problem. The design model used Windows API and overlapped functions to implement reading and writing operation. Multithread technique was used and synchronization was discussed. For the application of transfer image streams compressed by JPEG with serial communication, the design model was optimized. The test of transferring image data with size 640*480, frame frequency 12Hz, compression ratio 12.5 proves that the proposed design model meets the needs of engineering application.

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

姚蓓窈,向东游,张华栋.高速串口的软件设计模式研究计算机测量与控制[J].,2014,22(7):2318-2320.

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