Hi, Im writing a program in Java to send and recieve sms text messages. I'm using AT commands and an bluetooth connection with my NoKia set. I've writen a class to send messages. But i can't figure out how to get java serial events to notify me when i have recieved a text message.

To recieve messages at the moment i'm writing the appropriate AT commands to the phone, then i've written a class to send a newline statement to the phone every 10 seconds this displays any new messages.

I would really prefer to handle incoming messages using serial events. Any information on how to do this, or Java code would be hugely appreciated.

Thanks In Advance