『楼 主』:
dos下的usb驱动duse使用方法
使用 LLM 解释/回答一下
Pocketec公司开发的DUSE就为我们提供了在DOS下对USB存储设备(USB硬盘、软驱、光驱)的支持,不过它目前还 不支持较常见的USB ThumbDrive(即U盘)。若要在DOS下驱动USB的U盘,请使用Motto Hairu驱动程序。另外,如果想在纯DOS下使用其它USB设备,如USB鼠标、USB打印机等,则可以使用其它的USB驱动程序,如USB_Link 中的OHCI/UHCI,以及USB4DOS等,均可在本站的“驱动程序”中找到相应的链接,并可在“DOS使用中的常见问题解答(FAQ)”中看到一些 DOS下使用USB设备的信息。
DUSE是DOS下的USB存储设备的驱动程序,目前的最新版本为4.2,是今年刚推出的。它的用法很简单,可在CONFIG.SYS中加载,也可以用它 自带的DUSELDR.COM程序来实现在DOS命令行下(包括批处理文件中)的加载。例如在CONFIG.SYS中加上一行:DEVICE=C:\ DOS\DUSE.EXE或在DOS命令行下执行DUSELDR C:\DOS\DUSE.EXE均可。
如果要加载的是USB光驱,除加载DUSE驱动程序外,还需运行光驱扩展驱动程序,通常可以使用DOS自带的MSCDEX.EXE。DUSE的默认光驱设备名是USBCDROM,在DOS命令行下可以像下面这样运行MSCDEX.EXE:
MSCDEX /D:USBCDROM /K
如果要更好地使用和控制DUSE,可以使用它提供的参数,DUSE的运行参数如下表:
(说明:以下为它的4.2版的参数,其最新4.4版又增加了EMUIRQ、UBNU、DDWAIT等参数。[]中表示可以省略的,以VER[BOSE]为例,VERBOSE是参数的完整写法,而VER则是简写,即[]中的BOSE可以省略。)
1: VER[BOSE][=x], 允许显示状态信息。x的合法值是0、1和2。0表示不显示信息,1表示显示文本消息,2表示采用弹出式窗口显示信息。默认值为0,如果输入了VERBOSE参数但未设定x的值的话,默认值为2。
2: WAI[T]=x, 设置显示弹出式窗口到关闭此窗口的时间(以秒来计算)。x的合法值为0到255之间,默认值为3。只有当VERBOSE的值为2的时候此参数才有效。
3: DRI[VES]=x, 设置允许的USB驱动器的数目。X取值从0到3。如果设置为0的话表示禁止USB驱动器的支持。默认值为1。
4: NOD[RIVES], 禁止对USB驱动器的支持。此参数将覆盖DRIVES参数设置。
5: NOC[DROM], 禁止对USB CD-ROM光驱的支持。
6: MEM[POOL]=x, 设置分配附加的内存的大小。DUSE会根据USB控制器的数目、传输的速度等来进行计算,确定最佳分配内存的大小。而设置此参数将由用户决定内存分配的大小,x值的单位为KB,合法值在0到128之间。
7: XFER[SIZE]=x, 设置允许的最大传输缓冲区,x值单位为KB来。增加传输缓冲区将增强传输性能,但也需要占用更多的内存。默认值为16。
8: SEC[TORSIZE]=x, 设置USB驱动器的扇区大小。x的值用字节来表示。合法值为512,1024或2048,默认为512。
9: APM[STATE]=x, 设置APM(高级电源管理)功能已启用的USB设备中APM的级别。增加此级别将增加设备的性能,但会增加电源的损耗。下面列出了合法的APM的状态x值:
* 最大性能 FEh
* 无挂起功能时中间的电源管理级别 81h-FDh
* 无挂起功能时最小电源损耗 80h
* 带挂起功能时中间的电源管理级别 02h-7Fh
* 带挂起功能时最小电源损耗 01h
x的默认值为0x7F。
10: INT[13], 启用硬盘的INT13功能支持. 此功能对一些磁盘工具(如FDISK)提供支持。
11: DMA[SAFE], 分配在数据传输中使用的DMA安全缓冲区。在运行一些需要从扩展内存中分配的缓冲的应用程序时此参数是必须指定的。
12: NOU[HCI], 防止初始化UHCI USB控制器。
13: NOO[HCI], 防止初始化OHCI USB控制器。
14: NOE[HCI], 防止初始化EHCI USB控制器。
15: UHCN=x, 指定DUSE初始化的UHCI控制器的最大数目为x。
16: OHCN=x, 指定DUSE初始化的OHCI控制器的最大数目为x。
17: EHCN=x, 指定DUSE初始化的EHCI控制器的最大数目为x。
18: LATE[INIT], 启用“延时初始化”的功能. 当使用此功能时,驱动程序在DOS启动阶段从CONFIG.SYS文件中加载,但是直到在DOS命令中使用INIT参数运行DUSE时才会正式启用USB 设备,典型是在AUTOEXEC.BAT文件的结尾。可看下面的“延时初始化”和“将DUSE当作应用程序来运行”的部分。
19: EBAR=x, 指定EHCI BAR(基地址寄存器)将被分配到内存中的地址。x的值必须是四位的16进制数字并带上前缀0x,例如要将EHCI BAR的地址置为0xE000,那么正确的命令行选项就是EBAR=0xE000。合法的地址区域在0xA000到0xF400之间。
20: OBAR=x, 指定OHCI BAR将被分配到内存中的地址。上面对EBAR的描述可应用于OBAR。
21: UBAR=x, 指定UHCI BAR将被分配到内存中的地址。上面对EBAR的描述可应用于UBAR,不过它的合法的地址区域在0x0400到0xF400之间。
22: CDW[AIT][=x], 指示DUSE的初始化要等到第一个USB CD-ROM光驱的盘符被分配,或在x秒钟之内不要结束。x的合法值在0到30之间。x=0是一个特殊值,它表示DUSE将一直等到第一个USB CD-ROM光驱的盘符被分配或用户按下键盘上的ESC键。如果没有指定x的值的话,默认为x=0。
23: CDD[EVICE]=<设备名>, 指定USB CD-ROM光驱的设备名。默认设备名是USBCDROM。
24: VFLOP[PY], 初始化时建立一个启动软盘的虚拟映像。
以下是使用一个命令行参数的例子。可参考此行把DUSE加入到CONFIG.SYS文件中:
DEVICE=C:\DUSE\DUSE.EXE VERBOSE DRIVES=2 XFER=8 SEC=2048 NOCD
此例子设置:
* 显示弹出式状态窗口
* 支持两个USB驱动器
* 将最大传输缓冲区大小设为8K
* 将默认扇区大小设为2048字节
* 禁止对USB CD-ROM光驱提供支持
* 关于“延时初始化”的功能
当在CONFIG.SYS中以LATE[INIT]参数来运行DUSE(例如使用DEVICE=DUSE.EXE LATE)时,要真正使用USB设备还需进行一次真正的初始化。真正的初始化的方法是在DOS命令行下(包括批处理文件中)使用DUSE INIT命令。
* 关于“将DUSE当作应用程序来运行”的功能
将DUSE当作应用程序来在DOS命令行下运行时,DUSE只支持INIT参数。此参数在上面的“延时初始化”以后于DOS命令行上加载,使得DUSE真正初始化USB设备,以真正使用USB设备
Pocketec's DUSE provides support for USB storage devices (USB hard drives, floppy drives, CD-ROM drives) under DOS, but it currently does not support the more common USB ThumbDrive (i.e., USB flash drive). To drive USB flash drives under DOS, use the Motto Hairu driver. Additionally, if you want to use other USB devices under pure DOS, such as USB mice, USB printers, etc., you can use other USB drivers, such as OHCI/UHCI in USB_Link, and USB4DOS, etc. Corresponding links can be found in the "Drivers" section of this site, and some information about using USB devices under DOS can be seen in the "Common Questions and Answers (FAQ) in DOS Usage".
DUSE is a USB storage device driver under DOS. The latest version is 4.2, which was just released this year. Its usage is very simple. It can be loaded in CONFIG.SYS, or the built-in DUSELDR.COM program can be used to load it at the DOS command line (including in batch files). For example, add a line in CONFIG.SYS: DEVICE=C:\DOS\DUSE.EXE or execute DUSELDR C:\DOS\DUSE.EXE at the DOS command line.
If you want to load a USB CD-ROM drive, in addition to loading the DUSE driver, you also need to run the CD-ROM extension driver. Usually, you can use MSCDEX.EXE that comes with DOS. The default CD-ROM device name of DUSE is USBCDROM. You can run MSCDEX.EXE at the DOS command line as follows:
MSCDEX /D:USBCDROM /K
To better use and control DUSE, you can use the parameters it provides. The running parameters of DUSE are as follows:
(Note: The following are the parameters of version 4.2. The latest version 4.4 has added parameters such as EMUIRQ, UBNU, DDWAIT, etc. indicates what can be omitted. For example, VER, VERBOSE is the full writing of the parameter, and VER is the abbreviation, that is, BOSE in can be omitted.)
1: VER, allows displaying status information. The legal values of x are 0, 1, and 2. 0 means no information is displayed, 1 means text messages are displayed, and 2 means information is displayed in pop-up windows. The default value is 0. If the VERBOSE parameter is entered but the value of x is not set, the default value is 2.
2: WAI=x, sets the time (calculated in seconds) from when the pop-up window is displayed to when it is closed. The legal value of x is between 0 and 255, and the default value is 3. This parameter is only valid when the value of VERBOSE is 2.
3: DRI=x, sets the number of allowed USB drives. X takes values from 0 to 3. If set to 0, it means the support for USB drives is prohibited. The default value is 1.
4: NOD, prohibits the support for USB drives. This parameter overrides the DRIVES parameter setting.
5: NOC, prohibits the support for USB CD-ROM drives.
6: MEM=x, sets the size of the allocated additional memory. DUSE will calculate and determine the best size for allocating memory according to the number of USB controllers, transmission speed, etc. Setting this parameter allows the user to determine the size of memory allocation. The unit of x is KB, and the legal value is between 0 and 128.
7: XFER=x, sets the maximum allowed transfer buffer. The unit of x is KB. Increasing the transfer buffer will enhance the transmission performance, but also require more memory. The default value is 16.
8: SEC=x, sets the sector size of the USB drive. The value of x is expressed in bytes. The legal values are 512, 1024, or 2048, and the default value is 512.
9: APM=x, sets the APM (Advanced Power Management) level of USB devices for which the APM function is enabled. Increasing this level will increase the performance of the device but will increase power consumption. The following are the legal APM state x values:
* Maximum performance FEh
* Intermediate power management level without suspend function 81h-FDh
* Minimum power consumption without suspend function 80h
* Intermediate power management level with suspend function 02h-7Fh
* Minimum power consumption with suspend function 01h
The default value of x is 0x7F.
10: INT, enables the support for the INT13 function of the hard drive. This function provides support for some disk tools (such as FDISK).
11: DMA, allocates a DMA safe buffer for use in data transmission. This parameter must be specified when running some applications that need to allocate buffers from extended memory.
12: NOU, prevents initializing the UHCI USB controller.
13: NOO, prevents initializing the OHCI USB controller.
14: NOE, prevents initializing the EHCI USB controller.
15: UHCN=x, specifies that the maximum number of UHCI controllers initialized by DUSE is x.
16: OHCN=x, specifies that the maximum number of OHCI controllers initialized by DUSE is x.
17: EHCN=x, specifies that the maximum number of EHCI controllers initialized by DUSE is x.
18: LATE, enables the "delayed initialization" function. When this function is used, the driver is loaded from the CONFIG.SYS file during the DOS startup phase, but the USB device is not officially enabled until DUSE is run with the INIT parameter in the DOS command, typically at the end of AUTOEXEC.BAT. See the "Delayed Initialization" and "Running DUSE as an Application" sections below.
19: EBAR=x, specifies the address in memory to which the EHCI BAR (Base Address Register) will be allocated. The value of x must be a four-digit hexadecimal number with the prefix 0x. For example, to set the address of the EHCI BAR to 0xE000, the correct command line option is EBAR=0xE000. The legal address range is between 0xA000 and 0xF400.
20: OBAR=x, specifies the address in memory to which the OHCI BAR will be allocated. The description above for EBAR applies to OBAR.
21: UBAR=x, specifies the address in memory to which the UHCI BAR will be allocated. The description above for EBAR applies to UBAR, but its legal address range is between 0x0400 and 0xF400.
22: CDW, instructs DUSE to wait for initialization until the drive letter of the first USB CD-ROM drive is assigned, or not to end within x seconds. The legal value of x is between 0 and 30. x=0 is a special value, which means DUSE will wait until the drive letter of the first USB CD-ROM drive is assigned or the user presses the ESC key on the keyboard. If the value of x is not specified, the default is x=0.
23: CDD=<device name>, specifies the device name of the USB CD-ROM drive. The default device name is USBCDROM.
24: VFLOP, creates a virtual image of a boot floppy disk during initialization.
The following is an example of using a command line parameter. You can refer to this line to add DUSE to the CONFIG.SYS file:
DEVICE=C:\DUSE\DUSE.EXE VERBOSE DRIVES=2 XFER=8 SEC=2048 NOCD
This example sets:
* Display pop-up status windows
* Support two USB drives
* Set the maximum transfer buffer size to 8K
* Set the default sector size to 2048 bytes
* Prohibit the support for USB CD-ROM drives
* About the "delayed initialization" function
When DUSE is run with the LATE parameter in CONFIG.SYS (for example, using DEVICE=DUSE.EXE LATE), to truly use the USB device, a real initialization is still required. The real initialization method is to use the DUSE INIT command at the DOS command line (including in batch files).
* About the "running DUSE as an application" function
When running DUSE as an application at the DOS command line, DUSE only supports the INIT parameter. This parameter is loaded at the DOS command line after the "delayed initialization" above, so that DUSE truly initializes the USB device to truly use the USB device
|