How to Install and Test PCI 16 Photo/16 Relay Card on Linux


(1) Instalation : Download driver from as follows:

Kernel 2.2.14

Kernel 2.4.18


(2) Please follow as follows to install:
This sample is under REDHAT 8.0 KERNEL 2.4.18-14.


Step1: Extract the file



Step 2: Execute the install file to install



Step 3: Please use "lsmod" command to check




(3)Please edit /etc/rc.local to add a command line as follows:





(4)Please reboot systems.


(5)Please use 'lsmod' to check after system restarted. You can find PCI 16 Photo/16 Relay.



2.About uninstall




3. About Test:

(1) The test equipment

Please connect a loopback with PCI 16 Photo/16 Relay card.


Made a Loopback test tool.









(2) The test program
The device driver already includes three test programs.
1.test.c: Auto tests Relay Output ON/OFF.
2.test1.c: Auto tests Relay Output and Photo Input.
3.test2.c: Manuly tests Relay Output.


(3)Please compile the 'test.c' 'test1.c' 'test2' files as following step:
Then it will create the 'test' 'test1' 'test2' file.



(4) Please execute the 'test' file to test Relay output. You will see Led light from L1 to L16 Auto ON and OFF .



The test.c's content is as follows:




(5) Please execute 'test1' to test Relay and Photo. The result is as follows:



The test1.c's content is as follows:




(5)Please execute 'test2' to test Relay . The result is as follows:



The test2.c's content is as follows: