OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: mauro on March 10, 2019, 02:35:13 pm

Title: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: mauro on March 10, 2019, 02:35:13 pm
Hi, have installed Tame/2.
On Virtualbox devices menu I have activated the usb connection to my Canon Lide 100 usb scanner.
Runned Tame2 for first time, it asks for scanner model selection, and among Canon models it goes up to Canon Lide 60 wich seems the nearest to my Canon Lide 100 (not in the list). Selected it, then I begin scanning preview or scan to file which take to the same output: a 0 kb tif file = non file scanned.  And I expect such result, as during the scanning interface displaying  the progress bar, which means that the scanner is doing the job, I do no not hear any working noise from my scanner, it is not active.
Could it be a usb port connection matter or what else?
Thank you
Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: ivan on March 10, 2019, 11:58:18 pm
My experience with Tame on real hardware with a USB scanner was that it worked well with the old USB drivers but stopped working when something was changes with newer drivers and Sane.

Now all the scanning I do is from my Brother colour laser via ftp.
Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: Pete on March 11, 2019, 03:53:11 am
Hi mauro

Open a command window in the directory containing scanimage.exe

Then run scanimage with -L to list devices it finds and -T to test the backend driver. I suggest this as it seems the scanner is not being found

I have not used a usb attached scanner for a while but seem to recall that problems arose if libusb.dll was not current.


Regards

Pete

Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: Phil Ryan on March 11, 2019, 09:25:42 pm
Hi Mauro, Ivan and Pete
Mauro  After reading your post,decided to give tame/2
 another try on a new install of arco 5.0.3
with same results as you and as I had some time before

Ivan, sounds like a usb problem

Pete  I did try scanimage -L  and my scanner was correctly identified
HP7400C flatbed

then tried       scanimage _T with the following response
scanimage: received signal 15
scanimage: trying to stop scanner
sane-find-scanner replied with : no usb scanner found

a libusb problem????  and is there a solution

regard Phil
Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: Pete on March 12, 2019, 04:18:40 am
Hi mauro & Phil

I had a hunt for some emails I exchanged with Paul, sane porter, the last time I set up a usb scanner which I had some problems with. In fact, I had it working as a wirless scanner before I got the usb connection working.

Paul did build a version of sane 1.0.24, dated sometime April 2015, for me to test which worked fine with usb and it still seems to be here http://smedley.id.au/tmp/scanimage.zip

Might be worth trying...


Regards

Pete
Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: Phil Ryan on March 12, 2019, 04:33:37 pm
Pete
  thanks for the help.  I downloaded Pauls scanimage, opened and
ran, got the following:  libusb10 not found.  I will have to do a search
for libusb10.dll and install

Phil
Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: David Graser on March 12, 2019, 05:14:48 pm
Pete
  thanks for the help.  I downloaded Pauls scanimage, opened and
ran, got the following:  libusb10 not found.  I will have to do a search
for libusb10.dll and install

Phil
Phil, on my ArcaOS 5.02 system, it is normally located in the

D:\usr\lib\libusb10.dll
Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: Dave Yeo on March 12, 2019, 05:27:44 pm
Pete
  thanks for the help.  I downloaded Pauls scanimage, opened and
ran, got the following:  libusb10 not found.  I will have to do a search
for libusb10.dll and install

Phil

There's a couple floating around including one that can be installed with ANPM IIRC.
Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: Pete on March 12, 2019, 06:31:53 pm
Hi

Try this  http://smedley.id.au/tmp/libusb-20161207.zip

Not sure if there is a later build anywhere...


Regards

Pete
Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: mauro on March 14, 2019, 08:31:53 pm
I meantime thank you all for all the indications given, I'll give feedback as able to try what suggested (few days) .
Bye
Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: Phil Ryan on March 15, 2019, 03:39:56 pm
Hi to all and thanks for all the input.
Last night looking for an unrelated item, ran across
an old posting I had printed, posted on this forum by Ivan
dated march 25 2016  Topic: Problems with Tame.
Several replies.  Perhaps digging into the archive and reposting
would be helpful.
regards  Phil
Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: mauro on March 16, 2019, 12:49:53 pm
Hi mauro

Open a command window in the directory containing scanimage.exe

Then run scanimage with -L to list devices it finds and -T to test the backend driver. I suggest this as it seems the scanner is not being found

I have not used a usb attached scanner for a while but seem to recall that problems arose if libusb.dll was not current.


Regards

Pete

here is the output (scanimage.exe from originally installed Tame/2):

[C:\APPS\TAME]scanimage.exe -L
device `test:0' is a Noname frontend-tester virtual device
device `test:1' is a Noname frontend-tester virtual device

[C:\APPS\TAME]scanimage.exe -T
scanimage.exe: scanning image of size 157x196 pixels at 8 bits/pixel
scanimage.exe: acquiring gray frame, 8 bits/sample
scanimage.exe: reading one scanline, 157 bytes...       PASS
scanimage.exe: reading one byte...              PASS
scanimage.exe: stepped read, 2 bytes...         PASS
scanimage.exe: stepped read, 4 bytes...         PASS
scanimage.exe: stepped read, 8 bytes...         PASS
scanimage.exe: stepped read, 16 bytes...        PASS
scanimage.exe: stepped read, 32 bytes...        PASS
scanimage.exe: stepped read, 64 bytes...        PASS
scanimage.exe: stepped read, 128 bytes...       PASS
scanimage.exe: stepped read, 256 bytes...       PASS
scanimage.exe: stepped read, 255 bytes...       PASS
scanimage.exe: stepped read, 127 bytes...       PASS
scanimage.exe: stepped read, 63 bytes...        PASS
scanimage.exe: stepped read, 31 bytes...        PASS
scanimage.exe: stepped read, 15 bytes...        PASS
scanimage.exe: stepped read, 7 bytes...         PASS
scanimage.exe: stepped read, 3 bytes...         PASS

