home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / dcom / modems / 11356 < prev    next >
Encoding:
Text File  |  1992-07-28  |  2.6 KB  |  65 lines

  1. Newsgroups: comp.dcom.modems
  2. Path: sparky!uunet!decwrl!csus.edu!netcomsv!mork!gerg
  3. From: gerg@netcom.com (Greg Andrews)
  4. Subject: Re: Boom! You're Dead.
  5. Message-ID: <mcnmamk.gerg@netcom.com>
  6. Date: Wed, 29 Jul 92 05:00:50 GMT
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. References: <5779.2a65bd35@hayes.com> <1992Jul17.035105.6535@ddsw1.mcs.com> <1992Jul18.142836.4351@qiclab.scn.rain.com>
  9. Lines: 54
  10.  
  11.  
  12. 70465.203@compuserve.com writes:
  13. >
  14. >karl@ddsw1.mcs.com (Karl Denninger) writes:
  15. >
  16. >>Of course, you could set the escape character to something unprintable 
  17. >>(> 127) and use out-of-band control (like a BREAK) to get back to command
  18. >>mode.
  19. >
  20. >>If you do that, you certainly CAN send your modem's own manual over the wire
  21. >>without problems.  That's a damn good idea anyway for unattended
  22. >>applications; having remote users intentionally take your modems to command
  23. >>mode isn't considered social.
  24. >
  25. >Tell you what. Set the escape sequence on one of these modems to (say)
  26. >128. Then wait until you get a binary file containing 3 128s in a row.
  27. >Boom! Instant command mode. 
  28. >
  29.  
  30. Not with most modems.  Most modems mask off the high bit before they
  31. check the byte against the value in S2.  If the data byte were a 128,
  32. it would be masked off to a 0.  Then you would have S2=128, the data
  33. byte=0, and the compare would fail.  The modem didn't see you send
  34. any 128s, so it wouldn't go into command mode.
  35.  
  36. In Telebit modems the masking is controlled by S48.  With S48=0, the
  37. modem masks the byte before comparing it to S2.  With S48=1, the modem
  38. doesn't mask the byte.  The default value of S48 is 0, for this very
  39. reason.
  40.  
  41. The need to set S48=1 is EXTREMELY rare, limited to a very few systems
  42. that run with their parity fixed to Even or Odd.  Even then, it can still
  43. work.  A system fixed to 7E1 can't generate a 128.  Try to send a 0 and
  44. the parity bit will stay off, sending a 0 and not a 128.  A system fixed
  45. to 7O1 can't generate a 129.  Try to send a 1 (Ctrl-A), and the parity
  46. bit will stay off, sending a 1 and not a 129.
  47.  
  48. All in all, a little brainpower will solve the problem...
  49.  
  50. >
  51. >Hayes *does* have it patented. So if you want to have in-band signalling
  52. >you are stuck with paying the royalties. Or do without the time delay
  53. >and watch the occasional file transfer crash.
  54. >
  55.  
  56. No, you can disable the escape sequence handling.  It works fine, and
  57. has done so for many years...
  58.  
  59.  
  60. -- 
  61.  .------------------------------------------------------------------.
  62.  |  Greg Andrews   |       UUCP: {amdahl,claris}!netcom!gerg        |
  63.  |                 |   Internet: gerg@netcom.COM                    |
  64.  `------------------------------------------------------------------'
  65.