#4 Transition to rxtx serial communication library

closed-fixed
nobody
None
5
2007-06-09
2007-05-21
Zach Hoeken
No

The java comms library is only available for windows and linux. The open source rxtx library is available for all 3 systems and is supposed to be a drop-in replacement.

more info here: http://users.frii.com/jarvi/rxtx/

Discussion

  • Jonathan Marsden

    Logged In: YES
    user_id=28206
    Originator: NO

    I attempted this and it compiles and builds and runs fine this way.
    I used ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7-bins-r2.zip and put the files in the right places, then edited the file SNAPCommunicator.java as follows:

    Index: org/reprap/comms/snap/SNAPCommunicator.java

    --- org/reprap/comms/snap/SNAPCommunicator.java (revision 606)
    +++ org/reprap/comms/snap/SNAPCommunicator.java (working copy)
    @@ -4,11 +4,11 @@
    import java.io.InputStream;
    import java.io.OutputStream;

    -import javax.comm.CommPortIdentifier;
    -import javax.comm.NoSuchPortException;
    -import javax.comm.PortInUseException;
    -import javax.comm.SerialPort;
    -import javax.comm.UnsupportedCommOperationException;
    +import gnu.io.CommPortIdentifier;
    +import gnu.io.NoSuchPortException;
    +import gnu.io.PortInUseException;
    +import gnu.io.SerialPort;
    +import gnu.io.UnsupportedCommOperationException;

    import org.reprap.Device;
    import org.reprap.Preferences;

    A rebuild of the project worked, and the resulting app runs for me.

    This is on Ubuntu Linux 7.04, but should work on Windows and OS X too.

     
  • Jonathan Marsden

    Logged In: YES
    user_id=28206
    Originator: NO

    Done. In Subversion revision 621. Tested on Linux, Windows and Mac.

    I'd close this if I had the privs on SF to do so :-)

    Jonathan

     
  • Zach Hoeken

    Zach Hoeken - 2007-06-09

    Logged In: YES
    user_id=1460342
    Originator: YES

    closed it =)

     
  • Zach Hoeken

    Zach Hoeken - 2007-06-09
    • status: open --> closed-fixed
     

Log in to post a comment.