FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    tonymcconnell Guest

    udev and bInterfaceNumber

    Hello,

    trying to create udev rules for individual naming of a USB multiport serial device:

    Code:
    SUBSYSTEMS=="usb",ATTRS{serial}=="FT3HW1KP",ATTRS{bInterfaceNumber}=="00",MODE="0666",SYMLINK+="tty_rs232Modem",OPTIONS+="last_rule"
    SUBSYSTEMS=="usb",ATTRS{serial}=="FT3HW1KP",ATTRS{bInterfaceNumber}=="01",MODE="0666",SYMLINK+="tty_rs232iso",OPTIONS+="last_rule"
    SUBSYSTEMS=="usb",ATTRS{serial}=="FTC9XO8W",MODE="0666",SYMLINK+="tty_rs422iso1",OPTIONS+="last_rule"
    SUBSYSTEMS=="usb",ATTRS{serial}=="FTC9XO8O",MODE="0666",SYMLINK+="tty_rs422iso2",OPTIONS+="last_rule"
    However, the bInterfaceNumber part doesn't seem to work; the latter two rules work OK.

    Using, udev-124-1.fc9.2.i386

    If anybody has any ideas that would be great!

  2. #2
    Join Date
    Apr 2008
    Posts
    558
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Which *filename* are these rules in? Rules are processed in order.

    Turn on udev debugging, to help see what's going on - "man udevadm".

  3. #3
    tonymcconnell Guest
    It works OK if I change the first two rules to:

    Code:
    DRIVERS=="ftdi_sio",SUBSYSTEMS=="usb",ATTRS{bInterfaceNumber}=="00",ATTRS{../serial}=="FT3HW1KP",SYMLINK+="tty_rs232Modem",OPTIONS+="last_rule"
    DRIVERS=="ftdi_sio",SUBSYSTEMS=="usb",ATTRS{bInterfaceNumber}=="01",ATTRS{../serial}=="FT3HW1KP",SYMLINK+="tty_rs232iso",OPTIONS+="last_rule"
    File name is "99-persistent_usb_serial.rules", by the way.

    Was getting confused about how to have things in the tree of attributes ... although I thought it was supposed to traverse the parent automatically?

Similar Threads

  1. Replies: 1
    Last Post: 26th November 2007, 11:57 PM
  2. udev 078 problem
    By tsukaza in forum Using Fedora
    Replies: 0
    Last Post: 23rd December 2005, 04:54 PM
  3. udev for fc4
    By WhyTea in forum Using Fedora
    Replies: 0
    Last Post: 8th September 2005, 12:07 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •