[sane-devel] Ep_to_piperef error

Mattias Ellert mattias.ellert at tsl.uu.se
Thu Apr 22 23:52:42 BST 2004


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 );
       USB_ERROR_STR(-darwin_to_errno(ret), 
"ep_to_pipeRef(GetPipeProperties): %s", darwin_error_str(ret));
     }

The documentation says the following about GetPipeProperties:

http://developer.apple.com/documentation/Darwin/Reference/IOKit/IOUSBLib/Classes/IOUSBInterfaceInterface197/Functions/Functions.html#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 
access.

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


-- 
________________________________________________________________________

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





More information about the sane-devel mailing list