Microcontroller requirements to implement an embedded web server using WebSocket, JS, and HTML5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-18 6:18 AM
Hi,
I'm developing a new product, and one of the design requirements is to implement an embedded web server on the microcontroller. The web pages should be responsive and dynamic like single page application (SPA) web pages and there are 3 pages to be implemented with light images and graphics.
I plan to pick out a microcontroller from the STM32 range, and my questions are related to the hardware design part :
- what are the minimum Microcontroller requirements to implement an embedded web server in terms of performance and memory?
- what is the approximate size of the used memory for the lwIP stack, web server, and client-side code?
- where to store the webpages? internal Flash, ROM, External Flash?
- And finally, what is the complexity level of the implementation in comparison to the traditional HTTP request?
Thanks,
- Labels:
-
Ethernet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-03 3:37 AM
I've already got the hardware - I just want to know whether the above board is the right choice
for 3 small web pages as per Ehabs post or should I choose a different variant?
I have the LWip/netconn/rtos demo working, but it seems very complex (for me anyway).
I dont want to spend weeks on it and find that I should have chosen a different solution.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-03 4:09 AM
Check your requirements. If the client will have a decent browser that supports client side scripts, decompression (for static files), web sockets or fetch, STM32 MCUs may be capable to serve few clients.
> I dont want to spend weeks on it
Unfortunately, this is *at least* the expected time for such project om STM32 MCU. Unless you find somebody with a ready prototype.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-03 4:30 AM
Thanks, but 'STM32 MCUs may be capable to serve few clients.'.... Which ones are most suited?
Should I continue with STM32H743?
Can anyone help me with a ready prototype?
I'm quite willing to spend time and money - I just need direction.
As I've said, I am not as experienced as most of the contributors here in- 'client side scripts, decompression (for static files), web sockets or fetch,'........
but I'm also willing to learn.
Thanks,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-03 6:06 AM
> Should I continue with STM32H743?
This of course depends on what do you want to achieve exactly. Is there any "controller" (hard real time) side to the project, or do you want to use the STM32 simply as a suitable "small computer"? Is the web-side of the project to be fancy, or is flat HTML OK? What is the expected "other side" (i.e. network and browser issues)?
I don't offer help here, I'm just merely saying that these are probably the most basic questions for which you have to have very clearly formulated answers prior to talking to anybody for further help.
You may want to have a look at/post on the lwip users mailing list, too.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-03 7:18 AM
> Should I continue with STM32H743?
Let's see. As you already know, there's a problem with ordering. Do you have H743 in stock?
H743 has 2 MB of internal flash. This can be enough for the code, but for website data you may need external memory.
What kind of network connection do you want?
H743 has only plain ethernet. For wi-fi or cellular you will need external chips/modules.
On the other hand, you can connect a WIZnet to any other MCU without ethernet controller, and it will even do TCP/IP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-03 7:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-03 8:23 AM
Thanks all for the info.
I just thought that I would have more control over the whole thing if I used a microcontroller and also I would learn a lot more.
I have several H743 boards.
I dont need wifi or cellular, just a LAN connection.
I can see that it may be easier using a Pi, but then you have the whole complication of a big O/S to consider.
Surely, it would be simpler to use an STM32 board?
However, the wiznet device looks interesting - I will check that out.
I presume that you could then use a low level F103 type board?
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-10 1:06 PM
My previous post answers all of your questions...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-11 12:29 AM
Thanks everybody. Everything I appear to need is present in the project 'LwIP_HTTP_Server_Netconn_RTOS', and I
am finding this very difficult to understand, especially as my 'C' needs brushing up, - but I am slowly getting there.
Unlike most of you, I knew hardly anything about ethernet 3 months ago, so you may think that my questions
are somewhat simple!!
I am going to investigate the wiznet area as well.
My ultimate objectives are to gain knowledge and to have a cheaply produced
web server that will run the above project.
Chris

- « Previous
-
- 1
- 2
- Next »