G'Day all, Environment Windows NT, Java SDK 1.4.2_04, Comm API 2.0 Situation I am trying to send string based commands to an external device and read in the returned data based off the command sent. The command string is delimited (LF), and is at least 9 chars in length, but it can go longer (length variable). Likewise, the returned data is delimitied (CRLF), and variable length. Q1 - I'm not sure how best to compose the command to send, and get it to the outputstream's buffer. Q2 - Is there a way to listen for the coms port receiving data? Or is it handled by the inputstream object? Q3 - Is there an easy way to convert from a byte array to a string/stringbuffer?
I have been looking for examples, doco, websites, etc, and I have not had much luck - maybe I need to refine my Google skills a bit more Thanking you in advance for your help, Craig.
Update I have found a few examples that might have just answered my questions. I forgot that there were samples/demos that came with the Java Comm API. Anyway, I am looking at them right now, and I'll see what wisdom I can gain. Any insights, etc are still welcomed.
Once more, thanking you for your time, and understanding. Craig.