英语论文网

留学生硕士论文 英国论文 日语论文 澳洲论文 Turnitin剽窃检测 英语论文发表 留学中国 欧美文学特区 论文寄售中心 论文翻译中心 我要定制

Bussiness ManagementMBAstrategyHuman ResourceMarketingHospitalityE-commerceInternational Tradingproject managementmedia managementLogisticsFinanceAccountingadvertisingLawBusiness LawEducationEconomicsBusiness Reportbusiness planresearch proposal

英语论文题目英语教学英语论文商务英语英语论文格式商务英语翻译广告英语商务英语商务英语教学英语翻译论文英美文学英语语言学文化交流中西方文化差异英语论文范文英语论文开题报告初中英语教学英语论文文献综述英语论文参考文献

ResumeRecommendation LetterMotivation LetterPSapplication letterMBA essayBusiness Letteradmission letter Offer letter

澳大利亚论文英国论文加拿大论文芬兰论文瑞典论文澳洲论文新西兰论文法国论文香港论文挪威论文美国论文泰国论文马来西亚论文台湾论文新加坡论文荷兰论文南非论文西班牙论文爱尔兰论文

小学英语教学初中英语教学英语语法高中英语教学大学英语教学听力口语英语阅读英语词汇学英语素质教育英语教育毕业英语教学法

英语论文开题报告英语毕业论文写作指导英语论文写作笔记handbook英语论文提纲英语论文参考文献英语论文文献综述Research Proposal代写留学论文代写留学作业代写Essay论文英语摘要英语论文任务书英语论文格式专业名词turnitin抄袭检查

temcet听力雅思考试托福考试GMATGRE职称英语理工卫生职称英语综合职称英语职称英语

经贸英语论文题目旅游英语论文题目大学英语论文题目中学英语论文题目小学英语论文题目英语文学论文题目英语教学论文题目英语语言学论文题目委婉语论文题目商务英语论文题目最新英语论文题目英语翻译论文题目英语跨文化论文题目

日本文学日本语言学商务日语日本历史日本经济怎样写日语论文日语论文写作格式日语教学日本社会文化日语开题报告日语论文选题

职称英语理工完形填空历年试题模拟试题补全短文概括大意词汇指导阅读理解例题习题卫生职称英语词汇指导完形填空概括大意历年试题阅读理解补全短文模拟试题例题习题综合职称英语完形填空历年试题模拟试题例题习题词汇指导阅读理解补全短文概括大意

商务英语翻译论文广告英语商务英语商务英语教学

无忧论文网

联系方式

基于HTTP IAP的设计与实现 [3]

论文作者:Qingqing Xu论文属性:职称论文 Scholarship Papers登出时间:2016-04-21编辑:anne点击率:10198

论文字数:2850论文编号:org201604201253338185语种:英语 English地区:英国价格:免费论文

关键词:IAPLWIPHTTP在线编程

摘要:IAP(在应用程序)是嵌入式产品的固件更新程序的方法。通过网络远程更新嵌入式产品的固件,现在变得越来越流行了。

utton or something else. 
3) IAP program architecture
This IAP implementation takes advantage of the STM32F107's Ethernet controller. It consists of a simple HTTP web server on top of the LwIP stack. The ethernetif.c and stm32_eth.c files constitute the low-level layer, which is the interface between the stack and the Ethernet controller. The Ethernet interface layer extracts the data packet from a frame and sends them to the LwIP stack. The LwIP stack handles the packet and forwards the data to the HTTP web server. The IAP program gets data from the HTTP web server, and programs it into flash. Figure 3 shows the IAP program architecture.
The DHCP module of LwIP is an optional module. With this module, the IP address of embedded terminals can be set dynamically, assigned by a DHCP server in the network.
 
Figure 3.  IAP program architecture

IV.  MODEL IMPLEMENTATION模型的实现

The implementation of this IAP method mainly includes two parts of work: the porting of LwIP and the implementation of IAP program.
A. Porting the LwIP to STM32F107
The porting of LwIP stack has 4 steps as showing in the following parts in sequence.
1) Ethernet controller interface
The LwIP comes with a file called ethernetif.c, that works as an interface between the stack and the Ethernet controller. This file is presented as a skeleton to be completed to support a specified architecture. 
For the STM32F107, the ethernetif.c (under  Utilities\lwip-1.3.1\src\netif) and stm32_eth.c (under Libraries\STM32_ETH_Driver) files constitute the low-level layer, which is the interface between the stack and the Ethernet controller. ethernetif.c contains functions that ensure the transfer of the frames between the low-level driver (stm32_eth.c) and the LwIP stack. Its main function is ethernetif_input, which should be called when a packet is ready to be read from the interface. The low-level layer was set to detect the reception of frames by interrupts. So, when the Ethernet controller receives a valid frame, it generates an interrupt in the handling function, of which the ethernetif_input call is made[4].
2) Periodic LwIP tasks
Apart from setting the Ethernet controller interface, the LwIP has periodic tasks that should be handled. The STM32F107 SysTick is used to build a system clock that serves as the reference to handle the different periodic tasks. The main function of the periodic task handle is LwIP_Periodic_Handle, which is defined in the netconf.c file. This function guarantees the dispatching of the periodic LwIP tasks. The netconf.c file, which is not part of the LwIP stack, ensures the network interface configuration: LwIP initialization, MAC address setting and IP address setting.
3) LwIP configuration
The LwIP can be tuned to suit the application's requirements. The default parameters of the stack can be found in the opt.h file, located under the LwIP directory at src\include\LwIP\. To modify these settings, a new file is defined, lwipopts.h, based on the opt.h file, and located under the LwIP directory at port\. It contains the LwIP configuration for the STM32F107 MCU. Basically these parameters concern:
a) protocol selection, like DHCP, which can be enabled or disabled, defined by LWIP_DHCP
b) the maximum number of simultaneously active connections, for TCP this is defined 论文英语论文网提供整理,提供论文代写英语论文代写代写论文代写英语论文代写留学生论文代写英文论文留学生论文代写相关核心关键词搜索。
英国英国 澳大利亚澳大利亚 美国美国 加拿大加拿大 新西兰新西兰 新加坡新加坡 香港香港 日本日本 韩国韩国 法国法国 德国德国 爱尔兰爱尔兰 瑞士瑞士 荷兰荷兰 俄罗斯俄罗斯 西班牙西班牙 马来西亚马来西亚 南非南非