Good morning everybody.
First of all I would like to thanks for any answer or clue regarding this issue.
I am working with a gas detector application, and the customer wants I control all possible problems with the hardware.
For example, The gas detector application should be able to control if the hardware that send the signal is power off, or there is a problem with the cable.
I am using serial port communication. To start the communication, I have to send a package then the hardware start sending data. This process is in a loop. So, the result of these readings is a graph. The problem occurs when I disconnect the cable to read the hardware, The java application does not produce any exception. I mean it keep working with out any output. The gas detector app keep stuck in a sentences like this: outputStream.write(startReadingPackage). It does not send back any response.
I really appreciate if somebody gives me a help. I have to finish this part, it is rather urgent.
Thanks.