Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

Hardware Interfacing in Java

 
Raza Taqi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Report post to moderator
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...
 
    Bookmark Topic Watch Topic
  • New Topic