My application gets blocked while writing the data to the com port . I am using sun's comm package for the serial communication . We have our own hardware i.e Basestation connected to the com port . Most of the times , it works OK but sometimes it seems that the connection gets broken and we are unable to raed and write to the com port .
Can somebody tell me what is the cause of this problem , is it hardware , Com port , Sun's COMM API or the code itself .