erjiang / usbscale

Reads weight data from USB scales.
GNU General Public License v3.0
91 stars 22 forks source link

Measurement Frequency : ID 1446:6a73 X.J.GROUP Stamps.com Model 510 5LB Scale #17

Closed alsaibie closed 7 years ago

alsaibie commented 7 years ago

Hi,

Just a quick Q. Is there a way to increase the rate at which the scale reports the weight? I'm setting up an experiment and it would be nice to get a faster refresh rate than the few seconds I'm experiencing with this. Can I poll the data instead of an interrupt? Or the scale is just designed that way?

Are there other scales in the list that do a better job at faster weight refresh?

sanmai commented 7 years ago

I don't see anything standard in the docs. See for yourself:

Probably your scale has some undocumented extensions, but that's beyond the scope of this program, as far as I understand.

alsaibie commented 7 years ago

I managed to reduce the latency slightly by querying the weight with a small timeout value. Can work with this now. The code for the scale is a big saved, many thanks.