It seems that the osx-pl2303-0.2.1-10.4-universal driver names the device name as /dev/tty.PL2303-XXXXXXXX, where X = the address of the port the adapter is plugged in to.
I don't know if this is fallback behaviour for a device that does not have an embedded serial number - "USB Prober" developer utility reports "Serial Number String: 0 (none)" for my ATEN USB Serial adapter (0x0557/0x2008). I believe it would be preferable for an adapter with a serial number to be named per the serial number regardless of where it's plugged in.
(BTW, where's the source code?)
Rgds,
Ben
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The naming of the device is based on the serial number except when there is no serial number ;-) The ATEN device doesn't provide this number so the suffix is based on the USB location.
Apple provides a solution to determine available serial ports. See the documentation at developer.apple.com. In that case the suffix of the adapter is less important.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
And for the curious, 'ioreg -w 0 -c IOSerialBSDClient' enumerates the available serial devices (though not in an easily parseable way, so I guess the idea is to write some code for that...).
Thanks again for the great work.
Rgds,
Ben
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"FYI":
It seems that the osx-pl2303-0.2.1-10.4-universal driver names the device name as /dev/tty.PL2303-XXXXXXXX, where X = the address of the port the adapter is plugged in to.
I don't know if this is fallback behaviour for a device that does not have an embedded serial number - "USB Prober" developer utility reports "Serial Number String: 0 (none)" for my ATEN USB Serial adapter (0x0557/0x2008). I believe it would be preferable for an adapter with a serial number to be named per the serial number regardless of where it's plugged in.
(BTW, where's the source code?)
Rgds,
Ben
You can download the source code with subversion:
svn co https://svn.sourceforge.net/svnroot/osx-pl2303 osx-pl2303
see: http://sourceforge.net/svn/?group_id=157692
The naming of the device is based on the serial number except when there is no serial number ;-) The ATEN device doesn't provide this number so the suffix is based on the USB location.
Apple provides a solution to determine available serial ports. See the documentation at developer.apple.com. In that case the suffix of the adapter is less important.
Source in SVN - oh, of course :-)
Thanks for clarifying the naming behaviour, and the pointer re. the apple doc:
ADC Home > Reference Library > Guides > Hardware & Drivers > Accessing Hardware From Applications > Finding and Accessing Devices
http://developer.apple.com/documentation/DeviceDrivers/Conceptual/AccessingHardware/AH_Finding_Devices/chapter_4_section_2.html
And for the curious, 'ioreg -w 0 -c IOSerialBSDClient' enumerates the available serial devices (though not in an easily parseable way, so I guess the idea is to write some code for that...).
Thanks again for the great work.
Rgds,
Ben