Results 1 to 3 of 3
  1. #1
    yam2 is offline Member
    Join Date
    Oct 2008
    Posts
    1
    Rep Power
    0

    Default reading data from a serial port?

    Hello everybody

    I need to be able to read data from a serial port.
    I never really writen any code that uses a com port and i am not sure how to do so.
    basically i am tring to creat a program that reads data from two ports putting them to two string varibles then merge them (this part is not importent i think i can handle it myself ;) ) and then write it to another virtual com port.
    is it possible to make this kind of program in java?
    because I just cant figure out how to make the code listen to the com port and then write it to a virtual com port. Could someone help?


    Thank you in advance.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default

    I downloaded a Java Communications API from the Sun site years ago and have used it to read and write to a serial port.
    Have you looked at Sun's site for the API code?

  3. #3
    urefowei is offline Member
    Join Date
    Jan 2011
    Location
    Philippines
    Posts
    1
    Rep Power
    0

    Default

    Hello,

    Any updates on this one?
    I am also doing a development that involves port listening.

    Your inputs are very much appreciated.

    Thanks,
    Eljun

Similar Threads

  1. Reading from Serial port!
    By Dogge in forum New To Java
    Replies: 2
    Last Post: 12-01-2010, 03:21 AM
  2. Serial Port
    By radhika in forum New To Java
    Replies: 5
    Last Post: 11-06-2009, 10:40 AM
  3. Accessing Serial port using JDK 1.6
    By hasani6leap in forum Advanced Java
    Replies: 5
    Last Post: 01-24-2009, 03:23 AM
  4. Access Serial port
    By hasani6leap in forum Advanced Java
    Replies: 0
    Last Post: 02-12-2008, 09:45 AM
  5. serial port
    By musiigedeo in forum Advanced Java
    Replies: 0
    Last Post: 07-23-2007, 04:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •