PowerSystem Posted May 4, 2012 Posted May 4, 2012 Hello, has someone managed to work with rxtx comm for accessing serial ports? (rxtx.org) Any help appreciated. Markus
Andreas T. Posted October 22, 2012 Posted October 22, 2012 Did you get any further with this? I am interested in communicating with a scale that has only RS-232. I know that Troi Serial works but is too expensive now. EDIT: I got a RS-232 to USB cable that works, so it really is a matter of getting FileMaker to see the new USB port and grab data from there. Cheers, Andreas
PowerSystem Posted October 24, 2012 Author Posted October 24, 2012 Hi Andreas, sorry i hadn't the time till now to go deeper into it. It's still on my list ;-) For me its the same reason like yours Markus
fseipel Posted October 24, 2012 Posted October 24, 2012 I had to interface a scale with MS Access yesterday. The main complication was they also wanted the lab scale connected to a titrator, so I used an A/B switch. With Win7, it took some time to find a free keyboard wedge that allowed the 7-E-1 data settings (I had to match Titrator, as it was not configureable on comm settings). If possible, can you simply use a keyboard wedge? If the scale is set up with a PRINT button to print the weight, this works nicely. If scale sends data constantly, with a delimiter, you should be able to read it using standard java libraries, see for example http://www.java-samples.com/showtutorial.php?tutorialid=11 -- rxtx may be better if solution needs to be cross-platform BUT you need to install DLL's and other components for it than just the JAR file. This example should allow you to read weights also: http://www.java-frameworks.com/java/ofbiz/ShipmentScaleApplet.java.html with ScriptMaster. Be sure to include the timeouts on opening port and reading. The biggest problem I've had is COM port numbers sometimes change when USB-->serial adapter moves, ideally Java code ought to loop through COM ports until scale is found.
Recommended Posts
This topic is 4481 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now