You can connect scales to SambaPOS by configuring a scale from Management > Local Settings > Devices
My Scale is CAS ER model. To configure port click Settings and choose the port your device is connected to.
When a scale connected, scaling automatically updates Number Pad value. So when you add a product quantity value becomes scaled value.
If your scale does not listed here you can try integrating it by using “Custom Scale” option. To be able to make this configuration you need to know how regular expressions works.
Connect to COM Port to monitor what information scale sends. You can use a terminal application like putty to monitor that.
Select Serial Option and type port name. Clicking Open should display terminal window.
Our test scale is CAS ER model. This Scale continuously sends scale value as ** S x.xxxkg** format. We’ll use a regular expression to extract x.xxx value.
When you select Custom Scale option scale settings contains additional field called Match Pattern. Our Regular Expression to extract weight value is [^\d]+([0-9]+[.,]+[0-9]+) so I typed it to Match Pattern field.
If you are familiar with RegEx please notice we are using first group value to find weight.