[sane-devel] RS232 Scanner

2008-07-30 Thread Dan Scott
Hi,

I'm working on getting a RS232 scanner working on Linux. I see that
Sane has some support for serial port scanners but not much. The
scanner is attached to a POS system for retail sales and runs RHEL5.

Unfortunately, I have no documentation for the scanner, I'm not even
sure of the brand. There's a logo on the front which is 'G' followed
by a globe symbol, followed by 'T' so it could be 'GOT' or 'GT'. There
does not appear to be a model number although there is an
identification place which is written in Chinese.

I have a compiled diagnostic application (no source code) which can
control the scanner and I have tried logging the system calls using
the 'ltrace' command, so that I can figure out the protocol. I have
tried writing a program to mimic the diagnostic application which
sends the same commands to the serial port but the scanner does not
respond.

Does anyone have any expertise in RS232 scanner protocols? All my
searching on the web reveals results for barcode scanners which appear
to work very differently from image scanners.

As a final note, I am trying to use the scanner for OMR - the
diagnostic application returns an array of data relating to the marks
entered on a slip of paper - if that is any use. Also, I can attach
the log file of system calls made by the diagnostic application if
that will help anyone.

Any help would be greatly appreciated.

Thanks,

Dan Scott



[sane-devel] RS232 Scanner

2008-07-30 Thread m. allan noah
i have quite a bit of omr experience, and have done a bit with rs232
in the past, but never scanners. do your logs show the actual data
being passed? if so, i think your first effort should be to extract
image from logs.

allan

On 7/30/08, Dan Scott danieljamesscott at gmail.com wrote:
 Hi,

  I'm working on getting a RS232 scanner working on Linux. I see that
  Sane has some support for serial port scanners but not much. The
  scanner is attached to a POS system for retail sales and runs RHEL5.

  Unfortunately, I have no documentation for the scanner, I'm not even
  sure of the brand. There's a logo on the front which is 'G' followed
  by a globe symbol, followed by 'T' so it could be 'GOT' or 'GT'. There
  does not appear to be a model number although there is an
  identification place which is written in Chinese.

  I have a compiled diagnostic application (no source code) which can
  control the scanner and I have tried logging the system calls using
  the 'ltrace' command, so that I can figure out the protocol. I have
  tried writing a program to mimic the diagnostic application which
  sends the same commands to the serial port but the scanner does not
  respond.

  Does anyone have any expertise in RS232 scanner protocols? All my
  searching on the web reveals results for barcode scanners which appear
  to work very differently from image scanners.

  As a final note, I am trying to use the scanner for OMR - the
  diagnostic application returns an array of data relating to the marks
  entered on a slip of paper - if that is any use. Also, I can attach
  the log file of system calls made by the diagnostic application if
  that will help anyone.

  Any help would be greatly appreciated.

  Thanks,

  Dan Scott


  --
  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] RS232 Scanner

2008-07-30 Thread Dan Scott
Hi,

I think it's a bit simpler than that. The diagnostic software shows an
array showing the marked boxes. Here's what I get form the
diagnostic software when I scan a slip:

Please select:
Ticket count: 1
ticket data len=52
.. 1 2 3 4 5 6 7 8 9 0 A B C D .. 1 2 3 4 5 6 7 8 9 0 A B C D
 1 * * * . . . . . * . * * . 21 . . . . . . . . . . . . .
 2 . . . . . . . . . . . . . 22 . . . . . . . . . . . . .
 3 . * . . . . . . . . . . . 23 . . . . . . . . . . . . .
 4 . . . . . . . . . . . . . 24 . . . . . . . . . . . . .
 5 . . . . . . . . . . . . . 25 . . . . . . . . . . . . .
 6 . . . . . . . . . . . . . 26 . . . . . . . . . . . . .
 7 . . . . . . . . . . . . .
 8 . . . . . . . . . . . . .
 9 . . . . . . . . . . . . .
10 . . . . . . . . . . . . .
11 . . . . . . . . . . . . .
12 . . . . . . . . . . . . .
13 . . . . . . . . . . . . .
14 . . . . . . . . . . . . .
15 . . . . . . . . . . . . .
16 . . . . . . . . . . . . .
17 . . . . . . . . . . . . .
18 . . . . . . . . . . . . .
19 . . . . . . . . . . . . .
20 . . . . . . . . . . . . .

