home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / sci / electron / 13301 < prev    next >
Encoding:
Text File  |  1992-07-25  |  3.0 KB  |  58 lines

  1. Newsgroups: sci.electronics
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!sal.wisc.edu!rat!cindy!rmintz
  3. From: rmintz@ecst.csuchico.edu (Rich Mintz)
  4. Subject: Ring Signal/Software Problem
  5. Message-ID: <1992Jul25.052616.1854@ecst.csuchico.edu>
  6. Sender: news@ecst.csuchico.edu (no news is good news)
  7. Nntp-Posting-Host: cscihp.ecst.csuchico.edu
  8. Organization: California State University, Chico
  9. Date: Sat, 25 Jul 1992 05:26:16 GMT
  10. Lines: 46
  11.  
  12. I have an application I've programmed that monitors the phone line.
  13. I've had a constant problem keeping track of how many time the phone
  14. has rung, because of all the specific timing problems associated with
  15. checking for the duration of a ring, how long after ringing stops to
  16. reset the count, considerations for passing through the ring-check
  17. procedure in mid-ring, while constantly monitoring if the phone has
  18. been answered (I'm using a voice mail card that can detect a pickup on
  19. the connected telephone) and doing miscellaneous other processing.
  20.  
  21. Through trial and error, I can sometimes get it to work right, but
  22. when I change to a different type/speed of computer, or change some
  23. aspect of the program that will affect the timing checks, it messes
  24. everything up. The RI serial line also jumps between 1 and 0 very
  25. quickly when a ring is detected, which complicates the routine to
  26. reliably determine the presence or absence of a ring. This indicator
  27. also seems to get falsely triggered sometimes when a pickup or hangup
  28. is made. I had considered constantly polling the Hayes S1 register on
  29. the modem with serial i/o (it keeps track of how many rings have
  30. occurred), but there were problems with polling commands to the modem
  31. getting messed up when the modem would send a ring result code at the
  32. same time as commands were being sent to it, which made that method
  33. unreliable. On top of that, I found that doing serial i/o in Turbo C
  34. isn't exactly fun (ie: pain in the ass).
  35.  
  36. I have the phone line going into my modem, and then to my voice mail
  37. card, which then software-selectably passes the line to a connected
  38. telephone. I disengage the phone from the line via software at times
  39. when I don't want my phone to ring. If I put a rectifier bridge and a
  40. big capacitor on the phone line going into the modem/voicemail card,
  41. will it (A) still ring my phone when I select to pass the line through
  42. to the connected (electronic ringer) telephone, and (B) register as
  43. ring detect to the modem and produce a continuous "1" signal on the
  44. serial RI line (as opposed to the normal 1..0..1..0 ring signal), and
  45. (C) screen out false '1' "blips" in the signal when I pick up or
  46. hangup my phone? In other words, will just the positive portion of
  47. the AC ring smoothed out with the capacitor so that it appears to the
  48. various ring-detect circuitry as a very elevated DC voltage be
  49. recognized as a ring? If not, is there an alternate configuration
  50. someone can suggest that would do this job?
  51.  
  52. Note: my modem is internal and I'm using an AT 386 SX @ 16 Mhz.
  53.  
  54. Thanks a lot . . .
  55.  
  56.       Rich -> rmintz@cscihp.ecst.csuchico.edu
  57.  
  58.