jQuery in Action, 3rd edition
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
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: 13037
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: http://aspose.com/file-tools
subject: Hardware Interfacing in Java
It's not a secret anymore!