Hmm, I don't think I've seen this before. Perhaps it scrolled past my
ever-expanding inbox.
I've examined the patch and it looks correct. The current behaviour
is indeed a bug.
Avery
> root@slax:~# wvdial
> --> WvDial: Internet dialer version 1.60
> --> Cannot get information for serial port.
> --> Initializing modem.
> --> Sending: ATZ
> --> Sending: ATQ0
> --> Re-Sending: ATZ
> --> Modem not responding.
> root@slax:~# /etc/rc.d/rc.slmodemd restart
I don't think the patch under discussion here will fix this problem:
the fact that it's printing "Modem not responding" after the second
ATZ means that modem really *isn't* responding. It doesn't sound like
your problem is caused by a bug in wvdial.
> then I can connect again after doing above command :
>
> root@slax:~# /etc/rc.d/rc.slmodemd restart
> Shutting down SmartLink modem daemon
> Starting SmartLink modem daemon: /usr/sbin/slmodemd
If the above fixes it, then your problem is likely a bug in slmodemd -
it seems to lock up after a connection gets disconnected. Have you
contacted the slmodemd people about it?
One option would be to just *always* restart slmodemd every time you
start wvdial, eg. using a shell script. It's not pretty, but it would
probably help.
Good luck,
Avery
Well, what's really going on is probably a bad interaction between
wvdial and the kernel driver. KPPP probably does something slightly
different from wvdial, which is usually harmless but in this case the
kernel driver doesn't like it. (Perhaps the driver was tested only
with kppp and not wvdial.)
If you could track down what the difference is between how kppp treats
the modem and how wvdial does, we could perhaps see if it's worth
changing wvdial to avoid the problem. But it's really tricky for us
to do without the failing hardware. You might want to play with
'strace' and see if you can figure it out.
Also, like I said, you might want to email the people who make the
driver. Maybe wvdial will fail reliably for them like it does for
you? If so, it would be easy for them to isolate the problem and, if
it really is wvdial's fault, tell us what to do to avoid it.
Fundamentally, the kernel driver is supposed to reset when you close
the connection to the /dev/tty* device, so if it doesn't, there's
*some* kind of bug in the driver.
Have fun,
Avery
Just to confirm: wlach, are you going to merge this into the next
release, then, or do you need something else first?
Thanks,
Avery
I'm pretty satisfied at this point that the patch won't break anything
so yes, I'll merge it into my tree and make it part of the next
release of wvdial (probably to be released along with the next version
of wvstreams, unless someone wants to volunteer to make a new release
earlier).
--
William Lachance
wrl...@gmail.com
I'm pretty satisfied at this point that the patch won't break anything
so yes, I'll merge it into my tree and make it part of the next
release of wvdial (probably to be released along with the next version
of wvstreams, unless someone wants to volunteer to make a new release
earlier).
The change has been applied to their git repository, but an actual
release of dbus has not been made. I plan to release a new version of
WvStreams as soon as that happens, which I assume will be within the
next few months.
--
William Lachance
wrl...@gmail.com