W
Willie
Hi, my friends,
I am working on a device connecting to the serial port. I need to read
data from the device. I used the SimpleRead.java from SUN's website.
http://java.sun.com/developer/releases/javacomm/SimpleRead.java
The port I used is COM1. But it didn't give me what I want. The data
was stored in the log area of the device. The previous version for the
application was in C++ and worked well. They use
ReadFile(hComm,s,maxtoread,&read,0) to retrieve the data from the
device.
Does the inputstream not fit the application or I did other things
wrong? Any help is good. Thank you in advance.
Willie
I am working on a device connecting to the serial port. I need to read
data from the device. I used the SimpleRead.java from SUN's website.
http://java.sun.com/developer/releases/javacomm/SimpleRead.java
The port I used is COM1. But it didn't give me what I want. The data
was stored in the log area of the device. The previous version for the
application was in C++ and worked well. They use
ReadFile(hComm,s,maxtoread,&read,0) to retrieve the data from the
device.
Does the inputstream not fit the application or I did other things
wrong? Any help is good. Thank you in advance.
Willie