Can't you use hardware or software flow control? What about monitor the
UART and using interrupt driven communications?
Jeff
-----Original Message-----
From: bounce-j2ee-560422@p...
[mailto:bounce-j2ee-560422@p...]On Behalf Of Chanoch Wiggers
Sent: Thursday, September 06, 2001 12:14 PM
To: Java 2 Enterprise Edition
Subject: [j2ee] RE: Need help on javax.comm
normally when you communicate with a serial port, you should send the
message and then put the current thread to sleep for a while. It can be a
couple of seconds - thats all you need. Thread has a method sleep() that
takes the number of milliseconds to sleep as an int parameter
// code for sending message to serial connection
try {
Thread.sleep(2000);
} catch(Exception e) {
// sommat went wrong
}
chanoch