Hid usb scale program




















That blog entry is very helpful and well written. Unfortunately, the link within the blog is dead. The blog is still worthwhile, though. Link is broken. Any chance you have the contents of that post around which you could share here??

It requires libusb and PyUSB. This code is pretty general; it should work with any HID device that has just one configuration: import usb. The last two elements are used to calculate the weight. Steven T. Snyder Steven T. Snyder 5, 2 2 gold badges 24 24 silver badges 56 56 bronze badges. MSalters MSalters k 8 8 gold badges silver badges bronze badges. Bob Bob 11 1 1 bronze badge. Just change the vendor ID to match that of your scale. You can be up and running in a few minutes.

I used it with a Dymo S I tested the scale in Ubuntu and Mac. It is not recognised as HID device by default. So the code doesn't work in this two OS. Not sure if there is a way to force it as HID device. Maybe some drivers. Lunatik Lunatik 3, 6 6 gold badges 35 35 silver badges 52 52 bronze badges.

That's certainly not true. A mouse is also a HID device, and that's certainly not a keyboard. Very true. I'm used to dealing with scanners etc, and assumed that a scale would follow the keyboard device profile as it wouldn't make much sense for it to constantly emit a fluctuating reading.

The fluctuations aren't the problem; the problem is that a scale should produce its reading when the PC wants it. A keyboard and a bar scanner push events towards the PC as they happen. Version 1. NET Framework will of course need to be installed. This part of the library may change in the future. Let me know how it works for you. Fixed a race condition in the exclusivity layer. Fixed a threading bug that cropped up on. NET Core on Linux. Serial devices that use Windows's buggy usbser.

Fixed a garbage collector-related crash on MacOS. HIDSharp now includes assemblies for both. NET Framework 3. NET Standard 2. You can now decode nearly any HID device's reports, on all platforms! Added GetReportDescriptor support on Windows. Thanks for the help! Improve this question. Alex Alex 59 1 1 gold badge 1 1 silver badge 3 3 bronze badges. Here's some information regarding this scale: freeimagehosting. Add a comment. Active Oldest Votes. Improve this answer. Alphaneo Alphaneo Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password.



0コメント

  • 1000 / 1000