Open side-bar Menu
 Embedded Software
Colin Walls
Colin Walls
Colin Walls has over thirty years experience in the electronics industry, largely dedicated to embedded software. A frequent presenter at conferences and seminars and author of numerous technical articles and two books on embedded software, Colin is an embedded software technologist with Mentor … More »

Who needs a Web server?

 
November 15th, 2017 by Colin Walls

Not so long ago, I was having some trouble with my Internet connection. I will probably never know exactly what was wrong (as broadband is, for intents and purposes, magic), but investigating the problem was interesting. I am not a networking specialist, so I would expect that messing with the settings inside a router would be hard, but the manufacturers have made it very simple.

I began to wonder why there are not many devices that work in the same way …

As the router allocates IP addresses to computers and other devices on the network, it seems unsurprising that it allocates one to itself. To take advantage of the resulting functionality, it is only a matter of entering this IP address into the browser on any other device on the network. There is then the opportunity to view and adjust lots of settings and parameters for the broadband connection.

So, how does this work? Essentially, the router contains a Web server. This term makes me think of a big powerful computer, which has access to an enormous database of Web pages that it can serve up to a remote computer on demand. It would be more accurate to call it an HTTP server, as essentially all it does is respond to this standard protocol in order to deliver data which looks very like a website. The developers of the router software could very easily construct quite a sophisticated user interface using just a few HTML files.

Although I know that my router is far from unique in operating in this way, it does seem to me that there is enormous potential for other equipment to be given this capability. For example, my hard disc video recorder could be easily controlled from my iPhone or iPad, without the manufacturer needing to create and maintain an app. The same might go for my heating system (program and adjust from anywhere in the house or elsewhere even) or my digital camera (deal with settings, view pictures etc.) or many other electronic devices.

Although you might think of a Web server as being large, an HTTP server which is optimized for embedded applications is quite small in terms of code size and requires very little memory in which to store the HTML pages, which can probably be compressed anyway. Most embedded operating systems have networking options and an HTTP server is a common option.

The possibilities for this kind of UI are really only limited by the designer’s imagination.

3 Responses to “Who needs a Web server?”

  1. Avatar Daniel Payne says:

    Even my lowly Raspberry Pi single board computer the size of a credit card runs Linux, costs $5.00 and can become a web server.

  2. Avatar Tim Parker says:

    Colin – with the greatest of respect – as someone “with thirty years experience in the electronics industry, largely dedicated to embedded software. A frequent presenter at conferences and seminars and author of numerous technical articles and two books on embedded software”, how could this be a surprise to you ? The fact that multiple industries already do what you suggest, and have done for many years, seems to have somehow passed you by. Not as odd as, say, you not knowing about the scope of variables in a C++ for(..) loop, but bizarre none the less. I really do find the intended audience of many of these articles very hard to fathom to be honest, but fair play to you for being paid (I presume) to do so. Just my tuppence worth of course, YMMV and all that.

  3. […] while ago, I wrote about incorporating a Web server [HTTP server actually] into an embedded device so that information might be displayed on any […]

Logged in as . Log out »




© 2024 Internet Business Systems, Inc.
670 Aberdeen Way, Milpitas, CA 95035
+1 (408) 882-6554 — Contact Us, or visit our other sites:
TechJobsCafe - Technical Jobs and Resumes EDACafe - Electronic Design Automation GISCafe - Geographical Information Services  MCADCafe - Mechanical Design and Engineering ShareCG - Share Computer Graphic (CG) Animation, 3D Art and 3D Models
  Privacy PolicyAdvertise