Re: Usb Modeswitch.
David W Studeman <[email protected]>
| Newsgroups | gmane.comp.security.ipcop.devel |
|---|---|
| Message-ID | <[email protected]> |
Gilles Espinasse wrote: > > ----- Original Message ----- > From: "Olaf Westrik" <weizen_42-Yz37vSk3/[email protected]> > To: <[email protected]> > Sent: Wednesday, September 14, 2011 5:23 PM > Subject: Re: [IPCop-devel] Usb Modeswitch. > > >> On 2011-09-14 04:44, David W Studeman wrote: >> >> > I just tried the modeswitch changes you committed today and it works! I >> > made an update by adding to the rootfiles in the update itself since >> > that hasn't been updated yet and installed it, disconnected my internet >> > connection (cellular), unplugged the usb modem, plugged it back in, >> > went to System Information and my jaw dropped and I had to take a >> > double take to make sure I was really seeing the post modeswitch >> > product ID. This is the first time I have ever seen it work in 1.9.x. >> >> We'd need to reinclude 40-usb_modeswitch.rules, correct? >> Is configPack.tar.gz sufficient, or is /etc/usb_modeswitch.d required? >> >> >> Olaf >> > I commited an incorrect rootfile. That's fixed now, so > 40-usb_modeswitch.rules is include in update. > > /etc/usb_modeswitch.d could be used is if you need to override a config > file, Changelog say so. > > I haven't tested the result as I don't have the hardware to use that > actually. > That's good to know Dave answered that work. > > Gilles > The only issue I have seen is when booting up from a cold system, not rebooting as the flip flop modem is in it's modem state and remains there due to the usb remaining energized during reboot. Once the system is up, unplugging the modem and then plugging it back in activates the modeswitch. The workaround to this is to insert a manual line in rc.event.local for the purpose of booting from a cold system only but the less experienced user of these flip flop modems would have a small amount of difficulty coming up with the right string. Mine looks like this for the current modem: /usr/sbin/usb_modeswitch -v 0x19d2 -p 0x2000 -m 0x01 -M "5553424312345679000000000000061b000000020000000000000000000000" This is merely a workaround to make the modem reconnect without issue upon the system finishing booting from a power off (cold) system. During a reboot running the command with rc.event.local does nothing as it is still in the modem state. I reiterate that in any case, the modem can be plugged back in on the running system and modeswitch works every time for me. Having to unplug the modem during a very stale connection (rare) where ppp will not disconnect and plug it back in without having to type a command line to get the modem back is a great distance from where it was only a few weeks ago. -- Dave Studeman http://www.raqcop.com ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2