Phidget Network Server: Difference between revisions
m (Mparadis moved page Phidget Network Service to Phidget Network Server without leaving a redirect) |
No edit summary |
||
Line 4: | Line 4: | ||
==General Overview== | ==General Overview== | ||
- what is the network | - what is the network server | ||
- how does it work | - how does it work | ||
Line 16: | Line 16: | ||
- it can be mobile, too | - it can be mobile, too | ||
==Network | ==Network Server on a Phidget Single Board Computer== | ||
The Phidget Single Board Computer (SBC) can provide a compact, inexpensive way to easily run the | The Phidget Single Board Computer (SBC) can provide a compact, inexpensive way to easily run the Network Server. It runs the Network Server in the background automatically from the moment you turn it on, and allows you to read from and control all Phidgets attached to it: | ||
<<picture of SBC setup>> | <<picture of SBC setup>> | ||
Line 28: | Line 28: | ||
The SBC runs Linux, which provides a [[OS - Phidget SBC|full operating system]] on which to develop code, {{ARTICLE|WebPageOnSBC|serve web pages}}, and {{ARTICLE|PhidgetsWirelesslyWithSBC|control Phidgets}}. | The SBC runs Linux, which provides a [[OS - Phidget SBC|full operating system]] on which to develop code, {{ARTICLE|WebPageOnSBC|serve web pages}}, and {{ARTICLE|PhidgetsWirelesslyWithSBC|control Phidgets}}. | ||
==Using The Network | ==Using The Network Server== | ||
Each Operating System page has a section on how to use the Network | Each Operating System page has a section on how to use the Network Server on that operating system: | ||
* [[OS - Windows#Phidget Network | * [[OS - Windows#Phidget Network Server|Windows]] | ||
* [[OS - OS X#Phidget Network | * [[OS - OS X#Phidget Network Server|Mac OS]] | ||
* [[OS - Linux#Phidget Network | * [[OS - Linux#Phidget Network Server|Linux]] | ||
* [[OS - Phidget SBC#Phidget Network | * [[OS - Phidget SBC#Phidget Network Server|Linux on the Phidget SBC]] | ||
* [[OS - iOS#Phidget Network | * [[OS - iOS#Phidget Network Server|iPhone/iPad iOS]] | ||
The operating systems pages have complete examples on how to set up a network | The operating systems pages have complete examples on how to set up a network server process and using it to remotely control or gather data from Phidgets. The pages also tell you how to start and stop the Network Server on your computer, and how to run it with or without mDNS (Bonjour, avahi, etc). | ||
== Examples == | == Examples == | ||
Below are some quick examples showing how simple it is to open a Phidget remotely over the Network | Below are some quick examples showing how simple it is to open a Phidget remotely over the Network Server: | ||
=== C/C++ === | === C/C++ === | ||
Line 67: | Line 67: | ||
== Troubleshooting == | == Troubleshooting == | ||
When using the Network | When using the Network Server, both the '''client and server should have the ''same version''''' of the Network Server installed. The easiest way to ensure this is to update your libraries on both ends. | ||
For other troubleshooting tips, try our General Troubleshooting page, in its [[General_Troubleshooting# | For other troubleshooting tips, try our General Troubleshooting page, in its [[General_Troubleshooting#Network_Server_Troubleshooting|Network Server section]]. |
Revision as of 19:27, 28 April 2017
General Overview
- what is the network server
- how does it work
<picture of normal phidgets setup>
<picture of setup with discovery enabled>
- how to set it up
- it can be mobile, too
Network Server on a Phidget Single Board Computer
The Phidget Single Board Computer (SBC) can provide a compact, inexpensive way to easily run the Network Server. It runs the Network Server in the background automatically from the moment you turn it on, and allows you to read from and control all Phidgets attached to it:
<<picture of SBC setup>>
This can allow for a compact, mobile-based system like this:
<<picture of SBC with mobile>>?
The SBC runs Linux, which provides a full operating system on which to develop code, serve web pages, and control Phidgets.
Using The Network Server
Each Operating System page has a section on how to use the Network Server on that operating system:
The operating systems pages have complete examples on how to set up a network server process and using it to remotely control or gather data from Phidgets. The pages also tell you how to start and stop the Network Server on your computer, and how to run it with or without mDNS (Bonjour, avahi, etc).
Examples
Below are some quick examples showing how simple it is to open a Phidget remotely over the Network Server:
C/C++
Phidget_setDeviceSerialNumber((PhidgetHandle) device, 37299);
Phidget_setIsRemote((PhidgetHandle) device, 1);
Phidget_open((PhidgetHandle) device);
CPhidget_openRemoteIP ((CPhidgetHandle) device, serial_number, "127.0.0.1", 5001, NULL);
C#
Java
Python
Configuration File
- how to find config file - explain the options
Troubleshooting
When using the Network Server, both the client and server should have the same version of the Network Server installed. The easiest way to ensure this is to update your libraries on both ends.
For other troubleshooting tips, try our General Troubleshooting page, in its Network Server section.