Debian Codegraph @

upstream/opensuse-leap-16-1/man5/sane-airscan.5

raw
1 .\" generated with Ronn-NG/v0.9.1
2 .\" http://github.com/apjanke/ronn-ng/tree/0.9.1
3 .TH "SANE\-AIRSCAN" "5" "May 2022" "" "AirScan (eSCL) and WSD SANE backend"
4 .SH "NAME"
5 \fBsane\-airscan\fR \- SANE backend for AirScan (eSCL) and WSD scanners and MFP
6 .SH "DESCRIPTION"
7 The \fBsane\-airscan\fR is the universal backend for "driverless" document scanning\. Currently it supports two protocols:
8 .IP "" 4
9 .nf
10 1\. eSCL, also known as AirScan or AirPrint scan
11 2\. WSD, also known as WS\-Scan
12 .fi
13 .IP "" 0
14 .SH "CONFIGURATION"
15 The sane\-airscan loads its configuration files from the following places:
16 .IP "" 4
17 .nf
18 1\. /etc/sane\.d/airscan\.conf
19 2\. /etc/sane\.d/airscan\.d/*
20 .fi
21 .IP "" 0
22 .P
23 The configuration file syntax is very similar to the \.INI file syntax\. It consist of sections, each section contains some variables\. Comments are started from # or ; characters and continies until end of line
24 .IP "" 4
25 .nf
26 # This is a comment
27 [section 1]
28 variable 1 = value 1 ; and another comment
29 variable 2 = value 2
30 .fi
31 .IP "" 0
32 .P
33 Leading and trailing spaces of variable name and value are striped\. If you want to preserve them, put name or value into quotes ("like this")\.
34 .SH "CONFIGURATION OF DEVICES"
35 If scanner and computer are connected to the same LAN segment, everything expected to "just work" out of box, without any need of manual configuration\.
36 .P
37 However, in some cases manual configuration can be useful\. For example:
38 .IP "" 4
39 .nf
40 1\. If computer and scanner are connected via IP router
41 2\. There are a lot of devices on a corporate network, but
42 only few of them are interesting
43 3\. Automatic discovery works unreliable
44 .fi
45 .IP "" 0
46 .P
47 To manually configure a device, add the following section to the configuration file:
48 .IP "" 4
49 .nf
50 [devices]
51 "Kyocera eSCL" = http://192\.168\.1\.102:9095/eSCL, eSCL
52 "Kyocera WSD" = http://192\.168\.1\.102:5358/WSDScanner, WSD
53 "Device I do not want to see" = disable
54 .fi
55 .IP "" 0
56 .P
57 The \fB[devices]\fR section contains all manually configured devices, one line per device, and each line contains a device name on a left side of equation and device URL on a rights side, followed by protocol (eSCL or WSD)\. If protocol is omitted, eSCL is assumed\. You may also disable particular device by using the \fBdisable\fR keyword instead of URL\.
58 .P
59 In addition, you can manually configure a device by directly passing its URL in a device name without adding it to the configuration file\. This takes the format \fBprotocol:Device Name:URL\fR\. The examples above could be written as \fBescl:Kyocera eSCL:http://192\.168\.1\.102:9095/eSCL\fR and \fBwsd:Kyocera WSD:http://192\.168\.1\.102:5358/WSDScanner\fR\.
60 .P
61 To figure out URLs of available devices, the simplest way is to run the supplied \fBairscan\-discover(1)\fR tool on a computer connected with scanner to the same LAN segment\. On success, this program will dump to its standard output a list of discovered devices in a format suitable for inclusion into the configuration file\.
62 .P
63 If running \fBairscan\-discover(1)\fR on the same LAN segment as a scanner is not possible, you will have to follow a hard way\. Your administrator must know device IP address, consult your device manual for the eSCL port, and the URL path component most likely is the "/eSCL", though on some devices it may differ\. Discovering WSD URLs doing this way is much harder, because it is very difficult to guess TCP port and URL path, that in a case of eSCL\.
64 .P
65 For eSCL devices, the URL can also use the unix:// scheme, such as unix://scanner\.sock/eSCL\. The "host" from the URL is a file name that will be searched for in the directory specified by socket_dir (see below)\. When connecting to the scanner, all traffic will be sent to the specified UNIX socket instead of a TCP connection\.
66 .SH "CONFIGURATION OPTIONS"
67 Miscellaneous options all goes to the \fB[options]\fR section\. Currently the following options are supported:
68 .IP "" 4
69 .nf
70 [options]
71 ; If there are a lot of scanners around and you are only
72 ; interested in few of them, disable auto discovery and
73 ; configure scanners manually\.
74 discovery = enable | disable
75
76 ; Choose what SANE apps will show in a list of devices:
77 ; scanner network name (the default) or hardware model name\.
78 model = network | hardware
79
80 ; If device supports both eSCL and WSD protocol, sane\-airscan
81 ; may either choose the "best" protocol automatically, or
82 ; expose all variants for user, allowing manual protocol selection\.
83 ; The default is "auto"\.
84 protocol = auto | manual
85
86 ; Discovery of WSD devices may be "fast" or "full"\. The "fast"
87 ; mode works as fast as DNS\-SD discovery, but in some cases
88 ; may be unreliable\. The "full" mode is slow and reliable\.
89 ; It is also possible to disable automatic discovery
90 ; of WSD devices\. The default is "fast"\.
91 ws\-discovery = fast | full | off
92
93 ; Scanners that use the unix:// schema in their URL can only specify a
94 ; socket name (not a full path)\. The name will be searched for in the
95 ; directory specified here\. The default is /var/run\.
96 socket_dir = /path/to/directory
97 .fi
98 .IP "" 0
99 .SH "BLACKLISTING DEVICES"
100 This feature can be useful, if you are on a very big network and have a lot of devices around you, while interesting only in a few of them\.
101 .IP "" 4
102 .nf
103 [blacklist]
104 model = "Xerox*" ; blacklist by model name
105 name = "HP*" ; blacklist by network name
106 ip = 192\.168\.0\.1 ; blacklist by address
107 ip = 192\.168\.0\.0/24 ; blacklist the whole subnet
108 .fi
109 .IP "" 0
110 .P
111 Network names come from DNS\-SD, WS\-Discovery doesn\'t provide this information\. For filtering by network name to work, Avahi must be enabled and device must be discoverable via DNS\-SD (not necessarily as a scanner, it\'s enough if WSD scanner is discoverable as a printer via DNS\-SD)\.
112 .P
113 Blacklisting only affects automatic discovery, and doesn\'t affect manually configured devices\.
114 .SH "DEBUGGING"
115 sane\-airscan provides very good instrumentation for troubleshooting without physical access to the problemmatic device\.
116 .P
117 Debugging facilities can be controlled using the \fB[debug]\fR section of the configuration file:
118 .IP "" 4
119 .nf
120 [debug]
121 ; Enable or disable console logging
122 enable = false | true
123
124 ; Enable protocol trace and configure output directory
125 ; for trace files\. Like in shell, to specify path relative to
126 ; the home directory, start it with tilda character, followed
127 ; by slash, i\.e\., "~/airscan/trace"\. The directory will
128 ; be created automatically\.
129 trace = path
130
131 ; Hex dump all traffic to the trace file (very verbose!)
132 hexdump = false | true
133 .fi
134 .IP "" 0
135 .SH "FILES"
136 .TP
137 \fB/etc/sane\.d/airscan\.conf\fR, \fB/etc/sane\.d/airscan\.d/*\fR
138 The backend configuration files
139 .TP
140 \fB/usr/LIBDIR/sane/libsane\-airscan\.so\fR
141 The shared library implementing this backend
142 .SH "ENVIRONMENT"
143 .TP
144 \fBSANE_DEBUG_AIRSCAN\fR
145 This variable if set to \fBtrue\fR or non\-zero numerical value, enables debug messages, that are printed to stdout
146 .TP
147 \fBSANE_CONFIG_DIR\fR
148 This variable alters the search path for configuration files\. This is a colon\-separated list of directories\. These directories are searched for the airscan\.conf configuration file and for the airscan\.d subdirectory, before the standard path (/etc/sane\.d) is searched\.
149 .SH "BUGS AND SUPPORT"
150 If you have found a bug, please file a GitHub issue on a GitHub project page: \fBhttps://github\.com/alexpevzner/sane\-airscan\fR
151 .SH "SEE ALSO"
152 \fBsane(7), scanimage(1), xsane(1), airscan\-discover(1)\fR
153 .SH "AUTHOR"
154 Alexander Pevzner <pzz@apevzner\.com>