Scales Integration

It was second hand as well. :pensive:

Got the scales to communicate with the PC. It needed the null modem adaptor. It’s also the type that needs an upper case W sent to it before it sends back the weight.

There is an action for sending the W.

There was an action mentioned in a tutorial but it doesn’t exist in my list. I’m on 5.3.0

https://kb.sambapos.com/en/8-8-avery-berkel-scale-setup/

The only ‘Send’ Action in my list is Send Email.

Looks like I’m upgrading soon SambaPOS 5.3.4 Release

Sorry it would only be in 5.3.6

OK, upgraded to 5.3.6 (painlessly may I add :slight_smile: ).
I’ve added the Action, Automation Command and Rule as per the tutorial. I’m thinking I need to get the format right in the properties of the scale.
Here’s what I have so far:
Scales Properties

And this is the message coming back from the scales (after sending the W in PuTTY):
PuTTY

One other thing I’ve noticed is that the ‘Test’ option doesn’t become available where the Scale is added?

1 Like

Tried this as well:

Scales Properties-2

Still not working as expected.

I have a barcode reader/scanner, do you think that might be interferring with the scale data?

From the scale.log:

9/02/2022 12:18 pm
9/02/2022 12:18:17 pm Custom Scale>Finalize Start,COM7
######################### E N D #########################
9/02/2022 12:18 pm
9/02/2022 12:18:18 pm Custom Scale>Finalize End,COM7
######################### E N D #########################
9/02/2022 12:18 pm
9/02/2022 12:18:18 pm Custom Scale>Init Start,COM7
######################### E N D #########################
9/02/2022 12:18 pm
9/02/2022 12:18:18 pm Custom Scale>Init End,COM7
######################### E N D #########################
9/02/2022 12:18 pm
9/02/2022 12:18:40 pm Custom Scale>Data:W,COM7
######################### E N D #########################
9/02/2022 12:18 pm
9/02/2022 12:18:40 pm Custom Scale>Data:W,COM7
######################### E N D #########################

Will the scale.log show data returned from the scale?

I’ve tried ##.### to match the returned data in putty but still no joy with SambaPOS.

Still can’t get this to work. One thing I’ve noticed is that each time I press the ‘scale’ button (the one I created to send data to the scale) there are 7 entries in the scale.log, doesn’t seem right to me.

So I’ve installes a Serial Port Monitor and this is what I get (for a weight of 125g)

30 30 2E 31 32 35 0D 00.125.

82 30 30 2E B1 B2 35 8D ‚00.±²5

The top is through PuTTy after sending the upper case W, the bottom is what happens through SambaPOS. Could this be an installed language mismatch?

If I check the ‘Override Windows Regional Settings’ checkbox

Language

I get this (which is the correct weight) but it has a leading comma.

82 30 30 2E 30 39 30 8D ‚00.090

Still nothing comes up in the keyboard input box.

Will checking the ‘Override Windows Regional Settings’ checkbox have any detrimental effects?

I’ve tried heaps of combinations of RegEx but can’t get anything to work.
Any suggestions would be appreciated.

if the decimal is always present, [0-9]+\.[0-9]+ should get you the last part after the comma

image

https://regexr.com/ is my go-to playground

Tried that but still nothing. I did notice in Scale.log that the date format is US though:

Today in the 7th of May

5/7/2022 12:46 PM
5/7/2022 12:46:31 PM Custom Scale>Data:W,COM1
######################### E N D #########################
5/7/2022 12:46 PM
5/7/2022 12:46:39 PM Custom Scale>Data:W,COM1
######################### E N D #########################