计算机与现代化

• 网络与通信 • 上一篇    下一篇

基于uC/OS-II的嵌入式网络通信模块

  

  1.  
    (1.兰州交通大学光电技术与智能控制教育部重点实验室,甘肃兰州 730070; 2.甘肃农业大学信息科学技术学院,甘肃 兰州 730070)
  • 收稿日期:2013-09-26 出版日期:2014-02-14 发布日期:2014-02-14
  • 作者简介:郝玉胜(1986-),男,甘肃武威人,兰州交通大学光电技术与智能控制教育部重点实验室硕士研究生,研究方向:嵌入式实时操作系统; 逯玉兰(1986-),女,甘肃武威人,甘肃农业大学信息科学技术学院讲师,硕士研究生,研究方向:预测控制。

 
Embedded Network Communication Module Based on uC/OS-II

  1.  
    (1. Key Laboratory of Opto-Technology and Intelligent Control, Ministry of Education, Lanzhou Jiaotong University, Lanzhou 730070, China;
    2. College of Information Science and Technology, Gansu Agricultural University, Lanzhou 730070, China)
  • Received:2013-09-26 Online:2014-02-14 Published:2014-02-14

摘要: 为了给嵌入式系统提供一个节省资源且体积微小的网络通信模块,在移植了uC/OS-II实时操作系统的基础上,设计并实现基于嵌入式以太网控制器ENC28J60和uIP协议栈的嵌入式TCP/IP协议通信模块,详述ENC28J60寄存器配置方法,提供芯片初始化代码,实现ENC28J60驱动程序并给出uIP协议的使用方法。另外,针对uIP在UDP通信过程中存在的问题提出一种解决思路并予以实现。测试结果显示,PC机和开发板之间能够建立TCP连接,可以进行UDP通信。

关键词: uC/OS-II, 嵌入式网络通信模块, ENC28J60, uIP协议栈

Abstract: In order to provide a small and resource saving network communication module for embedded system, after the transplantation of uC/OS-II, this paper introduces an embedded network communication module based on ENC28J60 and uIP stack, detailedly describes the register configuration methods, provides the chip initialization code, implements the driver of ENC28J60 and shows how to use uIP stack. Besides, a method is also proposed and implemented to fix the bug of uIP in UDP communication. The test results show that a TCP connection can be established between PC and evaluation board, UDP communication can also be carried on.

Key words: uC/OS-II, embedded network communication module, ENC28J60, uIP stack

中图分类号: