Wykres commitów

19 Commity (4962b35abd7426b7b51a00d907a538a2a38dc859)

Autor SHA1 Wiadomość Data
Louis Lagendijk 77a1d1cdbc pixma_bjnp.c pixma_bjnp.h pixma_bjnp_private.h: Added support for Canon laser multi-functionals using the mfnp protool over port 8610.
Improved debug logging to be more reeadable
2014-02-10 23:53:04 +01:00
Louis Lagendijk bf0758bc8b Changed the pixma bjnp implementation to use its own debug environment
variable (SANE_DEBUG_BJNP) so debugging for the bjnp protocol and the
backend proper can be controlled independently.
Updated manpage for sane-pixma to document the above changes as well
as the changed scannner buttjn options and the fact the bjnp protocol
has added support for IPv6
2013-01-10 21:10:41 +01:00
Louis Lagendijk 36e86bc6ff Cleanup of address structure.
Prefer FQDN over global address over link-local address for the scanner
2012-10-16 20:49:57 +02:00
Louis Lagendijk 57d117a2d4 pixma_bjnp.c/pixma_bjnp_private.h:
sanei_bjnp_read_bulk() rewritten to be more readable
Solved issue where scanner returned 0 bytes available
2012-09-08 20:47:02 +02:00
Louis Lagendijk 9e68f66cc2 pixma_bjnp.c: Added more sockaddr support functions + some more re-factoring & clean-ups 2012-08-25 23:31:57 +02:00
Louis Lagendijk d929acb1b2 pixma_bjnp.c Added bjnp_sockaddr_t, a union that makes all explicit typecasts for sockaddr_xxx unnecessary
This makes the code much cleaner
2012-08-25 23:28:10 +02:00
Louis Lagendijk 177fde920c pixma_bjnp.c Minor code cleanups, add #defines for mosts hardcoded values 2012-08-25 23:27:53 +02:00
Louis Lagendijk 1b4cce5f2d pixma_bjnp.c Adeded scanner discovery for IPv6 2012-08-25 23:27:36 +02:00
Louis Lagendijk d6040014df pixma_bjnp: added inintial ipv6 support 2012-08-25 23:26:35 +02:00
Louis Lagendijk f9a70e14be pixma_bjnp: add working scan button support 2012-08-25 23:25:49 +02:00
Louis Lagendijk fb1b31f82a pixma_bjnp.c Use a single socket for broadcasts so we can use a single port (8612) as well.
Right now we were not in compliance with the documentation that stated so.
This makes firewalling much easier.
2012-08-25 23:25:23 +02:00
Louis Lagendijk 0086173dd3 2009-03-06 Louis Lagendijk <llagendijk-guest at users.alioth.debian.org>
* backend/pixma_bjnp.c backend/pixma_bjnp.h
        backend/pixma_bjnp_private.h backend/pixma_io_sanei.c:
        Make bjnp protocol more resilient against packet loss and corruption
        Changed timeout for all responses to be at least 10 seconds
        Send all broadcasts for scanner detection 5 times
        Made sure scanners are added to device list only once
        Changed device-id for bjnp so it uses scanner hostname/ip-address
        instead of mac address as this is more human friendly.
        To make room, use scanner model instead of USB-id (which is bogus
        for network scanners
2009-03-17 19:29:39 +00:00
Louis Lagendijk 67b93432ee * backend/pixma_bjnp_private.h disabled experimental/incomplete
button handling for bjnp protocol as it seems to cause problems
        with xsane preview
2009-03-07 23:11:24 +00:00
Louis Lagendijk e9ede962ee backend/pixma_bjnp.c pixma_bjnp_private.h
On Ubuntu getlogin() returns NULL. So we noew first try getlogin()
and if that fails, we try getenv("USER") and if that fails we use
a defaul user string
2008-12-06 16:25:17 +00:00
Louis Lagendijk a1f9143a41 2008-10-31 Louis Lagendijk <llagendijk-guest at users.alioth.debian.org>
* Pixma backend (pixma.c/pixma_common.c/pixma_io_sanei.c/pixma_bjnp.c)
          bjnp tcp connection is now de-activated after initialization and
          re-activated at start of scanning. If we do not do this, the scanner
          closes its side of the connection after 30 secods of inactivity.
          Added a maximum to the retry of slect calls when signals are
          received
          Added blocksize detection for tcp read_bulk call
2008-11-05 20:53:30 +00:00
Louis Lagendijk 18ce7b4e0f 2008-10-31 Louis Lagendijk <llagendijk-guest at users.alioth.debian.org>
* backend/pixma_bjnp.c
           Added retry to select() calls when they get interrupted by a
           signal. This solves problems in xsane after a first scan completed.
           There is still an issue that scanner closes tcp connection after
           30 seconds of inactivity
           backend/pixma_bjnp.c backend/bjnp_private.h
           Marked local functions as static and removed them from ..private.h
2008-10-31 20:32:30 +00:00
Louis Lagendijk 69c9248356 2008-10-25 Louis Lagendijk <llagendijk-guest at users.alioth.debian.org>
* Added configuration  file support for pixma backend
        Currently used only for configuration of network scanners.
2008-10-25 14:56:11 +00:00
Nicolas Martin f573865c33 ifaddrs.h header check and increase backend version number 2008-10-18 22:26:57 +00:00
Nicolas Martin 391a6b4549 Added Canon's BJNP network protocol support, fix an ADF issue, updated doc and headers 2008-10-14 19:48:59 +00:00