Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java and Comm Ports

Status
Not open for further replies.

trevors77

Technical User
Nov 12, 2002
4
CA
I need to send commands to hardware devices through a PC's comm ports. Is Java capable of calling a comm contol similar to VB (MS Comm Control)? Does anyone happen to know what class/method this would be?

Thanks.
 
Sun has released a comm port api (called commapi.jar I believe).

It will do what you require. It is similar to how Java writes everything else, whether it be to a file or screen to socket.

goto java.sun.com to find it. -------------------------------------------
There are no onions, only magic
-------------------------------------------
 
What kind of hardward devices are wanting to send signals to?

Gary
 
I'm sending commands to fixed Symbol scanners, label printers.

I also need to communicate with a PCI Dio card, but I think this must be something the product makes available.
 
you can use the port jar thing as sttailed above. if you want to communicate directly with an IO device, you need to use C or C++. the vendor will make a driver available you can use.
if you MUST use java you might be able to write a wrapper to use with native code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top