Sub page with image

Try POST request

Program
Compiled datetime
Hardware
Current time
Network
Local address
MAC address
Gateway
Netmask
Link
Duplex
Leds
LEDStatusActions
GREENToggleOnOff
REDToggleOnOff
ORANGEToggleOnOff
BLUEToggleOnOff
Client
All connections
Successful connections
Percentage
TX Bytes
RX Bytes
Server
All connections
TX Bytes
RX Bytes
About website

This website is hosted on my STM32F4-Discovery board and DP83848 ethernet PHY. Data, which are used for display to user are stored on SD card.

DP83848 works using LwIP ethernet stack. Communication between LwIP and DP83848 is done using Reduced MII (RMII) peripheral.

This website is also able to serve user data (variables, SSI tags) and to handle GET requests (CGI handlers).

SSI tags
SSI tags LwIP uses to serve formatted variable data to user. In code, one SSI handler is used which is used to all SSI tags. This web uses 21 SSI tags. They are used to show IP, RTC time, led status, and so on, practical everything on this site.
CGI handlers
CGI (Common gateway interface) can be used with LwIP to handle GET requests. In my case, I have one CGI handler, which is used to to drive leds (On, Off, Toggle functions). You can have more than just one handlers, so you can organize your requests. In my case, I have only one handler function, because I don't need any more in this case.

When Discovery board is reset (when power is out, or when reprogramming) and program starts, first LwIP gets ip via DHCP protocol from my router. Then first what I do is update my IP at home to my stm32f4-discovery.net server so you can access from there simple.

System also request unix time from server (TCP client) and stores is into RTC peripheral on STM32F4 device. On board, I have DS18B20 temperature sensor, which measures temperatures and every measure when it does, data are uploaded to emoncms.org server.

So, this STM32F4 is fully network busy :D It must serve data from SD card to users who connect to, and simultaneously upload data (TCP client) to another server with about 1.5Hz connections. My library allows up to 4 TCP client connections at a time.

Website by Tilen Majerle