FreeCalypso > hg > fc-usbser-tools
view artifacts/usb-com232-plus2 @ 68:5cbde3c80c24
fteeprom-{erase,prog}: detach logic: change to detach by default
As it turns out, detaching all ttyUSB interfaces of a multichannel device
does not require outside knowledge of how many channels there are, as in
our previous -d option design that is being removed here - instead we can
read the bNumInterfaces constant from the USB device's config descriptor
and thus know how many interfaces there are in total. Based on this
discovery, change the design of fteeprom-{erase,prog} as follows:
* remove -d option;
* flip the default to where we detach all interfaces by default;
* add -n option to NOT detach any interfaces.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 13 Sep 2023 06:37:03 +0000 |
parents | 9ca4f9fa415b |
children |
line wrap: on
line source
# USB-COM232-PLUS2 is a board made by FTDI based on their FT2232H chip. # It is an adapter going from USB to two physical RS-232 ports on DE9M # connectors, thus it is a vanilla dual-UART device with the standard # 0403:6010 USB ID, but it still has an EEPROM (93C56) in which custom # textual ID strings have been programmed: the product string is # "USB-COM232 Plus2" instead of chip-default "Dual RS232-HS", and there # is a serial number string. 00: 0808 0403 6010 0700 6480 0008 0000 0A9A 10: 22A4 12C6 0000 0000 0056 0000 0000 0000 20: 0000 0000 0000 0000 0000 0000 0000 0000 30: 0000 0000 0000 0000 0000 0000 0000 0000 40: 0000 0000 0000 0000 0000 0000 0000 0000 50: 0000 0000 0000 0000 0000 0000 0000 0000 60: 0000 0000 0000 0000 0000 0000 0000 0000 70: 0000 0000 0000 0000 0000 0000 0000 0000 80: 0000 0000 0000 0000 0000 0000 0000 0000 90: 0000 0000 0000 0000 0000 030A 0046 0054 A0: 0044 0049 0322 0055 0053 0042 002D 0043 B0: 004F 004D 0032 0033 0032 0020 0050 006C C0: 0075 0073 0032 0312 0046 0054 0057 0055 D0: 004C 0052 0054 004D 0302 0001 0000 0000 E0: 0000 0000 0000 0000 0000 0000 0000 0000 F0: 0000 0000 0000 0000 0000 0000 0000 BE30