top01.jpg (17169 bytes)
mleft.jpg (4986 bytes) m01a.jpg (6169 bytes)     m02a.jpg (6905 bytes)     m03a.jpg (7743 bytes)    m04a.jpg (7456 bytes)     m05a.jpg (7878 bytes)     m06a.jpg (6862 bytes)     m07a.jpg (6076 bytes) mright01.jpg (5078 bytes)

LINUX SDK  

/dev Directory for ADU Devices   adulogo.jpg (1752 bytes)


The /dev directory lists the devices connected to the Linux computer.

Symbolic links placed into the /dev directory allows access to devices through alternative names.

This page describes how to list the names of ADU devices.

(Easy-Use Home)

 

ls Command

The ls command is used to display the /dev directory contents.

The following example shows the output of the ls command on a system running Fedora * Live CD.

    [fedora@localhost ~]$ ls -l /dev/adu*
    crw-rw-rw- 1 root root 180, 67 2008-02-29 15:04 /dev/adutux0
    lrwxrwxrwx 1 root root       7 2008-02-29 15:04 /dev/adutux4 -> adutux0

This shows two entries for an ADU device in the /dev directory.

The first entry shows that the adutux driver named the ADU device /dev/adutux0 since it was the first ADU device connected to the computer. If another ADU device was connected first then it would have been named /dev/adutux0.

The second entry shows the symbolic link that udev created when the ADU device was detected. The symbolic link for the B00099 ADU device is always /dev/adutux4 regardless of the sequence of device connection.

The permission on the /dev/adutux4 is rwxrwxrwx allowing global read-write.

Without the 10-adu.rules file the ls command displays.

    [fedora@localhost ~]$ ls -l /dev/adu*
    crw-rw---- 1 root root 180, 67 2008-03-02 07:45 /dev/adutux0

The /dev/adutux4 symbolic link is missing.
Even worse the loosest permission is read-write for the root group.
A normal user cannot access the /dev/adutux0 device.

 

NEWS         PRODUCTS         PROGRAMMING          APPLICATIONS          CUSTOM DESIGN          ORDERING          HOME


TestPoint is a trademark of Capital Equipment Corp.   
LabVIEW is a trademark of National Instruments.
Visual BASIC is a trademark of Microsoft Corporation


Copyright © 2009 ONTRAK CONTROL SYSTEMS 764 Notre Dame Ave, Unit #1 , Sudbury, Ontario, CANADA P3A 2T2  
"Quality serial Data Acquisition Interfaces"           PH. (705) 671-2652 FAX (705) 671-6127