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

基于uC/OS+LwIP的网口转串口模块的实现
引用本文:龙海南,梁朝博.基于uC/OS+LwIP的网口转串口模块的实现[J].电力自动化设备,2007,27(8):113-114.
作者姓名:龙海南  梁朝博
作者单位:河北大学,电子信息工程学院,河北,保定,071002
摘    要:采用S3C44B0芯片为处理器,利用以太网中TCP协议,设计一种网口转串口模块,实现了数据传输方式的转换,并给出了系统框图。软件采用uC/OS LwIP实时多任务嵌入式系统。软件主要实现5个任务:时钟初始化/操作系统初始化任务,修改IP、子网掩码、网关的菜单任务,LwIP初始化任务,网口初始化任务,网口向串口、串口向网口发送数据任务。给出了主函数和主程序流程图。实际应用效果良好。

关 键 词:TCP/IP协议  S3C44B0  LwIP  uC/OS  网口  串口
文章编号:1006-6047(2007)08-0113-02
收稿时间:2007-01-29
修稿时间:2007-04-27

Adaptor between Ethernet and serial ports based on uC/OS and LwIP
LONG Hai-nan,LIANG Zhao-bo.Adaptor between Ethernet and serial ports based on uC/OS and LwIP[J].Electric Power Automation Equipment,2007,27(8):113-114.
Authors:LONG Hai-nan  LIANG Zhao-bo
Affiliation:College of Electronic and Information Engineering,Hebei University,Baoding 071002,China
Abstract:An adaptor is designed for data transfer between Ethernet and serial ports,which uses S3C44B0 as its processor and applies TCP protocol.The system block diagram is presented.uC /OS LwIP real-time multitask embedded system is adopted to mainly implement five tasks:clock initialization /operating system initialization;menu of IP modification,subnet addresses and gateway;LwIP initialization;interface initialization;data transfer between Ethernet and serial ports.The main function and main flowchart are given.It runs well in practice.
Keywords:TCP /IP protocol  S3C44B0  LwIP  uC /OS  network port  serial port
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《电力自动化设备》浏览原始摘要信息
点击此处可从《电力自动化设备》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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