my javax.comm prog HANGS when handshaking w/ bluetooth com port?

tim

New member
Hi all,
I'm using the java comm API and my program scans through each available com port, each sending out a handshake code, and the port that replies back the "password" is labeled as our device. I'm doing this so users won't have to do a com port selection.
The problem now is, if it gets to a bluetooth generated port, the program simply hangs on:

outputStream.write(byteBuffer);

This behaves the same under debug, as if it's waiting for something, and no exceptions are caught for this, it just hangs on that line :(
Has anyone ever had this problem? or is there a way to write a timeout for the outpustream.write line..etc?

Thanks!
my prog wasn't designed for bluetooth btw, it connects to health care instruments through a converter cable of 5pin mini-usb & usb
 
Back
Top