Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to learn how to cut and transplant web Server

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

How to learn how to cut and transplant web Server, I believe that many inexperienced people do not know what to do about it. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

I have told you about the transplantation of freeRTOS a few times ago, no matter in our transplanted or KSDK transplanted BSP, there is a demonstration program of server. KSDK uses lwip open source TCP/IP protocol stack. Today we will show you how to tailor and process this server to meet more needs.

Let's take a look at this project first.

We only need four steps to port, but this is all based on the fact that you have a certain foundation and have successfully migrated the freeRTOS BSP framework.

1. The first step we need to do is to modify the web page file "middleware\ lwip\ src\ apps\ httpsrv\ mkfs\ web_pages" in the project directory.

Also need a logo image, all ready, and then execute the script file mkfs.pl to generate a new httpsrv_fs_data.c file to replace the httpsrv_fs_data.c file in the original project

two。 Run the script file middleware\ lwip\ src\ apps\ httpsrv\ mkfs\ mkfs.pl to generate a new httpsrv_fs_data.c. File

3. Replace the original project with the newly generated httpsrv_fs_data.c file

4, recompile the project and download it to the K64 tower board for testing. Before testing, you need to set the computer and the board in a network segment and plug in the network cable. The network configuration information will also be printed out at the serial terminal.

Open the browser and enter the IP address 192.168.0.102 of the K64 tower system.

You can further modify the source code of the web file, and then re-execute the script file to generate the httpsrv_fs_data.c file. Recompile the project download test. Similarly, you can modify the file, read the value of ADC, you can also operate LED, etc., after these steps you will be able to make a very cool system.

After reading the above, have you mastered how to learn how to cut and transplant web Server? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report