So I only have to worry about getting this data - not downloading an
image and then extracting the mark information.

Thanks,

Dan

2008/7/30 m. allan noah kitno455 at gmail.com:
 i have quite a bit of omr experience, and have done a bit with rs232
 in the past, but never scanners. do your logs show the actual data
 being passed? if so, i think your first effort should be to extract
 image from logs.

 allan

 On 7/30/08, Dan Scott danieljamesscott at gmail.com wrote:
 Hi,

  I'm working on getting a RS232 scanner working on Linux. I see that
  Sane has some support for serial port scanners but not much. The
  scanner is attached to a POS system for retail sales and runs RHEL5.

  Unfortunately, I have no documentation for the scanner, I'm not even
  sure of the brand. There's a logo on the front which is 'G' followed
  by a globe symbol, followed by 'T' so it could be 'GOT' or 'GT'. There
  does not appear to be a model number although there is an
  identification place which is written in Chinese.

  I have a compiled diagnostic application (no source code) which can
  control the scanner and I have tried logging the system calls using
  the 'ltrace' command, so that I can figure out the protocol. I have
  tried writing a program to mimic the diagnostic application which
  sends the same commands to the serial port but the scanner does not
  respond.

  Does anyone have any expertise in RS232 scanner protocols? All my
  searching on the web reveals results for barcode scanners which appear
  to work very differently from image scanners.

  As a final note, I am trying to use the scanner for OMR - the
  diagnostic application returns an array of data relating to the marks
  entered on a slip of paper - if that is any use. Also, I can attach
  the log file of system calls made by the diagnostic application if
  that will help anyone.

  Any help would be greatly appreciated.

  Thanks,

  Dan Scott


  --
  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] RS232 Scanner

2008-07-30 Thread m. allan noah
but is this diag software output post-processed by the pc? if you have
logs of the data in flight, and there is no image, then you dont need
sane, you need a standalone app.

allan

On 7/30/08, Dan Scott danieljamesscott at gmail.com wrote:
 Hi,

  I think it's a bit simpler than that. The diagnostic software shows an
  array showing the marked boxes. Here's what I get form the
  diagnostic software when I scan a slip:

  Please select:
  Ticket count: 1
  ticket data len=52
  .. 1 2 3 4 5 6 7 8 9 0 A B C D .. 1 2 3 4 5 6 7 8 9 0 A B C D
   1 * * * . . . . . * . * * . 21 . . . . . . . . . . . . .
   2 . . . . . . . . . . . . . 22 . . . . . . . . . . . . .
   3 . * . . . . . . . . . . . 23 . . . . . . . . . . . . .
   4 . . . . . . . . . . . . . 24 . . . . . . . . . . . . .
   5 . . . . . . . . . . . . . 25 . . . . . . . . . . . . .
   6 . . . . . . . . . . . . . 26 . . . . . . . . . . . . .
   7 . . . . . . . . . . . . .
   8 . . . . . . . . . . . . .
   9 . . . . . . . . . . . . .
  10 . . . . . . . . . . . . .
  11 . . . . . . . . . . . . .
  12 . . . . . . . . . . . . .
  13 . . . . . . . . . . . . .
  14 . . . . . . . . . . . . .
  15 . . . . . . . . . . . . .
  16 . . . . . . . . . . . . .
  17 . . . . . . . . . . . . .
  18 . . . . . . . . . . . . .
  19 . . . . . . . . . . . . .
  20 . . . . . . . . . . . . .

  So I only have to worry about getting this data - not downloading an
  image and then extracting the mark information.

  Thanks,

  Dan

  2008/7/30 m. allan noah kitno455 at gmail.com:

  i have quite a bit of omr experience, and have done a bit with rs232
   in the past, but never scanners. do your logs show the actual data
   being passed? if so, i think your first effort should be to extract
   image from logs.
  
   allan
  
   On 7/30/08, Dan Scott danieljamesscott at gmail.com wrote:
   Hi,
  
