Difference between revisions of "SPCP8x5 Driver Installation"
From LinuxMCE
m |
Wierdbeard65 (Talk | contribs) m |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{Versioninfo}} | |
− | [[Category: | + | [[Category: RF Control]] |
[[Category: ZWave]] | [[Category: ZWave]] | ||
[[Category: Tutorials]] | [[Category: Tutorials]] | ||
Line 6: | Line 6: | ||
= About = | = About = | ||
This is a small howto compile the spcp8x5 kernel driver module. It's used in some ZWave sticks. | This is a small howto compile the spcp8x5 kernel driver module. It's used in some ZWave sticks. | ||
+ | |||
+ | = THIS IS NOT NEEDED SINCE 0710. THE DRIVER IS INCLUDED = | ||
= Instructions = | = Instructions = | ||
Line 35: | Line 37: | ||
linuxmce@dcerouter:/tmp/spcp8x5$ sudo modprobe usbserial | linuxmce@dcerouter:/tmp/spcp8x5$ sudo modprobe usbserial | ||
linuxmce@dcerouter:/tmp/spcp8x5$ sudo insmod spcp8x5.ko | 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 | ||
== Verify == | == Verify == | ||
Line 49: | Line 56: | ||
Use "lsusb" to see the usb device id (this is from the Intermatic HA22): | 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 | 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: | ||
+ | |||
+ | [[ZWave_DeviceTemplate_PlugAndPlay]] |
Latest revision as of 07:53, 3 May 2010
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 |
Contents
About
This is a small howto compile the spcp8x5 kernel driver module. It's used in some ZWave sticks.
THIS IS NOT NEEDED SINCE 0710. THE DRIVER IS INCLUDED
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
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
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
If you want Plug and Play you have to add the id to the ZWave device template: