Date: Tue, 08 Mar 2005 17:26:05 -0500 From: Stephan Uphoff <ups@tree.com> To: jtoung@arc.nasa.gov Cc: hackers <freebsd-hackers@freebsd.org> Subject: Re: send data to serial port from kernel code Message-ID: <1110320765.29804.7607.camel@palm> In-Reply-To: <200503081404.39320.jtoung@arc.nasa.gov> References: <200503081404.39320.jtoung@arc.nasa.gov>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2005-03-08 at 17:04, Jerry Toung wrote: > Good afternoon list, > I am looking for a way to write data to the serial interface (/dev/cuaa0) from > a kernel module and also read /dev/ttyd0 still from that same kernel module. > Any pointers to doing that will be great. > > I want on exchange IP traffic from FreeBSD to another host with different OS > via serial cable (null modem). So instead of making a call the NIC driver, I > want to use the serial port as may physical layer. > Any other ideas for doing this is welcome as well. > > I know the basics of serial programming from a regular C application: > > #include <termios.h> > > fd = open("/dev/cuaa0", O_RDWR|O_NDELAY) > tcsetattr and tcgetattr > etc etc. > > > but that's not what I am looking for. > > Thank you. > Jerry What is wrong with just using PPP ? Stephan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1110320765.29804.7607.camel>