I'm working on getting a RS232 scanner working on Linux. I see that
Sane has some support for serial port scanners but not much. The
scanner is attached to a POS system for retail sales and runs RHEL5.
  
Unfortunately, I have no documentation for the scanner, I'm not even
sure of the brand. There's a logo on the front which is 'G' followed
by a globe symbol, followed by 'T' so it could be 'GOT' or 'GT'. There
does not appear to be a model number although there is an
identification place which is written in Chinese.
  
I have a compiled diagnostic application (no source code) which can
control the scanner and I have tried logging the system calls using
the 'ltrace' command, so that I can figure out the protocol. I have
tried writing a program to mimic the diagnostic application which
sends the same commands to the serial port but the scanner does not
respond.
  
Does anyone have any expertise in RS232 scanner protocols? All my
searching on the web reveals results for barcode scanners which appear
to work very differently from image scanners.
  
As a final note, I am trying to use the scanner for OMR - the
diagnostic application returns an array of data relating to the marks
entered on a slip of paper - if that is any use. Also, I can attach
the log file of system calls made by the diagnostic application if
that will help anyone.
  
Any help would be greatly appreciated.
  
Thanks,
  
Dan Scott
  
  
--
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
  



-- 
The truth is an offense, but not a sin



[sane-devel] RS232 Scanner

2008-07-30 Thread Dan Scott
Hi,

Thanks for your comments.

I don't think that there is an image - the log file for the ltrace
output is only ~40kb. I think that the scanner is returning the array
and there is no post-processing by the diagnostic application.

The scanner is also capable of returning an image of the scanned file.
So I was hoping that I would be able to use sane to communicate with
the scanner and work out what is happening. I was thinking that I
would eventually need a standalone app - but I could use Sane for the
image part of the scanning. Maybe even use/develop a backend for this
scanner?

Thanks,

Dan

2008/7/30 m. allan noah kitno455 at gmail.com:
 but is this diag software output post-processed by the pc? if you have
 logs of the data in flight, and there is no image, then you dont need
 sane, you need a standalone app.

 allan

 On 7/30/08, Dan Scott danieljamesscott at gmail.com wrote:
 Hi,

  I think it's a bit simpler than that. The diagnostic software shows an
  array showing the marked boxes. Here's what I get form the
  diagnostic software when I scan a slip:

  Please select:
  Ticket count: 1
  ticket data len=52
  .. 1 2 3 4 5 6 7 8 9 0 A B C D .. 1 2 3 4 5 6 7 8 9 0 A B C D
   1 * * * . . . . . * . * * . 21 . . . . . . . . . . . . .
   2 . . . . . . . . . . . . . 22 . . . . . . . . . . . . .
   3 . * . . . . . . . . . . . 23 . . . . . . . . . . . . .
   4 . . . . . . . . . . . . . 24 . . . . . . . . . . . . .
   5 . . . . . . . . . . . . . 25 . . . . . . . . . . . . .
   6 . . . . . . . . . . . . . 26 . . . . . . . . . . . . .
   7 . . . . . . . . . . . . .
   8 . . . . . . . . . . . . .
   9 . . . . . . . . . . . . .
  10 . . . . . . . . . . . . .
  11 . . . . . . . . . . . . .
  12 . . . . . . . . . . . . .
  13 . . . . . . . . . . . . .
  14 . . . . . . . . . . . . .
  15 . . . . . . . . . . . . .
  16 . . . . . . . . . . . . .
  17 . . . . . . . . . . . . .
  18 . . . . . . . . . . . . .
  19 . . . . . . . . . . . . .
  20 . . . . . . . . . . . . .

  So I only have to worry about getting this data - not downloading an
  image and then extracting the mark information.

  Thanks,

  Dan

  2008/7/30 m. allan noah kitno455 at gmail.com:

  i have quite a bit of omr experience, and have done a bit with rs232
   in the past, but never scanners. do your logs show the actual data
   being passed? if so, i think your first effort should be to extract
   image from logs.
  
   allan
  
   On 7/30/08, Dan Scott danieljamesscott at gmail.com wrote:
   Hi,
  
I'm working on getting a RS232 scanner working on Linux. I see that
Sane has some support for serial port scanners but not much. The
scanner is attached to a POS system for retail sales and runs RHEL5.
  
