Re: Device communication.

1999-02-15 Thread Chris Abbey
Basically you want a non-blocking read... join the club. Here's _a_ solution: use two threads. The first thread reads the data, the second thread sleeps for a while and wakes up the first thread if it hasn't read yet. (yeah, "ugh" was my first reaction to this method too) Here's _a_better_ s

Device communication.

1999-02-15 Thread Ejaz Mohd
Hello, I've small problem. I've a device connected on a serial port. To communciate with that device I've opened random access file. This strategy works but when device is unable to send me the required bytes or when device is switched off my java program goes in an blocked mode. And unless I pr