...
Phidget Input Parameter List
Name | Description | How 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"/> |
SerialNumber | This represents the interface port number to which the sensor or motor is connected. | SerialNumber is passed as a modifier to Invoke |
ServoAngle | Angle 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> |
Simulated | Simulates 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 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
sudo apt-get install libusb-1.0-0-dev |
- Download Phidget Libraries from this location
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
http://www.phidgets.com/downloads/libraries/libphidget.tar.gz
|
- Unpack the downloaded libraries using the command
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
tar -xzvf libphidget_2.X.X.XXXXXXXX.tar.gz |
- Then run the following commands to install Phidget libraries
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
cd libphidget-2.X.X.XXXXXXXX/
sudo ./configure
sudo make
sudo make install |
- Refer to TQL CLI Protocol Install section for installation of phidget driver.
Note: - For additional information and troubleshooting visit the following website website (http://www.phidgets.com/docs/OS_-_Linux)