Tutorial - University of Calgary in Albertasaul/781/presentations/... · 2005. 11. 18. · access...
Transcript of Tutorial - University of Calgary in Albertasaul/781/presentations/... · 2005. 11. 18. · access...
GroupLab University of Calgary
November 2005Nicolai [email protected]
CPSC 781: Computer-Supported Cooperative WorkGroupLab, Prof. Saul GreenbergUniversity of Calgary
Tutorial:Physical User Interfaceswith Phidgets
2GroupLab University of Calgary
Phidget Background, MSN API Background
Outline
Phidget Tutorial
The “Phidget MSN Tutorial”
3GroupLab University of Calgary
Examples
Phidget Tutorial
4GroupLab University of Calgary
Phidgets
RFID Reader LC Display Servo Interface Kit
Phidget Tutorial
5GroupLab University of Calgary
Architecture
Computer
USB
Phidgets
Computer USB Hardware
Phidget Tutorial
6GroupLab University of Calgary
Architecture
Computer
USB Phidgets20.dll
Phidgets
Computer USB Hardware
API that encapsulates the low-level Phidget access
Phidget Tutorial
7GroupLab University of Calgary
Architecture
Computer
USB Phidgets20.dll
COM
Phidgets
Computer USB Hardware
API that encapsulates the low-level Phidget access
JNI Java
.NET
C++
COM API Wrapper
Phidget Tutorial
8GroupLab University of Calgary
Architecture
Computer
USB Phidgets20.dll
COM
Phidgets
Grouplab.phidgets.dll
Computer USB Hardware
API that encapsulates the low-level Phidget access
JNI Java
.NET
C++
COM API Wrapper
Provides .NET components: Phidget objects and skins
Phidget Tutorial
9GroupLab University of Calgary
Architecture
Computer
USB Phidgets20.dll
COM
Phidgets
Computer USB Hardware
API that encapsulates the low-level Phidget access
JNI Java
.NET
C++
COM API Wrapper
Grouplab.phidgets.dll
Provides .NET components: Phidget objects and skins
Phidget Tutorial
10GroupLab University of Calgary
Components and Skins
Attach
PhidgetManager
PhidgetManagerSkin
Detach
Error
Devices
= Events
= Properties
Phidget Tutorial
11GroupLab University of Calgary
Components and Skins
Attach
PhidgetManager
PhidgetManagerSkin
Detach
Error
Devices
PhidgetComponentAttach Detach Error
Abstract Base Class
Name Serial VersionPhidgetDevice
= Events
= Properties
Phidget Tutorial
12GroupLab University of Calgary
Components and Skins
Attach
PhidgetManager
PhidgetManagerSkin
Detach
Error
Devices
PhidgetComponentAttach Detach Error
Abstract Base Class
Servo InterfaceKit
…
Name Serial VersionPhidgetDevice
PositionChange
Motors InputChange
Outputs
SensorChange
= Events
= Properties
Phidget Tutorial
13GroupLab University of Calgary
Components and Skins
Attach
PhidgetManager
PhidgetManagerSkin
Detach
Error
Devices
PhidgetComponentAttach Detach Error
Abstract Base Class
Servo
ServoSkin
InterfaceKit
InterfaceKitSkin
…
…
Name Serial VersionPhidgetDevice
PositionChange
Motors InputChange
Outputs
SensorChange
= Events
= Properties
Phidget Tutorial
14GroupLab University of Calgary
Interaction with MSN Messenger
C#Application
The COM Interface is from the Windows Messenger (Version 4.7), but you have to use it to access the functionality of the MSN Messenger (Version 7.0 or later)
Messenger API Type Library
\Messenger\msmsgs.exe
Messenger Object
OnContactStatusChange
OnMyStatusChanged
MyStatus
= Events
= Properties
Phidget Tutorial
15GroupLab University of Calgary
Our Application Example
MSN Messenger
Phidget Tutorial
16GroupLab University of Calgary
Our Application Example
MSN Messenger
Phidget TextLCD: Status change of users
Phidget RFID: set user status
Phidget IFKit: LED for user status
Online Away, Offline, etc.
Phidget Tutorial
GroupLab University of Calgary
So far to the theory… let’s practice!
Nicolai [email protected]
GroupLab, 781 - CSCWUniversity of Calgary
18GroupLab University of Calgary
Tutorial Online
http://pages.cpsc.ucalgary.ca/~saul/781/wiki/pmwiki.php?n=Main.MSNPhidget