I have no idea of what is happening to my code. i am getting no errors and no response as well. I am writing the data to the serialport and waiting for the response by activ
By using a PrintStream you are suppressing exceptions that you need to know about in any request/response scenario.
Most probably you haven't even sent anything yet.