home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18647 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  3.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!gateway
  2. From: schulte@klin.far.ruu.nl (Bas Schulte, Spider)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: CTB Problem?
  5. Date: 19 Nov 1992 09:15:36 -0600
  6. Organization: UTexas Mail-to-News Gateway
  7. Lines: 64
  8. Sender: daemon@cs.utexas.edu
  9. Message-ID: <921119.161513.427@klin.far.ruu.nl>
  10. NNTP-Posting-Host: cs.utexas.edu
  11.  
  12. Hi,
  13.  
  14. [this is a long one, non-CTB wizards can skip to the next message]
  15.  
  16. I'm in the process of writing an application (that is a _real_ one, not some crummy hack) that 
  17. communicates over modems/phonelines. As always when there's a way to not to reinvent the wheel, I 
  18. decided to give the Communication Toolbox a try. A real try this time, not at all like the 
  19. (succesfull) tricks I did in the past.
  20.  
  21. While developing the applications (a client talking to a host), I tested using the Serial Tool and 
  22. the Apple Modem Tool (1.1, not 1.1.1!) fooled to work over AppleTalk (through a product called 
  23. NetConnect, this emulates a modem over AppleTalk, standard disclaimers...). Everything went pretty 
  24. smooth, I got it to work.
  25.  
  26. Then when I got to some real testing using two Hayes Ultra 144 modems, it didn't work! Here's a 
  27. summary of the problems I had:
  28.  
  29. 1. Apple Modem Tool 1.1 (and later on 1.1.1) had problems setting it's configuration.
  30.  
  31. When CMSetConfig'ing with a pointer to a previously saved configuration string that specifies the 
  32. tool the answer the phone after x rings, the tool accepts CMSetConfig (i.e. it doesn't return an 
  33. error), but it switches back to 'Dial phone number...'! It does use the other settings in the 
  34. configuration string, but it refuses to keep the 'Answer phone after x rings'.
  35.  
  36. In other words: not usable! My host application is supposed to answer the phone, but I can't get 
  37. Apple Modem Tool 1.1 or 1.1.1 to do it. Version 1.0 DOES remember it's settings correctly.
  38.  
  39.  
  40. 2. The Hayes Modem Tool 1.0 does not allow CMOpen calls to be asynchronously.
  41.  
  42. Calling CMOpen with async = true does exactly the same as when I tell it async = false, i.e. it does 
  43. not return until it establishes a connection. I DO NOT want this!
  44.  
  45.  
  46. These two points made me use the Apple Modem Tool 1.0. I do recall that this version had bugs. That 
  47. must be the case, since I had all kinds of failures with it. Basic sending/receiving of data wasn't 
  48. the problem, nor was filetransfer using standard XModem. Any other XModem lead to aborted 
  49. transmissions, disconnects, etc. etc.
  50.  
  51.  
  52. So far my experiences with the CTB. As you can imagine, I was pretty fed up with it, especially 
  53. considering my app's didn't work during a demo in front of more than a 100 people (I had to use 
  54. another application for the actual transmission, can you imagine what that must have looked like!).
  55.  
  56. All this made me decide to not use the CTB. So, back to the drawing board, and start to develop my 
  57. own serial routines, modem handling and all that. That's what I'm doing right now, studying the AT 
  58. command set, implementing asynchronous IO, etc. etc. Not nice!
  59.  
  60. I desperately would like to get back at using the CTB, so I would like comments/suggestions on the 
  61. problem I had. Maybe one of you can tell me what I was doing wrong, whether other versions of the 
  62. connection tools DO work, or just about anything that can prevent me from going crazy over PBStatus 
  63. calls to the serial driver... Comments on the performance of the CTB vs. doing it y'rself are 
  64. welcome too. 
  65.  
  66. Note that I am aware of a possible performance penalty for using the CTB vs. your own serial/modem 
  67. handling, but I hope that is minimal in my case (I do not use terminals, nor do I intend to keep 
  68. using FT tools, I want to implement a FT protocol simply above the connection manager (or has it 
  69. gotten any easier to do a zmodem ft tool?)).
  70.  
  71. Thanks in advance, and sorry for the long message,
  72.  
  73. Bas A. Schulte
  74.  
  75. ####   Internet: schulte@klin.far.ruu.nl (through ARA and MacTCP)    ####
  76.