May 4, 201213 yr Hello, has someone managed to work with rxtx comm for accessing serial ports? (rxtx.org) Any help appreciated. Markus
October 22, 201213 yr 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
October 24, 201213 yr Author 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
October 24, 201213 yr 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.
Create an account or sign in to comment