Ormerod embedded web server February 28, 2014 05:39AM |
Registered: 9 years ago Posts: 45 |
Re: Ormerod embedded web server February 28, 2014 06:40AM |
Registered: 9 years ago Posts: 256 |
Re: Ormerod embedded web server February 28, 2014 07:16AM |
Registered: 9 years ago Posts: 45 |
Re: Ormerod embedded web server February 28, 2014 07:53AM |
Registered: 9 years ago Posts: 42 |
Re: Ormerod embedded web server February 28, 2014 08:35AM |
Registered: 9 years ago Posts: 17 |
Re: Ormerod embedded web server February 28, 2014 08:47AM |
Registered: 9 years ago Posts: 578 |
Quote
XB70
May be you could use a Raspberry Pi as a webserver it is cheap an uses only a few watt of 5V
jan
Re: Ormerod embedded web server February 28, 2014 09:59AM |
Registered: 9 years ago Posts: 45 |
Re: Ormerod embedded web server February 28, 2014 10:02AM |
Registered: 9 years ago Posts: 45 |
Quote
jy_oc_hx
I think someone has been looking into this. Check out this thread. not sure what post it is but it definately was talked about at some point.
Re: Ormerod embedded web server February 28, 2014 10:46AM |
Registered: 9 years ago Posts: 275 |
Re: Ormerod embedded web server February 28, 2014 11:03AM |
Registered: 9 years ago Posts: 22 |
Re: Ormerod embedded web server February 28, 2014 11:18AM |
Registered: 9 years ago Posts: 209 |
Re: Ormerod embedded web server February 28, 2014 01:10PM |
Registered: 9 years ago Posts: 14,640 |
Re: Ormerod embedded web server February 28, 2014 03:24PM |
Registered: 9 years ago Posts: 45 |
Re: Ormerod embedded web server February 28, 2014 03:36PM |
Registered: 9 years ago Posts: 14,640 |
Quote
spiff
@bobtidey: The multiple simultaneous connections are just due to the browser trying to load the page faster, which works fine in the normal case (i.e. a regular web server). For an embedded system, however, I think an acceptable work-around would be to simply only accept/handle one connection at a time, so you need only one buffer. Maybe the problem is that the code is trying to handle multiple connections (although this is pure guessing on my part, as I didn't look at the code).
Re: Ormerod embedded web server March 01, 2014 07:21AM |
Registered: 9 years ago Posts: 45 |
Quote
dc42
No, the current firmware accepts a single connection and returns an "out of memory" error code to the client if further connections are attempted. The problem appears to me to be that Chrome seems to assume that multiple connections to the server are available. I don't think it will be a big problem supporting multiple connections, because some of the data structures appear to me to be already designed to support multiple concurrent connections. But I have a few other tasks to complete first, such as reading the z-prove and temperatures more frequently so that noise can be better averaged out, and finishing the firmware for my new z-probe board.
Re: Ormerod embedded web server March 03, 2014 08:08AM |
Registered: 9 years ago Posts: 2,472 |
Re: Ormerod embedded web server March 03, 2014 10:35AM |
Registered: 9 years ago Posts: 209 |
Re: Ormerod embedded web server March 03, 2014 12:19PM |
Registered: 9 years ago Posts: 2,472 |
Quote
bobtidey
I'd have to disagree with this. A web server need not be bloatware and in this case I don't believe it is. Particularly as it is not a general purpose web server and is focussed on just initially serving up the files to get the web client going and then responding to simple GETs. The client is actually where a lot of the processing is taking place. The server responds to simple Gets with a pretty lightweight connection at the server to respond to the requests for data using pretty much the same logic as it would for any other dreamt up protocol.
The big plus is that the client is inherently cross platform, and is using a standardised protocol to do its job. It is tends to be much easier to maintain and enhance compared to a native client with access to a pretty rich set of libraries. The iamburny development is an excellent example of this in practice where, in short order, he got it from nothing to an interface which surpasses Pronterface in most respects. It offers the possibility of having multiple clients accessing it at once although I don't think that is fully realisable at the moment.
There are many examples of embedded systems today using web servers for their native interface even on hardware less capable than the Duet.
Re: Ormerod embedded web server March 03, 2014 12:59PM |
Registered: 9 years ago Posts: 209 |
Re: Ormerod embedded web server March 03, 2014 01:10PM |
Registered: 9 years ago Posts: 14,640 |
Re: Ormerod embedded web server March 03, 2014 01:26PM |
Registered: 9 years ago Posts: 36 |
Re: Ormerod embedded web server March 03, 2014 02:05PM |
Registered: 9 years ago Posts: 209 |
Re: Ormerod embedded web server March 03, 2014 02:51PM |
Registered: 9 years ago Posts: 36 |
Quote
bobtidey
The webcam (ip rather than usb) is a seriously good idea that that I also want to add. Of course, an optional frame for this in the web client would be perfect. If it has a microphone as well then one could also listen in the background for any unusual sound effects.
Re: Ormerod embedded web server March 03, 2014 03:26PM |
Registered: 9 years ago Posts: 209 |
Re: Ormerod embedded web server March 03, 2014 03:41PM |
Registered: 9 years ago Posts: 36 |
Re: Ormerod embedded web server March 03, 2014 04:10PM |
Registered: 9 years ago Posts: 2,472 |
Quote
bobtidey
I think we are going to have to agree to differ on this. However, please use the term bloatware in its normal sense. That is normally used to derogatively describe programs which are large, cumbersome and slow due to the addition of many unnecessary features. That does not apply here and demeans the fantastic work done by both iamburny and dc42.
Quote
dc42
I would point out that the SAM3X8E processor used in the Duet is a 32-bit processor clocked at 84MHz, so it isn't exactly underpowered for this application.
Re: Ormerod embedded web server March 05, 2014 03:39PM |
Registered: 9 years ago Posts: 209 |