home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / apple2 / 24066 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  9.7 KB

  1. Path: sparky!uunet!caen!zaphod.mps.ohio-state.edu!cs.utexas.edu!gateway
  2. From: Brendan_Hoar@notes.pw.com
  3. Newsgroups: comp.sys.apple2
  4. Subject: CTS wars... :) (j/k!)
  5. Date: 17 Nov 1992 09:50:26 -0600
  6. Organization: UTexas Mail-to-News Gateway
  7. Lines: 207
  8. Sender: daemon@cs.utexas.edu
  9. Message-ID: <9211171549.AA10117@pwtc.tc.pw.com>
  10. NNTP-Posting-Host: cs.utexas.edu
  11.  
  12.  
  13. .RrL----|-------|-------|-------|-------|-------|-------|-------|-------|-------R
  14.                                             ^
  15. Hey everyone, meet the ProTerm v3.0 ruler.__|
  16. :(
  17.  
  18. >From: mdavis@crash.cts.com (Morgan Davis)
  19. >Subject: Re: CTS Stuff...
  20. >Date: 15 Nov 92 22:57:34 GMT
  21. ...
  22. >In <9211131547.AA14279@pwtc.tc.pw.com> Brendan_Hoar@notes.pw.com
  23. >writes:
  24. >
  25. >>>ModemWorks uses the Extended Firmware
  26. >>>routines in the Apple IIGS's serial interface.
  27. >>>I've not heard of any
  28. >>>ModemWorks-based systems having any trouble with hardware flow
  29. >>>control.
  30. >
  31. >>Interesting.  How often is hardware flow control exercised with
  32. >>MW3.0?
  33. >
  34. >This is transparent to ModemWorks because the IIGS serial port
  35. >firmware takes care of it.  The answer to your question is: as often
  36.  ^^^^^^^^ ^^^^^ ^^^^ ^^ ^^ - uhoh.         
  37. >as is necessary. Since ModemWorks operates using the IIGS's default 2K
  38. >interrupt buffer, flow control would be asserted when it became
  39. >approximately 3/4 full.
  40.  
  41. Er.  We are talking OUTPUT to the modem here.  CTS signal, not RTS.  The 
  42. buffer size doesn't matter, get it? :)
  43.  
  44. >
  45. >>To cause it to occur would require a situation like this: ProLine's
  46. >>port rate at a higher rate  than the caller has his/her port rate set to or
  47. >>higher than the modem can move the data, & a Zmodem download to a system
  48. >>that can't handle the speed.
  49. >
  50. >That's one scenario.  And, yes, ModemWorks wants to run with the port
  51. >set to a high fixed speed (to get the most out of high speed modems
  52. >with data compression).  You can say the same thing for a caller who
  53. >is connected at 300bps and is getting a file with 1K XMODEM.  The
  54.  
  55. Er.  Well, actually that depends on a) the ability of ModemWorks to actually 
  56. send at the high bps rate & cause an overflow and b) the internal buffer size 
  57. of the modem.  I wouldn't be surprised if a common MODEM internal buffer size 
  58. was about 1kbyte and CTS would never go low in your scenario if that were the 
  59. case.
  60.  
  61. >protocol isn't the factor.  Flow control would also come into play if
  62. >the caller was simply bulk-reading messages in the conference system
  63. >non-stop (raw ASCII stream).
  64.  
  65. True.  Of course, how fast pro-line can output messages comes in to play here 
  66. as well.  It could be the case that pro-line is not outputting them at a rate 
  67. that is overflowing the communications link (or overflowing it more than 1k 
  68. (or MODEM_TRANSMIT_BUFFER_SIZE) at any one point in time).
  69.  
  70. A thought just occurred to me that the 'CTS bug' might only appear at 38,400 
  71. and 57,600 since those were the two speeds I was testing at.  This would be 
  72. odd though.  I'll have to go look into it.  Er...I do recall, however, that 
  73. Scott/beta was doing testing at 19,200.  My guess is that the problem is 
  74. speed independent, however.  Yes, I know - I should do MORE research.  :(
  75.  
  76. >The only time I've ever heard of ModemWorks/ProLine systems having
  77. >trouble with flow control is when they've not been using a properly
  78. >wired HWFC cable.
  79.  
  80. I can believe it!  :)
  81.  
  82. >
  83. >>Does ModemWork's Zmodem stream (keep sending until naks appear -
  84. >>regardless of lack of acks) or does it have a relatively small window
  85. >>size?  If the latter, then flow control might almost never be
  86. >>exercised...
  87. >
  88. >When sending, it waits for ACKs if the receiving end requires them.
  89.  
  90. You are saying that if the other end does not accept streaming, then pro-line 
  91. will not stream when sending a file to the user.  What you didn't explicitly 
  92. say was that if the end-user CAN handle receiving Zmodem streaming, that MW 
  93. will Zmodem stream and will NOT wait for ACKs.  Sorry if this was supposed to 
  94. be inferred by me, but I just want to make sure.  Can you clarify?  Be as 
  95. specific if possible.  I had this problem trying to get information out of an 
  96. ANSITerm user and finally was lead to believe that ANSITerm does not support 
  97. full Zmodem streaming for uploads.  If I am wrong, let me know.
  98.  
  99. >When receiving, the buffer size varies depending on available memory,
  100. >but 12K is average.  Receiving 12K could easily overflow the IIGS's 2K
  101. >serial buffer and/or the modem's internal buffer, so flow control
  102. >would be asserted.
  103.  
  104. Again, RECEIVING files on the GS is not the issue here.  So far RTS has been 
  105. working fine with a proper cable.
  106.  
  107. >Again, we've had no problems except with systems that aren't set up
  108. >properly to handle high speed communications (e.g. anemic cables). 
  109. >Most Mac and PC users of ProLine have had success in uploading and
  110. >downloading with ZMODEM.  ProLine/ProLine and ProLine/UNIX systems
  111. >have not had trouble exchanging large packet transfers at high speed. 
  112. >But the majority of users experiencing difficulty are Apple II users
  113. >using ProTERM.
  114.  
  115. Again people keep trying to tell me that it is a ProTERM bug.
  116. I have shown one other programmer that her/his software was failing in other 
  117. more subtle ways because she/he had Motorola chips, but had been lucky enough 
  118. to program in an odd hack in his/her CTS handling that made filling of the 
  119. modem buffer unlikely when CTS was low.  But characters were still crawling 
  120. through at a slow rate.
  121.  
  122. It is a hardware problem.  We scoped it.  Isn't that proof enough?
  123.  
  124. *sigh*  Guess not.
  125.  
  126. If there were some terminal program out there that I could get my hands on 
  127. which:
  128.    a) Used the FIRMWARE
  129.    b) Did full Zmodem stream uploading
  130. I could prove to you that on some GSs, when CTS went down, the Firmware would 
  131. not react 'correctly'.  Of course, this is based on the assumption that Apple 
  132. did not notice the problem and put special code into the Firmware to sample 
  133. the CTS signal to tell if it is really up or down.  But if they DID do that, 
  134. why wouldn't they have written a technote about it?  Also - my guess (again - 
  135. I am not a programmer so that's the best I can do) would be that the Firmware 
  136. uses the SCC's CTS transition interrupts to handle handshaking.  If so, it 
  137. would always fail on these GSs.
  138.  
  139. Unfortunately, there is only one RELEASED terminal program (not BBS) that 
  140. does hardware handshaking that I can test with.  That is ProTERM v3.0.  From 
  141. what I understand ANSITerm has Zmodem but it does not STREAM and I'm not sure 
  142. it has CTS handshaking (correct me if I am wrong Paul!).
  143.  
  144. Again, I have two Apple IIGSs with the exact same motherboard revision.  One 
  145. of them DOES CTS handshaking correctly under PT3.  One of them DOES NOT.  The 
  146. non-working one has a much more dodgy signal coming off of pin 13 on the 
  147. 26LS32 (which is a motorola part).  This problem crops up regardless of the 
  148. fact that I am using: 
  149.    a) The Apple IIGS Modem Port Driver - which uses CTS transition interrupts
  150. or
  151.    b) The Apple IIGS Modem Port Driver (GS/OS) - which uses polling to test 
  152. the
  153.       state of the CTS signal.
  154.  
  155. If anyone else out there has had experience with other software that does CTS 
  156. handshaking on one GS but not another, PLEASE post about it.  I feel kind of 
  157. lonely out here butting heads with Morgan Davis.  :(
  158.  
  159. Jawaid - does GNO's `sz` handle handshaking via the firmware?  If so, I guess 
  160. I could use that to test the firmware - let me know.  :)  All I have to do is 
  161. set the Modem Port control panel correctly, reboot and sz a file under GNO, 
  162. right?
  163.  
  164. Here is Greg's little (previously posted in two parts) CTS checker macro:
  165.  
  166. @@c * CTS Checker *
  167.  set &0="CTS is Low^m"
  168.  set &8="CTS is High^m"
  169.  while (1) {
  170.   pr #2,&(bits(modem),8)
  171.  }
  172.  ex
  173.  
  174. Copy this into your PT3.GLOBAL file (preferably at the beginning).  Save the 
  175. changes.  Go to the main menu and hit option-z to re-load the global macros.
  176.  
  177. Unplug your (properly wired according to the PT3 manual, of course) din8 -> 
  178. DB-25 cable from the modem (but not from the GS).  Hold the DB-25 end in your 
  179. (non-primary) hand.  Use your other (aka primary) hand to hit option-c.  The 
  180. screen will scroll and say "CTS is High" over and over again.
  181.  
  182. Attach a wire between pins 2 and 5 on the DB-25 end using your primary hand.  
  183. At this point you will probably find yourself in a position where you are 
  184. unable to type, etc.  This is good, since you are supposed to be paying 
  185. attention to a) keeping the contact good and b) looking at the screen.
  186.  
  187. If the screen says (continuously, assuming good wire contact) "CTS is Low", 
  188. then your GS will NOT exhibit this CTS problem.  Ignore the rest of my rants 
  189. and raves.  :)
  190.  
  191. If the screen says "CTS is Low" and "CTS is High" alternately, seemingly 
  192. unable to decide WHAT state CTS is in, then your GS will exhibit the CTS 
  193. problem, and single reads of the CTS signal aren't trustworthy (and neither 
  194. is the CTS transition interrupt which won't save you from overflowing the 
  195. modem's buffer since the SCC will be producing bazillions of the transition 
  196. interrupts).
  197.  
  198. Anyway, its almost midnight and I've been typing this too long.  I need sleep 
  199. - I'll post this tomorrow (Tue 17 Nov 92).  Oh shoot, make that later today.  
  200. :(  
  201.  
  202. And if any of the Apple guys have read down this far and don't feel upset 
  203. that I am addressing them directly (if you do, please ignore this plea, I 
  204. don't like creating bad blood) - Does Apple have any documented cases of 
  205. problems with the CTS signal on GSs, ever, or is it just me?
  206.  
  207. Does anyone except me care? :(
  208.  
  209. PS - As I typed the address for this article 
  210. (comp-sys-apple2@cs.utexas.edu@internet) I did something really psycho.  I 
  211. typed '...le2@cts.utex...'.  I've got CTS on the brain!  :( :( :(  Help me!
  212. LOL!
  213.  
  214. PPS - Email sent between 10pm and 2:30pm EST should go to 
  215. Brendan_Hoar@notes.pw.com.  This applies to weeknights (incl Sunday, excl 
  216. Friday) & weekdays (M-F) only.
  217. Otherwise, BrendanHr@aol.com will probably get a faster reply.  That is, 
  218. assuming that their gateway ain't hosed again.
  219.