Installing Advantech DAQ Device Linux Driver

This Advantech DAQ Device Linux Driver Package is developed for Linux kernel version 2.6.x (for PCI, USB and PCM). The driver supports four platforms: Red Hat Enterprise Linux 4, Fedora Core 6, and Debian 4.0.

 

Read this document carefully, as it explains how to install the device driver, how to develop with this toolkit and what to do if anything goes wrong.

INSTALLING :

 

Note: If the driver was installed before, please remove it from the system firstly.

For Red Hat Enterprise Linux 4 and Fedora Core 6, please type the following commands:

#rpm -e advdaq

For Debian 4.0, please type the following commands:

#dpkg -r advdaq

 

1. Get the driver package according your platform. Type the following commands:

For Red Hat Enterprise 4 and Fedora Core 6:

#rpm -ivh advdaq-<version>.<platform>.i386.rpm

For Debian 4.0:

#dpkg -i advdaq_<version>_i386.deb

2. To install the driver modules and make device files, please type:

#insmod /usr/src/Advantech/DAQ-<version>/modules/advdrv_core.ko
#insmod /usr/src/Advantech/DAQ-<version>/modules/which_device_driver_you_want_to_insmod.ko
 

To create some device files, please check the /proc/device to get major device number, and then please type

#mknod /dev/advdaq0 c major 0 
......
#mknod /dev/advdaq254 c major 254

3. Bind device with device file, please type

#advdevice_bind <device_name> <board_id> <device_file>
the following parameters is used for ISA or PCM installation. see online help for more information about useage
--iobase <io base>  device's iobase
--irq <irq num>  device's irq num
An example for ISA Device pcm3718 installation:
#advdevice_bind --iobase 0x300 --irq 9 pcm3718 0 /dev/advdaq1
 

 NOTE: This package also provides a shell 
(/usr/src/Advantech/DAQ-<version>/adv_load_template) to
finish those work in one step, The user can modify this shell for own purpose and run it to load driver./pre>

SPECIAL DRIVER MODULE SUPPORT TABLE

KERNEL MODULESSUPPORT DEVICE
For kernel version 2.6.x
advdrv_core.kocommon module
usb4711.koUSB-4711/A
usb4716.koUSB-4716
usb4718.koUSB-4718
usb4750.koUSB-4750
usb4751.koUSB-4751
usb4761.koUSB-4761
pci1710.koPCI-1710/L/HG/HGL/U/UL/UHG, PCI-1711/L/U/UL, PCI-1713/U
pci1712.koPCI-1712/L
pci1714.koPCI-1714/UL
pci1715.koPCI-1715U/MIC3751
pci1716.koPCI-1716/L
pci1718.koPCI-1718HD/GU
pci1720.koPCI-1720U, PCI-1723, PCI-1724U, PCI-1727U
pci1721.koPCI-1721
pci1730.koPCI-1730, PCI-1733, PCI-1734, PCI-1736UP
pci1735.koPCI-1735U
pci1737.koPCI-1737U, PCI-1739U
pci1741U.koPCI-1741U
pci1742.koPCI-1742U
pci1747.koPCI-1747U
pci1750.koPCI-1750
pci1751.koPCI-1751
pci1752.koPCI-1752, PCI-1754, PCI-1756
pci1753.koPCI-1753
pci1757up.koPCI-1757UP
pci1758U.koPCI-1758UDI/UDO/UDIO
pci1760.koPCI-1760
pci1761.koPCI-1761, PCI-1762, PCI-1763UP
pci1780.koPCI-1780
pci1784.koPCI-1784/U
pcm3718.koPCM-3718H
pcm3724.koPCM-3724
pcm3725.koPCM-3725
pcm3730.koPCM-3730
pcm3730i.koPCM-3730I
pcm3753i.koPCM-3753I
pcm3761i.koPCM-3761I

4. The device driver is now installed.

If you are new to this driver, it is suggested that you refer to the examples..

DEVELOP WITH THIS TOOLKIT

Refer to Advantech DAQ Device Linux Driver User Manual, and you will get some information on the use of toolkit.

WHEN ANYTHING GOES WRONGG

-Call Advantech Customer Service Hotline and ask for technical support.