1666
Hardware / Re:Pasivní usb hub
« kdy: 04. 04. 2019, 16:26:59 »USB hub si nese sebou konfiguraci, ktera do OS rika, ze "ja nemam zdroj" (bus powered), tudiz periferie ktere jsou nad 100mA se nebudou povolovat.mam na pasivnom usb hube (aliexpress lowend, konektormi a vizualne nieco taketo Manhattan 160605) pripojenu opticku MRZ citacku dokladov s odberom cca 400mA a mys s odberom cca 100mA a obe zariadenia funguju sucasne.
Neco podobneho mam taky:
https://www.alza.cz/hama-usb-2-0-4-port-cerny-d364968.htm
Zde je lsusb -v:
Kód: [Vybrat]
Bus 001 Device 051: ID 05e3:0608 Genesys Logic, Inc. Hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x05e3 Genesys Logic, Inc.
idProduct 0x0608 Hub
bcdDevice 85.36
iManufacturer 0
iProduct 1 USB2.0 Hub
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 4
wHubCharacteristic 0x00e0
Ganged power switching
Ganged overcurrent protection
TT think time 32 FS bits
Port indicators
bPwrOn2PwrGood 50 * 2 milli seconds
bHubContrCurrent 100 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Port 4: 0000.0100 power
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0001
Self Powered
Jak vidite, hub o sobe falesne tvrdi ze je self-powered. Takze ano.. error vam nevyskoci a kdyz to neprezenete v souctu nad 500mA, tak vas host neodpoji pro nadproud. Ale normalni podle standardu to neni.