View Single Post
  #6 (permalink)  
Old 10-17-2008, 03:47 AM
V Green
Newsgroup Contributor
 
Posts: n/a
Re: External Dail-Up USB-to-Serial Modem Hangs and Requires Reboot To


"ShadowTek" <FAKE@EMAIL.ADDRESS> wrote in message
news:Xns9B0B89781869Apsistormyamatocscom@85.214.90 .236...
> "V Green" <vanceg@nowhere.net> wrote in news:OQD6ej4CJHA.1228
> @TK2MSFTNGP02.phx.gbl:
>
> > FWIW, I use a USB-SER cable to use my
> > Kyocera cellphone as an AT-compatible modem,
> > not quite the same, but a similar situation.
> >
> > If the connection barfs, I also have to restart the system
> > to clear the "port is already open" stuff. Even unplugging
> > and reconnecting the USB-SER cable won't do it. So, it's a
> > problem likely not specific to your setup, but more of
> > a flaw within the driver for the USB adapter cable.
> >
> > You might try this (just occurred to me and I haven't):
> >
> > Next time it happens, disable then enable the USB-SER
> > hdwe. from Device Manager.

>
> The problem is that I need some kind of automated solution to the problem,
> so that I can keep my connection active as much as possible. I thought
> that, if nothing else, I could make some kind of script that would
> periodically check for successful pings to various servers, and if all
> pings failed, then the modem has hung, and the system can be automatically
> rebooted. The problem with this idea is that the system sometimes get hung
> so bad that I can't do a soft reboot. And if I can't do a soft reboot, then
> I can't automate the process.


I believe that I have seen code to disable/enable devices
that show up in Device Manager. If disabling/enabling
the port/cable revives the device then you could go this
route rather than rebooting the entire system. Try Google.

Also, it isn't necessary to ping things to find out whether
or not the modem has hung. Simply issuing an AT command
and looking for the OK response (after enabling verbose mode,
etc.) will keep things local. No OK, no comm.

For testing purposes, you can probably initiate a "hung"
state by disconnecting the RJ-45 cable from the modem while
it's in use. Or by pulling the USB cable from the computer
while off-hook.

If that works, you have all the necessary tools to write your
own custom solution, which it sounds like you will need to
do, given the description of your situation.


Reply With Quote

 
Old 10-17-2008, 03:47 AM