selam size yeni keşfettiğim bir linux sihirinden bahsetmek istiyorum
lsusb -v -d (portno yada IDler)
kardan gelen bilgileri yani usbden mcudan bunun veri boyutları ve endpointler olarak görebiliyorsunuz çok kullanışlı
örnek çıktı
lsusb -v -d (portno yada IDler)
kardan gelen bilgileri yani usbden mcudan bunun veri boyutları ve endpointler olarak görebiliyorsunuz çok kullanışlı
örnek çıktı
Kod:
Bus 001 Device 015: ID 0483:5720 STMicroelectronics Mass Storage Device
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0483 STMicroelectronics
idProduct 0x5720 Mass Storage Device
bcdDevice 2.00
iManufacturer 1 MikroStep
iProduct 2 NT Demo
iSerial 3 SN:02023
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0029
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 2.00
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 28
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1