Comm API problems RS232 SerialDemo

Hello,

before you ask: yes, i have read a lot of postings concerning this topic.

However, my problem is different than the common Comm API problems.

Win2000, JDK 1.5.2, Comm API 2.0.

The SerialDemo compiles (wow), shows the correct COM Ports (1) (this has been a major problem in a lot of postings), and works without exceptions. Great, but i dont get any serialEvent when i send something from my device on COM1 (a balance).

I know the RS232 parameters (1200,7 data bits, 1 stop bit, parity odd), and i connected this device without problems to a Delphi application.

Cable is the same and the correct one. The device sends with CRLF (ASCII 13 and 10) at the end of each string.

I tried SimpleRead.java too, but here the same: no serialEvent has been triggered when the device sends its data.

Any ideas?

Oliver

[872 byte] By [Olli_Maasa] at [2007-10-3 2:34:40]
# 1
> Any ideas?> Post some code!
sabre150a at 2007-7-14 19:33:38 > top of Java-index,Java Essentials,Java Programming...
# 2

Hi

sorry, it does work now :)

It was the device itself which was causing the problem.

But i really wasnt expecting this, because the day before the device (a balance) worked without any problems. Its quite funny that the balance stopped working just the day i started with the Java communication :)

thanks

Oliver

Olli_Maasa at 2007-7-14 19:33:38 > top of Java-index,Java Essentials,Java Programming...