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

›› 2003, Vol. 29 ›› Issue (21): 35-37.

• 论文 • 上一篇    下一篇

基于Rabbit 2000的Socket网络编程

张广辉,徐江华,邵惠鹤   

  1. 上海交通大学自动化研究所,上海交通大学自动化研究所,上海交通大学自动化研究所 上海 200030, 上海 200030, 上海 200030
  • 发布日期:2003-11-15

Network Programming of Socket Based on the Rabbit 2000

ZHANG Guanghui, XU Jianghua, SHAO Huihe   

  1. (Institute of Automation, Shanghai Jiaotong University, Shanghai 200030)
  • Published:2003-11-15

摘要: 介绍了Rabbit 2000微处理器和Dynamic C开发系统的优点,并对基于RCM2200模 块开发的交换式以太网测控系统进行了说明。分析了使用阻塞型函数实现通信的方式和使用 非阻塞型函数实现通信的方式,并给出了两种编程方式的主要流程,结合实际通信控制系统 给出了使用阻塞型函数实现通信的仿真结果。

关键词: 交换式以太网, Rabbit2000, Socket, 动态C

Abstract: Rabbit2000 microprocessor and Dynamic C-language development system are introduced in this paper. The measurement and control system, based on the switched Ethernet with development on RCM2200 module, are described. To open TCP socket can adopt blocking functions or functions without blocking. Two methods are analyzed, and the flowcharts according to them are illustrated. In the last, the simulation result of communication and control system with blocking functio ns is given.

中图分类号: