Results 1 to 11 of 11
  1. #1
    mm8
    mm8 is offline Member
    Join Date
    Oct 2012
    Posts
    5
    Rep Power
    0

    Exclamation JAVA | collect data from serial port

    Hi, I'm new to the forum and maybe this article is not where it should be. Sorry.

    I have to get data from a scale connected to the serial port via an applet. I'm a bit lost and do not know how

    Anyone can help me? Thank you.

    MM8

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,663
    Blog Entries
    7
    Rep Power
    21

    Default Re: JAVA | collect data from serial port

    Google for 'RXTX'; it's a fully functional Java library that can read from serial ports (including USB).

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    mm8
    mm8 is offline Member
    Join Date
    Oct 2012
    Posts
    5
    Rep Power
    0

    Default Re: JAVA | collect data from serial port

    Thank you for your attention and your advice. Have you some example about RXTX library?

    Thank you very much. Regards

    MM8

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,663
    Blog Entries
    7
    Rep Power
    21

    Default Re: JAVA | collect data from serial port

    RXTX fully implements the JavaComm API specification (defined by Sun); Google for JavaComm and you'll find all you want/need to know. The JavaComm specification is a quite old API (no JSRs involved) and it has been discontinued for MS Windows machines; that's one of the reasons RXTX has become quite popular for the platform. (the reason for discontinuing the implementation is because MS keeps on changing their API defintion for serial communication (and that includes USB)).

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    mm8
    mm8 is offline Member
    Join Date
    Oct 2012
    Posts
    5
    Rep Power
    0

    Default Re: JAVA | collect data from serial port

    Thank you so much for your attention, you've been very helpful.

    Greetings

    MM8

  6. #6
    mm8
    mm8 is offline Member
    Join Date
    Oct 2012
    Posts
    5
    Rep Power
    0

    Default Re: JAVA | collect data from serial port


  7. #7
    mm8
    mm8 is offline Member
    Join Date
    Oct 2012
    Posts
    5
    Rep Power
    0

    Default Re: JAVA | collect data from serial port

    I'm looking for the code to read data from a scale from a java program, I hope someone can help me.

    best regards and thank you very much.

  8. #8
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,663
    Blog Entries
    7
    Rep Power
    21

    Default Re: JAVA | collect data from serial port

    Quote Originally Posted by mm8 View Post
    I'm looking for the code to read data from a scale from a java program, I hope someone can help me.
    It all depends on that scale: it sends its data in a format of some sort; I'm sure it comes with a user/programmer's manual; that should be a first source of information for you.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  9. #9
    rck
    rck is offline Member
    Join Date
    Oct 2012
    Posts
    2
    Rep Power
    0

    Default Re: JAVA | collect data from serial port

    I just came across this post...Were you able to read from the scale? I have some RXTX java code that reads from the serial port. If interested email me at [Moderator edit: email address removed]

    Robert
    Last edited by DarrylBurke; 10-26-2012 at 05:11 PM. Reason: Removed email address

  10. #10
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: JAVA | collect data from serial port

    Quote Originally Posted by rck View Post
    I just came across this post...Were you able to read from the scale? I have some RXTX java code that reads from the serial port. If interested email me at [Moderator edit: email address removed]

    Robert
    A forum is a place to share problems and their possible solutions, not a meeting center for off-forum communications that do not benefit the community at all.

    There's a Reviews/Advertising section if you want some publicity for your work.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  11. #11
    rck
    rck is offline Member
    Join Date
    Oct 2012
    Posts
    2
    Rep Power
    0

    Default Re: JAVA | collect data from serial port

    Sorry...not looking for publicity. Just had some code I thought might help.

Similar Threads

  1. Replies: 0
    Last Post: 08-17-2011, 02:14 PM
  2. How to read and write data via Serial Port
    By Khan05 in forum New To Java
    Replies: 0
    Last Post: 07-28-2011, 09:32 PM
  3. reading data from a serial port?
    By yam2 in forum Advanced Java
    Replies: 2
    Last Post: 01-26-2011, 06:34 AM
  4. get data from serial port
    By kishkar20003 in forum New To Java
    Replies: 2
    Last Post: 12-27-2010, 11:33 AM
  5. Replies: 1
    Last Post: 07-30-2010, 08:29 AM

Posting Permissions

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