China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 19:29
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Usage of the USB driver duse under DOS View 2,401 Replies 4
Original Poster Posted 2007-05-13 06:07 ·  中国 重庆 联通
新手上路
Credits 4
Posts 1
Joined 2007-05-13 05:45
19-year member
UID 88356
Gender Male
Status Offline
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[BOSE], VERBOSE is the full writing of the parameter, and VER is the abbreviation, that is, BOSE in [ ] can be omitted.)

1: VER[BOSE][=x], 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[T]=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[VES]=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[RIVES], prohibits the support for USB drives. This parameter overrides the DRIVES parameter setting.

5: NOC[DROM], prohibits the support for USB CD-ROM drives.

6: MEM[POOL]=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[SIZE]=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[TORSIZE]=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[STATE]=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[13], enables the support for the INT13 function of the hard drive. This function provides support for some disk tools (such as FDISK).

11: DMA[SAFE], 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[HCI], prevents initializing the UHCI USB controller.

13: NOO[HCI], prevents initializing the OHCI USB controller.

14: NOE[HCI], 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[INIT], 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[AIT][=x], 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[EVICE]=<device name>, specifies the device name of the USB CD-ROM drive. The default device name is USBCDROM.

24: VFLOP[PY], 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[INIT] 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
Floor 2 Posted 2007-08-12 18:09 ·  中国 河南 洛阳 电信(铁通租用)
初级用户
Credits 40
Posts 17
Joined 2007-08-11 10:51
19-year member
UID 94956
Gender Male
Status Offline
Good
Floor 3 Posted 2007-08-16 12:45 ·  中国 广东 深圳 电信
初级用户
★★
Credits 138
Posts 67
Joined 2007-07-04 10:11
19-year member
UID 93093
Gender Female
From 云南
Status Offline
Floor 4 Posted 2007-08-26 18:32 ·  中国 山西 朔州 联通
新手上路
Credits 4
Posts 2
Joined 2007-08-26 00:25
18-year member
UID 95851
Gender Male
Status Offline
Floor 5 Posted 2007-08-27 09:35 ·  中国 天津 河西区 联通
新手上路
Credits 2
Posts 1
Joined 2007-08-25 16:49
18-year member
UID 95823
Gender Male
Status Offline
I have used DUSE and found that quite a few drivers can't be activated.
Forum Jump: