|
#1
|
|||
|
|||
mgetty
Brother Rabbit написал(а) к All в Apr 19 18:04:28 по местному времени:
Нi, All! Что нужно настроить, что бы mgetty увидела RING и правильно сказала ATA? [fido@BroRabbit mgetty]$ cat ./ttyS1.log -- 04/15 17:50:22 yS1 mgetty: interim release 1.1.37-Jun05 04/15 17:50:22 yS1 WARNING: parent process not init(pid=1), but pid=13277 (sudo /sbin/mgetty /dev/ttyS1) 04/15 17:50:22 yS1 check for lockfiles 04/15 17:50:22 yS1 checklock: stat failed, no file 04/15 17:50:22 yS1 locking the line 04/15 17:50:22 yS1 makelock(ttyS1) called 04/15 17:50:22 yS1 do_makelock: lock='/var/lock/serial/LCK..ttyS1' 04/15 17:50:22 yS1 lock made 04/15 17:50:22 yS1 tioget_rs232lines: status: RTS CTS DSR DTR 04/15 17:50:22 yS1 lowering DTR to reset Modem 04/15 17:50:23 yS1 tss: set speed to 57600 (10001) 04/15 17:50:23 yS1 tioset_flowcontrol( НARD ) 04/15 17:50:23 yS1 waiting for line to clear (VTIME=1), read: 04/15 17:50:23 yS1 send: ATZ[0d] 04/15 17:50:23 yS1 waiting for ``OK'' 04/15 17:50:23 yS1 got: ATZ[0d][0d][0a]OK * found * 04/15 17:50:23 yS1 waiting for line to clear (VTIME=3), read: [0d][0a] 04/15 17:50:24 yS1 removing lock file 04/15 17:50:24 yS1 waiting... 04/15 17:50:56 yS1 checking lockfiles, locking the line 04/15 17:50:56 yS1 makelock(ttyS1) called 04/15 17:50:56 yS1 do_makelock: lock='/var/lock/serial/LCK..ttyS1' 04/15 17:50:56 yS1 lock made 04/15 17:50:56 yS1 wfr: waiting for ``RING'' 04/15 17:50:56 yS1 got: [13][c5][b6]}[87][1b][c5]R[fd][86][d3][8a][ae]m7[d3][f2][b6]}[87] 04/15 17:51:06 yS1 mdmreadbyte: read returned -1: Interrupted system call 04/15 17:51:06 yS1 wfr: timeout waiting for RING 04/15 17:51:06 yS1 wfr: rc=-1, drn=0 04/15 17:51:06 yS1 huh? Junk on the line? 04/15 17:51:06 yS1 >>> could be a dial-out program without proper locking - check this! 04/15 17:51:06 yS1 removing lock file [fido@BroRabbit ~]$ uname -a Linux BroRabbit.localdomain 4.9.71-std-def-alt0.M80P.1 #1 SMP Thu Dec 21 01:27:05 UTC 2017 x86_64 GNU/Linux /etc/mgetty+sendfax/mgetty.config ---------------------------------------- port-owner fido port-group fido port-mode 0666 port ttyS1 rings 1 debug 5 init-chat "" ATZ OK answer-chat "" ATA CONNECT c r answer-chat-timeout 80 speed 57600 modem-type auto data-only y ---------------------------------------- Нave nice nights. Brother Rabbit. --- Если ложка не стоит в сметане, очевидно, виновата не ложка! |