LINUX.ORG.RU
ФорумAdmin

mgetty+pppd


0

0

Объясните помему в первом случае коннект происходит, а вдругом нет.
Трубка снимается после 5-го гудка.

10/24 21:52:14 yQ0    select returned 1
10/24 21:52:14 yQ0   checking lockfiles, locking the line
10/24 21:52:14 yQ0   makelock(ttyQ0) called
10/24 21:52:14 yQ0   do_makelock: lock='/var/lock/LCK..ttyQ0'
10/24 21:52:14 yQ0   lock made
10/24 21:52:14 yQ0  wfr: waiting for ``RING''
10/24 21:52:14 yQ0   got: [0a][0d][0a]RING[0d]
10/24 21:52:14 yQ0    CND: RING
10/24 21:52:14 yQ0   wfr: rc=0, drn=0
10/24 21:52:14 yQ0  wfr: waiting for ``RING''
10/24 21:52:14 yQ0   got: [0a][0d][0a]RING[0d]
10/24 21:52:19 yQ0    CND: RING
10/24 21:52:19 yQ0   wfr: rc=0, drn=0
10/24 21:52:19 yQ0  wfr: waiting for ``RING''
10/24 21:52:19 yQ0   got: [0a][0d][0a]RING[0d]
10/24 21:52:24 yQ0    CND: RING
10/24 21:52:24 yQ0   wfr: rc=0, drn=0
10/24 21:52:24 yQ0  wfr: waiting for ``RING''
10/24 21:52:24 yQ0   got: [0a][0d][0a]RING[0d]
10/24 21:52:29 yQ0    CND: RING
10/24 21:52:29 yQ0   wfr: rc=0, drn=0
10/24 21:52:29 yQ0  wfr: waiting for ``RING''
10/24 21:52:29 yQ0   got: [0a][0d][0a]RING[0d]
10/24 21:52:34 yQ0    CND: RING
10/24 21:52:34 yQ0   wfr: rc=0, drn=0
10/24 21:52:34 yQ0    CND: check no: 'none'
10/24 21:52:34 yQ0  send: ATA[0d]
10/24 21:52:34 yQ0  waiting for ``CONNECT''
10/24 21:52:34 yQ0   got: ATA[0d]
10/24 21:52:34 yQ0    CND: OKATA[0d][0a]CONNECT ** found **
10/24 21:52:47 yQ0  send: 
10/24 21:52:47 yQ0  waiting for ``_''
10/24 21:52:47 yQ0   got:  28800/ARQ/V34/LAPM/V42BIS[0d]
10/24 21:52:47 yQ0    CND: CONNECT 28800/ARQ/V34/LAPM/V42BIS
10/24 21:52:47 yQ0    CND: found: 28800/ARQ/V34/LAPM/V42BIS ** found **
10/24 21:52:47 yQ0  autobauding: switch to 28800 bps
10/24 21:52:47 yQ0   speed 28800 not found in table
10/24 21:52:47 yQ0  autobauding: cannot parse 'CONNECT 28800/ARQ/V34/LAPM/V42BIS': Operation not permitted
10/24 21:52:47 yQ0   waiting for line to clear (VTIME), read: [0a]~[ff]}#[c0]!}!}!} }7}"}&} }*} } }%}&} }&[ca][cf]}'}"}(}"}-}#}&[b1][af]~
10/24 21:52:48 yQ0    looking for utmp entry... (my PID: 7831)
10/24 21:52:48 yQ0   utmp + wtmp entry made
10/24 21:52:48 yQ0   tio_set_flow_control( HARD )
10/24 21:52:48 yQ0   print welcome banner (/etc/issue)
10/24 21:52:48 yQ0   getlogname (FIDO AUTO_PPP), read:~[ff]}#[c0]!
10/24 21:52:51 yQ0   input finished with '\r', setting ICRNL ONLCR
10/24 21:52:51 yQ0   tio_get_rs232_lines: status: RTS CTS DSR DTR DCD
10/24 21:52:51 yQ0    login: use login config file /etc/mgetty+sendfax/login.config
10/24 21:52:51 yQ0   match: user='/AutoPPP/', key=''
10/24 21:52:51 yQ0   match: user='/AutoPPP/', key=''
10/24 21:52:51 yQ0   match: user='/AutoPPP/', key='/AutoPPP/'*** hit!
10/24 21:52:51 yQ0   calling login: cmd='/etc/ppp/ppplogin', argv[]='ppplogin'
10/24 21:52:51 ##### data dev=ttyQ0, pid=7831, caller='none', conn='28800/ARQ/V34/LAPM/V42BIS', name='', cmd='/etc/ppp/ppplogin', user='/AutoPPP/'

10/24 21:52:51 yQ0   setenv: 'CALLER_ID=none'
10/24 21:52:51 yQ0   setenv: 'CONNECT=28800/ARQ/V34/LAPM/V42BIS'



