FreeCalypso > hg > fc-usbser-tools
annotate 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 |
rev | line source |
---|---|
49
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 # USB-COM232-PLUS2 is a board made by FTDI based on their FT2232H chip. |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 # It is an adapter going from USB to two physical RS-232 ports on DE9M |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 # connectors, thus it is a vanilla dual-UART device with the standard |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 # 0403:6010 USB ID, but it still has an EEPROM (93C56) in which custom |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 # textual ID strings have been programmed: the product string is |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 # "USB-COM232 Plus2" instead of chip-default "Dual RS232-HS", and there |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 # is a serial number string. |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 00: 0808 0403 6010 0700 6480 0008 0000 0A9A |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 10: 22A4 12C6 0000 0000 0056 0000 0000 0000 |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 20: 0000 0000 0000 0000 0000 0000 0000 0000 |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 30: 0000 0000 0000 0000 0000 0000 0000 0000 |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 40: 0000 0000 0000 0000 0000 0000 0000 0000 |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 50: 0000 0000 0000 0000 0000 0000 0000 0000 |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 60: 0000 0000 0000 0000 0000 0000 0000 0000 |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 70: 0000 0000 0000 0000 0000 0000 0000 0000 |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 80: 0000 0000 0000 0000 0000 0000 0000 0000 |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 90: 0000 0000 0000 0000 0000 030A 0046 0054 |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 A0: 0044 0049 0322 0055 0053 0042 002D 0043 |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 B0: 004F 004D 0032 0033 0032 0020 0050 006C |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 C0: 0075 0073 0032 0312 0046 0054 0057 0055 |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 D0: 004C 0052 0054 004D 0302 0001 0000 0000 |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 E0: 0000 0000 0000 0000 0000 0000 0000 0000 |
9ca4f9fa415b
artifacts: import from freecalypso-hwlab/eeproms/dumps
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 F0: 0000 0000 0000 0000 0000 0000 0000 BE30 |