i've got to handle a serial communication between a client and a server in java and on windows platform. i am using the JSSC lib (tried 0.9 and 2.6), but I've got the problem that I can't receive data. I am using a virtual bridging software for emulating a nullmodem device connection (http://www.hhdsoftware.com/free-virtual-serial-ports).
the ports itself are opened with default parameters (9600, 8, 1, 0).
if i am using the hyperterminal software of microsoft i can see that the data is sent and received in bidirectional ways.
on the other hand if i am trying to communicate with two eclipse projects, whereas one send a signal (writeBytes()
) and the other receives the signal (readBytes()
), the signal won't make it to the readBytes
method.
i only get null
as return value from the read
method.
for the signal itself i've tried from byte[]
to string
with and w/o \r\n
.
OS: WIN7_x64
what am I doing wrong?
feel free to ask if some information are missing or sth. is unclear.
kind regards and thanks in advance.