[sane-devel] OS X Progress...

Brendan Burns brendanburns@attbi.com
Sat, 2 Nov 2002 16:01:41 -0500


So I notice that one problem is that POSTFIX in backends/dll.c is 
defined to be:

".so.%u"

for Darwin it should be:

".%u.dylib"

That got me a little farther, then I realized that the sm3600 driver is 
woefully out of date with respect to libusb so I removed that shared 
lib since it was calling usb_init() instead of sanei_usb_init() and a 
few other things which caused crashes...

But I still get no love from my Umax: the relevant info is below.

it seems that bulk_write is not quite doing its job

any ideas?  Does this seem like the libusb error people were seeing?

--brendan

[dll] load: searching backend `umax1220u' in `/usr/local/lib/sane'
[dll] load: trying to load 
`/usr/local/lib/sane/libsane-umax1220u.1.dylib'
[dll] load: dlopen()ing `/usr/local/lib/sane/libsane-umax1220u.1.dylib'
[dll] init: initializing backend `umax1220u'
[sanei_debug] Setting debug level of umax1220u to 128.
[umax1220u] sane_init: version_code != 0, authorize != 0
[umax1220u] sane_init: SANE umax1220u backend version 1.0.1 from 
sane-backends-1.0.9
[sanei_debug] Setting debug level of sanei_usb to 128.
usb_set_debug: Setting debugging level to 255 (on)
usb_find_busses: Found -06
usb_find_busses: Found -07
usb_find_devices_on_bus: Found 001 on -07
usb_os_open: 05ac:8005
USB error: could not open device.

usb_find_devices_on_bus: Found 002 on -06
usb_find_devices_on_bus: Found 001 on -06
usb_os_open: 05ac:8005
USB error: could not open device.

usb_os_open: 1606:0010
usb_control_msg: 128 6 512 0 0xbffff168 8 1000
usb_control_msg: 128 6 512 0 0x94410 39 1000
usb_os_close: 1606:0010
[umax1220u] reading configure file umax1220u.conf
[umax1220u] attach_matching_devices(usb 0x1606 0x0010)
[sanei_usb] sanei_usb_find_devices: vendor=0x1606, product=0x0010, 
attach=0xf68a8
[sanei_usb] sanei_usb_find_devices: found libusb device (bus=-07, 
device=001, vendor=0x05ac, product=0x8005)
[sanei_usb] sanei_usb_find_devices: found matching libusb device 
(bus=-06, device=002, vendor=0x1606, product=0x0010)
[umax1220u] attach_scanner: libusb:-06:002
[umax1220u] attach_scanner: opening libusb:-06:002
[umax1220u] UMAX_open_device: `libusb:-06:002'
[sanei_usb] sanei_usb_open: trying to open device `libusb:-06:002'
usb_os_open: 1606:0010
[sanei_usb] sanei_usb_open: found bulk-out endpoint (address 1)
[sanei_usb] sanei_usb_open: found bulk-in endpoint (address 2)
[sanei_usb] sanei_usb_open: ignoring interrupt-in endpoint (address: 3)
[sanei_usb] sanei_usb_open: opened usb device `libusb:-06:002' (*dn=0)
[sanei_usb] sanei_usb_get_vendor_product: device 0: vendorID: 0x1606, 
productID: 0x0010
[umax1220u] csend: cmd = 0
[umax1220u] usync: len = 0, cmd = 0
usb_control_msg: 64 4 0 0 0x0 0 30000
usb_control_msg: 64 3 2 0 0x0 0 30000
Converting ep address to pipeRef.
pipeRef for ep 0x01 found: 0x01
usb_bulk_write: endpoint=0x01 size=2 TO=30000
write completed
CFLoopRun returned
[sanei_usb] sanei_usb_write_bulk: wanted 2 bytes, wrote 0 bytes
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
[umax1220u] Failure on line of umax1220u-common.c: 308
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
usb_control_msg: 192 0 0 4 0xbfffac60 1 30000
[umax1220u] UMAX_close_device:
[sanei_usb] sanei_usb_close: closing device 0
usb_os_close: 1606:0010
[umax1220u] Failure on line of umax1220u-common.c: 1671
[umax1220u] ERROR: attach_scanner: opening libusb:-06:002 failed
[sanei_usb] sanei_usb_find_devices: found libusb device (bus=-06, 
device=001, vendor=0x05ac, product=0x8005)
[umax1220u] attach_matching_devices(usb 0x1606 0x0030)
[sanei_usb] sanei_usb_find_devices: vendor=0x1606, product=0x0030, 
attach=0xf68a8
[sanei_usb] sanei_usb_find_devices: found libusb device (bus=-07, 
device=001, vendor=0x05ac, product=0x8005)
[sanei_usb] sanei_usb_find_devices: found libusb device (bus=-06, 
device=002, vendor=0x1606, product=0x0010)
[sanei_usb] sanei_usb_find_devices: found libusb device (bus=-06, 
device=001, vendor=0x05ac, product=0x8005)
[umax1220u] attach_matching_devices(device libusb:-06:002)
[umax1220u] attach_scanner: device libusb:-06:002
[umax1220u] attach_scanner: opening device libusb:-06:002
[umax1220u] UMAX_open_device: `device libusb:-06:002'
[sanei_usb] sanei_usb_open: trying to open device `device 
libusb:-06:002'
[sanei_usb] sanei_usb_open: open of `device libusb:-06:002' failed: No 
such file or directory
[umax1220u] UMAX_open_device: couldn't open device `device 
libusb:-06:002': Invalid argument
[umax1220u] ERROR: attach_scanner: opening device libusb:-06:002 failed
[umax1220u] finished reading configure file
[dll] init: backend `umax1220u' is version 1.0.1
[umax1220u] sane_get_devices(local_only = 0)