anthony@pitt.UUCP (M. Anthony Kapolka 3) (11/09/88)
Help! I am trying to hook up a Hayes-clone 2400 baud modem to tty000, with (very) limited success. I just want to set it up for dial-in... I have it physically connected, and can dial out without problems. When I set it up (via /etc/inittab) with a getty, everything seems fine. When someone calls in, however, the modem picks up the phone and then promptly hangs up on the caller. If the modem receives a call without being connected to tty000 (ie the serial cable unplugged) it answers just fine. If I then plug in the cable (with a getty sitting on the port) everything then works. (Gosh, maybe all I need is a trained monkey!) From this I take it that the port sends something to the modem which causes it to hang up... but it has got to be something besides toggling DTR because... I have tried various combinations of wiring schemes, and this happens even with a simple 1->1, 2->2, 3->3, 7->7 and 8 connected to 20 on the tty000 side. I've also tried combinations of having the modem ignore/ pay attention to the DTR and CD lines for a more robust cable (all pins straight though connected.) Still, this odd behavior. Any help would be appreciated... I don't have a break out box and this has just gotten too strange for me. Surely someone else has had this problem. Oh, I am running version 3.0 of the OS. Please don't tell me that is my problem! Also, does anybody out there have an auto-bauding getty working? Thanks in advance, Anthony Kapolka anthony@vax.cs.pittsburgh.edu ...{nfsun,idis,bacchus,prapc2}!eklektik!anthony
jbm@uncle.UUCP (John B. Milton) (11/12/88)
In article <4242@pitt.UUCP> anthony@pitt.UUCP (M. Anthony Kapolka 3) writes: [describes modem setup] >When I set it up (via /etc/inittab) with a getty, everything seems fine. >When someone calls in, however, the modem picks up the phone and then >promptly hangs up on the caller. > >If the modem receives a call without being connected to tty000 (ie the >serial cable unplugged) it answers just fine. If I then plug in the >cable (with a getty sitting on the port) everything then works. >(Gosh, maybe all I need is a trained monkey!) When init spawns the getty, it hangs on opening the line until it gets CD from the modem. The getty's open then succeeds and the getty wakes up. If the cable is flaky or the CD line is floating, or something else causes CD to jump or go away, the getty gets a SIGHUP and the getty dies. One way around these problems is to create another set of /etc/gettydefs lines: remove HUPCL and add CLOCAL. This is getting ugly, but whatever works. You may need to check /etc/profile to make sure the line doesn't get dropped by a stty there. [describes cable fudging] >Any help would be appreciated... I don't have a break out box and this >has just gotten too strange for me. Surely someone else has had this >problem. With one of those cheapy 5 LED jobs, you can diagnose 90% of all problems. These are also good at reflecting signal strength in the brightness of the LED. Like UNIX, the simplest tools are the most valuable. [describes OS version] >Also, does anybody out there have an auto-bauding getty working? I have a very modified modem-ctl (was posted to the net) called prtty. It does autobauding by letting a talkative modem TELL it what the speed is: CONNECT CONNECT 1200 CONNECT 2400 It then exec()s a "getty -h line speed". I have had this program out on beta test for a while, with only minor complaints. I want to re-write it to be state driven, but I should post it as is first since I've got so many irons in the fire as it is. John -- John Bly Milton IV, jbm@uncle.UUCP, n8emr!uncle!jbm@osu-cis.cis.ohio-state.edu (614) h:294-4823, w:764-4272; MS-DOS is a beautiful flower that smells bad!
dave@arnold.UUCP (Dave Arnold) (11/13/88)
anthony@pitt.UUCP (M. Anthony Kapolka 3) writes: > > When someone calls in, however, the modem picks up the phone and then > promptly hangs up on the caller. I had the same problem on a Vax. I don't know if this will solve your problem, but to solve mine I hade to turn result codes off for imcoming calls. The "RING" message sent by the modem to the tty port was being interpreted as a login attempt. After I made the modem quiet, problem went away. Really. -- Dave Arnold (dave@arnold.UUCP) Work: Volt Delta Resources Phone: (714) 921-7635 Home: 26561 Fresno street, Mission Viejo, Ca 92691
gil@limbic.UUCP (Gil Kloepfer Jr.) (11/16/88)
In article <4242@pitt.UUCP> anthony@pitt.UUCP (M. Anthony Kapolka 3) writes: [describes modem setup] >When I set it up (via /etc/inittab) with a getty, everything seems fine. >When someone calls in, however, the modem picks up the phone and then >promptly hangs up on the caller. [John Milton gives one explanation] Another reason why this can happen is that when a Hayes compatible modem is in verbose mode, and a caller calls in, the CONNECT xxx message is sent to the 3B1 and is subsequently echoed back to the modem. If this happens fast enough on some modems (ie. the "C" in "CONNECT" gets sent back to the modem before the whole CONNECT xxx message is displayed), the modem will think you are aborting the call. I wouldn't have even mentioned this except that it happened to me! No flames on config, etc. please. This was one of many ways I tried to get this particular modem to work right on the 3B1. After hours of fighting with the modem, I sold it. One more question -- Has anyone (successfully) gotten a cheap 300/1200/2400 baud modem to work right with the 3B1. I am using a Microcom (borrowed) which has a braindamaged autobaud system. I would like to hear what needs to be done to set it up, and what the price is. If I get a lot of personal responses, I'll summarize. -------- Gil Kloepfer, Jr. U-Net: {decuac,boulder,talcott,sbcs}!icus!limbic!gil ICUS Software Systems Voice: (516) 968-6860 [H] (516) 746-2350 x219 [W] P.O. Box 1 Internet: gil@icus.islp.ny.us Islip Terrace, NY 11752 "Life's a ... well, you know..."
ebd@cup.portal.com (Elliot B Dierksen) (11/16/88)
The problem you are having is because your /etc/gettydefs file is not set up properly. first you need to set the modem up in the following fashion. E0 - do not echo commands Q1 - enable quiet mode.. never send any text output it would be better to set those options in NVRAM or with dipswitches if possible. next, here are some of the entries from my gettydefs file. i have a hayes comp. 2400 baud modem which i use to call out and receive calls at varied baud rates: 300# B300 CLOCAL BRKINT IGNPAR ISTRIP IXON IXOFF ECHO OPOST ONLCR # HUPCL BRKINT ISTRIP ICRNL IXON OPOST ONLCR B300 CS8 CREAD ISIG ICANON ECHO ECHOE ECHOK TAB3 #\nlogin: #2400 1200# B1200 CLOCAL BRKINT IGNPAR ISTRIP IXON IXOFF ECHO OPOST ONLCR # HUPCL BRKINT ISTRIP ICRNL IXON OPOST ONLCR B1200 CS8 CREAD ISIG ICANON ECHO ECHOE ECHOK TAB3 #\nlogin: #300 2400# B2400 CLOCAL BRKINT IGNPAR ISTRIP IXON IXOFF ECHO OPOST ONLCR # HUPCL BRKINT ISTRIP ICRNL IXON OPOST ONLCR B2400 CS8 CREAD ISIG ICANON ECHO ECHOE ECHOK TAB3 #\nlogin: #1200 if this does not solve the problem, send me some mail. i may have another possible solution because i have been through this before with someone else. Elliot Dierksen ebd@cup.portal.com
ebd@cup.portal.com (Elliot B Dierksen) (11/19/88)
I have a 2400 baud called a Smart One 2400X that works fine for in & out traffic with autobaud. The way i did it is the modem is set to quiet mode E0 Q1 normally. when i need to call out, i send the command to the modem to turn the responces back on. when i release the modem (drop DTR), it is set to reconfigure from NVRAM. It hiccups slightly with the Unix PC ATE package though. ATE removes to lock file before it releases the port so the modem never resets. then login starts trying to get OK onto my system. if anyone has any comments on that... I'm all ears!! Elliot Dierksen ebd@cup.portal.com
randy@cctb.mn.org (Randy Orrison) (11/20/88)
In article <11363@cup.portal.com> ebd@cup.portal.com (Elliot B Dierksen) writes: |The problem you are having is because your /etc/gettydefs file is not set up |properly. first you need to set the modem up in the following fashion. |E0 - do not echo commands |Q1 - enable quiet mode.. never send any text output | |it would be better to set those options in NVRAM or with dipswitches if |possible. next, here are some of the entries from my gettydefs file. i have a |hayes comp. 2400 baud modem which i use to call out and receive calls at |varied baud rates: |... |if this does not solve the problem, send me some mail. i may have another |possible solution because i have been through this before with someone else. I'm having similar problems using a 1200 baud external (Rixon Executive 212 Autodialer) modem. My problem was that everyone logging in was confronted with 'PASSWORD:' - getty had read the CONNECT and started the login process with an all upper case login name. The solution was the same, turn off the modem echoing, but then dialout didn't work. (It expects 'OK' and 'CARRIER' and such.) Does anyone have a modemcap entry for a hayes modem that doesn't report status codes? -randy -- Randy Orrison - Chemical Computer Thinking Battery - randy@cctb.mn.org (aka randy@{umn-cs.uucp, ux.acss.umn.edu, umnacvx.bitnet, halcdc.uucp})
dave@arnold.UUCP (Dave Arnold) (11/22/88)
In article <138@cctb.mn.org>, randy@cctb.mn.org (Randy Orrison) writes: > expects 'OK' and 'CARRIER' and such.) Does anyone have a modemcap entry > for a hayes modem that doesn't report status codes? What you may try doing is have a very dumb modemcap that just dials the number, and thinks it immediately has placed the call, then jump into your chat script---waiting for a login prompt, which will timeout if the number is busy, or never answers. -- Dave Arnold (dave@arnold.UUCP) Work: Volt Delta Resources Phone: (714) 921-7635 Home: 26561 Fresno street, Mission Viejo, Ca 92691
kls@ditka.UUCP (Karl Swartz) (12/03/88)
In article <138@cctb.mn.org> randy@cctb.UUCP (Randy Orrison) writes: >Does anyone have a modemcap entry >for a hayes modem that doesn't report status codes? Sure. Here are the modemcap entries I use with ditka's TrailBlazer, which is configured to be quite so getty doesn't get wedged: # Telebit trailblazer modem # same as hayes, but send a couple of "A"s first to get autobaud right # Name=telebit9600 t9|telebit96|telebit 9600:tr=\r:wp=\r:wk=K:wt=T:\ :ta=AT\r:ph=ATDT:\ :eh=\r:\ :d1#1:d5#5:ti=A:wi=A:\ :d2#30:\ :pl=tid1tid1tiwid1tad1wpwpwkwpphd2wpwpwttr: # # Name=telebit2400 t2|telebit24|telebit 2400:tr=\r:wp=\r:wk=K:wt=T:\ :ta=AT\r:ph=ATDT:\ :tp=ATS50=3\r:\ :eh=\r:\ :d1#1:d5#5:ti=A:wi=A:\ :d2#20:\ :pl=tid1tid1tid1tiwid1tad1wpwpwkwptpwkphd2wpwpwttr: # # Name=telebit1200 t1|telebit12|telebit 1200:tr=\r:wp=\r:wk=OK:wt=ECT:\ :ta=AT\r:ph=DT:\ :tp=ATS50=2:\ :eh=\r:\ :d1#1:d5#5:ti=A:wi=A:\ :d2#20:\ :pl=titid1titid1titiwitad1wktpphd2wt: (These are slightly hacked from some I saw posted on the net; I regret not being able to find the information to properly credit their original source.) -- Karl Swartz |UUCP {ames!hc!rt1,decuac!netsys}!ditka!kls 1-505/667-7777 (work) |ARPA rt1!ditka!kls@hc.dspo.gov 1-505/672-3113 (home) |BIX kswartz "I never let my schooling get in the way of my education." (Twain)