home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!portal!dfuller
- From: dfuller@portal.hq.videocart.com (Dave Fuller)
- Subject: Re: C source code for async/sync communcation using RS-232
- Message-ID: <BxzJ7y.ApL@portal.hq.videocart.com>
- Organization: VideOcart Inc.
- X-Newsreader: Tin 1.1 PL3
- References: <BxzHH4.91v@fiu.edu>
- Date: Thu, 19 Nov 1992 22:45:33 GMT
- Lines: 26
-
- sumargoh@serss0.fiu.edu (H. Sumargo) writes:
- : I am currently trying to write a communication project for a class. I am looking for
- : the source code to send and receive data through RS-232. If you can give some pointers
- : as to where I can get the souce code, please email your response to sumargoh@fiu.edu.
- : I prefer a C source code; however, IBM pC assembly source code is also welcome.
- :
- : Thank you very much.
-
- This is pretty large. Why ask people for it ? I doubt you'll get it. The
- sending of the data is probably the toughest part of your project.
- Do it yourself. Since any comm program that allows user input works on
- an interrupt basis, you need to write an interrupt handler, and store
- input into a ring buffer in memory where it can be fetched from later
- without losing info. Also, you need all of the bitmasks for controlling
- the 8250 UART. I have an excellent set of comm software that will run
- in the background, works on its own custom error-correcting protocol. It
- also works like zmodem with variable packet sizes depending on the
- 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
- 4 months of my free time to do this (AS A SCHOOL PROJECT) you aren't
- seeing line 1 of it. Do yourself a favor, research and implement on your
- own. This area of work is rather fascinating.
-
- Dave Fuller
- dfuller@portal.hq.videocart.com
-
-
-