江汉大学学报(自然科学版) ›› 2014, Vol. 42 ›› Issue (3): 63-66.

• 机电与材料科学 • 上一篇    下一篇

基于无线传输的条形码检错系统设计

李敏,周先飞,钱峰   

  1. 芜湖职业技术学院 信息工程学院,安徽 芜湖 241006
  • 出版日期:2014-06-25 发布日期:2014-07-03
  • 作者简介:李敏(1977—),男,讲师,硕士,研究方向:检测技术与自动化装置。
  • 基金资助:
    安徽省校企合作实践教育基地项目(2012sjjd047);安徽省信息技术专业群教学团队项目(2013jxtd051)

Design of Barcode Error Detective System Based on Wireless Transmission

LI Min,ZHOU Xianfei,QIAN Feng   

  1. Institute of Information Engineering,Wuhu Institute of Technology,Wuhu 241006,Anhui,China
  • Online:2014-06-25 Published:2014-07-03

摘要: 为了检测产品条形码是否正确,采用PC和条形码读码器检测、比对条形码数据,在PC端采用VB软件开发友好的人机界面显示条形码值以及设置相应参数,并进行数据的记录保存。同时将处理结果通过串口发送至飞思卡尔单片机,单片机再将信号通过SPI 总线传输至nRF24L01 无线模块发送端,接收端的nRF24L01无线模块将信号通过SPI总线传至单片机,根据条形码正确与否控制步进电机运行,并带动码盘输出条形码。该系统操作简单,可用于教学实训场合或企业产品质检环节。

关键词: 无线传输, 条形码, 检错系统

Abstract: In order to test the correctness of barcode,the system uses PC and reader of barcode to detect and compare the data of barcode,and uses man-machine interface which is developed by VB software to display the barcode value and set the appropriate parameters,then records and keeps data. Meanwhile the results are sent to Freescale single chip microcomputer through the serial port,then the signal is transferred to the nRF24L01 wireless module sender through SPI bus. At last,the signal is sent into the single chip microcomputer by the nRF24L01 wireless module through SPI bus,then controls the operation of stepper motor according to the correctness of barcode and output the barcode. The system is easy to operate,can be used for teaching and product quality detection.

Key words: wireless transmission, barcode, error detective system

中图分类号: