Huawei EC122 CDMA modem (u3g)

Mikhail TSaplin tsmm at list.ru
Wed May 12 01:49:49 UTC 2010


Hello All.
I have Huawei EC122 CDMA modem.
But it doesn't supported by u3g driver.

I have disabled umass support in kernel config, and
usbconfig shows:

# usbconfig -u 0 -a 2 dump_device_desc
ugen0.2: <HUAWEI Mobile HUAWEI TECHNOLOGIES> at usbus0, cfg=255 md=HOST spd=FULL
 (12Mbps) pwr=ON

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0110
  bDeviceClass = 0x0000
  bDeviceSubClass = 0x0000
  bDeviceProtocol = 0x0000
  bMaxPacketSize0 = 0x0040
  idVendor = 0x12d1
  idProduct = 0x1446
  bcdDevice = 0x0000
  iManufacturer = 0x0001  <HUAWEI TECHNOLOGIES>
  iProduct = 0x0002  <HUAWEI Mobile>
  iSerialNumber = 0x0004  <>
  bNumConfigurations = 0x0001

To attach this device by u3g driver I've added line to  /sys/dev/usb/usbdevs:

product HUAWEI EC122            0x1446  Huawei Mobile EC122

And in /sys/dev/usb/serial/u3g.c

U3G_DEV(HUAWEI, E220, U3GFL_HUAWEI_INIT)

After kernel recompiling, pluging device shows:

u3g_huawei_init:270:
usb_alloc_device:1779: Found Huawei auto-install disk!
ugen0.2: <HUAWEI TECHNOLOGIES> at usbus0

Also i tried to use U3GFL_SCSI_EJECT bit:
 
U3G_DEV(HUAWEI, EC122, U3GFL_SCSI_EJECT),

Pluging device shows:

usb_test_autoinstall:571: Eject CD command status: USB_ERR_NORMAL_COMPLETION
usb_alloc_device:1779: Found Huawei auto-install disk!
ugen0.2: <HUAWEI TECHNOLOGIES> at usbus0

Can you help me, what also i need to do?


Regards Mikhail. M. TSaplin


More information about the freebsd-usb mailing list