[sane-devel] Trouble with network scanning and Umax Astra 2200

2005-09-30 Thread Jonathan Hall
Thank you, Henning, for the reply.

I just ran scanimage -d net:server IP:test -T, and that passed all the
tests.

I created the log files you requested, and have pasted them on the web:

SANE_DEBUG_UMAX=255 saned -d128
http://narnia.flimzy.com/~jonhall/saned.log

SANE_DEBUG_NET=255 scanimage -d net:10.0.2.10:umax:libusb:001:015 -T
http://narnia.flimzy.com/~jonhall/scanimage.log

Then I rean the exact same scanimage command, but captured the output of:
SANE_DEBUG_UMAX=255 strace saned -d128
http://narnia.flimzy.com/~jonhall/saned.strace.log


Hopefully this will be of help.

I also intend to set up a laptop as a temporary saned server, perhaps this
evening or next, if I have time, to see if the same thing happens there.

-- Jonathan


 Hi,

 On Tue, Sep 27, 2005 at 07:21:30PM -0500, Jonathan Hall wrote:
 I have a Umax Astra 2200 (the combo SCSI/USB version) connected to a USB
 port.  I can scan locally as root or a user using 'scanimage -d
 umax:libusb:001:014  foo.pnm'.  I also have it configured such that I
 can
 scan over the network locally (scanimage -d
 net:localhost:umax:libusb:001:014  foo.pnm).  However, I am unable to
 scan over the network from another machine (I've tried with two).

 [...]

 scanimage -T, however, freezes, and renders the scanner unresponsive
 until
 I power cycle it.

 [...]

 Do you use some kind of firewall or packet filter? saned uses a
 separate port for data (similar to ftp) and it seems that no data can
 be transferred using that port.

 To be sure that it's not a problem with the umax backend you can use
 the test backend (scanimage -d net:ip_address:test -T).

 Otherwise send debug logs of the client and server side:

 Client:

 SANE_DEBUG_NET=255 scanimage 

 Server:
 SANE_DEBUG_UMAX=255 saned -d128

 Bye,
   Henning

 --
 sane-devel mailing list: sane-devel@lists.alioth.debian.org
 http://lists.alioth.debian.org/mailman/listinfo/sane-devel
 Unsubscribe: Send mail with subject unsubscribe your_password
  to sane-devel-requ...@lists.alioth.debian.org



[sane-devel] Trouble with network scanning and Umax Astra 2200

2005-09-28 Thread Jonathan Hall
I have a Umax Astra 2200 (the combo SCSI/USB version) connected to a USB
port.  I can scan locally as root or a user using 'scanimage -d
umax:libusb:001:014  foo.pnm'.  I also have it configured such that I can
scan over the network locally (scanimage -d
net:localhost:umax:libusb:001:014  foo.pnm).  However, I am unable to
scan over the network from another machine (I've tried with two).

scanimage -L shows the scanner on both client machines:

jonhall@tirian:~$ scanimage -L
device `net:10.0.2.10:umax:libusb:001:014' is a UMAX Astra 2200  
flatbed scanner

scanimage -T, however, freezes, and renders the scanner unresponsive until
I power cycle it.

jonhall@tirian:~$ scanimage -d net:10.0.2.10:umax:libusb:001:014 -T
scanimage: scanning image of size 850x1170 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 2550 bytes...

I ran an strace on saned on the server machine.  Here's the last bit (I
can send the entire strace to someone if it would be helpful):

getpeername(7, {sa_family=AF_INET6, sin6_port=htons(51945),
inet_pton(AF_INET6,
fcntl64(7, F_SETFL, O_WRONLY)   = 0M
shutdown(7, 0 /* receive */)= 0M
fcntl64(6, F_SETFL, O_RDONLY|O_NONBLOCK) = 0M
select(8, [4 6], [7], NULL, NULL)   = 2 (in [4], out [7])M
read(4, \0\0\0\6\0\0\0\0, 8192)   = 8M
write(4, \0\0\0\0\0\0\0\1\0\0\0\1\0\0\t\366\0\0\3R\0\0\4\222\0\0..., 28)
= 28
select(8, [4 6], [7], NULL, NULL)   = 1 (out [7])M
select(8, [4 6], [7], NULL, NULL)   = 1 (out [7])M


The last line repeates infinately until I Ctrl-C, or power-cycle the scanner.

All three machines (server and two clients) are running Debian testing. 
The server is running kernel 2.6.8, one client has 2.6.12.4 and one has
2.4.27. The server's USB host controller is an Intel 82371AB/EB/MB PIIX4.

Does anyone have any idea what's going on?  Thanks for any help you can
provide!

-- Jonathan



[sane-devel] Trouble with network scanning and Umax Astra 2200

2005-09-28 Thread Henning Meier-Geinitz
Hi,

On Tue, Sep 27, 2005 at 07:21:30PM -0500, Jonathan Hall wrote:
 I have a Umax Astra 2200 (the combo SCSI/USB version) connected to a USB
 port.  I can scan locally as root or a user using 'scanimage -d
 umax:libusb:001:014  foo.pnm'.  I also have it configured such that I can
 scan over the network locally (scanimage -d
 net:localhost:umax:libusb:001:014  foo.pnm).  However, I am unable to
 scan over the network from another machine (I've tried with two).

[...]

 scanimage -T, however, freezes, and renders the scanner unresponsive until
 I power cycle it.

[...]

Do you use some kind of firewall or packet filter? saned uses a
separate port for data (similar to ftp) and it seems that no data can
be transferred using that port.

To be sure that it's not a problem with the umax backend you can use
the test backend (scanimage -d net:ip_address:test -T).

Otherwise send debug logs of the client and server side:

Client:

SANE_DEBUG_NET=255 scanimage 

Server:
SANE_DEBUG_UMAX=255 saned -d128

Bye,
  Henning