STM32 W5500 HTTP Server micro web service implementation

ORIGINAL POST
By Mr_Johhny
details

202004212352421.png

Embedded Web services are very common. For example, when the computer accesses the network through WIFI, enter “192.168.1.1” in the address bar of the browser, or other addresses, which are in the same network segment as the IP of your computer. Generally, the last segment of the IP is 1. Yes, you can open the router’s management page. like this:

This page is a web page served by an embedded small web service.

STM32 W5500 can almost achieve the above functions, but since the RAM and FLASH storage size of STM32 is limited, there is no problem in implementing a simple web service.

STM32 W5500 needs to meet several conditions to implement a simple web service:

1. The basic network configuration of STM32 W5500 can be pinged. You can refer to “STM32F103RC drives W5500 to access the network and can be pinged”

2. There is no problem with the TCP Server loopback test of STM32 W5500, you can refer to “STM32 W5500 TCP Server Loopback Test”

3. Have a certain understanding of the HTTP protocol.

Determine the function of the web service to be implemented. After the STM32 W5500 is configured to connect to the network, it dynamically obtains the IP address through DHCP. Enter the IP address in the address bar of the computer browser, and you can get a simple form page. Enter data in the form, Submit to the W5500 web service and return a result. As shown in the figure:

 

202004212352421.png

Embedded Web services are very common. For example, when the computer accesses the network through WIFI, enter “192.168.1.1” in the address bar of the browser, or other addresses, which are in the same network segment as the IP of your computer. Generally, the last segment of the IP is 1. Yes, you can open the router’s management page. like this:

This page is a web page served by an embedded small web service.

STM32 W5500 can almost achieve the above functions, but since the RAM and FLASH storage size of STM32 is limited, there is no problem in implementing a simple web service.

STM32 W5500 needs to meet several conditions to implement a simple web service:

1. The basic network configuration of STM32 W5500 can be pinged. You can refer to “STM32F103RC drives W5500 to access the network and can be pinged”

2. There is no problem with the TCP Server loopback test of STM32 W5500, you can refer to “STM32 W5500 TCP Server Loopback Test”

3. Have a certain understanding of the HTTP protocol.

Determine the function of the web service to be implemented. After the STM32 W5500 is configured to connect to the network, it dynamically obtains the IP address through DHCP. Enter the IP address in the address bar of the computer browser, and you can get a simple form page. Enter data in the form, Submit to the W5500 web service and return a result. As shown in the figure:

 

COMMENTS

Please Login to comment
  Subscribe  
Notify of
POSTED BY
Reusable S/W