Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 1997 18:44:50 +0200 (MET DST)
From:      Peter Cornelius <dl5bct@inss1.etec.uni-karlsruhe.de>
To:        freebsd-questions@freebsd.org
Cc:        Gert Doering <gert@greenie.muc.de>, Peter Cornelius <dl5bct@inss1.etec.uni-karlsruhe.de>
Subject:   ? mgetty 0.99-Aug07, FreeBSD 2.2.1-RELEASE, 1&1 Skyconnect (Creatix): Problem ?
Message-ID:  <Pine.3.89.9705091805.A9100-0100000@inss6>

next in thread | raw e-mail | index | archive | help
Hi(gh) there...

Since a couple of weeks I'm trying to get this bugger working. I even updated
from FreeBSD 2.1.5-RELEASE to 2.2.1-RELEASE to be somewhat more up to date
and maybe escape some possible old bugs in either FreeBSD or even mgetty ;-))
and not to bug anyone with stone-aged software. But the effect hasn,t
changed after updating.

I have used, and still do, the FreeBSD port collection's version of mgetty,
that is mgetty+sendfax version 0.98 in 2.1.5-RELEASE and now, with 
2.2.1-RELEASE, version 0.99-Aug07.

Now, quite frankly, I'm stuck and I need help.

What mgetty does, one may hopefully see with the log excerpts and the
present config file included further below. There's no need to worry 
about the 'something foul in config line'-noise so far as it will disappear
once I use separate config files, I suppose.

As one can see, mgetty does not get back _anything_ whilst trying to talk to
the modem. Well, ok, modem or cable broken, wrong port, or whatsoever, if --
well, if there weren't a couple things that puzzled me:

Firstly, I _can_ talk to the modem with _no_ (physical) change in setup
using seyon (which I stopped using and removed subsequently as I can't get
rally used to it, it seems) and minicom (v1.75).
With minicom, I can dial in at my university, read mail and do (almost) all
that I want. Once it is up & running. Because

secondly, when I start up minicom (seyon shows a similar behaviour) it hangs
when trying to initialize the modem after reset (the modem "clicks", so it
appears to have received the reset and only the resulting 'OK' doesn't seem
to get through). When I then kill -9 the minicom process (-15 makes minicom
try to reset the modem which doesn't work either, and then lock solidly) and
restart it witin mgetty's port check time (i. e. before mgetty finds out that
minicom has gone), minicom will just work fine. This means, that

thirdly, device locking seems to be ok, as far as I can say. At least
mgetty stays out of the way while minicom is up.

Forthly, I suspected that mgetty, by some weird influences of my chaotic
aura, does read() istead of select() or poll() and therefore losing
characters on the serial line. Thus, I flipped through the manpages looking
for select() and poll() and such, and I found what I expected, FreeBSD
does have and uses select(), but there's no alternative poll(). This is
what I also understood from mgetty's docs and Makefiles.
So I tried to rebuild the sources with -DUSE_SELECT. But this only generates
lots of complaints (whereas compiling quietly before) about having USE_SELECT
defined multiplely. Well, and that's, again, what I would expect if I had a
working code...

Now, I'm not a very good C programmer (in fact, all I can do with it is 
taking a sharp look and a good guess), so I'm somewhat lost here, I 
regret to admit.
(NOTE: Also, I'm pretty sure that there's no other program interfering,
I triple-checked that, too.)

So that's what I see, and it's more and more of a riddle to me.

I hope that there's someone out there willing and able to read this
(long... *sigh*) posting and give me a hand. Thanks also to all others for
not being bugged.

Poooh.

Cheers, Peter.

   +-------------------------------------------------------------------------+
   | vy 73, 55 de              dl5bct@db0fho.#nds.deu.eu             (ax.25) |
   | Peter Cornelius           dl5bct@db0fho.ampr.org                 (ampr) |
   | dl5bct * vk2cpc           dl5bct@inss1.etec.uni-karlsruhe.de (internet) |
   | <A HREF="http://inss1.etec.uni-karlsruhe.de/~dl5bct/">click here !</A>  |
   +-------------------------------------------------------------------------+

PS.: I suspect also a problem with my modem and my thermo fax (Olympia OF 
     625), but that should now really go into another post. I _might_ 
     follow that if and once I get mgetty set up properly.

-----------------------------
Detailed information follows.
-----------------------------

