Tuesday, 27 May 2008

Connecting to the serial port from eclipse

Installing the serial port plug in in Eclipse

Step 1:
Installation as an Eclipse Plug in via Update Manager:
-----------------------------------------------------------------
In Eclipse, choose Help > Software Updates > Find and Install
- Search for New Features to Install, Next
- New Remote Site:
Name = RXTX
URL = http://rxtx.qbang.org/eclipse/
- Finish, select proper version, Install All

Step 2:
Get RXTX binaries from
ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7-bins-r2.zip

Step 3:
unzip the binaries

NOTE : for step 3 and 4
in case of windows you need to copy files to C:\Program Files\Java\jre1.6.0_05

if you have multipal folder under JAVA\ then choose the last revesion for installtion

ex. if you have jre1.6.0_0_04 and jre1.6.0_05 choose jre1.6.0_05

Step 4:
Copy RXTXcomm.jar into C:\Program Files\Java\jre1.6.0_05\lib\ext

Step 5:
copy rxtxParallel.dll and rxtxSerial.dll to C:\Program Files\Java\jre1.6.0_05\bin

Installtion procedure is compleate.

Using serial port from Eclipse IDE.


Step 1:

under the eclipse goto

windows \ show view \ other or press CTR+Shift+Q ,Q

Step 2:
search for terminal and press OK

Step 3:
now the terminal window will open select the "N" symbol to connect to port from the right hend top side corner.

Step 4:
select "Serial" in connection type and select the parameters in the window followed.

- Mihir Patel.

6 comments:

  1. i got all the top parts, but stuck here...
    i cant find "terminal"

    help? :(

    Using serial port from Eclipse IDE.

    Step 1:

    under the eclipse goto

    windows \ show view \ other or press CTR+Shift+Q ,Q

    Step 2:
    search for terminal and press OK

    Step 3:
    now the terminal window will open select the "N" symbol to connect to port from the right hend top side corner.

    Step 4:
    select "Serial" in connection type and select the parameters in the window followed.

    ReplyDelete
  2. to get the terminal window ... you need to do the following

    select window > Show View > Terminal

    It should be seen in next to problems or console or properties... you know what i am talking about..

    ReplyDelete
  3. Nope, same problem here. e 3.3.1.1, j 1.6.0_07, intsalled rxtx and no Terminal in Show Viex - no RXTX in other list either which I am gussing should be there?

    ReplyDelete
  4. I have try add plugin to eclipse.
    Terminal window aren't available in Eclipse IDE.
    I have eclipse Galileo version.
    Doy you Know anything?
    Happy new year!

    ReplyDelete
  5. 1. Don't place the .jar of rxtx in the JRE. This is not required (already installed by eclipse update of rxrx), in fact it will cause your terminal to hang if you click on it.

    2. For those that can't find the terminal, you need to install it from within eclipse.

    ReplyDelete
  6. I don't find the serial option to choose! only telnet and SSH

    ReplyDelete