Scubapro Aladin Square

Linus Torvalds torvalds at linux-foundation.org
Mon Nov 13 11:18:26 PST 2017


On Mon, Nov 13, 2017 at 10:47 AM, vavincavent <vavincavent at gmail.com> wrote:
> A little better?? (/etc/udev/rules.d):

So now you can actually do the IO:

> The log file :
> Subsurface: v4.7.4-1-g4d04f74312dc, built with libdivecomputer v0.6.0-
> devel-Subsurface-branch (7de3a549ee588fef4702ee9d894e390aca43950d)
> INFO: Open: vid=c251, pid=2006
> INFO: Open: interface=0, endpoints=81,02
> INFO: Timeout: value=10
> ERROR: Usb read interrupt transfer failed (LIBUSB_ERROR_TIMEOUT). [in ../../src/usbhid.c:518 (dc_usbhid_read)]
> INFO: Read: size=0, data=

This first one is normal - it comes from the open trying to flush any
possible previous data, and it normally fails (note the short timeout
too).

> INFO: Timeout: value=5000
> DEBUG: cmd: size=1, data=10
> INFO: Write: size=2, data=0110

Here we wrote the one-byte command.

And then:

> ERROR: Usb read interrupt transfer failed (LIBUSB_ERROR_TIMEOUT). [in ../../src/usbhid.c:518 (dc_usbhid_read)]
> INFO: Read: size=0, data=
> ERROR: read interrupt transfer failed [in ../../src/scubapro_g2.c:78 (receive_data)]
> ERROR: Failed to receive the answer. [in ../../src/scubapro_g2.c:145 (scubapro_g2_transfer)]

But the aboive is where we fail to get the expected reply.

I think I'd really like to see the actual packet trace from this failure.

              Linus


More information about the subsurface mailing list