Here is an update on getting usb modems to work with Solaris. The original code for "switch2modem" is in the wwan-discuss group. I uploaded it a while ago in a message to the group. A search either in google or on opensolaris.org will bring it up.
Here is a patched version of switch2modem which includes code lifted from "usb_modeswitch" to switch the Huawei to modem mode. As I don't have a Huawei card, someone will have to let me know if this works for them. Here is the header from the source code : * Switch out TRU-INSTALL mass storage and * switch in Modem device. * This software should be easily adapted to a ZeroConf device * as well!. * * This Software is in the Public Domain. It's just a bunch of syscalls guys ! * * * On Solaris, a Sierra Wireless TRU-INSTALL modem will present itself to * the system as a CD-ROM device. * First thing to do is to bind the TRU-INSTALL device USB id to "ugen". * update_drv -a -i '"usb1199,fff"' ugen * (If the CD-ROM driver is already bound to the device, you might have to * reboot here.) * This both prevents the CD-ROM driver from binding to the device as well as * allows us access to it via "libusb" * (If a device is bound to another driver, ugen and libusb do not have access * to that device, and conversely if we specify that a device is to bind with * "ugen", this binding takes precedence over the binding of that device class * to its generic driver; i.e. CD-ROM in this instance) * * Second is to bind the modem USB id to "usbsacm" * update_drv -a -i '"usb1199,6856"' usbsacm * (6856 is the product id for the Sierra 881 Modem, in my case) * Third, this software, which does not have to be run as root, will disable * the umass device and enable the modem portion of the device. * ./switch2modem * No harm done if switch2modem is executed a second time as the device id * "usb1199,fff" is no longer available. * Fourth, launch pppd (/dev/term/4 for 881 modem) and happy surfing. * * If your script to launch pppd first invokes switch2modem, you should be all * set. * There is a program for Linux called "usb_modeswitch" at http://www.draisberghof.de/usb_modeswitch/ which covers many more different manufacturers and I see that they have now added support for Sierra Wireless. See if they have your particular card listed on their site. Peter Jones wrote: > I am trying to connect a uk vodafone mobile 3G+ dongle modem Huawei x 160 > modem to my laptop.Most of these mobile modems are similar will your project > help me with this as I am not a developer ? > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Makefile URL: <http://mail.opensolaris.org/pipermail/laptop-discuss/attachments/20090324/cc9620fb/attachment.ksh> -------------- next part -------------- A non-text attachment was scrubbed... Name: switch2modem.c Type: text/x-csrc Size: 5811 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/laptop-discuss/attachments/20090324/cc9620fb/attachment.bin>
