Re: USB serial converter numbering
From: Dave {Reply Address in.sig} (noone$$_at_llondel.org)
Date: 01/06/05
- Next message: serge: "Re: Does linux support 7134 tvtuner chip?"
- Previous message: billdbrk_at_physics.ucr.edu: "Re: Reboot won't on Fedora core 2"
- In reply to: Ville Voipio: "Re: USB serial converter numbering"
- Next in thread: Robert Nichols: "Re: USB serial converter numbering"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 06 Jan 2005 20:20:18 +0000
In message <i3ky8f6v8np.fsf@kosh.hut.fi>, Ville Voipio wrote:
> "Dave {Reply Address in.sig}" <noone$$@llondel.org> writes:
>
>> I don't think the standard serial converters (mine are all PL2303-based)
>> have serial numbers, at least based on trying that idea.
>
> It seems that the FTDI based ones have something like FTxxxxxx
> (six letters). The serial numbers can be found at least
> grepping through /proc/bus/usb/devices. I have the idea of
> making symlinks to the real names by the serial numbers. Then
> I need just a simple script which makes the links based on
> a file listing the available ports.
>
> It seems that the number x in /dev/ttyUSBx is the minor number
> of the converter, so there is some determinism here. However,
> finding out the allocation order for the minor numbers for
> USB serial converters seems to require some browsing through
> the kernel/driver sources.
>
>> nothing changes. It's a right pain, especially if you're using a Mac
>> where there are no built-in ports or a legacy-free PC motherboard.
>
> This may depend on the converters, though. The FTDI OS X driver
> gives the names based on the serial number (i.e. /dev/ttyFTABCDEF),
> which makes things easier in a way (and more difficult in another;
> typing the port names is a pain in the lower back).
>
The PL2303 on a system here says:
T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=067b ProdID=2303 Rev= 2.00
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=pl2303
E: Ad=81(I) Atr=03(Int.) MxPS= 10 Ivl=1ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
so no sign of a serial number. The FTDI one is a pain if you use a different
converter, you have to change the script, although less of a pain than
having your serial ports spontaneously renumber themselves on reboot so
none of the peripherals work.
> I am rather surprised by the ease of OS X installation of the converters.
> Even though converter vendors do not promise any compatibility,
> everything works. And what is even better; I have been able
> to command the serial ports with exactly the same source code
> in Windows (Cygwin), OS X, and Linux.
>
I've used the pl2303 on a Mac to interface happily to both a contact-closure
and an intelligent UPS using the Network UPS Tools stuff.
-- Dave mail da ve@llondel.org (without the space) http://www.llondel.org/ So many gadgets, so little time...
- Next message: serge: "Re: Does linux support 7134 tvtuner chip?"
- Previous message: billdbrk_at_physics.ucr.edu: "Re: Reboot won't on Fedora core 2"
- In reply to: Ville Voipio: "Re: USB serial converter numbering"
- Next in thread: Robert Nichols: "Re: USB serial converter numbering"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|