FreeCalypso > hg > fc-usbser-tools
view cp2102/baudtab-gsm @ 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 | 7941a5e06d6a |
children |
line wrap: on
line source
# This CP2102 baud rate table is the version that is needed for talking # to 13 MHz GSM devices (16x UART clock input) faster than 115200 bps: # standard baud rates 230400/460800/921600 have been replaced with # GSM-specific (13 MHz based) 203125/406250/812500. baud-entry 0: 1500000 = FFF0, FFFA, 1, 0 # 1500000 baud, 12 us baud-entry 1: 1500000 = FFF0, FFFA, 1, 0 # 1500000 baud, 12 us baud-entry 2: 1200000 = FFEC, FFF8, 1, 0 # 1200000 baud, 16 us baud-entry 3: 812500 = FFE2, FFF4, 1, 0 # 800000 baud, 24 us baud-entry 4: 576000 = FFD6, FFF0, 1, 0 # 571428 baud, 32 us baud-entry 5: 500000 = FFD0, FFEE, 1, 0 # 500000 baud, 36 us baud-entry 6: 406250 = FFC5, FFE9, 1, 0 # 406779 baud, 46 us baud-entry 7: 256000 = FFA2, FFDC, 1, 0 # 255319 baud, 72 us baud-entry 8: 250000 = FFA0, FFDC, 1, 0 # 250000 baud, 72 us baud-entry 9: 203125 = FF8A, FFD3, 1, 0 # 203389 baud, 90 us baud-entry 10: 153600 = FF64, FFC5, 1, 0 # 153846 baud, 118 us baud-entry 11: 128000 = FF44, FFB9, 1, 0 # 127659 baud, 142 us baud-entry 12: 115200 = FF30, FFB2, 1, 0 # 115384 baud, 156 us baud-entry 13: 76800 = FEC8, FF8B, 1, 0 # 76923 baud, 234 us baud-entry 14: 64000 = FE89, FF73, 1, 0 # 64000 baud, 282 us baud-entry 15: 57600 = FE5F, FF63, 1, 0 # 57553 baud, 314 us baud-entry 16: 56000 = FE53, FF5F, 1, 0 # 55944 baud, 322 us baud-entry 17: 51200 = FE2B, FF50, 1, 0 # 51172 baud, 352 us baud-entry 18: 38400 = FD8F, FF15, 1, 0 # 38400 baud, 470 us baud-entry 19: 28800 = FCBF, FEC7, 1, 0 # 28811 baud, 626 us baud-entry 20: 19200 = FB1E, FE2B, 1, 0 # 19200 baud, 938 us baud-entry 21: 16000 = FA24, FE0C, 1, 0 # 16000 baud, 1.000 ms baud-entry 22: 14400 = F97D, FE0C, 1, 0 # 14397 baud, 1.000 ms baud-entry 23: 9600 = F63C, FE0C, 1, 0 # 9600 baud, 1.000 ms baud-entry 24: 7200 = F2FB, FE0C, 1, 0 # 7200 baud, 1.000 ms baud-entry 25: 4800 = EC78, FE0C, 1, 0 # 4800 baud, 1.000 ms baud-entry 26: 4000 = E890, FE0C, 1, 0 # 4000 baud, 1.000 ms baud-entry 27: 2400 = D8F0, FE0C, 1, 0 # 2400 baud, 1.000 ms baud-entry 28: 1800 = CBEB, FE0C, 1, 0 # 1800 baud, 1.000 ms baud-entry 29: 1200 = B1E0, FE0C, 1, 0 # 1200 baud, 1.000 ms baud-entry 30: 600 = 63C0, FE0C, 1, 0 # 600 baud, 1.000 ms baud-entry 31: 300 = B1E0, FE0C, 4, 0 # 300 baud, 1.000 ms