LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   wvdial problem (https://www.linuxquestions.org/questions/slackware-14/wvdial-problem-911225/)

scam 11-01-2011 05:15 AM

wvdial problem
 
Hi, wonder if anyone can help me with a problem with wvdial, here my wvdial config file http://pastebin.com/U4yk3q8y

This config file works with slack 13.37, but when I try it with 13.0 it says there is no dev /dev/ttyUSB2 and was wondering how I could find which it uses on 13.0. I'm using a mobile broadband usb modem and I can mount the device with /dev/sr0 but that doesn't work when I replace ttyUSB2 with /dev/sr0 ....any help would be great :)

scam 11-01-2011 08:39 AM

Here is the output from dmesg after plugging the modem .... http://pastebin.com/nymddY8R ..I've also tried wvdialconf and it doesn't detect the modem either.

0men 11-01-2011 08:51 AM

Brother,

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Username = user
Password = pass
Modem = /dev/ttyUSB0
Baud = 9600
Stupid Mode = 1
Dial Command = ATDT
New PPD = yesomen@darkstar

Never had a problem with this setup, no matter what modem.
*note that the last line can be

New PPD = yesscam@darkstar

san 11-01-2011 08:59 AM

i'm not sure, but I think that on 13.0, usb-modeswitch has to be run/configured manually (back then, the programme was not yet as user-friendly as it is now;)). I remember having written an udev-rule that ran after plugging the stick in.

scam 11-01-2011 09:06 AM

Omen my problem is even though slack-13.0 sees my device with lsusb and with dmesg, it doesn't create /dev/ttyUSB* or even /dev/ttyU*

scam 11-01-2011 09:08 AM

Thanks san, I'll have a google on that :)

san 11-01-2011 09:14 AM

from my 13.0 "/etc" backup:
Code:

#/etc/udev/rules.d/10-local.rules

# Option GlobeSurfer Icon 7.2, old firmware:
SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="1000", RUN+="/usr/sbin/usb_modeswitch"

not sure if usb_modeswitch was already shipped with slack 13.0.

zasavage 11-01-2011 10:01 AM

Hi there

In order to access the modem proper, you'll need to signal to the stick that it may switch now. Fortunately, on this particular stick this is implemented in a quite straigt-forward way -- simply eject the CD:

eject /dev/sr0

After ejecting, three new devices will show up at ls /dev/ttyUSB*:

/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2


The important one is /dev/ttyUSB2
Edit wvdial.conf use /dev/ttyUSB2 as the modem
Regards
Lawrence

scam 11-01-2011 04:57 PM

Well i tried zasavage's way and that worked, I haven't had chance to install usb_modemswitch yet but soon as I eject the device the ttyUSB0-2 appeared. Edited wvdial back to ttyUSB2 and ran wvdial and now works fine cause i'm typing this on slack 13 ....anyway thanks for all the help and advice. :)


All times are GMT -5. The time now is 09:51 AM.