read events and errors from a serial port

Hello, i need to read events, errors and request from a serial ports device (point of sale). I install the commApi library and the samples (SampleRead.java and SampleWrite.java). When i run SampleRead.java the application doesn't show any event or data when i read from the inputStream. I can write to the port serial device but i can't read the events, how can i do to prove SampleRead.java?. Thanks so much for your help!!!

[434 byte] By [cwaizani] at [2007-9-27 17:52:24]
# 1

I am facing similar problem.I am sending data to the outputstream of the serailport as bytes.I am using a TMU200/U200P printer(with auto cutter).After receiving some 32 lines ,the printer just stops printing.Whatever command we give after this doesn't execute.I am giving command to cut the paper .But this doesn't execute after that.The output buffer empty event is fired even when the printer continues printing.Is it because the buffer in the printer is small?What is the workaround for this?

deepa_ajin at 2007-7-6 13:35:54 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2

I am also stuck in similar problem. I m able to dial a modem from one computer that are attached by a teleph line but how can i sense that the dialed modem is connected. If i dial a teleph using this code the ph starts ringing....but again how do i check this if there is a modem at the other end. Has this something to do with serial port events? I have included that too in my code but no output

rdks at 2007-7-6 13:35:54 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3
hey dear,I am making autodialer for my modem.... i think we are on same way... but i cant dial no. using JAVA with my modem.... will you please send me your code for dialling no. on my id divyesh_nagar2000@yahoo.com.... thanking you...
divyesh_nagar at 2007-7-6 13:35:54 > top of Java-index,Java Mobility Forums,Consumer and Commerce...