Programming hardware devices using java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PreethiGowri
    New Member
    • Oct 2012
    • 126

    Programming hardware devices using java

    I am a starter to hardware coding using java, Can somebody help to start with this, By letting me know with java platform to use(Java SE, Java EE, Java ME) and which libraries to use.
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Hardware programming and Java are two worlds that don't go together very often. This is because Java is designed to be platform independent; hardware however is by definition different on every platform.
    There are some things you can do in this area though. They are limited but they exist. So here are some questions you'll have to answer before we can recommend anything specific:
    • Which OS are you using?
    • What kind of hardware are you trying to access?
    • Do you want to only read from the hardware or send it data too?

    Generally speaking, Java ME is mostly just a reduced set of Java SE. It might give you some (very limited) control over the device you're using it on, I don't know. Java EE is a set of additional libraries for Java (though nothing hardware related as far as I know). So unless you want to program for mobile devices which support ME (which doesn't include most smartphones btw) you'll be using Java SE and maybe EE.

    Comment

    • PreethiGowri
      New Member
      • Oct 2012
      • 126

      #3
      1. OS - Windows 7
      2. Hardware - I will be using fingerprint module with UART interface
      3. I need to do a 2 way communication

      I heard some API's like JavaComm and RxTx are they of any use to my question?

      Comment

      • Nepomuk
        Recognized Expert Specialist
        • Aug 2007
        • 3111

        #4
        Yes, those are the APIs I found too and from what I understand, they should be suited for a project like yours. JavaComm is from Oracle and should be well supported and cross platform. RxTx has been around for quite a while and is supposed to be pretty good. Which of the two is better suited for your project however I do not know.

        Comment

        • PreethiGowri
          New Member
          • Oct 2012
          • 126

          #5
          Thanks for your reply Nepomuk:) i have successfully coded for the UART using JavaComm.

          Comment

          Working...