hello,

i've got a USB modem that is a UMTS HSDPA device.
when i plug it in, it appears as mass storage device:

umass0 at uhub1 port 1 configuration 1 interface 0 "Qualcomm,
Incorporated USB MMC Storage" rev 1.10/0.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets
cd1 at scsibus1 targ 1 lun 0: <GT, HSDPA Modem, 3.00> SCSI2 5/cdrom removable

that storage must be the one with drivers for windows.
it is not accessible though:

# disklabel cd1
disklabel: ioctl DIOCGDINFO: Input/output error
#

usbdevs shows:

# usbdevs -vd
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
Intel(0x8086), rev 1.00
  uhub0
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
  uhub1
 port 1 addr 2: full speed, power 100 mA, config 1, USB MMC
Storage(0x1000), Qualcomm, Incorporated(0x05c6), rev 0.00,
iSerialNumber 000000000002
   umass0
 port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
  uhub2
 port 1 powered
 port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
  uhub3
 port 1 addr 2: full speed, self powered, config 1, Bluetooth by
hp(0x0086), ACTIONTEC(0x049f), rev 8.02
   ugen0
 port 2 powered
#

any one knows anything about how to get these devices working?

basic googling gives a linux discussions with references to an
icon_switch.c, which does some binary magic thingies, like:

memcpy(buf, 
"\x55\x53\x42\x43\x70\x6e\xde\x86\x00\x00\x00\x00\x00\x00\x06\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
0x000001f);
ret = usb_bulk_write(devh, 0x00000005, buf, 0x000001f, 1000);
if (ret >= 0 )
        printf("Device change command successfully sent. Box probably
switched.\nLook at /var/log/syslog for result ... Bye\n\n");
else
        printf("Device change command returned error %d", ret);


thanks!

Reply via email to