Unfortunately, I have no documentation for the scanner, I'm not even
sure of the brand. There's a logo on the front which is 'G' followed
by a globe symbol, followed by 'T' so it could be 'GOT' or 'GT'. There
does not appear to be a model number although there is an
identification place which is written in Chinese.
  
I have a compiled diagnostic application (no source code) which can
control the scanner and I have tried logging the system calls using
the 'ltrace' command, so that I can figure out the protocol. I have
tried writing a program to mimic the diagnostic application which
sends the same commands to the serial port but the scanner does not
respond.
  
Does anyone have any expertise in RS232 scanner protocols? All my
searching on the web reveals results for barcode scanners which appear
to work very differently from image scanners.
  
As a final note, I am trying to use the scanner for OMR - the
diagnostic application returns an array of data relating to the marks
entered on a slip of paper - if that is any use. Also, I can attach
the log file of system calls made by the diagnostic application if
that will help anyone.
  
Any help would be greatly appreciated.
  
Thanks,
  
Dan Scott
  
  
--
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
  



 --
 The truth is an offense, but not a sin




[sane-devel] CX6600 problem solved

2008-07-30 Thread Maurice McCarthy
Hi all, sorry this is such a long post.

It was a problem but I fixed it before asking for help by swapping the
usb connection back to the old USB 1.0 port  Anyhow in case you might
be interested below is what I was going to send.

I still don't understand why /proc/bus/usb is empty though.
In the end either my usb2.0 card is damaged or the PCI bus cannot
handle it (It was made before PCI-E)

Thanks for all your efforts
Maurice McCarthy
- - - - - -

I've got scanner problems with my Epson CX6600 attached to an old
Pentium II with a 200 watt power supply and I'm beginning to think
that I might have exhausted the physical capabilities of the machine.
Originally it had a 6GB disk and a CDROM. Also a USB 1.0. I now have 2
disks 80  40 GB, a dvdrv+- and cdrw+-, 2 ethernet cards (only one in
use so far), a USB 2.0 card (to which the CX6600 is attached).

