首页 | 本学科首页   官方微博 | 高级检索  
     

通信协议设计与实现
引用本文:冯怀迪,周亚军.通信协议设计与实现[J].机电工程,2009,26(11):91-93.
作者姓名:冯怀迪  周亚军
作者单位:杭州电子科技大学,自动化学院,浙江,杭州,310018
摘    要:为了实现一台PC机对多台以DSP为主处理器的运动控制器的串行通信,设计了一种用RS485总线串行的通信方案,实现了系统硬件接口,制定了包格式及通信协议,同时给出了部分DSP程序,然后在VC++的环境中利用MSComm控件实现了上位机软件的编程。实际应用结果表明,该协议能可靠得用于PC机与多台运动控制器间的串行通信,能很好得收/发运动控制指令和运动状态。

关 键 词:串行通信  RS-485  MSComm  DSP

Design and implementation of communication protocol
FENG Huai-di,ZHOU Ya-jun.Design and implementation of communication protocol[J].Mechanical & Electrical Engineering Magazine,2009,26(11):91-93.
Authors:FENG Huai-di  ZHOU Ya-jun
Affiliation:(College of Automation, Hangzhou Dianzi University, Hangzhou 310018, China)
Abstract:Aiming at realizing serial communication between single PC and several DSP-based motion controllers, the communication method based on RS-485 bus was designed, the system hardware interface was realized, packet format and communication protocol were formulated, meanwhile some DSP code was given, then in the VC + + environment, using MSComm control, the PC software programmed was realized. The result indicates that this protocol is reliable between single PC and several motion controllers and it can be a very good one to receive and send motion control command and motion situation.
Keywords:RS-485  MSComm  DSP
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号