home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16838 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.8 KB  |  38 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!portal!dfuller
  3. From: dfuller@portal.hq.videocart.com (Dave Fuller)
  4. Subject: Re: C source code for async/sync communcation using RS-232
  5. Message-ID: <BxzJ7y.ApL@portal.hq.videocart.com>
  6. Organization: VideOcart Inc.
  7. X-Newsreader: Tin 1.1 PL3
  8. References: <BxzHH4.91v@fiu.edu>
  9. Date: Thu, 19 Nov 1992 22:45:33 GMT
  10. Lines: 26
  11.  
  12. sumargoh@serss0.fiu.edu (H. Sumargo) writes:
  13. : I am currently trying to write a communication project for a class.  I am looking for
  14. : the source code to send and receive data through RS-232.  If you can give some pointers
  15. : as to where I can get the souce code, please email your response to sumargoh@fiu.edu.
  16. : I prefer a C source code; however, IBM pC assembly source code is also welcome.
  17. : Thank you very much.
  18.  
  19.  This is pretty large. Why ask people for it ? I doubt you'll get it. The     
  20. sending of the data is probably the toughest part of your project.
  21. Do it yourself. Since any comm program that allows user input works on
  22. an interrupt basis, you need to write an interrupt handler, and store
  23. input into a ring buffer in memory where it can be fetched from later
  24. without losing info. Also, you need all of the bitmasks for controlling 
  25. the 8250 UART. I have an excellent set of comm software that will run
  26. in the background, works on its own custom error-correcting protocol. It
  27. also works like zmodem with variable packet sizes depending on the           
  28. line quality during transmission. It also works at the highest speed i've       bothered to test it at (19200) without data loss. But, since it took me
  29. 4 months of my free time to do this (AS A SCHOOL PROJECT) you aren't
  30. seeing line 1 of it. Do yourself a favor, research and implement on your 
  31. own. This area of work is rather fascinating.
  32.  
  33. Dave Fuller
  34. dfuller@portal.hq.videocart.com
  35.  
  36.  
  37.