Scale communication RS232

23 views
Skip to first unread message

kpitn

unread,
Nov 17, 2014, 11:11:25 AM11/17/14
to jzebra...@googlegroups.com
Hi,

I see that you implement some function to get weight with toledo POS Scale.

Can you document the way you get weight by com port ?
 
I want to use a kern model : https://www.vagar.com/pub_docs/files/Kern_Manual_DE_D.pdf   (Chapter 8)


Tres Finocchiaro

unread,
Nov 17, 2014, 11:24:34 AM11/17/14
to jZebra users
I'm glad you asked.  We don't get many requests on this topic and it is an area which we probably need improvement (in the form of a wiki article).

Currently, I'm using a custom RJ12 to USB COM port emulator cable (I created this myself) with the pin-out already established.

Assuming you have your own Mettler Toledo adapter cables, that would work too.

Some Mettler Toledo scales are USB powered, but we're ironically not using USB for communication (despite the converter) so I needed to also obtain a Mettler Toledo AC adapter.

From a programming perspective, there are a few protocols the scale can operate in.  I chose to write our sample to work with the Mettler Toledo specification which deals with their own STX and ETX characters.

If you download 1.8.0, on the far right, type in the port name, (i.e. COM1) and click Open Port, Send Port Command, it should display the weight.

The source code for this functionality is all contained within our sample.html demo outlined here:

The code is pretty self explanatory, but it shows how to open the port, send the data, and receive the response.  I can go into further detail if needed.

Note, our demo page (1.8.7) contains a bug which affects serial support.  Version 1.8.9 has a patch to fix this and you would receive that as a premium customer. (1.8.0 works just fine but is incompatible with Chrome 36 and higher).

--
--
To unsubscribe from this group, send email to jzebra-users...@googlegroups.com
 
http://code.google.com/p/jzebra

---
You received this message because you are subscribed to the Google Groups "jZebra users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jzebra-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kpitn

unread,
Nov 24, 2014, 5:47:04 AM11/24/14
to jzebra...@googlegroups.com
Thank for your anwser, i will try and post my result

kpitn

unread,
Nov 24, 2014, 11:04:55 AM11/24/14
to jzebra...@googlegroups.com
I don't find a way to listen to com port ?

I configure my scale to send me data continuously, is there a way to read an open port ?

Tres Finocchiaro

unread,
Nov 24, 2014, 11:09:46 AM11/24/14
to jZebra users
> is there a way to read an open port ?

function qzSerialReturned() should be fired automatically when the ETX character(s) are read from the end of the stream.

If you have not yet configured your STX and ETX characters for your scale, you will need to do so.  Alternately, if you have Mettler Toledo emulation, that would work as well.

-Tres  
Reply all
Reply to author
Forward
0 new messages