Click here to Skip to main content
15,903,743 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Let me explain what is happening .. I have a micro controller with web server on it ( Contiki OS ) this chip is connected to an Ethernet chip on the same board which is connected via SPI. This entire system is a controller or coordinator which reads data from other wireless sensors. In this case its temperature. Right now you just go to you web browser and type that assigned address a web page shows up and shows the temperature reading from that wireless sensor. All of this is working nicely.

What I want is that I need that data to come out directly to me, on my computer on the same LAN ( Via terminal window or maybe another web-server or anything . The idea is to bypass the existing web sever on the chip..

One thing that came to my mind was that that we already have an Ethernet node on that Board. So how about we could create a socket and get that data. About the data it gets processed and already gets stored in a variable before it shows on the web page.

Lets say we are talking about making socket so the server side can be my computer but the client is a circuit board. It has to initialize it self and form a socket or If you could push a command from my computer and invoke it something like GET and I see that variable on my window.


Tell me is that possible what I am talking about, I jus get so lost with so many thing .. give me some outline to go around it. For anything else you need to understand it better jus let me know
Posted
Comments
Mohibur Rashid 6-Apr-12 0:53am    
So, What I have understood is you can only connect with the specific server from one specific machine. and you can connection with that machine. Is that so?

You will need a socket server application on the computer and a socket client application on the board to do what you want.
I think a better way would be to have a socket server application running on the board so that a socket client on the computer can connect to it and get the required data.
 
Share this answer
 
_Superman_ on Solution 1, has the right idea.

You don't want your hardware, hard coded to find a specific computer. It's easier to configure the computer to find the hardware.

I doubt the web server on that chip is incurring much overhead.

Why not just connect to it with a socket, and issue the HTTP commands to get the data? This should be an easier task than rewriting both ends.

And the web server on the chip is likely getting the hardware value, every time you ask for it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900