Scale integration

Try [\D]+[^\.]+\d+

Thanks @emre, I tried it and nothing.

On the Numberpad input box I don’t get a reading. Any other ideas?

Maybe if I use a pop-up box with a product tag on the items? Do you think this might help?

For next update I’m planning to implement debug mode / logging for devices. It may help us to identify the issue.

1 Like

Thanks @emre. Any idea when the next update? I know the latest update was not so long ago.

I added logging support for next update. That will be released for testing in few days.

Enable debug mode and post generated scale.log file here, so we can see what happens.

Watch this topic for next update.

1 Like

Scale.log
2018/09/03 14:03
2018/09/03 14:03:19 Custom Scale>Init Start,COM1
######################### E N D #########################
2018/09/03 14:03
2018/09/03 14:03:19 Custom Scale>Init End,COM1
######################### E N D #########################
2018/09/03 14:04
2018/09/03 14:04:15 Custom Scale>Data: 1.534kg
,COM1
######################### E N D #########################
2018/09/03 14:04
2018/09/03 14:04:15 Custom Scale>Match Data:1.534,rx:[^\d]+([0-9]+[.,]+[0-9]+),COM1
######################### E N D #########################
2018/09/03 14:04
2018/09/03 14:04:15 Custom Scale>Final Match Data:,COM1
######################### E N D #########################
2018/09/03 14:04
2018/09/03 14:04:45 Custom Scale>Init Start,COM1
######################### E N D #########################
2018/09/03 14:04
2018/09/03 14:04:45 Custom Scale>Init End,COM1
######################### E N D #########################
2018/09/03 14:09
2018/09/03 14:09:52 Custom Scale>Init Start,COM1
######################### E N D #########################
2018/09/03 14:09
2018/09/03 14:09:52 Custom Scale>Init End,COM1
######################### E N D #########################

scale.zip (337 Bytes)

Can you …

  1. delete scale.log
  2. change string format as #.####
  3. post scale.log

Scale.log
2018/09/03 15:45
2018/09/03 15:45:15 Custom Scale>Init Start,COM1
######################### E N D #########################
2018/09/03 15:45
2018/09/03 15:45:15 Custom Scale>Init End,COM1
######################### E N D #########################
2018/09/03 15:45
2018/09/03 15:45:52 Custom Scale>Finalize Start,COM1
######################### E N D #########################
2018/09/03 15:45
2018/09/03 15:45:52 Custom Scale>Finalize End,COM1
######################### E N D #########################
2018/09/03 15:45
2018/09/03 15:45:52 Custom Scale>Init Start,COM1
######################### E N D #########################
2018/09/03 15:45
2018/09/03 15:45:52 Custom Scale>Init End,COM1
######################### E N D #########################
2018/09/03 15:47
2018/09/03 15:47:21 Custom Scale>Data: 1.876kg
,COM1
######################### E N D #########################
2018/09/03 15:47
2018/09/03 15:47:21 Custom Scale>Match Data:1.876,rx:[^\d]+([0-9]+[.,]+[0-9]+),COM1
######################### E N D #########################
2018/09/03 15:47
2018/09/03 15:47:21 Custom Scale>Final Match Data:,COM1
######################### E N D #########################
2018/09/03 15:48
2018/09/03 15:48:04 Custom Scale>Init Start,COM1
######################### E N D #########################
2018/09/03 15:48
2018/09/03 15:48:04 Custom Scale>Init End,COM1
######################### E N D #########################
2018/09/03 15:48
2018/09/03 15:48:33 Custom Scale>Data: 2.196kg
,COM1
######################### E N D #########################
2018/09/03 15:48
2018/09/03 15:48:33 Custom Scale>Match Data:2.196,rx:[^\d]+([0-9]+[.,]+[0-9]+),COM1
######################### E N D #########################
2018/09/03 15:48
2018/09/03 15:48:33 Custom Scale>Final Match Data:,COM1
######################### E N D #########################
scale.zip (377 Bytes)

Is your system decimal separator is “.” ? Seems like it can’t convert reading to a number. If you’re using , as decimal separator try adding . to Find and , to replace. It may help fixing the issue.

Awesome!!! Thank you for your help @emre it is working perfectly!

1 Like

Great!. Can you post ss of your device settings for a final review?

ss
This is the screenshot of what worked for me.

1 Like

You can change string format to 0.#### to handle below kg weights properly. Other settings appears fine.

I’m wondering why debug mode setting doesn’t appears there?

Hi Emre,

Sorry for the delay in the reply. Everything is working 100%. The previous screenshot was of 5.2.12 as I didn’t want to upgrade and I tested the changes in there. It didn’t work so now upgraded all terminals to 5.2.13.

Untitled

This is the screenshot from 5.2.13.

1 Like

Glad to hear that. Don’t forget to disable debug mode when you start using it on production :slight_smile:

Hello guys, I have been trying to integrate the CAS ER PLUS scale to SAMBAPOS V5, However i haven’t been successful even after going through the current solutions on the forum. I am able to get readings through PUTTY as follows:
sambaputtyscale

When I use the CAS ER scale setup on devices as bellow, sambapos will freeze when ticket is opened. And I don’t get any values for the scale through to samba.

I also tried using the custom setup as shown here, the freezing goes but I still don’t get any scale values. I can’t print the configuration of the scale to see what baud rate and other settings it on, or i can do is try the 15 pre TYPE setting on the scale and only type 14 and 15 give some values. Any pointers I could get on this to help me resolve this issue? Thanks

Hi mukopaje, one thing I found is that I need to restart the PC in order for the serial port to be released from other programs using it. Just maybe something is locking the port up.

Hi Juan, I noticed that issue actually and i did the restarts a number of times, because whilst putty opened command line window is still running listerning on the serial port sambapos will say access to the port is denide.

Hello did you manage to make it work