mardi 10 septembre 2013

Web server on STM32F4DISCOVERY using Murata SN8200 Wi-Fi Network Controller Module

Instead of PC based servers, stm32 microcontroller may be used along with WiFi module as Embedded Web Server. The basic idea is utilizing this microcontroller for monitoring and controlling an embedded system  through a web application. Without using a computer, WiFi module can communicate to the owner of the overall system which is able to manage appliances from any location outside.

In this demonstration the server is still listening for incoming connections. Once a client connects to the server, it sends back a web page. This page (Fig. 1) allows to the client to control the four LEDs: LED1, LED2, LED3 and LED4 of the STM32F4-DISCOVERY board as it's shown in (Fig. 2).

Fig. 1. Web page for LEDs control



Fig. 2.STM32F4-DISCOVERY

In this application I used client-server architecture where the client accesses the server via LAN and Internet router. The client sends the request to the server. This request is processed by the router to connect to the Internet. The web processes the made request and finally the client connects to the desired web server. Requested data is sent to the client.

Each time the client select the LEDs to turn on, he presses the button "Send" to confirm his request. This request is a GET request which contain the ID of the LEDs to turn on or off.
For example, if the client selects LED1 and LED2, the request that will be send in this form :
"GET /leds.cgi?led=1&led=2 HTTP/1.1"

You can find a quick video demonstration  on YouTube.

4 commentaires:

  1. Hi,I think to make a robot project using STM32F4 Discovery and Murata SN8200 Wi-Fi Network Controller Module.I want to control my robot over android.Do you mind If you send me your code to understand and progress for my project.Thank you for your time in advance.Have a nice day...

    RépondreSupprimer
  2. Hi I watch your demonstration on youtube and it's really impressive. I'm doing a application on wireless data transfer. I figure I should add wifi module (SN8200) on MCU board (STM32F4Discovery) first to make it work. I would appreciate it if you would like to talk further with me as you're obviously an expert on it. I can be reached via email 222cyf@gmail.com. Look forward to your response. Thanks. by Rachel

    RépondreSupprimer
  3. Where do you get the demo code ?

    RépondreSupprimer
  4. Hello, I am very interested in doing this demo on my side.

    Can you please send me the project that you are using on the STM32F4 Discovery kit side?

    Thank you.

    Nicolas.

    My email: Nicolas.fillon@gmail.com

    RépondreSupprimer