⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 x291.html

📁 usb develop guide
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN"><HTML><HEAD><TITLE>USB Scanner Support</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet"><LINKREL="HOME"TITLE="The Linux USB sub-system"HREF="book1.html"><LINKREL="UP"TITLE="How to get USB devices working under Linux"HREF="c122.html"><LINKREL="PREVIOUS"TITLE="USB Human Interface Device (HID) Configuration"HREF="x194.html"><LINKREL="NEXT"TITLE="USB Audio Support"HREF="x319.html"></HEAD><BODY><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">The Linux USB sub-system</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="x194.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 2. How to get USB devices working under Linux</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="x319.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="AEN291">USB Scanner Support</A></H1><P>USB scanners do not have a common class specification, hence it isnot possible to make a device driver that works for all scanners.Not withstanding this, Linux USB does have a generic scanner driverthat provides the communication link between the device and user space.</P><P>In addition to the generic scanner interface, there is also a specificdriver for the Microtek X6 USB, and similar scanners such as thePhantom 336CX, Phantom C6 and ScanMaker V6USL. Only the X6 is wellsupported. </P><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN295">Generic Scanner Driver</A></H2><P>The USB Scanner driver is capable of supporting just about anyscanner. However meaningful output depends on the availability of asuitable user space tool, such as SANE, see<AHREF="http://www.mostang.com/sane"TARGET="_top">http://www.mostang.com/sane</A>.</P><P>If your scanner is not automatically associated with the scannerdriver, you have two options. The first option is to edit the sourcecode for the scanner driver - I assume that if you can do this, youwon't need any instructions. The second option is to use modules, andto load the module with the vendor and product IDs specified as moduleoptions:<TTCLASS="USERINPUT"><B>insmod scanner.o vendor=0xXXXX product=0xYYYY</B></TT>,where XXXX is the hexadecimal vendor ID code, and YYYY is thehexadecimal product ID code, which you can extract from thecontents of <TTCLASS="FILENAME">/proc/bus/usb/devices</TT> whenyou have the scanner plugged in.</P><P>You need to create an appropriate device file entry, using commands(as root) like the following:<TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">mknod /dev/usb/scanner0 c 180 48chmod a+rw /dev/usb/scanner0</PRE></TD></TR></TABLE></P><P>To use the scanner device, you will need a suitable tool. SANE isstrongly recommended. If you don't already have it installed or yourinstallation is old, you will need to retrieve the package from theclosest of the sites referenced at <AHREF="http://www.mostang.com/sane/source.html"TARGET="_top">http://www.mostang.com/sane/source.html</A>.</P><P>For instructions on building and installing SANE, refer to the variousREADME files within the SANE distribution, and more detailed instructionsfor specific scanners that are provided later in this document.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN307">Microtek X6USB Scanner Driver</A></H2><P>The Microtek scanner driver presents the scanner as a generic SCSIdevice, which is probably <TTCLASS="FILENAME">/dev/sg0</TT> unless you have some other device that uses the SCSI generic device interface. </P><P>In addition to selecting the <TTCLASS="USERINPUT"><B>Microtek X6USB scannersupport</B></TT> entry in <TTCLASS="USERINPUT"><B>USB support</B></TT>, youalso need to select <TTCLASS="USERINPUT"><B>SCSI generic support</B></TT> under<TTCLASS="USERINPUT"><B>SCSI support</B></TT>.</P><P>You need a very recent SANE release (1.0.3) or later to use thisdriver. If you don't already have it installed or yourinstallation is old, you will need to retrieve the package from theclosest of the sites referenced at <AHREF="http://www.mostang.com/sane/source.html"TARGET="_top">http://www.mostang.com/sane/source.html</A>.</P><P>For instructions on building and installing SANE, refer to the variousREADME files within the SANE distribution, and more detailed instructionsfor specific scanners that are provided later in this document.</P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="x194.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="book1.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="x319.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">USB Human Interface Device (HID) Configuration</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="c122.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">USB Audio Support</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -