Re: USB serial converter numbering

From: Dave {Reply Address in.sig} (noone$$_at_llondel.org)
Date: 01/06/05


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...


Relevant Pages

  • Re: any known working USB/serial converters?
    ... does anyone have such a converter that just plain works out of the ... The log shown there lists a Prolific pl2303 USB serial converter chip. ... Use FTDI stuff. ... prolific devices in applications from intermittent bursts at 1200bps, ...
    (Fedora)
  • Re: Trying to identify this Serial > USB adapter
    ... "All serial ports are in use", but I am assuming that it can't find ... I was thinking the device drivers for the adpater ... How can I connect the UPS with a USB cable? ... Contact tech support and request a USB converter order form. ...
    (microsoft.public.windowsxp.hardware)
  • Re: any known working USB/serial converters?
    ... does anyone have such a converter that just plain works out of the ... The log shown there lists a Prolific pl2303 USB serial converter chip. ... Use FTDI stuff. ... prolific devices in applications from intermittent bursts at 1200bps, ...
    (Fedora)
  • Re: Null modem serial cable
    ... USB to serial converter..? ... any serial ports and I have numerous devices requiring ... the one I bought from Maplins works fine. ... But it surely depends on which precise model of computer ...
    (uk.telecom.broadband)
  • Re: Where is TTA0: on Integrity rx3600?
    ... converter and add as many serial ports as you like. ... There's no money involved. ... maddening though that something as simple as connecting to a serial ...
    (comp.os.vms)