[Mono-devel-list] tty0 or COMM1 question

Jonathan Pryor jonpryor at vt.edu
Wed Jun 2 06:39:40 EDT 2004


Below...

On Tue, 2004-06-01 at 22:28, Mauricio Henriquez wrote:
<snip/>
> Someone know how to work with the serial port with mono??. I have a
> workin VB .NET - COMM aplication, but it use windows-API calls, so is
> not possible to work on linux.

I would imagine you just open the appropriate device for reading or
writing.  For reading, open /dev/ttyS0, and for writing open /dev/cua0.

See also:

	http://www.ictp.trieste.it/~radionet/nuc1996/ref/howto-html/serial-howto-3.html

Additional serial port functions, such as the POSIX termios functions,
should be exposed by Mono.Posix.  (If they aren't, please let us know). 
Check out the termios(3) man page.

 - Jon





More information about the Mono-devel-list mailing list