---
/tmp/log_mg.modem (excerpts)
---
(a) modem locking _works_
--
05/07 00:07:29 dem  mgetty: experimental test release 0.99-Aug07
05/07 00:07:29 dem  something foul in config line: 'fax-devices modem'
05/07 00:07:29 dem      (keyword 'fax-devices' not found)
05/07 00:07:29 dem  something foul in config line: 'modem-init ATZ'
05/07 00:07:29 dem      (keyword 'modem-init' not found)
05/07 00:07:29 dem  something foul in config line: 'modem-handshake '
05/07 00:07:29 dem      (keyword 'modem-handshake' not found)
05/07 00:07:29 dem  something foul in config line: 'max-tries 3'
05/07 00:07:29 dem      (keyword 'max-tries' not found)
05/07 00:07:29 dem  something foul in config line: 'max-tries-continue YES'
05/07 00:07:29 dem      (keyword 'max-tries-continue' not found)
05/07 00:07:29 dem  something foul in config line: 'dial-prefix ATDT'
05/07 00:07:29 dem      (keyword 'dial-prefix' not found)
05/07 00:07:29 dem  something foul in config line: 'poll-dir ./'
05/07 00:07:29 dem      (keyword 'poll-dir' not found)
05/07 00:07:29 dem  something foul in config line: 'normal-res NO'
05/07 00:07:29 dem      (keyword 'normal-res' not found)
05/07 00:07:29 dem  something foul in config line: 'verbose NO'
05/07 00:07:29 dem      (keyword 'verbose' not found)
05/07 00:07:29 dem  check for lockfiles
05/07 00:07:29 dem   lockfile found, pid=549
05/07 00:07:29 dem   lockfile found, pid=549
05/07 00:07:29 dem   utmp + wtmp entry made
05/07 00:07:29 dem   lockfile found, pid=549
05/07 00:07:39 dem   lockfile found, pid=549
05/07 00:07:49 dem   lockfile found, pid=549
05/07 00:08:00 dem   lockfile found, pid=549
05/07 00:08:10 dem   lockfile found, pid=549
05/07 00:08:20 dem   lockfile found, pid=549
05/07 00:08:30 dem   lockfile found, pid=549
05/07 00:08:40 dem   lockfile found, pid=549
05/07 00:08:50 dem   lockfile found, pid=549
05/07 00:09:00 dem   checklock: no active process has lock, will remove
05/07 00:09:05 dem   checklock: stat failed, no file

(b) what usually happens...
--
05/09 10:08:58 dem  mgetty: experimental test release 0.99-Aug07
05/09 10:08:58 dem  something foul in config line: 'fax-devices modem'
05/09 10:08:58 dem      (keyword 'fax-devices' not found)
05/09 10:08:58 dem  something foul in config line: 'modem-init ATZ'
05/09 10:08:58 dem      (keyword 'modem-init' not found)
05/09 10:08:58 dem  something foul in config line: 'modem-handshake AT&K3'
05/09 10:08:58 dem      (keyword 'modem-handshake' not found)
05/09 10:08:58 dem  something foul in config line: 'max-tries 3'
05/09 10:08:58 dem      (keyword 'max-tries' not found)
05/09 10:08:58 dem  something foul in config line: 'max-tries-continue YES'
05/09 10:08:58 dem      (keyword 'max-tries-continue' not found)
05/09 10:08:58 dem  something foul in config line: 'dial-prefix ATDT'
05/09 10:08:58 dem      (keyword 'dial-prefix' not found)
05/09 10:08:58 dem  something foul in config line: 'poll-dir ./'
05/09 10:08:58 dem      (keyword 'poll-dir' not found)
05/09 10:08:58 dem  something foul in config line: 'normal-res NO'
05/09 10:08:58 dem      (keyword 'normal-res' not found)
05/09 10:08:58 dem  something foul in config line: 'verbose NO'
05/09 10:08:58 dem      (keyword 'verbose' not found)
05/09 10:08:58 dem  check for lockfiles
05/09 10:08:58 dem   checklock: stat failed, no file
05/09 10:08:58 dem  locking the line
05/09 10:08:58 dem   makelock(modem) called
05/09 10:08:58 dem   do_makelock: lock='/var/spool/lock/LCK..modem'
05/09 10:08:58 dem   lock made
05/09 10:08:59 dem  lowering DTR to reset Modem
05/09 10:08:59 dem   tss: set speed to 38400 (113000)
05/09 10:08:59 dem   tio_set_flow_control( HARD )
05/09 10:08:59 dem   waiting for line to clear (VTIME), read: 
05/09 10:08:59 dem  send: \d\d\d\d\d\d+++\d\d\dATE1Q0V1[0d]
05/09 10:09:04 dem  waiting for ``OK''
05/09 10:09:04 dem   got: 
05/09 10:09:24 dem  timeout in chat script, waiting for `OK'
05/09 10:09:24 dem  init chat timed out, trying force-init-chat
05/09 10:09:24 dem  send: \d[10][03]\d\d\d+++\d\d\d[0d]\dATQ0V1H0[0d]
05/09 10:09:28 dem  waiting for ``OK''
05/09 10:09:28 dem   got: 
05/09 10:09:48 dem  timeout in chat script, waiting for `OK'
05/09 10:09:48 dem  init chat failed, exiting...: Interrupted system call
05/09 10:09:48 dem   removing lock file

