This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply locked New topic

Hardware Interfacing in Java

Raza Taqi

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

Joined: Mar 22, 2000
Posts: 13027
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.
Dirk Schreckmann

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]
I agree. Here's the link:
subject: Hardware Interfacing in Java
It's not a secret anymore!