Java Comm API: How to set Raw Serial Mode



Hi All,

Is there a way from the Java Comm API to set the serial port mode to raw transfer.

This is using /dev/ttyS0, under Linux.

By default the underlying serial drivers are adding extra bytes when sending things like new line characters.

The following linux command can be used to set raw mode, but I'd rather be able to do it from within my Java program.
> stty -F /dev/ttyS0 raw

Thanks
Andy
.