[sane-devel] [sane-genesys] Support for Plustek Smartscan PL1500 - chip GL843

Quentin quent57 at yahoo.fr
Sun Apr 16 07:52:52 UTC 2017


Hi, 
This scanner didn't appeared on http://www.sane-project.org/sane-mfgs.html since my last mail, do I have something else to do ?
I have seen that in genesys_devices.c, there is some model specific properties, so I think that I had no chance to get it work with the ubuntu tutorial (edition of /etc/sane.d/dll.conf and /etc/sane.d/genesys.conf).
I have seen in mailing list archive that Plustek offered some helps to develop sane backends, but no news since then.   [1] http://lists.alioth.debian.org/pipermail/sane-devel/2016-November/034854.html   [2] http://lists.alioth.debian.org/pipermail/sane-devel/2016-November/034872.html
Does the genesys sane back-end development is stopped until some news from Plustek ?In the thread, Gerhard Jäger said that 
in the good old days I did a similar thing for the Plustek backend.
In fact I had an NDA and the allowance to use their code - in fact
Windoze driver code. http://lists.alioth.debian.org/pipermail/sane-devel/2016-November/034865.html


Do I have any chance to achieve to find the good values for genesys_devices.c ? Is it sufficient for enabling support for this scanner ?
I have some programming skills, but mainly in java, however, C doesn't afraid me too much. Linux shell is ok.
Where do I have to start ?
 - Decompilation ? I have done some decompilation in java, but never in C, what (affordable) software can I use ? (IDA is a bit expensive). - USB sniffing ? Same question, what software do you advise ? - Other ?
Thank'sQuentin B. 

    Le Dimanche 2 avril 2017 17h49, Quentin B. <quent57 at yahoo.fr> a écrit :
 

 Hi,

I have a Plustek SmartOffice PL1500 ADF scanner, do not work out of the 
box, I would like to help to get it supported.
http://plustek.com/uk/products/workgroup-scanners/smartoffice-pl1500/

It's not referenced here : http://www.sane-project.org/sane-mfgs.html so 
I asked for an addition here : http://www.meier-geinitz.de/tinc
It doesn't have either closed source drivers for Linux, drivers are 
available from Windows XP to 10 and are "Twain compatible".

Some infos :
$ sudo sane-find-scanner
found USB scanner (vendor=0x07b3 [PLUSTEK INC], product=0x0c1f [USB2.0 
SCANNER], chip=GL843) at libusb:001:010

I use Ubuntu 16.10 with sane-backends Version: 1.0.25+git20150528-1ubuntu2

sane-genesys man page say that GL843 is supported ( 
http://manpages.ubuntu.com/manpages/yakkety/man5/sane-genesys.5.html )
So I tried to add support for it by following those basics steps : 
https://help.ubuntu.com/community/SANE%20-%20Installing%20a%20scanner%20that%20isn%27t%20auto-detected 

That doesn't helped.


This command may give interesting infos :

$ SANE_DEBUG_GENESYS=255 scanimage -L
[genesys] attach: vendor 1971 product 3103 is not supported by this backend
1971 and 3103 are decimal values of vendor and product ids .

Could anyone help me ?
Thanks
Quentin B.



PS : Full output : of scanimage -L :

$ SANE_DEBUG_GENESYS=255 scanimage -L
[sanei_debug] Setting debug level of genesys to 255.
[genesys] SANE Genesys backend version 1.0 build 2506 from sane-backends 
1.0.25git
[genesys] SANE Genesys backend built with libusb-1.0
[genesys] sane_init: authorize != null
[genesys] sane_init: little endian machine
[genesys] probe_genesys_devices start
[genesys] attach: start: devp != NULL, may_wait = 0
[genesys] attach: trying to open device `libusb:001:006'
[genesys] attach: device `libusb:001:006' successfully opened
[genesys] attach: vendor 1971 product 3103 is not supported by this backend
[genesys] attach_one_device: Invalid argument
[genesys] probe_genesys_devices: 0 devices currently attached
[genesys] probe_genesys_devices completed
[genesys] sane_genesys_init completed
[genesys] sane_get_devices: start: local_only = false
[genesys] probe_genesys_devices start
[genesys] attach: start: devp != NULL, may_wait = 0
[genesys] attach: trying to open device `libusb:001:006'
[genesys] attach: couldn't open device `libusb:001:006': Invalid argument
[genesys] attach_one_device: Invalid argument
[genesys] probe_genesys_devices: 0 devices currently attached
[genesys] probe_genesys_devices completed
[genesys] sane_genesys_get_devices completed

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[genesys] sane_genesys_exit start
[genesys] sane_genesys_exit completed






PS2 : Almost full output of sane-find-scanner -v -v :

$sudo sane-find-scanner -v -v
This is sane-find-scanner from sane-backends 1.0.25git

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

<device descriptor of 0x07b3/0x0c1f at 001:006 (PLUSTEK INC USB2.0 SCANNER)>
bLength              18
bDescriptorType      1
bcdUSB                2.00
bDeviceClass          255
bDeviceSubClass      255
bDeviceProtocol      255
bMaxPacketSize0      64
idVendor              0x07B3
idProduct            0x0C1F
bcdDevice            5.00
iManufacturer        10 (PLUSTEK INC)
iProduct              11 (USB2.0 SCANNER)
iSerialNumber        12 (1)
bNumConfigurations    1
  <configuration 0>
  bLength              9
  bDescriptorType      2
  wTotalLength        39
  bNumInterfaces      1
  bConfigurationValue  1
  iConfiguration      0 ()
  bmAttributes        192 (Self-powered)
  MaxPower            10 mA
  <interface 0>
    <altsetting 0>
    bLength            9
    bDescriptorType    4
    bInterfaceNumber  0
    bAlternateSetting  0
    bNumEndpoints      3
    bInterfaceClass    255
    bInterfaceSubClass 255
    bInterfaceProtocol 255
    iInterface        0 ()
    <endpoint 0>
    bLength          7
    bDescriptorType  5
    bEndpointAddress  0x81 (in 0x01)
    bmAttributes      2 (bulk)
    wMaxPacketSize    512
    bInterval        0 ms
    bRefresh          0
    bSynchAddress    0
    <endpoint 1>
    bLength          7
    bDescriptorType  5
    bEndpointAddress  0x02 (out 0x02)
    bmAttributes      2 (bulk)
    wMaxPacketSize    512
    bInterval        0 ms
    bRefresh          0
    bSynchAddress    0
    <endpoint 2>
    bLength          7
    bDescriptorType  5
    bEndpointAddress  0x83 (in 0x03)
    bmAttributes      3 (interrupt)
    wMaxPacketSize    1
    bInterval        8 ms
    bRefresh          0
    bSynchAddress    0

<trying to find out which USB chip is used>
    checking for LM983[1,2,3] ...
    this is not a LM983x (bcdUSB = 0x200)
    checking for GT-6801 ...
    this is not a GT-6801 (bcdUSB = 0x200)
    checking for GT-6816 ...
    this is not a GT-6816 (bDeviceClass = 255, bInterfaceClass = 255)
    checking for GLxxx ...
    this is not a GL646 (bDeviceClass = 255, bInterfaceClass = 255)
<This USB chip looks like a GL843 (result from sane-backends 1.0.25git)>

found USB scanner (vendor=0x07b3 [PLUSTEK INC], product=0x0c1f [USB2.0 
SCANNER], chip=GL843) at libusb:001:006

  # Your USB scanner was (probably) detected. It may or may not be 
supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.
done


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20170416/a48f1864/attachment-0001.html>


More information about the sane-devel mailing list