(c) what happens if I call the modem during initialization
    (this one was a non-answered fax call from the paper machine)
--
05/07 23:36:27 dem  mgetty: experimental test release 0.99-Aug07
05/07 23:36:27 dem  something foul in config line: 'fax-devices modem'
05/07 23:36:27 dem      (keyword 'fax-devices' not found)
05/07 23:36:27 dem  something foul in config line: 'modem-init ATZ'
05/07 23:36:27 dem      (keyword 'modem-init' not found)
05/07 23:36:27 dem  something foul in config line: 'modem-handshake AT&K3'
05/07 23:36:27 dem      (keyword 'modem-handshake' not found)
05/07 23:36:27 dem  something foul in config line: 'max-tries 3'
05/07 23:36:27 dem      (keyword 'max-tries' not found)
05/07 23:36:27 dem  something foul in config line: 'max-tries-continue YES'
05/07 23:36:27 dem      (keyword 'max-tries-continue' not found)
05/07 23:36:27 dem  something foul in config line: 'dial-prefix ATDT'
05/07 23:36:27 dem      (keyword 'dial-prefix' not found)
05/07 23:36:27 dem  something foul in config line: 'poll-dir ./'
05/07 23:36:27 dem      (keyword 'poll-dir' not found)
05/07 23:36:27 dem  something foul in config line: 'normal-res NO'
05/07 23:36:27 dem      (keyword 'normal-res' not found)
05/07 23:36:27 dem  something foul in config line: 'verbose NO'
05/07 23:36:27 dem      (keyword 'verbose' not found)
05/07 23:36:27 dem  check for lockfiles
05/07 23:36:27 dem   checklock: stat failed, no file
05/07 23:36:27 dem  locking the line
05/07 23:36:27 dem   makelock(modem) called
05/07 23:36:27 dem   do_makelock: lock='/var/spool/lock/LCK..modem'
05/07 23:36:27 dem   lock made
05/07 23:36:28 dem  lowering DTR to reset Modem
05/07 23:36:28 dem   tss: set speed to 38400 (113000)
05/07 23:36:28 dem   tio_set_flow_control( HARD )
05/07 23:36:28 dem   waiting for line to clear (VTIME), read: 
05/07 23:36:28 dem  send: \d\d\d\d\d\d+++\d\d\dATE1Q0V1[0d]
05/07 23:36:33 dem  waiting for ``OK''
05/07 23:36:33 dem   got: [00][00][f3][00][00][f3][00][00][f3][00][00][f3]
05/07 23:36:53 dem  timeout in chat script, waiting for `OK'
05/07 23:36:53 dem  init chat timed out, trying force-init-chat
05/07 23:36:53 dem  send: \d[10][03]\d\d\d+++\d\d\d[0d]\dATQ0V1H0[0d]
05/07 23:36:57 dem  waiting for ``OK''
05/07 23:36:57 dem   got: 
05/07 23:37:17 dem  timeout in chat script, waiting for `OK'
05/07 23:37:17 dem  init chat failed, exiting...: Interrupted system call
05/07 23:37:17 dem   removing lock file

---
/usr/local/etc/mgetty+sendfax/mgetty.config
---
fax-devices modem 


port modem 
debug  9
fax-id  +49 721 966 3974
speed 38400
#speed 115200
modem-init ATZ
modem-handshake AT&K3
max-tries 3
max-tries-continue YES
dial-prefix ATDT
poll-dir ./
normal-res NO
verbose NO
direct  NO
blocking  NO
port-owner uucp
port-group dialer
port-mode 0660
toggle-dtr YES
toggle-dtr-waittime 500
data-only  NO
fax-only  NO
modem-type  auto
#init-chat  "" \d\d\d\d\d\d+++\d\d\dATQ0E1V1H0 OK ATS0=0&D3&C1&K3 OK
init-chat  "" \d\d\d\d\d\d+++\d\d\dATE1Q0V1 OK ATS0=0&D3&K3&C1 OK
modem-check-time  3600
rings 1
answer-chat  "" ATA CONNECT \c \r
answer-chat-timeout  80
autobauding YES
ringback NO
ringback-time 30
issue-file  /etc/issue
prompt-waittime 500
login-prompt  @!login: 
diskspace  4096
notify  pc
fax-owner  uucp
fax-group  dialer
fax-mode  0660

---
minicom parameters used
---
The C-a p (i. e. parameter) window tells me (38400 also works):
115200 8N1

