EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

controlling an embedded board through internet

Started by piyushpandey April 20, 2011
On 2011-04-21, D Yuniskis <not.going.to.be@seen.com> wrote:
> On 4/21/2011 6:04 AM, piyushpandey wrote: >>> >>> Re-read my original answer. Until you can answer that, you >>> won't know how to proceed. >>> >> >> hello bro >> >> I have read your answer very carefully and what I got is that your point is >> in controlling the device through the telnet from the >> console............right >> >> but I don't want that , what I actually want is that I want to control my >> board through the internet with the help of a webpage designed to get the >> status of the devices connected to my board and than controlling them >> according to the situation. >> >> So I think I am pretty clear now. > > No, you're just repeating the same VAGUE request. >
I totally agree. To the OP, some example questions to make you think about the issues: How are the devices connected to your board ? How can a program running on the board extract the status information it needs from the devices ? If you do this by triggering a CGI script from your webpage, your CGI script will need to extract the required information in the same way. Based on the vagueness of the OP's message, I think the OP is still at the level of trying to understand the workflow for the press a button to trigger a CGI script -> poll devices in CGI script -> render output in HTML page approach. If the OP understands this already, I apologise. However, if this is the issue you are trying to understand, I would suggest you write a simple CGI script to read, for example, some counters from /proc or something else that is continually changing, such as the system time, and output this as a webpage generated by a CGI script. If the OP already knows the CGI script workflow, then please tell us, in detail, exactly what part of this you are stuck on.
> > *I* have a scalpel -- would you entertain questions regarding > how to perform an appendectomy? :-/ >
Someone did a _very_ entertaining post based on this theme a few years ago. "I'm a experienced surgeon, I just have a few basic questions about using a scalpel" was the general theme. :-)
> Here's your answer: > - set up a web server on your host > - create some pages that show the status you want to observe > - create some pages that implement the controls you want > - write everything "in the middle" to make it work >
[To the OP] And since no-one else has mentioned it yet, please make sure you build some level of security into your application. Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world
Hi Simon,

On 4/21/2011 10:36 AM, Simon Clubley wrote:
> On 2011-04-21, D Yuniskis<not.going.to.be@seen.com> wrote: >> On 4/21/2011 6:04 AM, piyushpandey wrote: >>>> >>>> Re-read my original answer. Until you can answer that, you >>>> won't know how to proceed. >>> >>> I have read your answer very carefully and what I got is that your point is >>> in controlling the device through the telnet from the >>> console............right >>> >>> but I don't want that , what I actually want is that I want to control my >>> board through the internet with the help of a webpage designed to get the >>> status of the devices connected to my board and than controlling them >>> according to the situation. >>> >>> So I think I am pretty clear now. >> >> No, you're just repeating the same VAGUE request. > > I totally agree. > > To the OP, some example questions to make you think about the issues: > > How are the devices connected to your board ? > > How can a program running on the board extract the status information it > needs from the devices ?
Exactly. "What do *you* have to do to get the information that you want from this mysterious board?" If you can't get the board to provide that to you presently, then this is one *big* piece of the puzzle that is missing -- installing web services will, eventually, result in the question: "How do I get the web server to poll the status of these inputs?" (much easier to go from "I have this information available when I do the following... now, how to I tie that in to a web-based service?")
> If you do this by triggering a CGI script from your webpage, your CGI > script will need to extract the required information in the same way. > > Based on the vagueness of the OP's message, I think the OP is still at > the level of trying to understand the workflow for the press a button to > trigger a CGI script -> poll devices in CGI script -> render output in > HTML page approach.
I'm wondering if the lack of understanding goes *deeper*?! I.e., if you can't do what you want from a *console* (however that is implemented), then you don't even know where the Yellow Brick Road *starts*!
> If the OP understands this already, I apologise. However, if this is the > issue you are trying to understand, I would suggest you write a simple > CGI script to read, for example, some counters from /proc or something > else that is continually changing, such as the system time, and output > this as a webpage generated by a CGI script. > > If the OP already knows the CGI script workflow, then please tell us, in > detail, exactly what part of this you are stuck on.
I suspect the entire backend is fuzzy, here. :<
Hello guys 


First of all I want to say thanks to you guys for their support.

actually now I am pretty clear that what I want to do I think.


So first of all I want to install the webserver on my arm board and for
that I have gone for the lighttpd webserver as it is light and very much
resourceful.

So what I want to know is that after cross compiling the lighttdp webserver
through arm-linux-gcc on my linux desktop, how can I port it to the arm
platform.

I mean how can I install the lighttdp libraries on the arm platform so hat
the web server runs on the arm platform as it is totally different from
installing the lighttdp on the linux desktop.


Thank you

Piyush Pandey	   
					
---------------------------------------		
Posted through http://www.EmbeddedRelated.com
On 2011-04-22, piyushpandey <piyushispandey07@n_o_s_p_a_m.gmail.com> wrote:
> Hello guys > > > First of all I want to say thanks to you guys for their support. > > actually now I am pretty clear that what I want to do I think. > > > So first of all I want to install the webserver on my arm board and for > that I have gone for the lighttpd webserver as it is light and very much > resourceful. > > So what I want to know is that after cross compiling the lighttdp webserver > through arm-linux-gcc on my linux desktop, how can I port it to the arm > platform. > > I mean how can I install the lighttdp libraries on the arm platform so hat > the web server runs on the arm platform as it is totally different from > installing the lighttdp on the linux desktop. >
You initial posting lead me to believe that you had all the required software pieces in place, but didn't know how to make them work together. If your problem is trying to make the webserver itself run on the board, then you are probably better off trying the webserver project's support forums. Can I assume you have looked through the project's support forums already to see if someone else has encountered the same problems as you have ? When you post there, you will have to be much more clear about that you are trying to do however. For example, we still don't know exactly what board you are using and what memory/storage resources you have available on the board so we don't know if you can build the webserver on the board itself instead of having to cross-compile it on a host Linux box. We also still don't know how your devices are connected to your board and what procedures your board-based programs use to interact with them. BTW, are you actually familiar with the polling/configuring devices from a CGI routine workflow or will that be something you need to learn as well ? Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world
On Apr 22, 12:46=A0am, "piyushpandey"
<piyushispandey07@n_o_s_p_a_m.gmail.com> wrote:
> Hello guys > > First of all I want to say thanks to you guys for their support. > > actually now I am pretty clear that what I want to do I think. > > So first of all I want to install the webserver on my arm board and for > that I have gone for the lighttpd webserver as it is light and very much > resourceful. > > So what I want to know is that after cross compiling the lighttdp webserv=
er
> through arm-linux-gcc on my linux desktop, how can I port it to the arm > platform. > > I mean how can I install the lighttdp libraries on the arm platform so ha=
t
> the web server runs on the arm platform as it is totally different from > installing the lighttdp on the linux desktop. > > Thank you > > Piyush Pandey =A0 =A0 =A0 > > --------------------------------------- =A0 =A0 =A0 =A0 > Posted throughhttp://www.EmbeddedRelated.com
How about using a linux distribution that runs on your platform? Debian, for example, should work.

The 2024 Embedded Online Conference