libftdi Archives

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

From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 8 Nov 2011 10:06:10 +0100
>>>>> "Robert" == Robert Pearce <rob@xxxxxxxxxxxxxxxxxxxx> writes:

    Robert> Hi Uwe, On Mon, 7 Nov 2011 20:41:26 +0100 you wrote:
    >>
    Robert> SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{serial}=="xxxxxxx",
    Robert> SYMLINK="port_01"
    >>  Robert,
    >> 
    >> it there any way I can have ATTRS{serial} as SYMLINK target?

    Robert> You mean have the device name (or link path) contain the serial
    Robert> number?  Yes, I think so, but I've not tried it. In theory the
    Robert> %s modifier gives access to attributes, so:

    Robert> SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", SYMLINK="sio_%s{serial}"

    Robert> I haven't tried it, though.

SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", SYMLINK="%s{product}_%s{serial}"
produces
lrwxrwxrwx  1 root root           7  8. Nov 10:05 _ -> ttyUSB0

SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{vendor}=="IKDA", 
SYMLINK="%s{product}_%s{serial}"
doesn't produce any link

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