Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Phidget Input Parameter List

NameDescriptionHow Used?

DeviceType

Specify the type of device that requires interaction. Supported values are:

PhidgetRFID, PhidgetTextLCD, PhidgetGPS, PhidgetInterfaceKit, PhidgetAdvancedServo

DeviceType is passed as a modifier to Invoke.

<Invoke Method="Get" DeviceType="PhidgetInterfaceKit"/>

SerialNumberThis represents the interface port number to which the sensor or motor is connected.SerialNumber is passed as a modifier to Invoke
ServoAngleAngle to be applied to a Advanced Servo Motor.

ServoAngle is passed as a payload to Invoke wrapped within

Message/Value container.

<Invoke Method="Post" DeviceType="PhidgetTextLCD">

<Message><Value><ServoAngle>110.0</ServoAngle></Value></Message>

</Invoke>

SimulatedSimulates Sensor Behavior by sending random integer values between 1 and 100 
-

Some time if you need to pass a String value to the handler as input - usually in case of RFID Writer

or LCD Text Display, you can pass it as part of <Message><Value>Hello</Value></Message> as payload to Invoke.

Payload of <Invoke>.

<Invoke Method="Post" DeviceType="PhidgetTextLCD">

<Message><Value>Hello</Value></Message>

 </Invoke>

 

Phidget Output Format

Output from the Phidget Handler is simply a text value.

...

Code Block
languagetext
themeEclipse
titleCommand to install USB Lib
linenumberstrue
sudo apt-get install libusb-1.0-0-dev
  • Download Phidget Libraries from this location 
Code Block
languagetext
titleDownload Link
linenumberstrue
http://www.phidgets.com/downloads/libraries/libphidget.tar.gz
  • Unpack the downloaded libraries using the command
Code Block
languagetext
titleUnpack command
linenumberstrue
tar -xzvf libphidget_2.X.X.XXXXXXXX.tar.gz
  • Then run the following commands to install Phidget libraries
Code Block
languagetext
titleUnpack command
linenumberstrue
cd libphidget-2.X.X.XXXXXXXX/
sudo ./configure
sudo make
sudo make install

Note: - For additional information and troubleshooting visit the following website                                    website (http://www.phidgets.com/docs/OS_-_Linux)