My operating system is grml (http://grml.org) updated to Debian
unstable for many packages including the sane ones. Grml runs xinetd
and this is the appropriate entry in /etc/xinetd.conf and it looks
sound

service sane-port
{
socket_type = stream
protocol= tcp
wait= no
user= saned
group   = saned
server  = /usr/sbin/saned
server_args = saned
disable = yes
}


The problem is that the scanner hangs with the LCD reading
Scanning... when the scanner lamp has completed its action. This is
what I've investigated for myself before coming here:


# sane-find-scanner
found USB scanner (vendor=0x04b8 [EPSON], product=0x0813 [USB2.0
MFP(Hi-Speed)]) at libusb:004:017

# scanimage -L
device `epson:libusb:004:017' is a Epson CX6600 flatbed scanner

# lsusb
Bus 004 Device 017: ID 04b8:0813 Seiko Epson Corp. Stylus CX6500/6600
Bus 004 Device 001: ID :
Bus 003 Device 001: ID :
Bus 002 Device 003: ID 04d2:ff05 Altec Lansing Technologies ADA-305 Speakers
Bus 002 Device 001: ID :
Bus 001 Device 002: ID 05e3:0605 Genesys Logic, Inc. USB 2.0 Hub [ednet]
Bus 001 Device 001: ID :

# scanimage i.pnm
#

So scanimage seems to exit 0 as a success but the scanner LCD hangs
with the message Scanning... I think that this tells me it has not
received a terminate signal although scanimage has exited with one.
The supposed image file is not readable.

# head i.pnm
P4
# SANE data follows
848 1169
... and lots of blurb


Peculiarly the kernel process shows nothing in the usb bus - so I
don't understand how lsusb works.
# ls -l /proc/bus/usb
total 0

The only relevant message from the system log is this:
# tail /var/log/syslog
Jul 30 08:35:00 grml kernel: usb 4-4: usbfs: interface 1 claimed by
usblp while 'scanimage' sets config #1

But that is no help as this message was there when the scanner did work.

# scanimage -d epson -T
scanimage: scanning image of size 848x1169 pixels at 1 bits/pixel
scanimage: acquiring gray frame, 1 bits/sample
scanimage: reading one scanline, 106 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, 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

Freezes at this point then hitting Ctrl-c
scanimage: received signal 2
scanimage: trying to stop scanner

Freezes again then hitting Ctrl-c again
scanimage: received signal 2
scanimage: aborting
scanimage -d epson -T  6.77s user 37.02s system 49% cpu 1:28.87 total
#

# SANE_DEBUG_EPSON=10 scanimage i.pnm
[sanei_debug] Setting debug level of epson to 10.
[epson] sane_init: sane-backends 1.0.19
[epson] sane_init, # epson.conf
[epson] sane_init, #

snip ### The interesting bit now starts but I don't know how
to fix it.

[epson] sane_read: begin scan1
[epson] w_cmd_count = 34
[epson] r_cmd_count = 39
[epson] receive buf, expected = 6, got = 6
[epson] sane_read: buf len = 106
[epson] sane_read: buf len (adjusted) = 26924
[epson] w_cmd_count = 34
[epson] r_cmd_count = 460
[epson] receive buf, expected = 26924, got = 26924
[epson] send buf, size = 1
[epson] w_cmd_count = 35
[epson] r_cmd_count = 460
[epson] sane_read: begin scan2
[epson] sane_read: end
[epson] sane_read: begin
[epson] sane_read: begin scan1
[epson] w_cmd_count = 35
[epson] r_cmd_count = 461
[epson] receive buf, expected = 6, got = 6
[epson] sane_read: buf len = 106
[epson] sane_read: buf len (adjusted) = 26924
[epson] w_cmd_count = 35
[epson] r_cmd_count = 549
[epson] receive buf, expected = 26924, got = 5632
[epson] send buf, size = 1
[epson] w_cmd_count = 36
[epson] r_cmd_count = 549
[epson] 

[sane-devel] RS232 Scanner

2008-07-30 Thread Dan Scott
Hi,

2008/7/30 m. allan noah kitno455 at gmail.com:
  So I was hoping that I would be able to use sane to communicate with
  the scanner and work out what is happening.

 backwards. you have to work out what is happening, _before_ you write
 the sane driver :)

Not quite. I was hoping that the scanner would already work with sane.
:) at least partially. Then I could get the basic protocol from the
code.

 do you have windows drivers for the image scanning part? if so, i
 would use a usb-serial converter and benoit's usb sniffer to get a
 log, and see if you can extract the image data.

No, unfortunately I have no documentation/driver other than this
diagnostic application. I'm thinking I'll have to figure out the
manufacturer and ask them for protocol documentation.

It's a shame there's no standard for serial port scanners! Would
avoid a lot of work.

Thanks for your comments.

Dan



[sane-devel] RS232 Scanner

2008-07-30 Thread m. allan noah
On Wed, Jul 30, 2008 at 8:13 AM, Dan Scott danieljamesscott at gmail.com 
wrote:
 Hi,

 2008/7/30 m. allan noah kitno455 at gmail.com:
  So I was hoping that I would be able to use sane to communicate with
  the scanner and work out what is happening.

 backwards. you have to work out what is happening, _before_ you write
 the sane driver :)

 Not quite. I was hoping that the scanner would already work with sane.
 :) at least partially. Then I could get the basic protocol from the
 code.

there have been a couple discussions on this list in the past few
years from folks who were writing sane backends for handheld scanners,
but we never saw any code. i suppose you could try to comb the
archives and email them.

 do you have windows drivers for the image scanning part? if so, i
 would use a usb-serial converter and benoit's usb sniffer to get a
 log, and see if you can extract the image data.

 No, unfortunately I have no documentation/driver other than this
 diagnostic application. I'm thinking I'll have to figure out the
 manufacturer and ask them for protocol documentation.

any chance there is an FCC ID on it- that is usually enough to find them.

 It's a shame there's no standard for serial port scanners! Would
 avoid a lot of work.

most manufactures (mistakenly) dont see your avoiding work as a selling point.

allan
-- 
The truth is an offense, but not a sin



[sane-devel] How i can use 2 or more scanners at the same time??

2008-07-30 Thread kid...@email.it
Hello!!
We have maded a big frame (lika a door) with rail for the ccd's of the 
scanner.
We take some test with  the  motors. Now we need try two scanner in 
parallel.
It's possible to setting xSane to start two scanner at same time? How?
What i need about softwares? I'm on Ubuntu with xSane ecc.
Thank a lot for responses.
Bye!!!


m. allan noah ha scritto:
 On 7/23/08, kid2k4 at email.it kid2k4 at email.it wrote:
   
 To Abel: Thank!
  We have thought about the scanner's depth of field after some test with
  A4 size.
  I must tell you the truth, we really like the effect nuanced we get, we
  are also working on this. A technician told us that the sensitivity of
  ccd can be adjusted, although there is as yet unclear.
  We also think about a Frankenstein-scanner made of various parties other
  scanners (A4 course). We need to do so because we not have a budget large.
  We have also seen this site http://www.artila.com/, there are some
  controller and engine, the controller contains a small linux and may be
  (as we understood) used to control engine or electrical appliances. We
  plan to use it to manage the engine scanner.
  you think we can use for our project?
  Is possible to build a mega-scanner with part of A4 scanner?
  There's an engineer among yourselves?

 

 i have a mechanical engineering background, and like any good
 engineer, i am telling you, keep it simple. use a camera- they are
 cheap, have a much greater depth of field, are designed to work with
 ambient light conditions, the list goes on. the scanner idea is art,
 not engineering.

 allan
   
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Aggiorna la playlist del cellulare con tante nuove suonerie!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7748d=30-7



[sane-devel] help with profiles

2008-07-30 Thread gordonsmall User
I am new to the Linux world (via Ubuntu 8.04) and like most of what I am
experiencing.  However, there is a lot to learn in the transition from
Windows XP.

I was pleased to see that Ubuntu came with Xsane preloaded and that
Xsane fully supported my Epson Perfection 2450 Scanner. However, I soon
learned that the fact that Xsane supports it does not mean it
automatically finds and loads all the associated software it needs to
properly run the scanner.  

I have been posting questions to the Ubuntu mailing lists and looking
over the Xsane web site (appreciate the documentation), and discovered
that I am supposed to add something called printer and scanner ICM
profiles.  My printer is an HP 722c deskjet printer.  When I follow the
instructions on the website, I got to preferences, setup, and copy, and
then have to type in the model number of my printer.  I then try to
browse for the ICM profile and it takes me nowhere useful that I can
find.  

Ubuntu easily found and mounted my peripherals, including the printer
and digital camera.  However, I am stuck on getting the scanner to work
properly. If I ignore a lot of error messages, I can get it to scan a
color image in grayscale, but that won't do the trick.  I find that I
use a scanner for a lot of what I do on a computer.  Is there any way I
can easily find the profiles Xsane seems to be asking for?

Gordon Small






[sane-devel] help with profiles

2008-07-30 Thread m. allan noah
you should not need anything other than libsane and xsane installed to
get scans. the ICM type stuff is useful for color correction, but is
not required to get color scans.

try this at the command line:

scanimage --mode=color  test1.pnm

and then look at test1.pnm and see if it looks correct. that will cut
xsane out of the loop.

allan

On Wed, Jul 30, 2008 at 2:00 PM, gordonsmall User
gordonsmall at bellsouth.net wrote:
 I am new to the Linux world (via Ubuntu 8.04) and like most of what I am
 experiencing.  However, there is a lot to learn in the transition from
 Windows XP.

 I was pleased to see that Ubuntu came with Xsane preloaded and that
 Xsane fully supported my Epson Perfection 2450 Scanner. However, I soon
 learned that the fact that Xsane supports it does not mean it
 automatically finds and loads all the associated software it needs to
 properly run the scanner.

 I have been posting questions to the Ubuntu mailing lists and looking
 over the Xsane web site (appreciate the documentation), and discovered
 that I am supposed to add something called printer and scanner ICM
 profiles.  My printer is an HP 722c deskjet printer.  When I follow the
 instructions on the website, I got to preferences, setup, and copy, and
 then have to type in the model number of my printer.  I then try to
 browse for the ICM profile and it takes me nowhere useful that I can
 find.

 Ubuntu easily found and mounted my peripherals, including the printer
 and digital camera.  However, I am stuck on getting the scanner to work
 properly. If I ignore a lot of error messages, I can get it to scan a
 color image in grayscale, but that won't do the trick.  I find that I
 use a scanner for a lot of what I do on a computer.  Is there any way I
 can easily find the profiles Xsane seems to be asking for?

 Gordon Small




 --
 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] RS232 Scanner

2008-07-30 Thread Daniel Glöckner
On 30 Jul 08 07:55, m. allan noah wrote:
 do you have windows drivers for the image scanning part? if so, i
 would use a usb-serial converter and benoit's usb sniffer to get a
 log, and see if you can extract the image data.

In the past I have sniffed some serial protocols using
Mark Russinovich's PortMon:
http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx

It doesn't work when they directly access the serial port, though.


About the scanner not responding to your replicated commands, could it
be that you need to change some of the other serial lines (DTR, RTS)?

  Daniel



No subject

2008-07-30 Thread
  A SANE image is a rectangular area. The rectangular area is
  subdivided into a number of rows and columns. At the intersection of
  each row and column is a quadratic pixel. A pixel consists of one or
  more sample values. Each sample value represents one channel (e.g.,
  the red channel). Each sample value has a certain bit depth. The bit
  depth is fixed for the entire image and can be as small as one
  bit. Valid bit depths are 1, 8, or 16 bits per sample. If a device's
  natural bit depth is something else, it is up to the driver to scale
  the sample values appropriately (e.g., a 4 bit sample could be
  scaled by a factor of four to represent a sample value of depth 8).

So the answer is yes.

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2   FLOSS Engineer -- AVASYS Corporation
FSF Associate Member #1962   Help support software freedom
 http://www.fsf.org/jf?referrer=1962



No subject

2008-07-30 Thread
that case, the configuration files are below /usr/local/etc/sane.d/.

If you want them where your distribution put them, you need to rebuild
and reinstall after running

  ./configure --sysconfdir=/etc

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2   FLOSS Engineer -- AVASYS Corporation
FSF Associate Member #1962   Help support software freedom
 http://www.fsf.org/jf?referrer=1962



No subject

2008-07-30 Thread
Jack McGill


--- On Thu, 11/6/08, Igor G Novikov septagramm at gmail.com wrote:

 From: Igor G Novikov septagramm at gmail.com
 Subject: Re: [sane-devel] Can't seem to find config files
 To: Sane development mailing list sane-devel at lists.alioth.debian.org
 Date: Thursday, November 6, 2008, 6:21 AM
 Contact!
 
 Looks like in the end there was mistake on my end, that
 didn't let sane
 detect my scanner. You see, with my distribution two
 packages are
 shipped: sane-backends and sane-backends-libs. Before
 installing sane
 from sources i did remove sane-backends but didn't do
 the same with
 sane-backends libs. Since sane is installed from sources to
 a different
 place (/usr/local), rather than the one from package, libs
 from rpm
 stayed perfectly intact and it was them that sane was using
 when looking
 for scanner, not recompiled ones. So i removed
 sane-backends-libs and my
 scanner got perfectly detected. At least we're getting
 somewhere.
 
 But of course scanner won't scan. Ok, it would scan,
 but it's output
 doesn't resemble whatever was scanned - it looks just
 like red stripes
 on black background. And there are problems with scanner
 head.
 
 Usually before scanning scanner head goes couple of
 centimeters forward
 and adjusts light intensity, then goes back and starts
 scanning. With
 sane, it does the same, but with a louder sound, which
 makes me a little
 worried. And most importantly, scanner doesn't know
 where to stop. When
 scanning from XSane sometimes scanner head just goes about
 one
 centimeter and stops, beepeing strangely. Sometimes it goes
 2/3 of
 scanner length, and it does so *very fast* with an odd
 sound, then
 finishes scanning and goes back with same speed and sound.
 When running
 scanimage from commandline, the sound and speed are quite
 the same as
 normally (by 'normally' i mean like it works on
 proprietary system with
 proprietary drivers), until scanner head bumps into the
 wall. When you
 stop it there, and look at the resulting image, about
 2/3-1/2 is filled,
 so scanner head has a rather long way to go.
 
 Any ideas what to do with that?

  -- 
Igor G Novikov
 septagramm at gmail.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




No subject

2008-07-30 Thread
'quality calibration' ON and OFF doesn't change a thing. Scanning in windows
is fine, no issues.



Any ideas?

Thanks in advance.

GHOZ

--=_Part_4286_19603068.1227153603830
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

p class=MsoNormal style=MARGIN: 0cm 0cm 0ptfont size=3font 
face=CalibriHello to the community. I'm new to SANE and hope that you can 
assist./font/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0ptfont face=Calibri 
size=3nbsp;/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0ptfont size=3font 
face=CalibriI'm using AV122 Avision scanner and getting horrible vertical 
strips no matter what options I'm using./font/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0ptfont face=Calibri 
size=3nbsp;/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0ptfont size=3font 
face=CalibriI'm on this environment:/font/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0ptfont face=Calibri 
size=3nbsp;/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36ptfont 
size=3font face=Calibri(vendor=0x0638 [AVISION ], product=0x0a33 [AV 
122])/font/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36ptfont 
face=Calibri size=3nbsp;/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0pt 36ptfont size=3font 
face=Calibriscanimage (sane-backends) 1.0.19; backend version 
1.0.19/font/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0pt 36ptfont face=Calibri 
size=3nbsp;/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36ptfont 
size=3font face=Calibridevice `avision:libusb:004:005#39; is a Avision 
AV122 sheetfed scanner/font/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0ptfont face=Calibri 
size=3nbsp;/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0ptfont size=3font 
face=Calibrispan style=mso-tab-count: 
1nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
 /spanUbuntu 8.10/font/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0ptfont face=Calibri 
size=3nbsp;/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0ptfont size=3font 
face=CalibriFrom my readings in the archive the issue relates to 
calibration. Trying 'quality calibration' ON and OFF doesn't change a thing. 
Scanning in windows is fine, no issues./font/font/p

p class=MsoNormal style=MARGIN: 0cm 0cm 0ptfont face=Calibri 
size=3nbsp;/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0ptfont size=3font 
face=CalibriAny ideas?/font/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0ptfont size=3font 
face=CalibriThanks in advance./font/font/p
p class=MsoNormal style=MARGIN: 0cm 0cm 0ptfont size=3font 
face=CalibriGHOZ/font/font/p

--=_Part_4286_19603068.1227153603830--



No subject

2008-07-30 Thread
Trying 'quality calibration' ON and OFF doesn't change a thing.
Scanning in windows is fine, no issues.

Any ideas?
Thanks in advance.
GHOZ



No subject

2008-07-30 Thread
- replace linux specific ppdev code with sanei_* equivalent functions.
- make sure the code is still compatible with latest SANE releases (in
this case, it is better to check code from Debian's
sane-backends-extras, for which Julien has made a great job making the
code at least compilable for latest releases) and follows SANE
guidelines for inclusion into the repository.
- test on actual hardware to make sure it still works after changes
(would require help from community if the developer lacks hardware to
test).

And longer term tasks for better support:

- implement calibration support
- improve support for large width scans at high resolutions (the
windows driver does this very well with little backtracking even on a
emulated Bochs VM).
- implement support for some Vivid Pro II variants (not based on the
same chipset as my device).
- implement support for the rare USB variants

I could even offer access to the geniusvp2 project at SourceForge for
those interested on helping, but I think it is much easier to just
download the latest code from CVS (or even better, take the code from
Debian's sane-backends-extras package), and work based on it. Then I
should simply deactivate the project at SF, since it would make no
sense anymore to keep it after inclusion in SANE repository.

Anyone interested?

Regards,
-- 
Anderson Lizardo



No subject

2008-07-30 Thread
$ scanimage
scanimage: sane_start: Document feeder out of documents
scanimage: Received signal 15
scanimage: Trying to stop scanner
scanimage: Received signal 15
scanimage: Aborting

There may be a status of some kind I can check from SANE without
crashing before I try scanning but I haven't found it yet.

Is there any way to prevent this from killing my server in the
meantime or is catch the biggest gun I have for that?

Thanks,

- Ian