View Single Post
  #5   Spotlight this post!  
Unread 26-11-2011, 10:22
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Toggling RS232 RTS pin on WinXP machine using Java

Quote:
Originally Posted by rrossbach View Post
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.


Reply With Quote