Win Modem in Linux

Errors at Present
how to make KPPP recognise ttySL0 as port
have no setserial command

Can dial if I
modprobe slamr
/usr/sbin/slmodemd --country=nz /dev/slamr0
In one shell
and then
echo "atdt0800555013" > /dev/ttySL0
in another shell
or run
wvdial
it will dial ISP but will not send ID and Password Correctly.
Yipeee! at least it dials sigh!
Used /etc/wvdial.conf to setup

KPPP still says modem busy
could put slmar in modules.conf I guess


[root@mordor leftfieldnz]# tail /var/log/messages
Apr 25 11:32:47 mordor automount[3778]: >> showmount: can't get address for .directory
Apr 25 11:32:47 mordor automount[3778]: lookup(program): lookup for .directory failed
Apr 25 11:33:36 mordor kernel: slamr: no version for "struct_module" found: kernel tainted.
Apr 25 11:33:36 mordor kernel: slamr: module license 'Smart Link Ltd.' taints kernel.
Apr 25 11:33:36 mordor kernel: slamr: SmartLink AMRMO modem.
Apr 25 11:33:36 mordor kernel: slamr: probe 8086:2486 ICH card...
Apr 25 11:33:36 mordor kernel: slamr: mc97 codec is SIL21
Apr 25 11:33:36 mordor kernel: slamr: slamr0 is ICH card.
Apr 25 11:33:36 mordor kernel: devfs_mk_dev: could not append to parent for slamr0
Apr 25 11:42:54 mordor su(pam_unix)[3982]: session opened for user root by (uid=501)

[root@mordor leftfieldnz]#dmesg

slamr: no version for "struct_module" found: kernel tainted.
slamr: module license 'Smart Link Ltd.' taints kernel.
slamr: SmartLink AMRMO modem.
slamr: probe 8086:2486 ICH card...
PCI: Setting latency timer of device 0000:00:1f.6 to 64
slamr: mc97 codec is SIL21
slamr: slamr0 is ICH card.
devfs_mk_dev: could not append to parent for slamr0

Have done the following

MCC says
Intel PCTEL 2304 WT v-92 MDC

lsmod says
Intel 82801CA CAM AC '97

Downloaded
slmodem-2.9.6
from www.smlink.com

As Root (SU)
Unpacked
chmod 777 *.*
make /usr/src/linux-2.6.3-4mdk
make install

everything ok
makes module
/usr/bin/slmodemd

modprobe slamr

/usr/sbin/slmodemd --country=nz /dev/slamr0
Result=
SmartLink Soft Modem: version 2.9.6 Apr 25 2004 09:06:50
modem `slamr0' created. TTY is `/dev/pts/6'
symbolic link `/dev/ttySL0' -> `/dev/pts/6' created.
Use `/dev/ttySL0' as modem device, Ctrl+C for termination.

Try kppp while running previous!
kppp says modem busy!

kppp using /dev/ttyS0

What Now I do not know?

useful links
http://pctelcompdb.sourceforge.net/
http://linmodems.technion.ac.il/#scanmodem
http://modemsite.com/56k/pctel.asp
http://linmodems.org/

./scanModem says
Providing detail for device at PCI_bus 00:1f.6
with vendor-ID:device-ID
----:----
Class 0703: 8086:2486 Modem: Intel Corp. 82801CA/CAM AC'97 Modem Controller (rev 02) (prog-if 00 [Generic])
SubSystem 134d:4c21 PCTel Inc Dell Inspiron 2100 internal modem
Flags: bus master, medium devsel, latency 0, IRQ 10
I/O ports at 2400 [size=256]
I/O ports at 2000 [size=128]

System Info
Dell Inspirion 2650
Linux 2.6.3-4mdk
Mandrake 10 Community
KDE 3.2

have looked at
/etc/moduels.conf
/etc/hosts.conf

have used
lspci -vv
lsmod
kppp
chown root:root $KDEDIR/usr/bin/kppp
chmod +s $KDEDIR/usr/bin/kppp
make
make install
locate kppp
modprobe
kate
tail /var/log/messages
dmesg
cat /proc/devices

Modules
/usr/sbin/slmodemd
slamr

wvdial
/etc/wvdial.conf

Bill R
April 2004

suggestions
Did you use other software like `minicom` to verify this ?

Check your /etc/resolv.conf file and make sure that the namservers are set up correctly Then on the command line (root) do a wvdial. Had similar problems ourselves until SuSE came to our rescue!

> You might also check the irq jumper settings.
> For ttyS1 the irq is 3.
> Reset Modem.
> #echo -e "ATZ\n">/dev/ttyS1
> Adjust Volume to high.
> #echo -e "ATL1M1"\n">/dev/ttyS1
> Try Dialing.
> #echo -e "ATDTxxx-xxxx\n">/dev/ttyS1
> If you succeed, you will hear the dial and recieve a busy signal.

echo "atdt" > /dev/modem
echo "atdt" > /dev/ttyS0
echo "atdt#####" > /dev/ttyS1

where ##### is the number you would usually dial to connect to your ISP. You should hear a dialtone (if you are connected to a phone line) for a second, then hear the modem dialing the number, and possibly an answer from the other modem. If you aren't connected to a phone line,
you'll get nothing.

check to see if the serial device is being initialized on boot:
dmesg | grep ttyS

cat /proc/interrupts
cat /proc/ioports
dmesg | grep -i ttyS0
modprobe serial

minicom -s
rmmod slmar

alias char-major-212 slamr

symbolic link
ln -s /dev/ttySx /dev/modem

type cd /etc/rc.d. Fire up your favorite text editor, and edit the rc.local file. Add your setserial command on a line before the "fi" statement. It will automatically be set every time you boot. Please note: J.t.Qbe pointed out to me that this paragraph is specific to Red Hat and its offspring. Check your Linux distribution's documentation for information on running commands at boot-up time.

Also check /etc/nsswitch.conf and make sure a line like
hosts: files dns

Hostname
One final item, especially for Redhat systems, make sure that your give your machine a name (any single word name you want). You can set it with
hostname
But you also want to change it permanently. In Redhat/Mandrake, put the line
HOSTNAME=
into /etc/sysconfig/network. On other systems I am not sure, but you could alwaostname command at the end of your rc.local file. This is not essential to running ppp, but if you do not do it, you will find yourself unable to run any X application while running ppp.

/usr/sbin/pppd /dev/ttyS1 57600 debug connect "/usr/sbin/chat -v '' 'AT&F0' OK ATD5555555 CONNECT '\d\c' "

http://www.beginnerslinux.org -> Connecting to the Web

rpm -qa wvdial-1.53-3mdk.i586.rpm
then
wvdialconf /etc/wvdial.conf
then edit
/etc/wvdial.conf
add phone, id password
run
wvdial and it dials ok


Hosted by www.Geocities.ws

1