Quote:
Originally Posted by rrossbach
without the additional library/driver, you don't have any way to access the serial port hardware in the Java runtime - even just to do something simple like toggle RTS.
That's why you need the additional library/driver like RXTX. Even though you don't need the full comms library functionality, you need it to get access to the serial port hardware.
|
My question is this: why do I need a full comms library... why can't I just do a Windows API call to allocate a serial port, and then another API call to toggle the RTS?
If the question seems naive, it's because I know very little about Java, and I've never looked at the Windows API... this question is based on what I've done in other contexts with other APIs.
Thanks.