but nothing happened on my scanner.
Do you think it would be suggestable downloading/replacing with the last version of scanimage.exe you mentioned here?

Thank you

Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: Pete on March 16, 2019, 05:04:27 pm
Hi mauro

This result shows no scanner available:-

[C:\APPS\TAME]scanimage.exe -L
device `test:0' is a Noname frontend-tester virtual device
device `test:1' is a Noname frontend-tester virtual device


If I had to guess the problem I would go with ivans suggestion of usb driver problem...


You could try the later sane (scanimage) package.
You may also need the later libusb package - check date of any installed libusb10.dll against package date. If I remember correctly libusb handles usb without using usb drivers - apart from, possibly, the usb controller.

When installed retry the scanimnage -L command.


Regards

Pete


Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: mauro on March 16, 2019, 09:36:14 pm
Hi mauro

………………...
If I had to guess the problem I would go with ivans suggestion of usb driver problem...

Pete

well I could also try with the wireless network mfp scanner (Samsung C460) if I could be lead step to step on how-to, since I have no knowledge at all on this
Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: Paul Smedley on March 16, 2019, 10:13:20 pm
You could try the later sane (scanimage) package.
You may also need the later libusb package - check date of any installed libusb10.dll against package date. If I remember correctly libusb handles usb without using usb drivers - apart from, possibly, the usb controller.

libusb uses usbresmg.sys & usbcalls which are part of the USB stack. Looks like I rebuilt it a while back to accomodate changes in these drivers - http://smedley.id.au/tmp/libusb-20161207.zip

I would also suggest the later sane package.

Cheers,

Paul
Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: Wim Brul on March 17, 2019, 10:33:52 am
1. Have a look at what I had to do to use my LIDE 210 (https://www.os2world.com/forum/index.php/topic,974.msg11025.html#msg11025) scanner.

2. Add your LIDE 100 scanner to your GENESYS.CONF as follows:

Code: [Select]
# Canon LiDE 100
usb 0x04a9 0x1904

Wim.
Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: mauro on March 17, 2019, 10:46:01 am
You could try the later sane (scanimage) package.
You may also need the later libusb package - check date of any installed libusb10.dll against package date. If I remember correctly libusb handles usb without using usb drivers - apart from, possibly, the usb controller.

libusb uses usbresmg.sys & usbcalls which are part of the USB stack. Looks like I rebuilt it a while back to accomodate changes in these drivers - http://smedley.id.au/tmp/libusb-20161207.zip

I would also suggest the later sane package.

Cheers,

Paul

Hi Paul, using the latest scanimage,exe version did not prudiced anu change.
Then replacing the libusb10.dll whit the latest suggested version, took many output lines on prompt command scanimage.exe -L and -T,  I paste here just the last ones as I cannot scroll up the previous lines on the command window:

libusb: 10.738000 debug [_sync_control_transfer] transferred 1
libusb: 10.741000 debug [os2_clock_gettime] clock 0
libusb: 10.747000 debug [libusb_get_next_timeout] next timeout in 0.971000s
libusb: 10.753000 debug [libusb_handle_events_timeout_completed] doing our own e
vent handling
libusb: 10.763000 debug [handle_events] poll() 3 fds with timeout in 971ms
libusb: 10.769000 debug [handle_events] poll() returned 1
libusb: 10.775000 debug [os2_handle_events]
libusb: 10.779000 debug [usbi_handle_transfer_completion] transfer 0x27e0120 has
 callback 0x1e1056d1
libusb: 10.790000 debug [ctrl_transfer_cb] actual_length=1
libusb: 10.794000 debug [libusb_get_configuration] active config 1
libusb: 10.798000 debug [libusb_close]
libusb: 10.802000 debug [os2_close] close: fd 3145974
libusb: 10.810000 debug [usbi_remove_pollfd] remove fd 12
libusb: 10.816000 debug [libusb_get_config_descriptor] index 0
libusb: 10.820000 debug [os2_get_config_descriptor]
libusb: 10.829000 debug [os2_get_config_descriptor] len 8
libusb: 10.835000 debug [os2_get_config_descriptor]
libusb: 10.839000 debug [os2_get_config_descriptor] len 32
device `test:0' is a Noname frontend-tester virtual device
device `test:1' is a Noname frontend-tester virtual device

You say I would need to have the latest Sane version, but how I can integrate it in Tame/2 ?
Also, do I have to download/place your above zip file as well?
Thank you
Title: Re: TAME/2 (OS2 Warp 4.52 on Virtualbox)
Post by: mauro on March 17, 2019, 06:52:39 pm
1. Have a look at what I had to do to use my LIDE 210 (https://www.os2world.com/forum/index.php/topic,974.msg11025.html#msg11025) scanner.

2. Add your LIDE 100 scanner to your GENESYS.CONF as follows:

Code: [Select]
# Canon LiDE 100
usb 0x04a9 0x1904

Wim.

Wim, your method has worked !!
This was the magic key.
I then thank you and the other poster who wanted to help me here (Ivan, Paul, Pete, Phil, Dave, David).