libftdi Archives

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

From: Robert Pearce <rob@xxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 8 Nov 2011 18:28:52 +0000
On Tue, 8 Nov 2011 18:12:03 +0100 Uwe wrote:
> >>>>> "Uwe" == Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> writes:
> 
> 
>     Uwe> works as expected: lrwxrwxrwx 1 root root 7 8. Nov 10:41
>     Uwe> QM07_CONN_0001 -> ttyUSB0
> 
> No need to write these brain-twisting rules. Look into
> ls /dev/serial/by-id/
> where for me I have
> /dev/serial/by-id/usb-IKDA_FTDIJTAG_0002-if00-port0
> 
Indeed, if all you need is uniqueness. I've ended up writing some
utterly mind-boggling multi-part UDEV rules to produce unique AND clean
names, e.g. "/dev/qpod1" for a particular Sigma Q-Pod device and
"/dev/qpod2" for the next one, all happening automagically. I had to
dig deeply into the persistent-net-generator rules to work that lot out.

Cheers,
Rob

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

Current Thread