webapp-hardware-bridge icon indicating copy to clipboard operation
webapp-hardware-bridge copied to clipboard

Weight receiving problem

Open tasselchof opened this issue 5 years ago • 5 comments

Am I doing everything right?

I attached weights to USB, they are appeared on COM6 port.

After I assigned this to weights in configurator: https://monosnap.com/file/sWkGuIgZgoTzdkAD5qYBhpHh05nCMw

And started server: https://monosnap.com/file/Tl8YjpCYwtRHhHMTMvjygq6ToFyNZs

But when I put something on weights, no messages in web service: https://monosnap.com/file/qTdgWV5cGqCwC83tLyqFs8esTiB7Cx

tasselchof avatar Apr 05 '19 15:04 tasselchof

After restart of weights and service something is coming in: https://monosnap.com/file/orpmcFdgF7JxfGnJopA23EuceLiykK

tasselchof avatar Apr 05 '19 15:04 tasselchof

Current default setting adapts AWH-SA30 (A Chinese weigh scale model) Any COM port weight scale should works with similar concept. Please check regex in websocket-weigh.js and set regex which fit the output of your scale.

imTigger avatar Apr 05 '19 15:04 imTigger

On my weights I am receiving symbols: https://monosnap.com/file/De6U7Gtj0btsGBFXts2Yqph9o0kOAd

You know how to handle them?

tasselchof avatar Apr 05 '19 15:04 tasselchof

Please use putty or other serial terminal to collect the output of your scale, and then make a regex to match the output pattern.

For example, my scale output "ST,NT,+ 1.234kg" + line break in every single output, therefore: weightRegex is "([0-9]{1,2}\.[0-9]{3})kg" stableRegex is a regex boolean test to indicate if reading is stable

imTigger avatar Apr 05 '19 17:04 imTigger

The case is that the scale I tested returning this on serial port:

https://monosnap.com/file/dc8z6ZfY0RYzYpSJMWj3ImGZyU6nCi

Your's as I understand returning exact numbers?

tasselchof avatar Apr 09 '19 09:04 tasselchof