Re: [LINUX:742] RE: ppp ve modem

Ercan Altuntas (erc@ehb.itu.edu.tr)
Tue, 8 Sep 1998 16:32:47 +0300 (EEST)


> ya lutfen biri bana PnP modem nasil tanitilir slackware e anlatabilir
> mi.
> Fakat gecen sefer oldugu gibi git jumperlariyla oyna demeyin. PnP de
> jumper olmadigini bilmeyen arkadaslar cevap vermesin rica ediyorum.
> Modemim Supra 336 pnp voice ve hangi com da ve irq da oldugunu
> bilemiyorum
> acaba linux icin ayri bi install mu gerekiyor pnp ler icin?
> tesekkurler

PNP modem'leri kullanbilmeniz icin oncelikle onlari isapnp progrmai yardimi
ile aktive etmeniz gerekmektedir. bunun icin kullanacaginiz bir dosya
gereklidir. Bu dosyayi pnpdump isimli programla yapabilirsiniz. Bu dosyada
gerekli satirlarin onundeki "#" isaretlerini kaldirarak pnp olan cihazinin
i/o ve irq ayarlarini yapabilirsiniz. (PNP OLAN TUM ISA KARTLAR ICIN
YAPILABILIR.) daha sonra isapnp yardimi ile pnp olan isa kart aktive edilir.

modemi kullanabilmeniz icin setserial komutu yardimi ile seri portlardan
birinin io ve irq'su isapnp komutu ile ayarladiginiz degerlere ayarlanir.

ORNEK:

host:~# /sbin/pnpdump >isapnp.conf
host:~# more isapnp.conf

# $Id: pnpdump.c,v 1.10 1997/07/14 22:30:47 fox Exp $
# This is free software, see the sources for details.
# This software has NO WARRANTY, use at your OWN RISK
#
# For details of this file format, see isapnp.conf(5)
#
# For latest information on isapnp and pnpdump see:
# http://www.roestock.demon.co.uk/isapnptools/
#
# Compiler flags: -DREALTIME -DNEEDSETSCHEDULER
#
# Trying port address 0203
# Board 1 has serial identifier fd 00 00 07 2f 04 00 79 05

# (DEBUG)
(READPORT 0x0203)
(ISOLATE)
(IDENTIFY *)

# Card 1: (serial identifier fd 00 00 07 2f 04 00 79 05)
# AKY0004 Serial No 1839 [checksum fd]
# Version 1.0, Vendor version 0.2
# ANSI string -->56K Plug&Play Modem <--
#
# Logical device id AKY0000
# Device support I/O range check register
#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be changed if required
# Don't forget to uncomment the activate (ACT Y) when happy

(CONFIGURE AKY0004/1839 (LD 0

# Multiple choice time, choose one only !

# Start dependent functions: priority acceptable
# Logical device decodes 16 bit IO address lines
# Minimum IO base address 0x02f8
# Maximum IO base address 0x02f8
# IO base alignment 8 bytes
# Number of IO addresses required: 8
# (IO 0 (BASE 0x02f8))
# IRQ 3.
# High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 3 (MODE +E)))

# Start dependent functions: priority acceptable
# Logical device decodes 16 bit IO address lines
# Minimum IO base address 0x03f8
# Maximum IO base address 0x03f8
# IO base alignment 8 bytes
# Number of IO addresses required: 8
# (IO 0 (BASE 0x03f8))
# IRQ 4.
# High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 4 (MODE +E)))

# Start dependent functions: priority acceptable
# Logical device decodes 16 bit IO address lines
# Minimum IO base address 0x03e8
# Maximum IO base address 0x03e8
# IO base alignment 8 bytes
# Number of IO addresses required: 8
# (IO 0 (BASE 0x03e8))
# IRQ 4.
# High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 4 (MODE +E)))

# End dependent functions
# (ACT Y)
))
# End tag... Checksum 0x00 (OK)

# Returns all cards to the "Wait for Key" state
(WAITFORKEY)

host:~# joe isapnp.conf (gerekli degisiklikleri yapmak icin dosyayi edit
ediyoruz.)
host:~# less isapnp.conf

(READPORT 0x0203)
(ISOLATE)
(IDENTIFY *)

(CONFIGURE AKY0004/1839 (LD 0

# Start dependent functions: priority acceptable
# Logical device decodes 16 bit IO address lines
# Minimum IO base address 0x02f8
# Maximum IO base address 0x02f8
# IO base alignment 8 bytes
# Number of IO addresses required: 8
(IO 0 (BASE 0x02f8))
# IRQ 5, 7, 9, 10, 11, 12 or 15.
# High true, edge sensitive interrupt (by default)
(INT 0 (IRQ 10 (MODE +E)))
(ACT Y)
))
# End tag... Checksum 0x00 (OK)

# Returns all cards to the "Wait for Key" state
# (WAITFORKEY)

host:~# setserial /dev/ttyS3 port 0x2f8 irq 10 uart 16550A
host:~# cd /dev
host:~# ln -s ttyS3 modem

ORNEK BITTI

daha sonra istediginiz modem programini kullanarak /dev/modem device ile
modeminizi kullanabilirsiniz.

bunlari surekli olarak yapmak istemiyorsaniz.
slackware kullaniyorsaniz:

/etc/rc.d/rc.local dosyasinin sonuna

/sbin/isapnp /etc/isapnp.conf (edit ettigimiz dosyayi /etc'nin altina
kopyalamamiz lazim.)
/bin/setserial /dev/ttyS3 port 0x2f8 irq 10 uart 16550A (Buradaki degerler
sizin kendi ayarladiginiz degerler olmali)

satirlarini eklemeniz yeterli.

redhat veya turkuaz kullaniyorsaniz. isapnp.conf dosyasini /etc dizinin
altina kopyalayip

/etc/rc.d/rc.serial dosyasinin icine

/bin/setserial /dev/ttyS3 port 0x2f8 irq 10 uart 16550A (Buradaki degerler
sizin kendi ayarladiginiz degerler olmali)
satirini eklemelisiniz.

Ercan Altuntas