Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!samba.rahul.net!rahul.net!a2i!olivea!decwrl!enews.sgi.com!news.mathworks.com!tank.news.pipex.net!pipex!dish.news.pipex.net!pipex!dsbc.icl.co.uk!E.J.Randall From: E.J.Randall@x400.icl.co.uk (Ed Randall) Newsgroups: comp.unix.bsd.freebsd.misc Subject: tip, cu are both buggy (2.1.0-R) Date: 29 May 1996 16:19:34 GMT Organization: ICL, Bracknell, UK Lines: 59 Message-ID: <4ohtem$g71@eccles.dsbc.icl.co.uk> Reply-To: ed@orlando.demon.co.uk NNTP-Posting-Host: dickens.bra01.icl.co.uk X-Newsreader: TIN [version 1.2 PL2] I finally managed to get my modem to dial in to another via the modem ... not without considerable hassles though. First off I tried using tip, because the manual page for "cu" said "this program is rather buggy". Pity the "tip" page didn't have a similar comment to even out the balance. (1) The example scripts are junk - if you have an entry "pn=@" in /etc/remote - it DOES NOT look in /etc/phones. It complains that there is no number, and bombs out, instead. (2) Next I found the FAQ and recompiled with the Hayes option; But still got messages along the lines of "Can't sync with modem". This was supposed to be easy, I thought. So I switched to using "cu" - which I believe is the one from the Taylor UUCP package, as opposed to the one which is just a link to "tip". "cu" configuration initially seemed a bit more complex than "tip", but turned to be a simple matter of "too many files" syndrome. Anyway, I soon got going on the "chat" script in the "/etc/uucp/dial" file. The modem just WOULD NOT behave as I expected. I simplified it down to : chat "" ATZ OK and the modem would go online instead of resetting silently as expected. Wierd. Then suddenly I twigged. "cu" is sending a secret, unsolicited "AT" before the first command in the chat script. SO I was sending "ATATZ" - and that put it in the "on line" state. The example script is clearly wrong, it should start off chat "" Z\r\d\c OK because the initial AT has already been done for free. Anyway, it's all working now, frustration over. Could someone please either : (1) Tell me what it was that I didn't read before starting (I didn't find it in the FAQ nor the handbook). or (2) fix the sample scripts in uucp to document this or (3) Point me at the bit of configuration which I havn't noticed which is causing the rogue "AT" to be sent or (4) fix "cu" so it doesn't send an unwanted "AT" (I doubt everyone would always want that in all situations anyway) or (5) Point me to the document that tells me how to submit the changes to the "cu" source code myself ? (None of this addresses the problems I had with "tip" - but I rapidly lost interest in fixing the source code of that program - too few comments.) Cheers, Ed ed@orlando.demon.co.uk