digitemp icon indicating copy to clipboard operation
digitemp copied to clipboard

Port DS2490 code from libusb 0.1 to libusb 1.0

Open rfinnie opened this issue 9 years ago • 6 comments
trafficstars

From https://bugs.debian.org/810407

digitemp has a build-depends on libusb-dev. A few years ago upstream
has released a new major version libusb 1.0 with a different API which
aims to fix design deficiencies with USB 2.0 and 3.0 in mind.

The old libusb 0.1 package is not supported upstream anymore and should
be considered deprecated.

If digitemp supports the new libusb 1.0 library, please consider
switching the build-depends from libusb-dev to libusb-1.0-0-dev. If not
please inform upstream that porting the software to the new API is
recommended.

I've taken a brief look and it looks like porting the ds2490 stuff to libusb 1.0 would not be hugely difficult for someone with libusb experience, but the work is probably beyond my C abilities. Hopefully someone can pick this up.

rfinnie avatar Jan 09 '16 00:01 rfinnie

http://libusb.sourceforge.net/api-1.0/index.html

bcl avatar Feb 13 '16 17:02 bcl

@bcl, may I kindly ask for your attention here? Rename libusb packages and deprecate old API is on the list for Fedora 34…and I am not sure whether I would like to maintain a RPM package in Fedora with legacy requirements.

robert-scheck avatar Dec 28 '20 22:12 robert-scheck

Yeah, I've looked into porting it and really don't feel like doing it myself. I actually use serial to usb adapters with iButtonLink devices here.

For Fedora I'd suggest dropping the build of the ds2490 version and just build the serial binaries.

bcl avatar Dec 29 '20 18:12 bcl

(Sorry Off Topic) Are you using the iButtonLink masters in the mode where they emulate the Dallas masters?

I think I saw the iButtonLink devices are supposed to have some advantages via their native protocol, but I've never seen any software that uses it.

rct avatar Dec 29 '20 18:12 rct

Yes, using digitemp_DS9097U with them. Their ascii interface lets you have more control, but even without it they work better with longer networks.

bcl avatar Dec 30 '20 01:12 bcl

Yeah, I've looked into porting it and really don't feel like doing it myself. I actually use serial to usb adapters with iButtonLink devices here.

For Fedora I'd suggest dropping the build of the ds2490 version and just build the serial binaries.

I'm now doing this for Debian as of version 3.7.2-2 in sid today (I wasn't getting immediate pressure to do so, but happened to check the drop libusb 0.1 tracking bug and saw there weren't many blockers left, so it was probably a matter of time).

Looks like rawhide has not yet dropped DS2490.

rfinnie avatar May 27 '21 19:05 rfinnie