Using many modems

Oliver Sturm (sturm@ost1.ping.de)
Thu, 5 Nov 1998 20:02:18 +0100


Oliver Sturm wrote:
> 
> Gert, no offense ment, but the behaviour of mgetty, if it gets several
> rings at once coming from the same call, isn't plausible. I'll have to
> see if I still got those old logs where you can see that two running
> mgetty-instances kind of "take away" the call from each other.
> 
Well, I did find the logs. What I had already done here was to increase
the ring count for one modem to two (the one on ttyS2). 

------------mgetty.ttyS1---------------------------------
07/30 14:39:46 yS1  mgetty: experimental test release 1.1.14-Apr02
07/30 14:39:46 yS1  check for lockfiles
07/30 14:39:46 yS1  locking the line
07/30 14:39:46 yS1  can't get group 'modem': No such file or directory
07/30 14:39:47 yS1  lowering DTR to reset Modem
07/30 14:39:48 yS1  send: \d\d\d+++\d\d\datz[0d]
07/30 14:39:51 yS1  waiting for ``OK'' ** found **
07/30 14:39:51 yS1  send: at*v2=0[0d]
07/30 14:39:51 yS1  waiting for ``OK'' ** found **
07/30 14:39:51 yS1  mdm_send: 'ATI'
07/30 14:39:51 yS1  USR I-Modem detected
07/30 14:39:51 yS1  mdm_send: 'ATI3'
07/30 14:39:52 yS1  additional info: 'USRobotics Courier I-Modem with
ISDN/V.34'
07/30 14:39:52 yS1  mdm_send: 'AT+FCLASS=2.0' -> OK
07/30 14:39:52 yS1  mdm_send: 'AT+FAA=1;+FCR=1' -> OK
07/30 14:39:52 yS1  mdm_send: 'AT+FBO=1' -> OK
07/30 14:39:52 yS1  mdm_send: 'AT+FNR=1,1,1,0' -> OK
07/30 14:39:52 yS1  mdm_send: 'AT+FLI="492112232821"' -> OK
07/30 14:39:52 yS1  mdm_send: 'AT+FCC=1,5,0,2,0,0,0,0' -> OK
07/30 14:39:53 yS1  waiting...
07/30 14:40:28 yS1  waiting for ``RING'' ** found **
07/30 14:40:28 yS1  send: ATA[0d]
07/30 14:40:28 yS1  waiting for ``CONNECT''
07/30 14:41:48 yS1  timeout in chat script, waiting for `CONNECT'
07/30 14:41:48 ##### failed timeout dev=ttyS1, pid=5966, caller='none',
conn='', name=''

--------------------------------------------------------------------------

-------------mgetty.ttyS2---------------------------------------
07/30 14:39:08 yS2  mgetty: experimental test release 1.1.14-Apr02
07/30 14:39:08 yS2  check for lockfiles
07/30 14:39:08 yS2  locking the line
07/30 14:39:08 yS2  can't get group 'modem': No such file or directory
07/30 14:39:09 yS2  lowering DTR to reset Modem
07/30 14:39:10 yS2  send: \d\d\d+++\d\d\datz[0d]
07/30 14:39:13 yS2  waiting for ``OK'' ** found **
07/30 14:39:13 yS2  send: at*v2=0[0d]
07/30 14:39:13 yS2  waiting for ``OK'' ** found **
07/30 14:39:13 yS2  mdm_send: 'ATI'
07/30 14:39:13 yS2  USR I-Modem detected
07/30 14:39:13 yS2  mdm_send: 'ATI3'
07/30 14:39:14 yS2  additional info: 'USRobotics Courier I-Modem with
ISDN/V.34'
07/30 14:39:14 yS2  mdm_send: 'AT+FCLASS=2.0' -> OK
07/30 14:39:14 yS2  mdm_send: 'AT+FAA=1;+FCR=1' -> OK
07/30 14:39:14 yS2  mdm_send: 'AT+FBO=1' -> OK
07/30 14:39:14 yS2  mdm_send: 'AT+FNR=1,1,1,0' -> OK
07/30 14:39:14 yS2  mdm_send: 'AT+FLI="492112232821"' -> OK
07/30 14:39:14 yS2  mdm_send: 'AT+FCC=1,5,0,2,0,0,0,0' -> OK
07/30 14:39:15 yS2  waiting...
07/30 14:40:28 yS2  waiting for ``RING'' ** found **
07/30 14:40:28 yS2  waiting for ``RING''
07/30 14:40:36 yS2  found action string: ``+FCO_''
07/30 14:40:36 yS2  start fax receiver...
07/30 14:40:36 yS2  fax_wait_for(OK)
07/30 14:40:37 yS2  fax_id: '+FTI:"     +49 211 2232822"'
07/30 14:40:38 yS2  transmission par.: '+FCS:1,5,0,2,0,0,0,1'** found **
07/30 14:40:38 yS2  mdm_send: 'AT+FLO=2' -> OK
07/30 14:40:38 yS2  fax_send: 'AT+FDR'
07/30 14:40:38 yS2  fax_wait_for(CONNECT)
07/30 14:40:41 yS2  transmission par.: '+FCS:1,5,0,2,0,0,0,1'** found **
07/30 14:40:44 yS2  fax_get_page_data: receiving
/var/spool/fax/incoming/ff5c069ccS2-_-+49-211-2232822_.01...
07/30 14:41:05 yS2  fax_get_page_data: page end, bytes received: 39665
07/30 14:41:05 yS2  fax_wait_for(OK)
07/30 14:41:05 yS2  page status: +FPS:1,2325,0,0,0** found **
07/30 14:41:10 yS2  fax_send: 'AT+FDR'
07/30 14:41:10 yS2  fax_wait_for(CONNECT)
07/30 14:41:13 yS2  connection hangup: '+FHS:00'** found **
07/30 14:41:13 ##### fax dev=ttyS2, pid=5965, caller='none', name='',
id='_     +49 211 2232822_', +FHNG=000, pages=1, time=00:00:29

-----------------------------------------------------

What happens, I interpret as follows:

1) Both modems get a RING signal at the same time (14:40:28)
2) ttyS1 answers with ATA and waits for CONNECT (14:40:28), ttyS2 waits
for second RING
3) ttyS2 gets +FCO out of the blue and starts receiving the incoming fax
(14:40:36)
4) ttyS1 gets bored waiting for CONNECT and gives up (14:40:48)

Sorry the logs aren't more detailed (sorry for the traffic anyway).
Mgetty version is 1.1.15

Back in Juli I "fixed" the problem by commenting out a line in mgetty.c
which handles the incoming +FCO while a modem is really waiting for
additional RINGS. This gave me no problems, apart from that I had to use
different ring-counts for the two modems. (BTW, when using the same
ring-count, one modem gets NO CARRIER alright, but the other gives up
before coming to CONNECT ;()


What do you say?

Oliver

-- 
MfG, 

Oliver Sturm

<sturm@ost1.ping.de>