作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2002, Vol. 28 ›› Issue (03): 274-275.

• 论文 • 上一篇    下一篇

用VB实现PC与PDA的串行通信

尚建华,黄山   

  1. 四川大学西区自动化系,四川大学西区自动化系 成都 610065
  • 发布日期:2002-03-25

Realization of Serial Communication Between PC and PDA Using Visual Basic

SHANG Jianhua, HUANG Shan   

  1. (Department of Automation,Sichuan University
  • Published:2002-03-25

摘要: 分析了串行通信控件的特点及和在传输数据中的差异。提出利用型变量处理通信数据,消除了使用型变量处理VBPCPDABytevariant通信数据的缺陷。还简要讨论了传输协议的制定,解决了多种命令和内容传输的问题,真正实现了机和的串行通信。PCPDA

关键词: 串行通信, Visual Basic, MSCOMM控件, PDA, 协议

Abstract: This paper analyzes the characteristics of serial communication control unit of VB and the difference of data transmission between PC and PDA. This method that using Byte variable handles the data remedies the defects of using variant variable to handle the data. It also discusses the transmission protocol and resolves many varieties of question of order and content transmission and realizes the serial communication between PC and PDA.

中图分类号: