This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes Hardware Interfacing in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply locked New topic
Author

Hardware Interfacing in Java

Raza Taqi
Greenhorn

Joined: Jul 06, 2004
Posts: 11
Respected Group Members,
Is it possible to do hardware interfacing through java,I mean to say that lets suppose I have 3 LED(Light Emitting Diodes) and I want to control them through parallel ports than does java provides some methods or are there any specific API's avaliable for interfacing through parallel ports,serial ports and other hardware devices.In C language we have outportb() function for interfacing to parallel ports are any such of these available in Java.

Thanking You,
Taqi Raza
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
Since Java is intended to be hardware independent, it is naturally a little tricky to interface with ports. The COMM API allows you to talk to serial and parallel ports. Here is Sun's primary page for COMM API.
If you want to play with hardware, there are some cool kits such as the Dallas Semiconductor TINI compact Java processor.
Bill
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Round these parts, posting the same question in multiple forums is bad practice. It can make it rather difficult to follow a conversation, plus folks spend time saying things that were just said.

Please continue in the duplicate post in the Other Java APIs forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
Don't get me started about those stupid light bulbs.
 
subject: Hardware Interfacing in Java