bcl / digitemp

1-wire temperature sensor cmdline interface
GNU General Public License v2.0
37 stars 24 forks source link

Port DS2490 code from libusb 0.1 to libusb 1.0 #14

Open rfinnie opened 8 years ago

rfinnie commented 8 years ago

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.

bcl commented 8 years ago

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

robert-scheck commented 3 years ago

@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.

bcl commented 3 years ago

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.

rct commented 3 years ago

(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.

bcl commented 3 years ago

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

rfinnie commented 3 years ago

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.