SPCP8x5 Driver Installation

From LinuxMCE
Revision as of 07:53, 3 May 2010 by Wierdbeard65 (Talk | contribs)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search
Version Status Date Updated Updated By
710 Unknown N/A N/A
810 Unknown N/A N/A
1004 Unknown N/A N/A
1204 Unknown N/A N/A
1404 Unknown N/A N/A
Usage Information


This is a small howto compile the spcp8x5 kernel driver module. It's used in some ZWave sticks.



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

Load the modules

linuxmce@dcerouter:/tmp/spcp8x5$ sudo modprobe usbserial
linuxmce@dcerouter:/tmp/spcp8x5$ sudo insmod spcp8x5.ko

Install the modules

You may have to substitute "2.6.20-15-generic" with your actual kernel version (do a "ls /lib/modules" to find out):

sudo cp spcp8x5.ko  /lib/modules/2.6.20-15-generic/kernel/drivers/usb/serial/
sudo depmod -ae


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

If you want Plug and Play you have to add the id to the ZWave device template: