Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RS232 Interfacing

 
ramki jayaraman
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have to use the RS232 port of System to capture some Scanner and copy the image to the application using JAVA.

Can any one have idea about how to do this. Please lemme know about this,

Thanks in advance
Ramki.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Classes to access serial and parallel port interfaces don't come with the standard JDK distribution. You'll need to use one of the following:
  • The Java Communications API - (free from Sun)
  • SerialPort - commercial product by SerialIO.com
  • JCommSerial - commercial product by iCaste


  • This isn't really a "Distributed Java" question - it belongs more in "Other Java APIs", so I'm moving it there...
     
    ramki jayaraman
    Greenhorn
    Posts: 7
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks for your reply, it will be more useful to me if could you give some sample program about how to use the javax.comm

    Thanks
     
    Ulf Dittmer
    Rancher
    Posts: 42970
    73
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    The "Documentation" and "FAQ" links on that page will take you to further information, including example source code.
     
    ramki jayaraman
    Greenhorn
    Posts: 7
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    i tried with RXTX API and it works to some extent. Still i need some sample code for Using RXTX API..

    Since the java.comm API is not working for windows platform...
     
    Ulf Dittmer
    Rancher
    Posts: 42970
    73
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    My impression was that RXTX implements javax.comm (maybe using a different namespace), so the javax.comm examples should work for RXTX, no?

    Also, javax.comm version 2 is available for Windows. Check the JavaIoFaq.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!