Hi Rolf,
you are right; after I disconnected (and power cycled) the device, USB
scanning worked again. It continued to work, also after I reconnected
the network and restarted xsane. Can you tell if this is a bug or a
feature?
--
Kind regards, Theo van Rijn
Hi Theo,
xsane only looks for connected devices at program start. If you
disconnect the device while xsane is running, this breaks the connection
and you must restart xsane.
Cheers,
Rolf
Am 18.03.2013 00:21, schrieb Theo:
> Hi Rolf,
>
> you are right; after I disconnected (and power cycled) the
Hello all
I try to use a Rasperry Pi with Raspian Wheezy as a network scanner device.
After I have installed /scanbd/ as described in the package-readme and some
copying of files, I can use it in foreground with scanbd -f.
The scanner is recognised an I can use scanner buttons as I want it.
The p
> Hi Rolf,
>
> you are right; after I disconnected (and power cycled) the device, USB
> scanning worked again. It continued to work, also after I reconnected
> the network and restarted xsane. Can you tell if this is a bug or a
> feature?
>
> --
> Kind regards, Theo van Rijn
>
hi Theo,
I do regard
ei_usb */
+ rc = test_init(1);
+ if (rc != 0)
+{
+ return rc;
+}
+
+ /* count available devices */
+ detected = 0;
+ for (i = 0; i < device_number; i++)
+{
+ if (devices[i].missing == 0 && devices[i].devname != NULL)
+{
+ detected++;
+}
+}
+ printf ("%d devices found.\n", detected);
+
+ /* get vendor/product id for all available devices */
+ rc = test_id_all();
+ if (rc != 0)
+{
+ return rc;
+}
+
+ /* open all available devices */
+ rc=test_open_all (dn, detected);
+ if (rc != 0)
+{
+ return rc;
+}
+
+ /* increase use count */
+ rc = test_init (2);
+ if (rc != 0)
+{
+ return rc;
+}
+
+ /* there should be still as many detected devices */
+ rc = count_detected (detected);
+ if (rc != 0)
+{
+ return rc;
+}
+
+ /* there should be still as many opened devices as detected devices */
+ rc = count_opened(detected);
+ if (rc != 0)
+{
+ return rc;
+}
+
+ rc = test_exit (1);
+ if (rc != 0)
+{
+ return rc;
+}
+
+ /* there should be still as many opened devices as detected devices */
+ rc = count_opened (detected);
+ if (rc != 0)
+{
+ return rc;
+}
+
+ /* count devices again , sanei_usb_exit() shouldn't have
+ * changed the count */
+
+ /* close all opened devices */
+ rc = test_close_all (dn, detected);
+ if (rc != 0)
+{
+ return rc;
+}
+
+ /* check there is no opened device */
+ rc = count_opened (0);
+ if (rc != 0)
+{
+ return rc;
+}
+
+ /* finally free resources */
+ rc = test_exit (0);
+ if (rc != 0)
+{
+ return rc;
+}
+
+ /* check there are no more devices */
+ rc = count_detected (0);
+ if (rc != 0)
+{
+ return rc;
+}
+
+ return 0;
+}
+
+/* vim: set sw=2 cino=>2se-1sn-1s{s^-1st0(0u0 smarttab expandtab: */
--
1.7.10.4
-- next part --
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL:
<http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130318/dc18f705/attachment-0001.pgp>
Am 18.03.2013 12:26, schrieb deigerwutz:
> Hello all
>
> I try to use a Rasperry Pi with Raspian Wheezy as a network scanner device.
> After I have installed /scanbd/ as described in the package-readme and some
> copying of files, I can use it in foreground with scanbd -f.
> The scanner is recognis
e.
Do you know if there is an open bug for this issue?
--
Kind regards, /Theo van Rijn/
-- next part --
An HTML attachment was scrubbed...
URL:
<http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130318/070bdfef/attachment.html>