| After 2009 the IoT concept spread all over the country, a new era of internet of things (IoT) is coming to us.The Internet of things to solve one of the most basic problems. Wireless connectivity is one of the connected to physical implementation, at present there are IEEE802.11 wireless communication protocol, IEEE802.15.4, etc.Real-time operating system FreeRTOS for RAM smaller hardware platform, at the same time, it is open source code, is completely free system. When considering the hardware conditions and development costs, user choose FreeRTOS more operating system. LwIP protocol stack in limited hardware resources to complete the connection between the embedded devices and the Internet. RAM needs only about 10 KB and only 40 KB ROM can be run on the hardware.In this paper, based on ST’s STM32F103xG chip in architecture Cortex_M3 function modules of the hardware platform, analyzed on the basis of RTL8189EM card chip driver wi-fi module encapsulates the SDK. In architecture Cortex_M3 platform, and analyzes the real-time operating system FreeRTOS and basic principle of the embedded network protocol LwIP. And analyzed in detail on STM32f103xG FreeRTOS and LwIP transplant. Finally, via wi-fi module control system design, debugging results prove in STM32f103xG FreeRTOS and LwIP transplant success, also prove in formed on the basis of the SDK RTL8189EM chips encapsulation of API interface functions have been implemented. In this paper, the complex wi-fi drive, the network protocol encapsulated in wi-fi module realizes the microprocessor and the function of the network connection. Innovation solved the wi-fi plug-and-play mode transfer function. |