Template:PT1 SBC3003 LNX
Contents
- 1 SBC3003 - Linux
- 2 Step 1: Install Phidgets Library
- 3 Step 2: Connect Devices
- 4 Step 3: Verify Connection
- 5 Step 4: Connect Wireless
- 6 Step 1: Install Phidgets Library
- 7 Step 1: Install Phidgets Library
- 8 Step 1: Install Phidgets Library
- 9 Step 1: Install Phidgets Library
- 10 Step 2: Connect Devices
- 11 Step 3: Verify Connection
- 12 Step 3: Verify Connection
- 13 Step 4: Connect Wireless
- 14 Step 4: Connect Wireless
- 15 Step 4: Connect Wireless
- 16 Step 4: Connect Wireless
- 17 Step 4: Connect Wireless
- 18 Step 4: Connect Wireless
- 19 Done!
SBC3003 - Linux
Step 1: Install Phidgets Library
Step 2: Connect Devices
Step 3: Verify Connection
Step 4: Connect Wireless
Step 1: Install Phidgets Library
1. First, you need to install the libusb-1.0 development libraries. For example, in Debian based distributions:
apt-get install libusb-1.0-0-dev
You’ll also need a C compiler and builder, if you don’t already have one installed.
apt-get install gcc
apt-get install make
Step 1: Install Phidgets Library
3. Use the following commands in the location you unpacked to install the library:
./configure
make
sudo make install
Step 1: Install Phidgets Library
4. (Optional) You can also download and unpack the following optional packages:
● phidget22networkserver - Phidget Network Server, which enables the use of Phidgets over your network
● phidget22admin - Admin tool to track who is connected to your Phidgets when using the network server
● libphidget22extra - Required for phidget22networkserver and phidget22admin
● libphidget22java - The Java libraries for Phidget22
For installation instructions for these packages, see the README file included with each one.
Step 2: Connect Devices
● Connect Power Jack
● Connect VINT Device(s)
● Connect Ethernet to a Router or Switch in the same network as your Linux machine
Step 3: Verify Connection
1. The easiest way to verify that your libraries are working properly is to compile and run an example program. Download and unpack this C example that will detect any Phidget:
Step 3: Verify Connection
2. Next, open the terminal in the location where you unpacked the example. Compile and run using:
gcc HelloWorld.c -o HelloWorld -lphidget22
sudo ./HelloWorld
If everything is working, you should receive a “Hello” line for each Phidget channel that is discovered:
You need to run it with sudo in order to be able to access USB devices. In order to use Phidgets without sudo, you need to set your udev rules. See the Advanced Information page on the final slide of this guide for details.
Now that the SBC's ethernet connection is verified, it can be connected to wifi.
If you don't have a USB wifi adapter or you're planning to stay on ethernet, you can scroll down to
Part 2: Using Your Phidget
Step 4: Connect Wireless
1. In your web browser, enter phidgetsbc.local
If you're using a terminal-only Linux machine, use the browser on your phone instead.
(If you use a phone, you need to enter the IP address your router assigned to the SBC instead of phidgetsbc.local)
Step 4: Connect Wireless
2. Create a password for your SBC. You will use this to access the configuration page from now on.
Step 4: Connect Wireless
3. Navigate to Network -> Wireless. Select your Network, enter the wifi password and select Add This Network.
Step 4: Connect Wireless
4. Scroll down to your saved networks, click on your network and select Join This Network.
Step 4: Connect Wireless
5. It should now say connected in the status column.
You can now unplug the ethernet cable.
Step 4: Connect Wireless
6. Run the HelloWorld example again to confirm that your Phidgets are accessible over wifi.
Done!
If you're able to see your devices in the Hello World example, you're done with the Setup part of this guide.
Scroll down to Part 2: Using Your Phidget for the next step.
For more info installing in Linux (e.g. Udev rules, old versions, etc.), visit this page: