How do I open a device in non-blocking mode?  
Author Message
Neil Cherry





PostPosted: 2008-7-9 22:41:14 Top

java-programmer, How do I open a device in non-blocking mode? I'm a little stuck. I have a Linux device (a character device, like a
serial port) called /dev/cm15a0. I can't use RXTXcomm as it doesn't
recognize the device (and I'm having trouble recompile RXTX). I need
to open the device in non-blocking mode and read and write bytes
to/from the device. Any pointers?

--
Linux Home Automation Neil Cherry email***@***.com
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
Author of: Linux Smart Homes For Dummies
 
tbsalling





PostPosted: 2008-7-10 18:31:00 Top

java-programmer >> How do I open a device in non-blocking mode? On 9 Jul., 16:41, Neil Cherry <n...@cookie.uucp> wrote:
> I'm a little stuck. I have a Linux device (a character device, like a
> serial port) called /dev/cm15a0. I can't use RXTXcomm as it doesn't
> recognize the device (and I'm having trouble recompile RXTX). I need
> to open the device in non-blocking mode and read and write bytes
> to/from the device. Any pointers?

Perhaps simply the java.nio package (Java 1.4+)? Or use it through
MINA http://mina.apache.org/.

/Thomas.