Thursday, November 17, 2005

RS232 Serial Communications In Java

How to use Java (javax.comm) for rs232 serial communications with Eclipse on WinXP

Download the package from:

The zip contains a folder named commapi. Put this folder in eclipseplugins. In your project properties > add external jars, add comm.jar from eclipsepluginscommapi. The folder also contains a dll, you'll need to point to in the RUN setup. You can put the dll anywhere you like.

The important part is that [comm.jar] and [] are both in [eclipsepluginscommapi]. If they are anywhere else it will not work, and you will get the following errors: "Cannot find any ports", "No ports available", "No available ports".

{ "loggedin": false, "owner": false, "avatar": "", "render": "nothing", "trackingID": "UA-36983794-1", "description": "", "page": { "blogIds": [ 348 ] }, "domain": "", "base": "\/michael", "url": "https:\/\/\/michael\/", "frameworkFiles": "https:\/\/\/michael\/_framework\/_files.4\/", "commonFiles": "https:\/\/\/michael\/_common\/_files.3\/", "mediaFiles": "https:\/\/\/michael\/media\/_files.3\/", "tmdbUrl": "http:\/\/\/", "tmdbPoster": "http:\/\/\/t\/p\/w342" }