[sane-devel] compression used on Lexmark lx2480
Hello, there seems to be some acces rights problems. I get: You don't have permission to access /~aet/lx2480/203.jpg on this server. Regards, Stef
[sane-devel] hs2p finally working
Hi, I finally got my hs2p driver to do basic scanning: # scanimage -T -d hs2p:/dev/sg0 scanimage: scanning image of size 4672x6787 pixels at 1 bits/pixel scanimage: acquiring gray frame, 1 bits/sample scanimage: reading one scanline, 584 bytes... PASS scanimage: reading one byte... PASS scanimage: stepped read, 2 bytes... PASS scanimage: stepped read, 4 bytes... PASS scanimage: stepped read, 8 bytes... PASS scanimage: stepped read, 16 bytes...PASS scanimage: stepped read, 32 bytes...PASS scanimage: stepped read, 64 bytes...PASS scanimage: stepped read, 128 bytes... PASS scanimage: stepped read, 256 bytes... PASS scanimage: stepped read, 512 bytes... PASS scanimage: stepped read, 1024 bytes... PASS scanimage: stepped read, 1023 bytes... PASS scanimage: stepped read, 511 bytes... PASS scanimage: stepped read, 255 bytes... PASS scanimage: stepped read, 127 bytes... PASS scanimage: stepped read, 63 bytes...PASS scanimage: stepped read, 31 bytes...PASS scanimage: stepped read, 15 bytes...PASS scanimage: stepped read, 7 bytes... PASS scanimage: stepped read, 3 bytes... PASS There's a few more features I need to work on. scanimage seems to work OK with hs2p backend. I'm getting a segfault with xsane which I guess is probably due to an error in my sane_control_option() routine. Is there anyway to enable my DBG() macros so that xsane will print out where it's bombing?
[sane-devel] hs2p finally working
jazz_johnson at verizon.net wrote: Hi, I'm getting a segfault with xsane which I guess is probably due to an error in my sane_control_option() routine. Is there anyway to enable my DBG() macros so that xsane will print out where it's bombing? If you use the DBG() facility offered by SANE and it's enabled: $ SANE_DEBUG_backend=255 xsane JB. -- Julien BLACHE http://www.jblache.org jb at jblache.org GPG KeyID 0xF5D65169
[sane-devel] Problem with HP Scanjet 5300C USB
Hello, I have a problem with a HP Scanjet 5300C USB. sane-find-scanner finds the scanner, but scanimage -L does not. sane-find-scanner finds this scanner: found USB scanner (vendor=0x03f0, product=0x0701) at libusb:001:004 It's no rights-problem, because I do this as root. It's Debian Etch, what has libusb and udev and a 2.6.18 kernel. I have changed dll.conf so there is only a line with avision, and in avision.conf I have uncommented this line: usb 0x03f0 0x0701 What can I do to debug this problem? With regards, Paul van der Vlis. -- http://www.vandervlis.nl/
[sane-devel] Formulardaten
=== == Neuer Eintrag === --- -- Formular: 'adddev' --- 1. Your email address: 'gdp77 at vivodinet.gr' 2. Manufacturer (e.g. Mustek): 'Canon' 3. Model name (e.g. ScanExpress 1200UB): '4200F' 4. Bus type: 'USB' 5. Vendor id (e.g. 0x001): '1193 (0x4a9)' 6. Product id (e.g. 0x0002): '8731 (0x221b)' 7. Chipset (e.g. lm9831): 'unknown' 8. Comments (e.g. similar to Mustek 1234): '' 9. Data (e.g. sane-find-scanner -v -v): ' bSynchAddress 0 endpoint 1 bLength 7 bDescriptorType 5 bEndpointAddress 0x02 (out 0x02) bmAttributes 2 (bulk) wMaxPacketSize512 bInterval 0 ms bRefresh 0 bSynchAddress 0 endpoint 2 bLength 7 bDescriptorType 5 bEndpointAddress 0x83 (in 0x03) bmAttributes 3 (interrupt) wMaxPacketSize1 bInterval 8 ms bRefresh 0 bSynchAddress 0 trying to find out which USB chip is used 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 GT-8911 ... this is not a GT-8911 (check 1, bDeviceClass = 255, bInterfaceClass = 255) checking for MA-1017 ... this is not a MA-1017 (bDeviceClass = 255, bInterfaceClass = 255) checking for MA-1015 ... this is not a MA-1015 (bcdUSB = 0x200) checking for MA-1509 ... this is not a MA-1509 (bcdUSB = 0x200) checking for LM983[1,2,3] ... this is not a LM983x (bcdUSB = 0x200) checking for GL646 ... this is not a GL646 (bDeviceClass = 255, bInterfaceClass = 255) checking for GL646_HP ... this is not a GL646_HP (bcdUSB = 0x200) checking for GL660+GL646 ... this is not a GL660+GL646 (bDeviceClass = 255, bInterfaceClass = 255) checking for GL841 ... this is not a GL841 (writing register failed) checking for ICM532B ... this is not a ICM532B (check 2, bcdUSB = 0x200) checking for PV8630/LM9830 ... this is not a PV8630/LM9830 (bDeviceClass = 255) checking for M011 ... this is not a M011 (bcdUSB = 0x200) checking for RTS8822L-01H ... this is not a RTS8822L-01H (bDeviceClass = 255) checking for rts8858c ... this is not a rts8858c (bDeviceClass = 255) checking for SQ113 ... this is not a SQ113 (bDeviceClass = 255) checking for HP5550/5590/7650 chipset ... Couldn't read USB-in-USB confirmation (Broken pipe) Couldn't determine the type of the USB chip (result from sane-backends 1.0.18-cvs) found USB scanner (vendor=0x04a9 [Canon], product=0x221b [CanoScan]) at libusb:007:002 device descriptor of 0x/0x at 007:001 bLength 18 bDescriptorType 1 bcdUSB2.00 bDeviceClass 9 bDeviceSubClass 0 bDeviceProtocol 1 bMaxPacketSize0 64 idVendor 0x idProduct 0x bcdDevice 2.06 iManufacturer 3 ((null)) iProduct 2 ((null)) iSerialNumber 1 ((null)) bNumConfigurations1 configuration 0 bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 () bmAttributes 224 (Self-poweredRemote Wakeup) MaxPower 0 mA interface 0 altsetting 0 bLength9 bDescriptorType4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass9 bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 0 () endpoint 0 bLength 7 bDescriptorType 5 bEndpointAddress 0x81 (in 0x01) bmAttributes 3 (interrupt) wMaxPacketSize4 bInterval 12 ms bRefresh 0 bSynchAddress 0 device descriptor of 0x/0x at 004:001 bLength 18 bDescriptorType 1 bcdUSB1.10 bDeviceClass 9 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x idProduct 0x bcdDevice 2.06 iManufacturer 3 ((null)) iProduct 2 ((null)) iSerialNumber 1 ((null)) bNumConfigurations1 configuration 0 bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 () bmAttributes 224 (Self-poweredRemote Wakeup) MaxPower 0 mA interface 0 altsetting 0 bLength9 bDescriptorType4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass9 bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 0 () endpoint 0 bLength 7 bDescriptorType 5
[sane-devel] FI-4120C problem
Hello, i have a big problem with the Fujitsu fi-4120C and Ubuntu 7.06/7.10 . I am using the SCSI-Interface with the Tekram DC-390F. The Scanner is the only scsi device. The problem is, that the seems to be ok, but the frontend recived nothing. Saned crashed with the last message: [saned] process_request: waiting for data connection [saned] process_request: access to data port from :::192.168.2.11 [saned] do_scan: start [fujitsu] sane_set_io_mode [fujitsu] 1 0x8056fd0 [fujitsu] sane_get_select_fd [fujitsu] 0x8056fd0 -1 [saned] do_scan: trying to read 8188 bytes from scanner [fujitsu] sane_read: start [fujitsu] read_from_scanner: start [fujitsu] read_from_scanner: si:0 to:4204200 rx:0 re:4204200 bu:65536 pa:64974 [fujitsu] do_scsi_cmd: start [fujitsu] cmd: writing 10 bytes [fujitsu] cmd: [fujitsu] 000: 28 00 00 00 00 00 00 fd ce 00 [fujitsu] in: reading 64974 bytes An thats it. I played a little bit with the option buffer-size , but same result. Then i compiled the newest CVS Version. same thing Then i changed my scsi-card same error. I hope someone can help me... Stefan
[sane-devel] FI-4120C problem
I forgot the complete logfile: http://pastebin.ca/748949 Thanks Stefan Hello, i have a big problem with the Fujitsu fi-4120C and Ubuntu 7.06/7.10 . I am using the SCSI-Interface with the Tekram DC-390F. The Scanner is the only scsi device. The problem is, that the seems to be ok, but the frontend recived nothing. Saned crashed with the last message: [saned] process_request: waiting for data connection [saned] process_request: access to data port from :::192.168.2.11 [saned] do_scan: start [fujitsu] sane_set_io_mode [fujitsu] 1 0x8056fd0 [fujitsu] sane_get_select_fd [fujitsu] 0x8056fd0 -1 [saned] do_scan: trying to read 8188 bytes from scanner [fujitsu] sane_read: start [fujitsu] read_from_scanner: start [fujitsu] read_from_scanner: si:0 to:4204200 rx:0 re:4204200 bu:65536 pa:64974 [fujitsu] do_scsi_cmd: start [fujitsu] cmd: writing 10 bytes [fujitsu] cmd: [fujitsu] 000: 28 00 00 00 00 00 00 fd ce 00 [fujitsu] in: reading 64974 bytes An thats it. I played a little bit with the option buffer-size , but same result. Then i compiled the newest CVS Version. same thing Then i changed my scsi-card same error. I hope someone can help me... Stefan
[sane-devel] FI-4120C problem
does it work locally without saned? allan On 10/25/07, Stefan Below stefanbelow at gmx.de wrote: I forgot the complete logfile: http://pastebin.ca/748949 Thanks Stefan Hello, i have a big problem with the Fujitsu fi-4120C and Ubuntu 7.06/7.10 . I am using the SCSI-Interface with the Tekram DC-390F. The Scanner is the only scsi device. The problem is, that the seems to be ok, but the frontend recived nothing. Saned crashed with the last message: [saned] process_request: waiting for data connection [saned] process_request: access to data port from :::192.168.2.11 [saned] do_scan: start [fujitsu] sane_set_io_mode [fujitsu] 1 0x8056fd0 [fujitsu] sane_get_select_fd [fujitsu] 0x8056fd0 -1 [saned] do_scan: trying to read 8188 bytes from scanner [fujitsu] sane_read: start [fujitsu] read_from_scanner: start [fujitsu] read_from_scanner: si:0 to:4204200 rx:0 re:4204200 bu:65536 pa:64974 [fujitsu] do_scsi_cmd: start [fujitsu] cmd: writing 10 bytes [fujitsu] cmd: [fujitsu] 000: 28 00 00 00 00 00 00 fd ce 00 [fujitsu] in: reading 64974 bytes An thats it. I played a little bit with the option buffer-size , but same result. Then i compiled the newest CVS Version. same thing Then i changed my scsi-card same error. I hope someone can help me... Stefan -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- The truth is an offense, but not a sin
[sane-devel] scsi scan command
did this help? On 10/24/07, m. allan noah kitno455 at gmail.com wrote: On 10/24/07, jazz_johnson at verizon.net jazz_johnson at verizon.net wrote: Where, according to the MANUAL, the Transfer Length is the byte-length of the Window List transferred by the initiator in the DATA OUTPUT PHASE, and the Window List is a list of WIndow Identifiers created by the SET WINDOW command. Only one Window is supported with regard to Scan command. Therefore, 0 or 1 is used for Window Identifier, and 1 or 2 for Transfer Length. that statement actually contradicts itself. Then in my trigger_scan command, based on ibm.c, I have : typedef struct { SANE_Byte opcode; /* 0x1B */ SANE_Byte B1; /* LUN : reserved */ SANE_Byte pc;/* page code */ SANE_Byte B2; /* reserved */ SANE_Byte len/* transfer length */ SANE_Byte control; /* VU : reserved : Flag : Link */ }START_SCAN; trigger_scan (HS2P_Scanner *s) { static START_SCAN cmd; static SANE_Byte window_id_list[2] = { 0, 1} ; SANE_Status status; size_t wl_size = sizeof(window_id_list); memset (cmd, 0, sizeof (cmd));/* CLEAR cmd */ cmd.opcode = HS2P_SCSI_START_SCAN; /* 1BH */ cmd.len = (s-val[OPT_DUPLEX].w == SANE_TRUE)? 2 : 1 ; status = sanei_scsi_cmd (s-fd, cmd, sizeof (cmd), window_id_list[0], wl_size); /* I've also tried the following line, but also get ILLEGAL REQUEST status = sanei_scsi_cmd (s-fd, cmd, sizeof (cmd), NULL, NULL); */ return (status); } so you are telling it in the command that you are going to transfer 1 or 2 bytes, but you always transfer 2 (wl_size)? allan -- The truth is an offense, but not a sin -- The truth is an offense, but not a sin
[sane-devel] FI-4120C problem
Ok, now it works, but only with USB (quite slow, usb1.1 interface). So it has something to do with the scsi card Stefan does it work locally without saned? allan On 10/25/07, Stefan Below stefanbelow at gmx.de wrote: I forgot the complete logfile: http://pastebin.ca/748949 Thanks Stefan Hello, i have a big problem with the Fujitsu fi-4120C and Ubuntu 7.06/7.10 . I am using the SCSI-Interface with the Tekram DC-390F. The Scanner is the only scsi device. The problem is, that the seems to be ok, but the frontend recived nothing. Saned crashed with the last message: [saned] process_request: waiting for data connection [saned] process_request: access to data port from :::192.168.2.11 [saned] do_scan: start [fujitsu] sane_set_io_mode [fujitsu] 1 0x8056fd0 [fujitsu] sane_get_select_fd [fujitsu] 0x8056fd0 -1 [saned] do_scan: trying to read 8188 bytes from scanner [fujitsu] sane_read: start [fujitsu] read_from_scanner: start [fujitsu] read_from_scanner: si:0 to:4204200 rx:0 re:4204200 bu:65536 pa:64974 [fujitsu] do_scsi_cmd: start [fujitsu] cmd: writing 10 bytes [fujitsu] cmd: [fujitsu] 000: 28 00 00 00 00 00 00 fd ce 00 [fujitsu] in: reading 64974 bytes An thats it. I played a little bit with the option buffer-size , but same result. Then i compiled the newest CVS Version. same thing Then i changed my scsi-card same error. I hope someone can help me... Stefan -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org
[sane-devel] FI-4120C problem
so you are saying that scsi does not work, even without saned? what values did you try for the buffer size? allan On 10/25/07, Stefan Below stefanbelow at gmx.de wrote: Ok, now it works, but only with USB (quite slow, usb1.1 interface). So it has something to do with the scsi card Stefan does it work locally without saned? allan On 10/25/07, Stefan Below stefanbelow at gmx.de wrote: I forgot the complete logfile: http://pastebin.ca/748949 Thanks Stefan Hello, i have a big problem with the Fujitsu fi-4120C and Ubuntu 7.06/7.10 . I am using the SCSI-Interface with the Tekram DC-390F. The Scanner is the only scsi device. The problem is, that the seems to be ok, but the frontend recived nothing. Saned crashed with the last message: [saned] process_request: waiting for data connection [saned] process_request: access to data port from :::192.168.2.11 [saned] do_scan: start [fujitsu] sane_set_io_mode [fujitsu] 1 0x8056fd0 [fujitsu] sane_get_select_fd [fujitsu] 0x8056fd0 -1 [saned] do_scan: trying to read 8188 bytes from scanner [fujitsu] sane_read: start [fujitsu] read_from_scanner: start [fujitsu] read_from_scanner: si:0 to:4204200 rx:0 re:4204200 bu:65536 pa:64974 [fujitsu] do_scsi_cmd: start [fujitsu] cmd: writing 10 bytes [fujitsu] cmd: [fujitsu] 000: 28 00 00 00 00 00 00 fd ce 00 [fujitsu] in: reading 64974 bytes An thats it. I played a little bit with the option buffer-size , but same result. Then i compiled the newest CVS Version. same thing Then i changed my scsi-card same error. I hope someone can help me... Stefan -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- The truth is an offense, but not a sin
[sane-devel] sane-backends CVS snapshot dated 2007 Oct 24
Hello, right now I packaged sane-backends CVS snapshot dated 2007 Oct 24 and I have still two patches where I think they should be included upstream. For your information I attached the patches as gzipped files. 1) fix-buffer-overflow.patch has a fix for an array subscript is above array bounds error in niash.c, see https://bugzilla.novell.com/show_bug.cgi?id=246654 and a fix for an array subscript is above array bounds error in sanei_ab306.c, see https://bugzilla.novell.com/show_bug.cgi?id=239953 and fixes of possible strncat buffer overflows and strncpy unterminated string errors in as6e.c (no Suse bug for this) 2) fix-uninitialized-variables.patch fixes an uninitialized variable in teco2.c, see https://bugzilla.novell.com/show_bug.cgi?id=205451 The issues are detectde by checking the complier warnings and report things of interest. Even if the code may be actually o.k. the patches would at least help to let it look o.k. even for the compiler ;-) Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex -- next part -- A non-text attachment was scrubbed... Name: fix-buffer-overflow.patch.gz Type: application/x-gzip Size: 861 bytes Desc: fix-buffer-overflow.patch.gz Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20071025/0aae5c75/attachment.bin -- next part -- A non-text attachment was scrubbed... Name: fix-uninitialized-variables.patch.gz Type: application/x-gzip Size: 256 bytes Desc: fix-uninitialized-variables.patch.gz Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20071025/0aae5c75/attachment-0001.bin
[sane-devel] FI-4120C problem
ok, i just did a test without saned and scsis. it is not working. Last debugmessages from scanimage: http://pastebin.ca/749115 I tried the default buffersize, 131072, 262144... thanks Stefan so you are saying that scsi does not work, even without saned? what values did you try for the buffer size? allan On 10/25/07, Stefan Below stefanbelow at gmx.de wrote: Ok, now it works, but only with USB (quite slow, usb1.1 interface). So it has something to do with the scsi card Stefan does it work locally without saned? allan On 10/25/07, Stefan Below stefanbelow at gmx.de wrote: I forgot the complete logfile: http://pastebin.ca/748949 Thanks Stefan Hello, i have a big problem with the Fujitsu fi-4120C and Ubuntu 7.06/7.10 . I am using the SCSI-Interface with the Tekram DC-390F. The Scanner is the only scsi device. The problem is, that the seems to be ok, but the frontend recived nothing. Saned crashed with the last message: [saned] process_request: waiting for data connection [saned] process_request: access to data port from :::192.168.2.11 [saned] do_scan: start [fujitsu] sane_set_io_mode [fujitsu] 1 0x8056fd0 [fujitsu] sane_get_select_fd [fujitsu] 0x8056fd0 -1 [saned] do_scan: trying to read 8188 bytes from scanner [fujitsu] sane_read: start [fujitsu] read_from_scanner: start [fujitsu] read_from_scanner: si:0 to:4204200 rx:0 re:4204200 bu:65536 pa:64974 [fujitsu] do_scsi_cmd: start [fujitsu] cmd: writing 10 bytes [fujitsu] cmd: [fujitsu] 000: 28 00 00 00 00 00 00 fd ce 00 [fujitsu] in: reading 64974 bytes An thats it. I played a little bit with the option buffer-size , but same result. Then i compiled the newest CVS Version. same thing Then i changed my scsi-card same error. I hope someone can help me... Stefan -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org
[sane-devel] FI-4120C problem
lets try smaller buffer size, not bigger- 32K. allan On 10/25/07, Stefan Below stefanbelow at gmx.de wrote: ok, i just did a test without saned and scsis. it is not working. Last debugmessages from scanimage: http://pastebin.ca/749115 I tried the default buffersize, 131072, 262144... thanks Stefan so you are saying that scsi does not work, even without saned? what values did you try for the buffer size? allan On 10/25/07, Stefan Below stefanbelow at gmx.de wrote: Ok, now it works, but only with USB (quite slow, usb1.1 interface). So it has something to do with the scsi card Stefan does it work locally without saned? allan On 10/25/07, Stefan Below stefanbelow at gmx.de wrote: I forgot the complete logfile: http://pastebin.ca/748949 Thanks Stefan Hello, i have a big problem with the Fujitsu fi-4120C and Ubuntu 7.06/7.10 . I am using the SCSI-Interface with the Tekram DC-390F. The Scanner is the only scsi device. The problem is, that the seems to be ok, but the frontend recived nothing. Saned crashed with the last message: [saned] process_request: waiting for data connection [saned] process_request: access to data port from :::192.168.2.11 [saned] do_scan: start [fujitsu] sane_set_io_mode [fujitsu] 1 0x8056fd0 [fujitsu] sane_get_select_fd [fujitsu] 0x8056fd0 -1 [saned] do_scan: trying to read 8188 bytes from scanner [fujitsu] sane_read: start [fujitsu] read_from_scanner: start [fujitsu] read_from_scanner: si:0 to:4204200 rx:0 re:4204200 bu:65536 pa:64974 [fujitsu] do_scsi_cmd: start [fujitsu] cmd: writing 10 bytes [fujitsu] cmd: [fujitsu] 000: 28 00 00 00 00 00 00 fd ce 00 [fujitsu] in: reading 64974 bytes An thats it. I played a little bit with the option buffer-size , but same result. Then i compiled the newest CVS Version. same thing Then i changed my scsi-card same error. I hope someone can help me... Stefan -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- The truth is an offense, but not a sin
[sane-devel] sane-backends CVS snapshot dated 2007 Oct 24
Johannes Meixner jsmeix at suse.de wrote: Hi, 1) fix-buffer-overflow.patch has a fix for an array subscript is above array bounds error in niash.c, see https://bugzilla.novell.com/show_bug.cgi?id=246654 I think the fix isn't appropriate, though there is something fishy in the way the options are disabled by moving the optLast member of the enum around. Please get the niash maintainer to fix this one properly :) and a fix for an array subscript is above array bounds error in sanei_ab306.c, see https://bugzilla.novell.com/show_bug.cgi?id=239953 That one is correct and committed. and fixes of possible strncat buffer overflows and strncpy unterminated string errors in as6e.c (no Suse bug for this) Committed too. 2) fix-uninitialized-variables.patch fixes an uninitialized variable in teco2.c, see https://bugzilla.novell.com/show_bug.cgi?id=205451 That code looks fishy, size is used to initialize an element of cdb and then is initialized with another element of cdb. Setting it to 0 should be OK but I'll leave that up to someone more familiar with the backend. JB. -- Julien BLACHE http://www.jblache.org jb at jblache.org GPG KeyID 0xF5D65169
[sane-devel] FI-4120C problem
thasts strange with 32k buffer its still not working, but i goes a bit further on: ?0@@?@ @?@?A? @?@??@?@A@? ??8@? H @? ?@?? ??@@ 0@? @ D ?@ ? @$??? ?@? @ ?@?? ? ?@?@ ?? @ ?? @@@ ! ? @ $@??? @ @@?@?? @@ @ B @? @B C @ ??? @ ??? @ @??H@ ?@@@@ @@ B? D@?`?@ ? @?@???@??@?@ ??? ? @??@ ? ?8?? P ??@????? @ @ ??@ ????@@@@? ??@ @? [fujitsu] sane_read: start [fujitsu] read_from_scanner: start [fujitsu] read_from_scanner: si:0 to:4204200 rx:194922 re:4009278 bu:32768 pa:32487 [fujitsu] do_scsi_cmd: start [fujitsu] do_scsi_cmd: finish [fujitsu] read_from_scanner: got GOOD, returning GOOD [fujitsu] copy_buffer: start [fujitsu] copy_buffer: finish [fujitsu] read_from_scanner: finish [fujitsu] read_from_buffer: start [fujitsu] read_from_buffer: si:0 to:4204200 tx:194922 re:32487 bu:32768 pa:32487 [fujitsu] read_from_buffer: finish [fujitsu] sane_read: finish ?? @@@? @@? ? 0?@?@? @?B?@`@ @?@??@?`@?@ ??P???F@@D!@@? @ ?@?? @ ??@ !@@H@@@@A ??? @ b ? ?p @ @ ?@ @? ? ?@?@@??@ @? 0? @?? ?? A@ @ ? @? @ @??? ?@??? @?? @@ ???D ??@ @@@??@?@ @@0 ??@@@?@ ??? ?@B@ @@ ?? @@?@@? @ ?@$T @ ? $?(?? ???@ @ ?@@ @? ? ? ?@?@@ @@@ ? ?@ ??? ?@ @ ?@ @ @ ?D ? ?( ??@ @? 0 PB ?@ @!@? ? ?? ?@ ?!P ?? ?@? ?@@???@@@ ?? b @ ? @ ? @? @@??? ? @@?@?P?? `? @ @!@?@ ?? ?@@? @@@@?@@@ @@@??? ??@?@@ @??? @?@@@?@@?$`!@?@[fujitsu] sane_read: start [fujitsu] read_from_scanner: start [fujitsu] read_from_scanner: si:0 to:4204200 rx:227409 re:3976791 bu:32768 pa:32487 [fujitsu] do_scsi_cmd: start lets try smaller buffer size, not bigger- 32K. allan On 10/25/07, Stefan Below stefanbelow at gmx.de wrote: ok, i just did a test without saned and scsis. it is not working. Last debugmessages from scanimage: http://pastebin.ca/749115 I tried the default buffersize, 131072, 262144... thanks Stefan so you are saying that scsi does not work, even without saned? what values did you try for the buffer size? allan On 10/25/07, Stefan Below stefanbelow at gmx.de wrote: Ok, now it works, but only with USB (quite slow, usb1.1 interface). So it has something to do with the scsi card Stefan does it work locally without saned? allan On 10/25/07, Stefan Below stefanbelow at gmx.de wrote: I forgot the complete logfile: http://pastebin.ca/748949 Thanks Stefan Hello, i have a big problem with the Fujitsu fi-4120C and Ubuntu 7.06/7.10 . I am using the SCSI-Interface with the Tekram DC-390F. The Scanner is the only scsi device. The problem is, that the seems to be ok, but the frontend recived nothing. Saned crashed with the last message: [saned] process_request: waiting for data connection [saned] process_request: access to data port from :::192.168.2.11 [saned] do_scan: start [fujitsu] sane_set_io_mode [fujitsu] 1 0x8056fd0 [fujitsu] sane_get_select_fd [fujitsu] 0x8056fd0 -1 [saned] do_scan: trying to read 8188 bytes from scanner [fujitsu] sane_read: start [fujitsu] read_from_scanner: start [fujitsu] read_from_scanner: si:0 to:4204200 rx:0 re:4204200 bu:65536 pa:64974 [fujitsu] do_scsi_cmd: start [fujitsu] cmd: writing 10 bytes [fujitsu] cmd: [fujitsu] 000: 28 00 00 00 00 00 00 fd ce 00 [fujitsu] in: reading 64974 bytes An thats it. I played a little bit with the option buffer-size , but same result. Then i compiled the newest CVS Version. same thing Then i changed my scsi-card same error. I hope someone can help me... Stefan -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- sane-devel mailing list: sane-devel at lists.alioth.debian.org
[sane-devel] Formulardaten
=== == Neuer Eintrag === --- -- Formular: 'adddev' --- 1. Your email address: 'lmalinofsky at gmail.com' 2. Manufacturer (e.g. Mustek): 'Visioneer' 3. Model name (e.g. ScanExpress 1200UB): 'Strobe Pro' 4. Bus type: 'USB' 5. Vendor id (e.g. 0x001): '' 6. Product id (e.g. 0x0002): '' 7. Chipset (e.g. lm9831): '' 8. Comments (e.g. similar to Mustek 1234): 'Early entrant in Visioneer sheet-fed scanners line. The Strobe Pro preceded the Strobe XP. Then came the Strobe XP 100, the XP 200, and the XP 300. The latter three are current models. The Strobe Pro is a legacy scanner which it is believed was intended for versions of Windows prior to Windows XP. Probably the SANE project will not want to support it but the output below may be useful to understanding the current models. Leon Malinofsky' 9. Data (e.g. sane-find-scanner -v -v): 'FreeBSD# sane-find-scanner -v -v This is sane-find-scanner from sane-backends 1.0.18 # 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. searching for SCSI scanners: checking /dev/scanner... failed to open (Invalid argument) checking /dev/scanner0... failed to open (Invalid argument) checking /dev/scanner1... failed to open (Invalid argument) checking /dev/pass0... failed to open (Invalid argument) checking /dev/pass1... failed to open (Invalid argument) checking /dev/pass2... failed to open (Invalid argument) checking /dev/pass3... failed to open (Invalid argument) checking /dev/pass4... failed to open (Invalid argument) checking /dev/pass5... failed to open (Invalid argument) checking /dev/pass6... failed to open (Invalid argument) checking /dev/pass7... failed to open (Invalid argument) # No SCSI scanners found. If you expected something different, make sure that # you have loaded a kernel SCSI driver for your SCSI adapter. searching for USB scanners: checking /dev/uscanner... failed to open (Invalid argument) checking /dev/uscanner0... failed to open (Invalid argument) checking /dev/uscanner1... failed to open (Invalid argument) checking /dev/uscanner2... failed to open (Invalid argument) checking /dev/uscanner3... failed to open (Invalid argument) checking /dev/uscanner4... failed to open (Invalid argument) checking /dev/uscanner5... failed to open (Invalid argument) checking /dev/uscanner6... failed to open (Invalid argument) checking /dev/uscanner7... failed to open (Invalid argument) checking /dev/uscanner8... failed to open (Invalid argument) checking /dev/uscanner9... failed to open (Invalid argument) checking /dev/uscanner10... failed to open (Invalid argument) checking /dev/uscanner11... failed to open (Invalid argument) checking /dev/uscanner12... failed to open (Invalid argument) checking /dev/uscanner13... failed to open (Invalid argument) checking /dev/uscanner14... failed to open (Invalid argument) checking /dev/uscanner15... failed to open (Invalid argument) trying libusb: device descriptor of 0x04a7/0x0102 at /dev/usb3:/dev/ugen0 (Visioneer, Inc. Str obe Pro USB Scanner) bLength 18 bDescriptorType 1 bcdUSB1.00 bDeviceClass 255 bDeviceSubClass 3 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x04A7 idProduct 0x0102 bcdDevice 1.03 iManufacturer 1 (Visioneer, Inc.) iProduct 2 (Strobe Pro USB Scanner) iSerialNumber 3 (1 ) bNumConfigurations1 configuration 0 bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 () bmAttributes 64 (Self-powered) MaxPower 2 mA interface 0 altsetting 0 bLength9 bDescriptorType4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass0 bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 0 () endpoint 0 bLength 7 bDescriptorType 5 bEndpointAddress 0x01 (out 0x01) bmAttributes 2 (bulk) wMaxPacketSize64 bInterval 0 ms bRefresh 0 bSynchAddress 0 endpoint 1 bLength 7 bDescriptorType 5 bEndpointAddress 0x82 (in 0x02) bmAttributes 2 (bulk) wMaxPacketSize64 bInterval 0 ms bRefresh 0 bSynchAddress 0 trying to find out which USB chip is used checking for GT-6801 ... this is not a GT-6801 (bcdUSB = 0x100) checking for GT-6816 ... this is not a GT-6816 (bDeviceClass = 255, bInterfaceClass = 0) checking for GT-8911 ... this is not a GT-8911 (check 1, bDeviceClass = 255,
[sane-devel] FI-4120C problem
please dont post binary garbage to the list- drop the image into a file. Is the scsi card's internal port properly terminated (probably in its bios)? it will be slow, but try a smaller buffer... allan
[sane-devel] scsi scan command
On Thursday 25 October 2007, m. allan noah wrote: did this help? THANKS alot, yes it did! On 10/24/07, m. allan noah kitno455 at gmail.com wrote: On 10/24/07, jazz_johnson at verizon.net jazz_johnson at verizon.net wrote: Where, according to the MANUAL, the Transfer Length is the byte-length of the Window List transferred by the initiator in the DATA OUTPUT PHASE, and the Window List is a list of WIndow Identifiers created by the SET WINDOW command. Only one Window is supported with regard to Scan command. Therefore, 0 or 1 is used for Window Identifier, and 1 or 2 for Transfer Length.
[sane-devel] sane-backends CVS snapshot dated 2007 Oct 24
On Thu, 2007-10-25 at 15:30 +0200, Julien BLACHE wrote: Johannes Meixner jsmeix at suse.de wrote: Hi, 2) fix-uninitialized-variables.patch fixes an uninitialized variable in teco2.c, see https://bugzilla.novell.com/show_bug.cgi?id=205451 That code looks fishy, size is used to initialize an element of cdb and then is initialized with another element of cdb. Setting it to 0 should be OK but I'll leave that up to someone more familiar with the backend. JB. -- Julien BLACHE http://www.jblache.org jb at jblache.org GPG KeyID 0xF5D65169 Still on my list for to do, i have some test done but not completed yet -- m.vr.gr. Gerard Klaver
[sane-devel] scsi scan command
if the ricoh manual is anything like the fujitsu manuals, you'd better have a copy of the scsi2 spec on hand as well. actual english was used in the production of the spec :) allan On 10/25/07, jazz_johnson at verizon.net jazz_johnson at verizon.net wrote: On Thursday 25 October 2007, m. allan noah wrote: did this help? THANKS alot, yes it did! On 10/24/07, m. allan noah kitno455 at gmail.com wrote: On 10/24/07, jazz_johnson at verizon.net jazz_johnson at verizon.net wrote: Where, according to the MANUAL, the Transfer Length is the byte-length of the Window List transferred by the initiator in the DATA OUTPUT PHASE, and the Window List is a list of WIndow Identifiers created by the SET WINDOW command. Only one Window is supported with regard to Scan command. Therefore, 0 or 1 is used for Window Identifier, and 1 or 2 for Transfer Length. From the RICOH description I wasn't sure whethor I was supposed to receive the list of available Window ID from the scanner or send the Window ID list to the scanner. The latter was the correct meaning, .i.e., the Initiator is the backend, and the DATA OUTPUT PHASE is writing data to the scanner. So I made the following modification to trigger_scan() and then it finally worked: /* 1-3-8 SCAN command is used to instruct scanner to start scanning */ static SANE_Status trigger_scan (HS2P_Scanner *s) { static struct { START_SCAN cmd; SANE_Byte wid[2]; /* scanner supports up to 2 windows */ } scan; SANE_Status status; memset (scan, 0, sizeof (scan)); /* CLEAR scan */ scan.cmd.opcode = HS2P_SCSI_START_SCAN; scan.cmd.len = (s-val[OPT_DUPLEX].w == SANE_TRUE)? 2 : 1 ; status = sanei_scsi_cmd (s-fd, scan, sizeof(scan.cmd)+scan.cmd.len, NULL, NULL); return (status); } I finally scanned my first Ledger-sized pdf with scanimage. Now I just need to hunt down some string pointer bugs in sane_control_option() so that xsane handles options properly. The segfault I was getting was due to s-val[ENDORSER_STRING].s not being initialized to an endorser_string[20] defined in typdef struct HS2P_Info. So the segfault is fixed now. But I've still got some more string problems in sane_control_option() to fix, e.g. my s-val[OPT_DITHER].s list is displaying not only my dither patterns, but also strings from my other string lists. Is an empty string in an array of strings the same as a NULL? ie. is SANE_String_Const dither_list[]={ pat1, pat2, } /*(pointer to '\0')*/ the same as SANE_String_Const dither_list[]={ pat1, pat2, 0 } /*(pointer = 0)*/ -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- The truth is an offense, but not a sin
[sane-devel] sane entry brother DCP 150C
Hello, I added the following line to get my scanner functional #brother DCP 150C SYSFS{idVendor}==04f9,MODE=666,GROUP=scanner __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- next part -- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20071025/5d140036/attachment.htm
[sane-devel] Helping with the developement of a driver for the benq 5560 flatbed scanner
Hi, I am using Linux since summer and I can already say I am comfortable with it but unluckly my new benq 5560 scanner won't work with sane :( I tried sniffing some data it sends in windows but the file seams to get extremely large. This is dumped when opening mirascan and scanning for the preview and then scanning at 600 DPI BW. I would like to help in developing a driver, since changing this scanner with an older one that already works with sane would probably help me, but not the community. here's the output: http://www.matei.upcnet.ro/scanner Since files are getting large I would gladly use some webspace if anyone could help. thanks! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[sane-devel] I compressed the file
Damn good idea, where the hell were I thinking at? So, the new link: http://www.matei.upcnet.ro/scanner.zip Ok, I must admit it's th first time I'm working with mailing lists.. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[sane-devel] I compressed the file
well, these logs seem to have been generated by something other than benoit's usb sniffer (which is all my programs understand), but i did get some info out. primarily, that the machine seems to be vaguely SCSI based. i see scsi opcodes at the head of every short write, and a corresponding read or write for those opcodes that need it. there seems to be a wrapper packet after every transfer, starting with either fb or f9. looks like a machine that could be made to work, if there was a motivated programmer :) allan On 10/25/07, matei kolt dur_matei at yahoo.com wrote: Damn good idea, where the hell were I thinking at? So, the new link: http://www.matei.upcnet.ro/scanner.zip Ok, I must admit it's th first time I'm working with mailing lists.. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- The truth is an offense, but not a sin