---
modem description
---
Modem brand/model:	"1&1 Skyconnect 28800V34"
at+fclass=?		0,1,2	
at+fcig=?		(20)(32,33,35-96,123-126)
at+fdcc=?		(0,1),(0-5),(0-2),(0-2),(0,1),0,0,(0-7)
at+fdcs=?		(0,1),(0-5),(0-2),(0-2),(0,1),0,0,(0-7)
at+fdis=?		(0,1),(0-5),(0-2),(0-2),(0,1),0,0,(0-7)
at+flid=?		(20)(32,33,35-96,123-126)
at+fmdl?		AC/V34              
at+fmfr?		ROCKWELL            
at+frev?		V1.200-V34_DS
at+fspl=?		0,1

ati0			28800
ati1			043
ati2			(only 'OK' returned, nothing else)
ati3			V1.200-V34_DS
ati4			CERNDEXX  V1.21  07/11/95
ati5			006
ati6			RC288DPi Rev 05BA
ati7			000

tested on:		FreeBSD 2.2.1-RELEASE
working:		nothing so far - except minicom or seyon
remarks:		That 1&1 stuff is what it says on the case. But the
			truth is that it is a Creatix modem: On the pcb
			it says 'Type 2 CREATIX' on the solder side, and
			'mp186.3' and 'STF' on the component side (whatever
			this all might tell me...).
			Anyways, the EPROM is labelled '(C) Skyconnect V34
			V1.21', and it's inded -no one guessed it- a Rockwell
			chipset employing one
			RC288DPi	and one		L39W/U
			R6682-26			L3903-53
			...and (C) Rockwell and such, both made in Mexico.
contributor:		Peter Cornelius <ublt@rz.uni-karlsruhe.de>
#define			(will be included once it works)

---
hardware used
---
IWILL PS54TS (P133, AIC7850 & sio0, sio1 (both 16550), lpt and
             (unused!) ide on board)
32 MB RAM
Symbios/NCR810 PCI
ELSA Winner 64 Trio
SMC 8416 BT ISA
Soundblaster SB16
(Logitech pilot mouse on sio0 = cuaa0/ttyd0)

---
uname -a
---
FreeBSD petra.cornelius.org 2.2.1-RELEASE FreeBSD 2.2.1-RELEASE #0: Sun May  4 09:54:26 MET DST 1997     root@petra.cornelius.org:/usr/local/usr-src/sys/compile/PETRA  i386
(NOTE: hostname 'petra.cornelius.org' does _not_ exist officially. I made
       that up for experimental purposes)

___
ls -al /dev/modem /dev/cuaa1
---
crw-rw----  1 uucp  dialer   28, 129 May  8 16:31 /dev/cuaa1
lrwxr-xr-x  1 root  wheel         10 May  8 13:17 /dev/modem -> /dev/cuaa0
(NOTE: also tried hard link with no effect)

---
/etc/ttys
---
#
#	@(#)ttys	5.1 (Berkeley) 4/17/89
#
# name	getty				type	status		comments
#
# This entry needed for asking password when init goes to single-user mode
# If you want to be asked for password, change "secure" to "insecure" here
console	none				unknown	off secure
#
ttyv0	"/usr/libexec/getty Pc"		cons25	on  secure
# Virtual terminals
ttyv1	"/usr/libexec/getty Pc"		cons25	on secure
ttyv2	"/usr/libexec/getty Pc"		cons25	on secure
ttyv3	"/usr/libexec/getty Pc"		cons25	off secure
# Serial terminals
ttyd0	"/usr/libexec/getty std.9600"	unknown	off secure
ttyd1	"/usr/libexec/getty std.9600"	unknown	off secure
ttyd2	"/usr/libexec/getty std.9600"	unknown	off secure
ttyd3	"/usr/libexec/getty std.9600"	unknown	off secure
# Pseudo terminals
ttyp0	none			network
ttyp1	none			network
ttyp2	none			network
ttyp3	none			network
ttyp4	none			network
ttyp5	none			network
ttyp6	none			network
ttyp7	none			network
ttyp8	none			network
ttyp9	none			network
ttypa	none			network
ttypb	none			network
ttypc	none			network
ttypd	none			network
ttype	none			network
ttypf	none			network
ttypg	none			network
ttyph	none			network
ttypi	none			network
ttypj	none			network
ttypk	none			network
ttypl	none			network
ttypm	none			network
ttypn	none			network
ttypo	none			network
ttypp	none			network
ttypq	none			network
ttypr	none			network
ttyps	none			network
ttypt	none			network
ttypu	none			network
ttypv	none			network
# cuaa0	"/usr/local/sbin/mgetty"	unknown on secure
modem	"/usr/local/sbin/mgetty"	unknown on insecure




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.3.89.9705091805.A9100-0100000>