ZTE MF 190 USB 3G stick

2011-01-12 Thread Alexander

Hi,
I'm trying to get a ZTE MF 190 USB stick to work on  
FreeBSD8.2(tag=RELENG_8), so far with little success.
I checked that the thing is working using Windows and it appears that  
has switched the device persistently from storage into 'modem' mode.

At least usb_modeswitch keeps telling me the device is already switched:

$ usb_modeswitch -W -c /etc/usb_modeswitch.d/19d2\:2000

Reading config file: /etc/usb_modeswitch.d/19d2:2000

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 1.1.6 (C) Josua Dietze 2010
 * Based on libusb0 (0.1.12 and above)

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x19d2
DefaultProduct= 0x2000
TargetVendor=   0x19d2
TargetProduct=  not set
TargetClass=not set
TargetProductList=0001,0002,0015,0016,0017,0031,0037,0052,0055,0063,0064,0108,0
128

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
KobilMode=0
MessageEndpoint=  not set
MessageContent=5553424312345678061e00
MessageContent2=5553424312345679061b000200
MessageContent3=555342431234567020008c85010101180101010101
NeedResponse=1
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check enabled, max. wait time 20 seconds
System integration mode disabled

Looking for target devices ...
  searching devices, found USB ID 19d2:0117
   found matching vendor ID
  searching devices, found USB ID :
  searching devices, found USB ID :
 No devices in target mode or class found
Looking for default devices ...
  searching devices, found USB ID 19d2:0117
   found matching vendor ID
  searching devices, found USB ID :
  searching devices, found USB ID :
 No devices in default mode found. Nothing to do. Bye.

(I copied /etc/usb_modeswitch.d from an Ubuntu10.10 install)
usbconfig:
ugen0.1: OHCI root HUB AMD at usbus0, cfg=0 md=HOST spd=FULL  
(12Mbps) pwr=SAVE
ugen1.1: EHCI root HUB AMD at usbus1, cfg=0 md=HOST spd=HIGH  
(480Mbps) pwr=SAVE
ugen1.2: 11 Surf-stick ZTE,Incorporated at usbus1, cfg=0 md=HOST  
spd=HIGH (480Mbps) pwr=ON


kldstat:
Id Refs AddressSize Name
 1   24 0xc040 6a92bc   kernel
 21 0xc309c000 e000 fuse.ko
 31 0xc32bc000 2000 accf_http.ko
 41 0xc32be000 2000 accf_data.ko
 51 0xc32c 4000 cryptodev.ko
 61 0xc33df000 12000geom_eli.ko
 81 0xc35c2000 3000 nfslock.ko
121 0xc5568000 5000 u3g.ko
132 0xc52e4000 4000 ucom.ko
141 0xc380b000 3000 ubsa.ko

The stick also has an SD card slot or something and that seems to be  
visible when I load umass:

ugen1.2: ZTE,Incorporated at usbus1
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: ZTE MMC Storage 2.31 Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present

But I think that's ok and the other sub-devices should also be  
visible but it seems not yet recognized by u3g or ubsa.

I've also attached the lsusb -v output.
Ok, that's about all the information I can currently think of that  
could be useful.

Any help would be greatly appreciated.
Alex.


#_  __  _ __ http://www.nagilum.org/ \n icq://69646724 #
#   / |/ /__  _(_) /_  _  nagi...@nagilum.org \n +491776461165 #
#  // _ `/ _ `/ / / // /  ' \  Amiga (68k/PPC): AOS/NetBSD/Linux   #
# /_/|_/\_,_/\_, /_/_/\_,_/_/_/_/ Mac (PPC): MacOS-X / Linux / MacOS-X #
#   /___/ x86: FreeBSD/Linux/Solaris/Win2k  ARM9: EPOC EV6 #




cakebox.homeunix.net - all the machine one needs..

can't get debug descriptor: Ein-/Ausgabefehler
can't get debug descriptor: Ein-/Ausgabefehler

