引用本文:龙海南,梁朝博.基于uC/OS+LwIP的网口转串口模块的实现[J].电力自动化设备,2007,27(8):113-114
.Adaptor between Ethernet and serial ports based on uC/OS and LwIP[J].Electric Power Automation Equipment,2007,27(8):113-114
【打印本页】   【HTML】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 3573次   下载 1437 本文二维码信息
码上扫一扫!
基于uC/OS+LwIP的网口转串口模块的实现
龙海南,梁朝博
作者单位
摘要:
采用S3C44B0芯片为处理器,利用以太网中TCP协议,设计一种网口转串口模块,实现了数据传输方式的转换,并给出了系统框图。软件采用uC/OS LwIP实时多任务嵌入式系统。软件主要实现5个任务:时钟初始化/操作系统初始化任务,修改IP、子网掩码、网关的菜单任务,LwIP初始化任务,网口初始化任务,网口向串口、串口向网口发送数据任务。给出了主函数和主程序流程图。实际应用效果良好。
关键词:  TCP/IP协议,S3C44B0,LwIP,uC/OS,网口,串口
DOI:
分类号:TN919
基金项目:
Adaptor between Ethernet and serial ports based on uC/OS and LwIP
LONG Hai-nan  LIANG Zhao-bo
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.
Key words:  TCP /IP protocol,S3C44B0,LwIP,uC /OS,network port,serial port

用微信扫一扫

用微信扫一扫