Now i am able to submit data and now data event does occur. What i did :
I used two pipes one for input and one for output and used asynchronous communication two talk with the modem.
Now the problem is when i am sending the String "AT"+(char)13 i am not getting proper response. What i am getting is square boxes.
Below is the code snippet:
What i get printed in the name of cb is 5 square boxes which is equal to length of b1. As Jsr80 api only act as a data carrier so i need to make sure the data travels in the form of 8 - bit ascii charset and then i again decode it to see what is the response received but rather i get 5 square boxes.