首页> 中文期刊> 《微型电脑应用》 >用VB编写串口通讯程序实现应用程序与扫描器通讯

用VB编写串口通讯程序实现应用程序与扫描器通讯

         

摘要

电子标签作为一种自动识别技术从前年起在国外已开始了广泛的应用,国内才刚刚开始,它以其独特的性能和较低的价格,在社会的许多方面将会得到广泛应用。例如,它可用于身份鉴别,证件鉴别、公费医疗卡识别、也可用在银行存折上代替磁卡,用在物流管理上代替条码等。本文介绍PC机与电子标签的扫描器进行通讯的解决方案,主要解决二个问题:第一、运行在PC机上的应用程序如何通过串口与扫描器通讯?第二、应用程序和扫描器以何种方式交换数据?解决第一个问题,如用VB编写程序,可用VB6.0中的MSComm控件,编程比较方便、快捷;解决第二问题,可根据扫描器的通讯格式说明,按其功能说明格式编写程序。文章提供了一个己在VB6.0中调试通过的实例。%Smart labels have been widely used as automatic identifying means since 1998. They prove promising due to their unique functions and low prices. For example, they are used for identification of various private cards. This paper proposes a solution to communication between the application software of a PC and scanners of smart labels. It mainly discusses two problems. First, communication of application software on the PC through a serial ports with scanners is enabled by using, e. G.,MSComm Control. Second, their data exchanging is enabled by using Visual BASIC 6.0 according to the communication format specification of the scanners. An example is also illustrated.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号