Date:        Sat, 08 Apr 2000 09:25:21 +0200
   From: Roland Stiebel <[EMAIL PROTECTED]>

   Hi there, I tried to program the serial port to talk to a Motorola
   embedded computer.  After reading the serial-programing HOWTO I
   managed to read data from the embedded computer. But I did not manage
   to write data to the embedded computer.  The serial-programing HOWTO
   does not say anything about writing data and the author does not
   answer my mails (well, the HOWTO is more than 2 years old and the
   author writes in it that he changed to NT, bummer!)  Is there anybody
   who can help me?

This is somewhat dated, but the books referenced are still recommended
reading.

                                                - Ted

Date:   Sun, 12 Jan 1997 15:42:49 +1100 (EST)
From: Graeme Cross <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Robert Wuest <[EMAIL PROTECTED]>
Cc: Linux Serial <[EMAIL PROTECTED]>
Subject: Re: REQ: Serial Programming Info
In-Reply-To: <[EMAIL PROTECTED]>
X-Where-Am-I: The name of the place is Babylon 5
X-No-Archive: yes
X-No-Junk-Mail: Do not send me junk mail under any circumstances
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: [EMAIL PROTECTED]
Precedence: bulk

On Sat, 11 Jan 1997, Robert Wuest wrote:

> Is there a serial programming howto or FAQ or anything like that on the
> net for linux?  I've got the Beginning Linux programming book (Wrox
> Press) and am studying miniterm.c and the source to minicom.  Just
> wondering if there is more or better.

Rob - I asked a similar question last year and was pointed to a number of 
really useful resources.

I have attached the summary that I mailed to the linux-serial mailing list
at the end of September last year.

Perhaps this should be turned into a mini-HOWTO or something?

Anyway, I hope it's of use.

Cheers
Graeme

----------------------------------------------------------------------------

On the 17th of September, I e-mailed the following request to the  
linux-serial mailing list:

>I'm looking for some example code for working with the serial ports under
>Linux/Unix.
>
>The only code that I have found that is Linux specific are large
>programs such as minicom or ecu, which have far too much code in them to
>serve as a tutorial on interfacing to modems and other serial devices.
>
>Can anyone suggest a textbook or free code that would help?

Given the number of people who e-mailed me asking for any information, 
I'm mailing this summary - I hope it's useful.

-----------------------------------------------------------------------------

1. BOOKS

There are a number of useful books that explain serial programming on 
POSIX systems (such as Linux). The two that were most recommended were:

a) "Advanced programming in the Unix environment" by W R Stevens
   (Published by Addison Wesley)

This is a classic text, and has two chapters worth reading: Chap. 11 
(Terminal I/O) and chap. 18 (A Modem Dialer); basically a chapter of 
theory with some small code examples and then a complete chapter of 
serial code.

b) "POSIX programmer's guide: Writing portable Unix programs" by D Lewine
   (Published by O'Reilly)

Chapter 8 (Terminal I/O) is an excellent read, and comes complete with 
annotated code for a small comms package.

-----------------------------------------------------------------------------

2. ON-LINE RESOURCES

a) Doug Hughes' "Serial Port Programming":
                http://www.eng.auburn.edu/users/doug/serial.html.


-----------------------------------------------------------------------------

3. SOURCE CODE

a) A number of people recommended the mgetty+sendfax code, as it has a 
   reputation for being well structured and written

b) The Linux Programmer's Guide has an example program (miniterm.c),
   written by Sven Goldt - this is a 130 line program that covers all
   the basics quite succinctly

c) Niccolo Rigacci <[EMAIL PROTECTED]> sent me some code he had
   written to handle a voice modem (voice-0.3.tar.gz)

d) ftp://shadow.cabi.net/pub/Linux/scarabd-1.0.10.tgz is Alan Cox's 
   interface to a small radio modem, and contains useful routines for 
   twiddling the RTS line, and is also useful if you want to learn about 
   user-space device drivers and the like.

e) The "cu" program that comes with UUCP was also recommended

-----------------------------------------------------------------------------

Acknowledgments:

My thanks goes out to the following people (and sorry to anyone I've 
accidently omitted!):

        Niccolo Rigacci <[EMAIL PROTECTED]>
        [EMAIL PROTECTED] (Greg Hankins)
        [EMAIL PROTECTED] (Bill Roman)
        [EMAIL PROTECTED] (Romolo Albuquerque)
        [EMAIL PROTECTED] (Ross Boswell)
        [EMAIL PROTECTED] (Alan Cox)

----------------------------------------------------------------------------
Graeme Cross                    Phone: 03 9903 2606
Water Studies Centre           E-mail: [EMAIL PROTECTED]    
Monash University                 URL: http://www.wsc.monash.edu.au/~graeme/


-
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to [EMAIL PROTECTED]

Reply via email to