Alert.png

Notice: This page contains information for the legacy Phidget21 Library.

Phidget21 is out of support. Bugfixes may be considered on a case by case basis.

Phidget21 does not support VINT Phidgets, or new USB Phidgets released after 2020. We maintain a selection of legacy devices for sale that are supported in Phidget21.

We recommend that new projects be developed against the Phidget22 Library.


Click on the 2phidget22.jpg button in the menu bar to go to the Phidget22 version of this page.

Alert.png

Web Page on the SBC: Difference between revisions

From Phidgets Legacy Support
No edit summary
No edit summary
Line 2: Line 2:
[[Category:phidgetsSBC]]
[[Category:phidgetsSBC]]
[[Category:internetSBC]]
[[Category:internetSBC]]
The project described here is a self-contained web server on the Phidget Single Board Computer (SBC).  We compose and serve a complete HTTP page within C, and include Phidget data on it.  We also accept data to control attached Phidgets in our request.
The project described here creates a website hosted on the Phidget Single Board Computer (SBC).  The website can both serve static pages, as well as pages that can send simple requests back and forth to the Phidgets attached to the SBC.
 


{|
{|
|Practical concepts covered are (click on links to see other projects on that topic):
|Practical concepts covered are (click on links to see other projects on that topic):
* Data Logging
* Using Phidgets with Python
** [[:Category:FileIO|Writing to a text file]]
** Using Phidgets with Python
* Analyzing your Phidget Data
|width="45px"| 
|width="45px"| 
|[[Image:TBD|link=|alt=]]
|[[Image:TBD|link=|alt=]]
Line 16: Line 12:




As with any of our [[Application Guides|described projects]], Phidgets takes care of the electrical component design.  Here, we also provide in-depth instructions on installing external libraries on the SBC from source, and from an SVN trunk.  We then show how to use the microhttpd.h library within C code to communicate with and control attached Phidgets.
As with any of our [[Application Guides|described projects]], Phidgets takes care of the electrical component design.  If you want something more powerful and flexible to control Phidgets over a network, you may be interested in these other Application Guides:
* [[Web Page on the SBC]] - Controlling Phidgets over the web using CGI
* [[Web Server on the SBC]] - Controlling Phidgets over the web using a full self-contained webserver embedded in C code


'''Note:''' This is a complex way of doing something that the SBC can do much more simply.  This page uses the simple example of using an Interface Kit over the network to demonstrate the much more complex concept of using embedded C HTTP servers.  An embedded server is a powerful beast, and wanting to create one probably means you've grown needs above and beyond our simple Application Guides.  The simpler guides are:
* If you just want to get Phidget data over the network, the SBC already does this naturally from the time it ships.  We show an application in the [[Use Phidgets Wirelessly with the SBC]] guide.


'''Time:''' About a day
'''Time:''' About a day

Revision as of 15:43, 19 March 2012

The project described here creates a website hosted on the Phidget Single Board Computer (SBC). The website can both serve static pages, as well as pages that can send simple requests back and forth to the Phidgets attached to the SBC.

Practical concepts covered are (click on links to see other projects on that topic):
  • Using Phidgets with Python
  File:TBD


As with any of our described projects, Phidgets takes care of the electrical component design. If you want something more powerful and flexible to control Phidgets over a network, you may be interested in these other Application Guides:


Time: About a day

Special Needed Tools: A Phidget SBC, Ethernet and power cords (or Wireless), an LED, and your computer.

  • Getting Started

Introduction

Phidgets

Code

Putting it All Together

Extra Credit