Speech:Spring 2016 X-10


 * Home
 * Semesters
 * Spring 2016
 * Proposal
 * Report
 * Information - General Project Information
 * Experiments - List of speech experiments

Info
Note: It is assumed that you have a working version of Red Hat Enterprise Linux (RHEL) that is able to receive updates properly.

The following steps will allow you to send X-10 signals from your FireCracker device from any RHEL machine.

You will also need the following code once you get the FireCracker to work via manual commands. This software will allow you to trigger the FireCracker remotely to turn on/off devices as well as SSH into them after a pre-determined amount of time (To allow for bootup).

https://foss.unh.edu/projects/index.php/Speech:Spring_2016_X-10_Code

=Step 1: Updates= To start these updates, in a terminal, type the following lines:

yum clean all

yum update Choose ‘y’ when prompted. Note that this will take a few minutes to download and install. It does quite a few things.

For reference, to update or install specific packages simply do: yum update xxx yum install xxx

Things to Install:

yum install gcc

This is a compiling tool used to fix this known issue: http://ccm.net/faq/859-machine-i686-pc-linux-not-recognized

=Step 2: Attach the FireCracker=

The FireCracker only has a COM port on it, so you'll need a USB adapter. There should be one with your FireCracker. Attach the two together, then plug the USB into the machine.

The machine will have no idea what you have plugged into it, so you'll need to help it along with this next step. The following command will tell you what the port is that the adapter is plugged into:

dmesg | grep tty

Output: usb 101.1: Keyspan 1 port adapter converter now attached to ttyUSB0

ttyUSB0 is the important part you need to write down. It may be different for you depending on the USB port you plug your device into! Always plug it into the same port in the future!

=Step 3: Compile and Install Heyu=

http://www.heyu.org/

Download the tar package and un-zip it.

Open a new terminal session and move into that new directory and type the following:

./Configure.sh

This will compile the program. If there is an error make sure you did ‘yum install gcc’ first. Note also that it is a capital C in configure.

make

This creates the executable file known as ‘heyu’

make install

Can only do this as root. This finalizes and configures the software.

While doing ‘make install’ you will be prompted for several options:

1. Configuration File Directory. Make sure to choose option 3 - system-wide access

2. TTY Port. Enter in: /dev/ttyUSB0 This is based on the information we wrote down in step 2.

=Step 4: Test!=

It is important to test it out to ensure that it works. Make sure to test the X-10 modules with the remote control to ensure they are set up properly to avoid any potential confusion. Then test the FireCracker.

Here are the primary commands you'll be using:

heyu fon M1 (This turns on the device) heyu foff M1 (This turns off the device)