[sane-devel] Ep_to_piperef error

Mattias Ellert mattias.ellert@tsl.uu.se
Fri, 23 Apr 2004 00:52:42 +0200

Brandon Carpenter wrote:

>>scanimage > /scanIn/test.tif
> Ep_to_piperef: Error occured getting pipe information
> on pipe 1
> Does anyone have an idea what this means?
> Brandon Carpenter

This error is from libusb.

     ret = (*(device->interface))->GetPipeProperties(device->interface, 
i, &direction, &number,
						    &dont_care1, &dont_care2, &dont_care3);

     if (ret != kIOReturnSuccess) {
       fprintf (stderr, "ep_to_pipeRef: an error occurred getting pipe 
information on pipe %d\n",
	       i );
"ep_to_pipeRef(GetPipeProperties): %s", darwin_error_str(ret));

The documentation says the following about GetPipeProperties:


function result
  Returns kIOReturnSuccess if successful,
          kIOReturnNoDevice if there is no connection to an IOService, or
          kIOReturnNotOpen if the interface is not open for exclusive 

If you set SANE_DEBUG_SANEI_USB to 5 or greater when running scanimage 
you should get an additional error message saying either of the following:

ep_to_pipeRef(GetPipeProperties): no connection to an IOService
ep_to_pipeRef(GetPipeProperties): device not opened for exclusive access



mattias.ellert@tsl.uu.se                           tel: +46 18 471 32 58
http://www.tsl.uu.se/~ellert/                      fax: +46 18 471 35 13