Bus /dev/usb Device /dev/ugen1.2: ID 19d2:0117 ONDA Communication S.p.A. 
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0 
  bDeviceProtocol 0 
  bMaxPacketSize064
  idVendor   0x19d2 ONDA Communication S.p.A.
  idProduct  0x0117 
  bcdDevice0.00
  iManufacturer   3 ZTE,Incorporated
  iProduct2 11 Surf-stick
  iSerial 4 MF19001MOD01
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength  108
bNumInterfaces  4
bConfigurationValue 1
iConfiguration  1 ZTE Configuration

Re: ZTE MF 190 USB 3G stick

2011-01-12 Thread Nagilum

Actually there is a bit more information I can extract:
r...@cakebox ~  usbconfig -d ugen1.2 dump_device_desc
ugen1.2: 11 Surf-stick ZTE,Incorporated at usbus1, cfg=0 md=HOST  
spd=HIGH (480Mbps) pwr=ON


  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x19d2
  idProduct = 0x0117
  bcdDevice = 0x
  iManufacturer = 0x0003  ZTE,Incorporated
  iProduct = 0x0002  11 Surf-stick
  iSerialNumber = 0x0004  MF19001MOD01
  bNumConfigurations = 0x0001

r...@cakebox ~  usbconfig -d ugen1.2 dump_curr_config_desc
ugen1.2: 11 Surf-stick ZTE,Incorporated at usbus1, cfg=0 md=HOST  
spd=HIGH (480Mbps) pwr=ON



 Configuration index 0

bLength = 0x0009
bDescriptorType = 0x0002
wTotalLength = 0x006c
bNumInterfaces = 0x0004
bConfigurationValue = 0x0001
iConfiguration = 0x0001  ZTE Configuration
bmAttributes = 0x00e0
bMaxPower = 0x00fa

Interface 0
  bLength = 0x0009
  bDescriptorType = 0x0004
  bInterfaceNumber = 0x
  bAlternateSetting = 0x
  bNumEndpoints = 0x0002
  bInterfaceClass = 0x00ff
  bInterfaceSubClass = 0x00ff
  bInterfaceProtocol = 0x00ff
  iInterface = 0x  no string

 Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0081  IN
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200
bInterval = 0x0020
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0001  OUT
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200
bInterval = 0x0020
bRefresh = 0x
bSynchAddress = 0x


Interface 1
  bLength = 0x0009
  bDescriptorType = 0x0004
  bInterfaceNumber = 0x0001
  bAlternateSetting = 0x
  bNumEndpoints = 0x0002
  bInterfaceClass = 0x00ff
  bInterfaceSubClass = 0x00ff
  bInterfaceProtocol = 0x00ff
  iInterface = 0x  no string

 Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0082  IN
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200
bInterval = 0x0020
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0002  OUT
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200
bInterval = 0x0020
bRefresh = 0x
bSynchAddress = 0x


Interface 2
  bLength = 0x0009
  bDescriptorType = 0x0004
  bInterfaceNumber = 0x0002
  bAlternateSetting = 0x
  bNumEndpoints = 0x0003
  bInterfaceClass = 0x00ff
  bInterfaceSubClass = 0x00ff
  bInterfaceProtocol = 0x00ff
  iInterface = 0x  no string

 Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0083  IN
bmAttributes = 0x0003  INTERRUPT
wMaxPacketSize = 0x0040
bInterval = 0x0005
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0084  IN
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200
bInterval = 0x0020
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 2
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0003  OUT
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200
bInterval = 0x0020
bRefresh = 0x
bSynchAddress = 0x


Interface 3
  bLength = 0x0009
  bDescriptorType = 0x0004
  bInterfaceNumber = 0x0003
  bAlternateSetting = 0x
  bNumEndpoints = 0x0002
  bInterfaceClass = 0x0008
  bInterfaceSubClass = 0x0006
  bInterfaceProtocol = 0x0050
  iInterface = 0x  no string

 Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0004  OUT
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0085  IN
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x

I hope that helps,
Alex.

- Message from free...@nagilum.org -
Date: Wed, 12 Jan 2011 22:29:05 +0100
From: Alexander free...@nagilum.org
 Subject: ZTE MF 190 USB 3G stick
  To: freebsd-usb@freebsd.org



Hi,
I'm trying to get a ZTE MF 190 USB stick to work on   
FreeBSD8.2(tag=RELENG_8), so far with little success.
I checked that the thing is working using Windows