SPCP8x5 Driver Installation
From LinuxMCE
Revision as of 09:21, 10 February 2008 by Hari (Talk | contribs) (SPCP8x5 moved to SPCP8x5 Driver Installation)
Contents
About
This is a small howto compile the spcp8x5 kernel driver module. It's used in some ZWave sticks.
Instructions
Installing Subversion
If you don't have Subversion installed do the following:
sudo apt-get install subversion
Get the driver
Check out the driver from the repository:
linuxmce@dcerouter:/tmp$ svn co http://svn.charonmedia.org/svn/vendor/spcp8x5 A spcp8x5/spcp8x5.c A spcp8x5/Makefile Checked out revision 1512.
Compile the driver
Change into the "spcp8x5" directory and build the kernel driver module:
linuxmce@dcerouter:/tmp/spcp8x5$ make make -C /lib/modules/2.6.20-15-generic/build M=/tmp/spcp8x5 modules make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic' CC [M] /tmp/spcp8x5/spcp8x5.o Building modules, stage 2. MODPOST 1 modules CC /tmp/spcp8x5/spcp8x5.mod.o LD [M] /tmp/spcp8x5/spcp8x5.ko make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic linuxmce@dcerouter:/tmp/spcp8x5$
Load the modules
linuxmce@dcerouter:/tmp/spcp8x5$ sudo modprobe usbserial linuxmce@dcerouter:/tmp/spcp8x5$ sudo insmod spcp8x5.ko
Verify
Plug the device in and use the "dmesg" command to verify the device initialization:
[ 6007.724000] drivers/usb/serial/usb-serial.c: USB Serial support registered for SPCP8x5 [ 6007.728000] usbcore: registered new interface driver spcp8x5 [ 6007.728000] /tmp/spcp8x5/spcp8x5.c: SPCP8x5 USB to serial adaptor driver v0.04 [ 6168.652000] usb 1-1: new full speed USB device using uhci_hcd and address 4 [ 6168.820000] usb 1-1: configuration #1 chosen from 1 choice [ 6168.824000] spcp8x5 1-1:1.0: SPCP8x5 converter detected [ 6168.824000] usb 1-1: SPCP8x5 converter now attached to ttyUSB1
View the device id's
Use "lsusb" to see the usb device id (this is from the Intermatic HA22):
Bus 001 Device 004: ID 04fc:0204 Sunplus Technology Co., Ltd