摘要
目前对适合于嵌入式平台的网络程序进行调试时,由于嵌入式环境的封闭性、网络协议栈与网络通信的复杂性,调试工作费时费力,效果不一定好。文中在VisualC++开发环境下,设计了一套运行在PC端的网络平台。该平台使用MFC开发应用模块,通过将LwIP协议栈移植PC端,用WinPcap实现了通过Windows驱动传递网络信息。在PC端模拟了嵌入式的运行环境,并实现了嵌入式代码的单步调试与跟踪。这样就可以把新开发的嵌入式网络应用首先在PC上调试开发,最后移植到小型嵌入式平台上,可以很有效地缩短软件开发的时长。
Concerning the fact that present network application developed for embedded operating systems is time-consuming and not functioning well when debugging due to the closure of embedded environment,as well as the the complication between protocol stack and network communications.This paper focuses on the design of PC-based network platform under the development environment of VisualC++.The platform applies MFC application module to realize the transmittion of network information through Windows driver with the help from WinPcap by porting LwIP protocol stack to PC terminal.To achieve this,we simulate an embedded operating environment on PC terminal to implement single-step debugging and tracking of embedded code.Therefore,the newly developed embedded network application could be debugged on PC terminal in the first place before porting it to small-scaled embedded platform by which the time needed in software development would be shortenedeffectively.
作者
张青青
ZHANG Qing-qing(Xianyang Vocational Technical College,Xianyang 712000,Shaanxi Province,China)
出处
《信息技术》
2021年第9期160-164,共5页
Information Technology