• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2011, Vol. 33 ›› Issue (5): 127-131.

• 论文 • 上一篇    下一篇

嵌入式机器视觉操作终端通信模块的设计与实现

陈祎1,白瑞林1,冯伟1,吉峰2   

  1. (1.江南大学智能控制研究所,江苏 无锡 214122;2.无锡信捷电气有限公司,江苏 无锡 214072)
  • 收稿日期:2010-04-16 修回日期:2010-08-25 出版日期:2011-05-25 发布日期:2011-05-25
  • 作者简介:陈祎(1985),男,湖北孝感人,硕士生,研究方向为嵌入式机器视觉理论与应用。白瑞林(1955),男,黑龙江双城人,硕士,教授,研究方向为智能控制与嵌入式系统。冯伟(1983),男,湖北孝感人,硕士,讲师,研究方向为嵌入式机器视觉理论与应用。
  • 基金资助:

    国家自然科学基金资助项目(60804013)

Design and Implementation of the Communication Module for Embedded Machine Vision Operating Terminals

CHEN Yi1,BAI Ruilin1,FENG Wei1,JI Feng2   

  1. (1.Research Centre of Control Science and Engineering,Jiangnan University,Wuxi 214122;
    2.Wuxi Xinjie Electric Automation Co., Ltd, Wuxi 214072,China)
  • Received:2010-04-16 Revised:2010-08-25 Online:2011-05-25 Published:2011-05-25

摘要:

机器视觉系统通信数据量大、实时性要求高且依赖PC机,针对这些特点本文设计并实现了一种嵌入式操作终端通信模块。该模块采用三星2440作为主芯片,双网卡硬件结构,运行WinCE5.0操作系统,使用Modbus/TCP和自定义协议,通过增加自定义功能码和文件传输规范,使基于客户端/服务器模式的操作终端与智能相机能够一次通信大数据量的文件,很好地满足了视觉系统通信需求。测试表明:该通信模块正确读取和显示相机的配置信息和检测过程中输出的实时运行参数,接收一帧480*360灰度图像平均耗时82ms,具有良好的实时性和可靠性。该模块已成功应用于工业现场,取得了良好的效果。

关键词: 机器视觉, 操作终端, 双网卡, Modbus/TCP, 自定义协议

Abstract:

A machine vision system’s communication has large amount of data, requires realtime processing and is PCdependent. According to these characteristics ,this paper designs and implements a communication module for embedded machine vision operating terminals. The module adopts the Samsung 2440 as CPU,dualNIC,WinCE5.0 OS,uses the Modbus/TCP and custom protocol, and adds the custom function codes and file transfer protocol.All these means to make the file with large data sets transfer availably between the C/S mode operating terminals and the smart camera. So it is better to meet the communication needs of machine vision systems .The test results show the module can intelligently receive the camera’s configuration parameters . It takes 82ms to receive a gray image with 480*360 pixels on the average, and is highly reliable and realtime. Now the module has been successfully used in real industry fields.

Key words: machine vision;operating terminals;dualNIC;Modbus/TCP;custom protocol