10/24 17:47:59 S15    select returned 1
10/24 17:47:59 S15   checking lockfiles, locking the line
10/24 17:47:59 S15   makelock(ttyS15) called
10/24 17:47:59 S15   do_makelock: lock='/var/lock/LCK..ttyS15'
10/24 17:47:59 S15   lock made
10/24 17:47:59 S15  wfr: waiting for ``RING''
10/24 17:47:59 S15   got: [0d][0a]RING[0d]
10/24 17:47:59 S15    CND: RING
10/24 17:47:59 S15   wfr: rc=0, drn=0
10/24 17:47:59 S15  wfr: waiting for ``RING''
10/24 17:47:59 S15   got: [0a][0d][0a]RING[0d]
10/24 17:48:03 S15    CND: RING
10/24 17:48:03 S15   wfr: rc=0, drn=0
10/24 17:48:03 S15  wfr: waiting for ``RING''
10/24 17:48:03 S15   got: [0a][0d][0a]RING[0d]
10/24 17:48:09 S15    CND: RING
10/24 17:48:09 S15   wfr: rc=0, drn=0
10/24 17:48:09 S15  wfr: waiting for ``RING''
10/24 17:48:09 S15   got: [0a][0d][0a]RING[0d]
10/24 17:48:14 S15    CND: RING
10/24 17:48:14 S15   wfr: rc=0, drn=0
10/24 17:48:14 S15  wfr: waiting for ``RING''
10/24 17:48:14 S15   got: [0a][0d][0a]RING[0d]
10/24 17:48:19 S15    CND: RING
10/24 17:48:19 S15   wfr: rc=0, drn=0
10/24 17:48:19 S15    CND: check no: 'none'
10/24 17:48:19 S15  send: ATA[0d]
10/24 17:48:19 S15  waiting for ``CONNECT''
10/24 17:48:19 S15   got: ATA[0d]
10/24 17:48:19 S15    CND: OKATA[0d][0a]CONNECT ** found **
10/24 17:48:33 S15  send: 
10/24 17:48:33 S15  waiting for ``_''
10/24 17:48:33 S15   got:  31200/PROTOCOL: LAPM/COMPRESSION: V.42bis[0d]
10/24 17:48:33 S15    CND: CONNECT 31200/PROTOCOL: LAPM/COMPRESSION: V.42bis
10/24 17:48:33 S15    CND: found: 31200/PROTOCOL: LAPM/COMPRESSION: V.42bis ** found **
10/24 17:48:33 S15  autobauding: switch to 31200 bps
10/24 17:48:33 S15   speed 31200 not found in table
10/24 17:48:33 S15  autobauding: cannot parse 'CONNECT 31200/PROTOCOL: LAPM/COMPRESSION: V.42bis': Operation not permitted
10/24 17:48:33 S15   waiting for line to clear (VTIME), read: [0a]~[ff]}#[c0]!}!}!} }7}"}&} }*} } }%}&}"#S[b5]}'}"}(}"}-}#}&C}[b3]~
10/24 17:48:34 S15    looking for utmp entry... (my PID: 7843)
10/24 17:48:34 S15   utmp + wtmp entry made
10/24 17:48:34 S15   tio_set_flow_control( HARD )
10/24 17:48:34 S15   print welcome banner (/etc/issue)
10/24 17:48:34 S15   getlogname (FIDO AUTO_PPP), read:~[ff]}#[c0]!
10/24 17:48:36 S15   input finished with '\r', setting ICRNL ONLCR
10/24 17:48:36 S15   tio_get_rs232_lines: status: RTS CTS DSR DTR DCD
10/24 17:48:36 S15    login: use login config file /etc/mgetty+sendfax/login.config
10/24 17:48:36 S15   match: user='/AutoPPP/', key=''
10/24 17:48:36 S15   match: user='/AutoPPP/', key=''
10/24 17:48:36 S15   match: user='/AutoPPP/', key='/AutoPPP/'*** hit!
10/24 17:48:36 S15   calling login: cmd='/etc/ppp/ppplogin', argv[]='ppplogin'
10/24 17:48:36 ##### data dev=ttyS15, pid=7843, caller='none', conn='31200/PROTOCOL: LAPM/COMPRESSION: V.42bis', name='', cmd='/etc/ppp/ppplogin', user='/AutoPPP/'

10/24 17:48:36 S15   setenv: 'CALLER_ID=none'
10/24 17:48:36 S15   setenv: 'CONNECT=31200/PROTOCOL: LAPM/COMPRESSION: V.42bis'


Я заметил одну разницу 
'CONNECT=28800/ARQ/V34/LAPM/V42BIS' и
'CONNECT=31200/PROTOCOL: LAPM/COMPRESSION: V.42bis'

Может ли это не дать pppd законнектится?


Оба лога получены при запуске mgetty из inittab:

8:2345:respawn:/sbin/mgetty -a -x 9 -n 5 ttyQ0
9:2345:respawn:/sbin/mgetty -a -x 9 -n 5 ttyS15

В options:
lock
modem
crtscts
asyncmap 0
-detach
proxyarp

anonymous

А что за устройство ttyQ0? Вон там строчка такая есь:
10/24 21:52:47 yQ0 speed 28800 not found in table
Наводит на размышления...

anonymous
()

У меня еще стоит Cronyx Sigma-22. В ней 2 порта. Один для выделенки с
Cisco, а второй настроил как СОМ-порт (ttyQ0) и юзаю его для входящих звонков
с той же mgetty. Работает. Вообще у меня 2 модема Courier на ttyS0 и ttyQ0 на dialin.
Третий PCI PCTel модем на ttyS15. Сам он чудесно звонит. Вот пробую наоборот...

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.