tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: umodeswitch
On Fri, Apr 09, 2021 at 06:07:17PM +0200, Emmanuel Dreyfus wrote:
> port 10 addr 2: high speed, power 500 mA, config 1, Mobile
> Connect(0xab00), Mobile Connect(0x2001), rev 2.28(0x0228), serial
> 25052a63011b
While I got some success with ZTE MF112, with the cold boot configuration
problem left, (see other message in the thread), I can get no satisfaction
with D-Link DWM-222. Looking at usb_modeswitch and FreeBSD code, it seems
it is supposed to switch its product ID from ab00 to 7e12 on plain disk
eject, there is no special handling compared to other devices.
But even after umodeswitch removed the scsibus/sd devices, it gets
stuck as ab00 as reported by usbdevs:
port 10 addr 3: high speed, power 500 mA, config 1, Mobile Connect(0xab00), Mobile Connect(0x2001), rev 2.28(0x0228), serial 25052a63011b
umodeswitch0
I got more information using usbutil:
# usbctl -a 3 -f /dev/usb1
DEVICE addr 3
DEVICE descriptor:
bLength=18 bDescriptorType=device(1) bcdUSB=2.01 bDeviceClass=0 bDeviceSubClass=0
bDeviceProtocol=0 bMaxPacketSize=64 idVendor=0x2001 idProduct=0xab00 bcdDevice=228
iManufacturer=1(Mobile Connect) iProduct=2(Mobile Connect) iSerialNumber=3(25052a63011b) bNumConfigurations=1
CONFIGURATION descriptor 0:
bLength=9 bDescriptorType=config(2) wTotalLength=32 bNumInterface=1
bConfigurationValue=1 iConfiguration=0() bmAttributes=80 bMaxPower=500 mA
INTERFACE descriptor 0:
bLength=9 bDescriptorType=interface(4) bInterfaceNumber=0 bAlternateSetting=0
bNumEndpoints=2 bInterfaceClass=8 bInterfaceSubClass=6
bInterfaceProtocol=80 iInterface=4(Mass Storage)
ENDPOINT descriptor:
bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=1-in
bmAttributes=bulk wMaxPacketSize=512 bInterval=0
ENDPOINT descriptor:
bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=1-out
bmAttributes=bulk wMaxPacketSize=512 bInterval=1
current configuration 1
----------
--
Emmanuel Dreyfus
manu%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index