{"id":4354,"date":"2022-12-20T17:49:03","date_gmt":"2022-12-20T20:49:03","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/sanemustek_usb-man5\/"},"modified":"2022-12-20T17:49:03","modified_gmt":"2022-12-20T20:49:03","slug":"sanemustek_usb-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/sanemustek_usb-man5\/","title":{"rendered":"sane&minus;mustek_usb (man5)"},"content":{"rendered":"<h1 align=\"center\">sane\u2212mustek_usb<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#DEVICE NAMES\">DEVICE NAMES<\/a><br \/> <a href=\"#CONFIGURATION\">CONFIGURATION<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#ENVIRONMENT\">ENVIRONMENT<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#BUGS\">BUGS<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">sane\u2212mustek_usb \u2212 SANE backend for Mustek USB flatbed scanners<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>sane\u2212mustek_usb<\/b> library implements a SANE (Scanner Access Now Easy) backend that provides access to Mustek USB flatbed scanners (including a clone from Trust). At present, the following scanners are known to work more or less with this backend:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Mustek 600 CU <br \/> Mustek 1200 UB <br \/> Mustek 1200 CU <br \/> Mustek 1200 CU Plus <br \/> Trust Compact Scan USB 19200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">More details can be found on the Mustek USB backend homepage <i>http:\/\/www.meier\u2212geinitz.de\/sane\/mustek_usb\u2212backend\/<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The Mustek BearPaw 1200 and 2400 scanners are supported by the plustek backend. See <b>sane\u2212plustek<\/b>(5) for details. The Mustek BearPaw 1200F is supported by the MA-1509 backend. See <b>sane\u2212ma1509<\/b>(5) for details. Other Mustek USB scanners are supported by the gt68xx backend, see <b>sane\u2212gt68xx<\/b>(5).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This backend can only work with scanners that are already detected by the operating system. See <b>sane\u2212usb<\/b>(5) for details.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If you own a Mustek (or Trust) scanner other than the ones listed above that works with this backend, please let me know this by sending the scanner\u2019s exact model name and the USB vendor and device ids (e.g. from <i>\/proc\/bus\/usb\/devices<\/i> or syslog) to me.<\/p>\n<h2>DEVICE NAMES <a name=\"DEVICE NAMES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This backend expects device names of the form:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>special<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Where <i>special<\/i> is a path-name for the special device that corresponds to a USB scanner. With Linux, such a device name could be <i>\/dev\/usb\/scanner0<\/i> or <i>\/dev\/usbscanner1<\/i>, for example.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For FreeBSD use <i>\/dev\/uscanner0<\/i>.<\/p>\n<h2>CONFIGURATION <a name=\"CONFIGURATION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The contents of the <i>mustek_usb.conf<\/i> file is a list of options and device names that correspond to Mustek USB scanners. Empty lines and lines starting with a hash mark (#) are ignored. If a device name is placed in <i>mustek_usb.conf<\/i>, it must be followed by a line containing the keyword <b>option<\/b> and an option specifying the scanner type. The following options can be used: <b>600cu<\/b>, <b>1200cu<\/b>, <b>1200cu_plus<\/b>, <b>1200ub<\/b>. For the Trust Compact Scan USB 19200 use \u2018option 1200ub\u2019.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Instead of using the device name, the scanner can be autodetected by <b>usb vendor_id product_id<\/b> statements which are already included into <i>mustek_usb.conf<\/i>. This is only supported with Linux 2.4.8 and higher and all systems that support libsub. &#8220;vendor_id&#8221; and &#8220;product_id&#8221; are hexadecimal numbers that identify the scanner. If this doesn\u2019t work, a device name and the option specifying the scanner type must be placed in <i>mustek_usb.conf<\/i> as described above.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The global <b>option max_block_size<\/b> can be used to limit the amount of data acquired in one turn from the USB system. It may be worth trying, if USB errors occur.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">A sample configuration file is shown below:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"># Comment <br \/> option max_block_size 1024 <br \/> usb 0x055f 0x0001 <br \/> \/dev\/usb\/scanner0 <br \/> option 600cu<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The first line is ignored. The second line sets the buffer size to a maximum of 1024 bytes. The third line tries to autodetect a scanner with vendor id 0x055f and product id 0x0001 (Mustek 1200 CU). The fourth line tells the backend to attach to <i>\/dev\/usb\/scanner0<\/i> and the fifth line specifies that <i>\/dev\/usb\/scanner0<\/i> is a Mustek 600 CU.<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>\/etc\/sane.d\/mustek_usb.conf<\/i><\/p>\n<p style=\"margin-left:22%;\">The backend configuration file (see also description of <b>SANE_CONFIG_DIR<\/b> below).<\/p>\n<p style=\"margin-left:11%;\"><i>\/usr\/lib64\/sane\/libsane\u2212mustek_usb.a<\/i><\/p>\n<p style=\"margin-left:22%;\">The static library implementing this backend.<\/p>\n<p style=\"margin-left:11%;\"><i>\/usr\/lib64\/sane\/libsane\u2212mustek_usb.so<\/i><\/p>\n<p style=\"margin-left:22%;\">The shared library implementing this backend (present on systems that support dynamic loading).<\/p>\n<h2>ENVIRONMENT <a name=\"ENVIRONMENT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>SANE_CONFIG_DIR<\/b><\/p>\n<p style=\"margin-left:22%;\">This environment variable specifies the list of directories that may contain the configuration file. On *NIX systems, the directories are separated by a colon (\u2018:\u2019), under OS\/2, they are separated by a semi-colon (\u2018;\u2019). If this variable is not set, the configuration file is searched in two default directories: first, the current working directory (&#8220;.&#8221;) and then in <i>\/etc\/sane.d<\/i>. If the value of the environment variable ends with the directory separator character, then the default directories are searched after the explicitly specified directories. For example, setting <b>SANE_CONFIG_DIR<\/b> to &#8220;\/tmp\/config:&#8221; would result in directories <i>tmp\/config<\/i>, <i>.<\/i>, and <i>\/etc\/sane.d<\/i> being searched (in this order).<\/p>\n<p style=\"margin-left:11%;\"><b>SANE_DEBUG_MUSTEK_USB<\/b><\/p>\n<p style=\"margin-left:22%;\">If the library was compiled with debug support enabled, this environment variable controls the debug level for this backend. Higher debug levels increase the verbosity of the output.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Value Description <br \/> 0 no output <br \/> 1 print fatal errors <br \/> 2 print important messages <br \/> 3 print non-fatal errors and less important messages <br \/> 4 print all but debugging messages <br \/> 5 print high level debugging messages <br \/> 6 print medium level debugging messages <br \/> 7 print low level debugging messages<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Example: export SANE_DEBUG_MUSTEK_USB=4<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>sane<\/b>(7), <b>sane\u2212usb<\/b>(5), <b>sane\u2212mustek<\/b>(5), <b>sane\u2212mustek_pp<\/b>(5), <b>sane\u2212plustek<\/b>(5), <b>sane\u2212gt68xx<\/b>(5), <b>sane\u2212ma1509<\/b>(5) <i><br \/> \/usr\/share\/doc\/sane-backends\/mustek_usb\/mustek_usb.CHANGES<\/i>, <i><br \/> \/usr\/share\/doc\/sane-backends\/mustek_usb\/mustek_usb.TODO <br \/> http:\/\/www.meier\u2212geinitz.de\/sane\/mustek_usb\u2212backend\/<\/i><\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Henning Meier-Geinitz <<i>henning@meier\u2212geinitz.de<\/i>> <br \/> This backend is based on the Mustek 1200ub backend from Mustek, maintained by Tom Wang.<\/p>\n<h2>BUGS <a name=\"BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">These devices have a hardware bug: Once data is written to them, they can\u2019t be reset (toggle = DATA0). That means, any operation that tries to reset the device will result in running into timeouts.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In earlier versions this backend failed when it was loaded the second time in some configurations. The only choice was to replug the scanner in this case. The backend uses a workaround for that bug now but it\u2019s only tested on Linux. Reports for other operating systems are appreciated.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">More detailed bug information is available at the Mustek backend homepage <i>http:\/\/www.meier\u2212geinitz.de\/sane\/mustek_usb\u2212backend\/<\/i>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  sane\u2212mustek_usb \u2212 SANE backend for Mustek USB flatbed scanners <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1291,1366],"class_list":["post-4354","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-man5","tag-sane-mustek_usb"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4354"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4354\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}