home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / MODEMS / MODEM / MDMFND13.LBR / MDMFND13.DQC / MDMFND13.DOC
Text File  |  2000-06-30  |  3KB  |  55 lines

  1. Date: 1/5/85     MDMFND13.C    Modem finder program  ver 1.3
  2.  
  3.     I originally wrote this program some time ago as an exercise in
  4. converting a "BASIC lover" friend of mine (who shall remain nameless to
  5. protect the guilty) to C. It's intended as amusement only and should be
  6. used as such!! No .com or .obj file is provided as, it is hoped, if you
  7. are advanced enough to port this program to your computer (as well as have
  8. a C compiler), you are old/mature enough to use it as a novelty and not
  9. for illegal or unethical activity.
  10.  
  11.     Some random notes: After the point was made about C's suitability
  12. for such a program, no further developement was done. This means (1) this
  13. is an early C program of mine so the code can be cleaned up considerably,
  14. (Dennis Ritchie has little to fear for his job from this program) and
  15. (2) no attempt was made to make it bulletproof i.e. its possible (but
  16. not likely on a real smartmodem-more on that later) that the modem will
  17. hang. Some suggested improvements are (1) use numeric codes for reliabil-
  18. ity, and (2) use 1200 baud response codes and note which speed modem ans-
  19. wers in the file.
  20.  
  21.     On so called "Hayes compatible modems": All developement was done
  22. on a Hayes Smartmodem 1200. On a Hayes, if you send the modem a "+++" to
  23. get its attention, you get back an "OK". This can be trapped for and used
  24. to make sure you have its attention before the "ATH" is sent. On a US 
  25. Robotics Password, the "+++" actually hangs up the phone. Like a Hayes,
  26. however, the Password will not respond to a "+++" if there is incoming data.
  27. Guess what happens if you hit a long winded dial-up that sends 60 sec. of
  28. hellos-how-are-yous. Your "+++" is ignored and you have no way of knowing
  29. it. Only known modem cure is to put the hangup routine into a loop that
  30. hangs up say 5 times separated by healthy delays. This will minimize the
  31. chance of the modem hanging. Other way (best) is to drop DTR to make it
  32. hang up, but that was beyond the scope of the original program. Understand,
  33. I have never seen a Password instruction book, all I know is what was read
  34. to me over the phone when my new program would hang on a Password, but not
  35. on a Smartmodem (this did neither C's nor my credibility a whole lot of good).
  36. The inclusion of a routine to hang up many times (and hope) took care of the
  37. problem. Perhaps the documentation provided with the Password/Anchor etc.
  38. will be more useful if you have the problem.
  39.  
  40.     Final notes: Last argument is an optional "modem str" i.e. an
  41. initialization string for the modem. 30 secs default for calls makes the
  42. program scan slower than molasses. Cut it to 15 or so and you may miss a modem
  43. or two that doesn't answer until the 6th ring, but you will make it back in
  44. numbers scanned that pick it up on 1st or 2nd ring. If you improve or change
  45. this program, please leave the warning in it and do not provide .com files.
  46. This program is guaranteed to "wowee" any non computer person that has seen
  47. "War Games". Never again will they ask you what could you possibly want with
  48. a home computer! Original source is Q/C, (recommended, by the way) but should
  49. be portable to any other with little effort.
  50.  
  51.                         Tom Burnett
  52.                         Vacaville,Ca.
  53.                             data (707 425-2277)
  54.             my only connection with above RCP/M is as a user
  55.