(Redirected from Lsusb)
The lsusb command provided in Ubuntu Linux provides information about USB devices connected to your computer. To use lsusb, open a terminal window and type:
This will display a list of all USB devices connected to your computer. Look for the hardware you want to use with OpenOCD. For the Flyswatter you should see something like this:
Bus 002 Device 006: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC
The bus number and device number will likely be different, but take note of them. Now get more information about the device by typing:
sudo lsusb -v -s [BUS_NUMBER]:[DEVICE_NUMBER]
For example, if you had seen the output listed above, you would type:
sudo lsusb -v -s 002:006
Scroll up through the information about your hardware. For the original Flyswatter, you should see something like this:
idVendor 0x0403 Future Technology Devices International, Ltd idProduct 0x6010 FT2232C Dual USB-UART/FIFO IC bcdDevice 5.00 iManufacturer 1 TinCanTools iProduct 2 Flyswatter iSerial 3 FS000000
Pay careful attention to the values following idVendor, idProduct, iProduct, and iSerial. If those values for your hardware don't match the values listed above, OpenOCD won't recognize the Flyswatter.
You should see similar output for the Flyswatter2, except that the iProduct and iSerial values are different:
idVendor 0x0403 Future Technology Devices International, Ltd idProduct 0x6010 FT2232C Dual USB-UART/FIFO IC bcdDevice 7.00 iManufacturer 1 Tin Can Tools iProduct 2 Flyswatter2 iSerial 3 FS200000
If lsusb doesn't show the values you expect for your hardware, there may be a problem with the hardware itself or with your USB drivers.