libftdi Archives

Subject: UDEV, wasL Re: Writing and reading to a FT232R

From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 7 Nov 2011 20:41:26 +0100
>>>>> "Robert" == Robert Pearce <rob@xxxxxxxxxxxxxxxxxxxx> writes:

    Robert> On Mon, 7 Nov 2011 16:17:32 +0100 Uwe wrote:
    >>  You can programm VID/PID/Vendor/Description/Serial. I tried
    >> something like SUBSYSTEMS=="usb", KERNEL=="ttyUSB*",
    >> ATTRS{product}=="QM07", NAME="qm07_%n" in
    >> /etc/udev/rules.d/10-udev.rules and even so udev was not happy with
    >> my syntax, the devices/links were created.

    Robert> While this is the nice way to do it in many cases, the current
    Robert> version of UDEV will whinge about the "NAME" if it doesn't match
    Robert> the kernel default. Since one of the claimed driving factors for
    Robert> UDEV was "to remove (naming) policy from the kernel", this seems
    Robert> utterly broken to me, but there you go.

    Robert> The approved way is to substitute "SYMLINK" for "NAME" and then
    Robert> you get both the kernel default and the name you want.

    Robert> However, for the OP's purpose this is still no good, because he
    Robert> has two "identical" FTDI chips. He may have better luck using:

    Robert>   SUBSYSTEMS=="usb", KERNEL=="ttyUSB*",
    Robert> ATTRS{serial}=="xxxxxxx", SYMLINK="port_01"

Robert,

it there any way I can have ATTRS{serial} as SYMLINK target?

Thanks
-- 
Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread