中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
作者:
标题: 怎样在DOS下用USB设备? 上一主题 | 下一主题
waterfall
初级用户




积分 106
发帖 1
注册 2004-5-1
状态 离线
『楼 主』:  怎样在DOS下用USB设备?

怎样在纯DOS下用USB设备?
是不是一定要用软件来帮忙。

2004-5-1 00:00
查看资料  发送邮件  发短消息 网志  OICQ (43069441)  编辑帖子  回复  引用回复
hotthing
初级用户




积分 114
发帖 3
注册 2003-1-19
状态 离线
『第 2 楼』:  

USB with DOS
Robert Prins was one of a few people who sent me this copy of an article about USB support on DOS.

{original article}

{panasonic download}

{dars.com download}


--------------------------------------------------------------------------------

Yes, there are USB drivers for DOS...
Miracle-driver from Panasonic Japan does the unthinkable

By Fernando Cassia: Friday 27 June 2003, 11:19

HAVING AN EXTERNAL USB cd-writer or hard disk works wonders as long as your operating system is in good shape. But if someday the system stops booting, you are lost. Booting from good old MS-DOS or Windows boot diskettes - even fitted with the needed third party NTFSDOS or EXTFS drivers - gives you access to your fixed hard disk only, but none of the USB peripherals can be accessed from the DOS command line. Before you start scratching your head, let me repeat that this is not related to your favorite linux distro's or Windows XP/W2K/98/ME's USB support, this has to do with people like me, booting some flavor of DOS to copy files around or using DOS-based partition back-up software.

Imagine that you want to use Paragon Drive Backup, Powerquest's Drive Image, or Norton Ghost, to backup your hard disk partitions to that nice 120gb external USB 2.0 hard disk you just bought. You can't do it. Or if your wife/husband has managed to mess up her/his system so badly that it can't boot anymore, yet she/he wants you to have a copy of those nice digital pictures stored on a compactflash card plugged into the compactflash reader?. No way, Jose. Not from DOS, used to be the phrase.

Well, now you CAN.

The minor miracle here is using a driver file called "USBASPI.SYS" ("Panasonic v2.06 ASPI Manager for USB mass storage". Given the right parameter incantations, this 16-bit Panasonic-developed DOS driver will let your system boot good-old DOS -any flavour, maybe even Caldera's OpenDOS and recognize all USB devices connected to the respective controllers. So this USB device identification is also useful for debugging/troubleshooting purposes.

However, it should be noted that this driver will only map mass storage devices like external hard disks, cd- roms, cd-rw, dvd-rom, zip, jaz, ls- 120, and flash memory to ASPI devices. Then you need an elusive "ASPI mass storage driver" to map HDs and flash disks it to a drive letter in DOS. This one goes by the name "di1000dd.sys", commonly referred to as the "Motto Hairu USB Driver". Don't ask why, it's called that, I don't know.

Before you continue reading and decide to go out and do "bad things" let me mention that legalese on the Panasonic site most probably prevents you from downloading and using this driver on non-Panasonic devices, yet according to reports that are floating around on the Interweb, people have been able to use these "universal drivers" on a wide range of systems with different USB connectivity, UHCI, OHCI, and USB 2.0's EHCI with the NEC chipset.

The Panasonic DOS drivers seem to work on most USB chipset implementations, including Intel and NEC, as well as NVidia, VIA, and SIS. It seems Panasonic engineers didn't want to have to write a driver every time for every different chipset, so they wrote this "universal" driver to work with all possible USB controllers.

Now the hairy details for DOS old-timers like myself who actually enjoy editing config.sys [Cough. Ed.]:

The driver switches you can use are: device=(path)\USBASPI.SYS [/e] [/o] [/w] [/v] [/l[=n]] [/f] /r] [/slow] [/nocbc] [/norst] [/noprt]

The driver scans all three USB controller specs by default, but you can limit which controllers are enabled using these switches:

/e EHCI spec (USB 2.0)
/o OHCI spec (newer USB 1.x)
/u UHCI spec (older USB 1.x)

And so far I learned what these switches mean:

/w Wait, displays text message for attaching or swapping USB devices
/v Verbose, shows status messages - recommended
/l[=n] LUN, specifies highest LUN # to be attached to device ID (default=0)

Example config.sys and autoexec.bat files on a DOS boot diskette with USB support for an usb cd-(rom/rw) and hard disk look like this:

[config.sys]
DOS=HIGH,UMB
lastdrive=Z
device=HIMEM.SYS
rem The following line loads Panasonic's universal USB- controller driver
devicehigh=USBASPI.SYS /v /w /e
rem the following is an aspi mass storage driver for usb- connected HDs
and compactflash memory cards
devicehigh=DI1000DD.SYS
rem The following one loads CD-ROM driver
devicehigh=USBCD.SYS /d:USBCD001

[autoexec.bat]
@echo off
REM the following line adds a drive letter to the usb cd(rom/r/rw) mounted
LH MSCDEX /d:USBCD001

The Panasonic driver also seems to recognise some TI cardbus controllers, making it possible to use USB peripherals attached to USB (even 2.0!) Cardbus cards. Your mileage might vary. Knowledge of the Japanese language might be required to read and understand the Panasonic licence agreement or the cease-and-desist letters. Explore at your own risk.

Comments? Drop me a line here.

L'INQs
Panasonic v2.06 ASPI Manager for USB mass storage
USBASPI.SYS
(Look for the "F2H" subdirectory after extraction of the downloaded archive)
FTP site: Motto Hairu Mass Storage ASPI drivers


2004-5-11 00:00
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
992952shi
初级用户




积分 121
发帖 7
注册 2004-5-9
状态 离线
『第 3 楼』:  

是什么拉圾啊

2004-5-15 00:00
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
展翅
中级用户

会飞的鱼


积分 253
发帖 44
注册 2004-6-17
状态 离线
『第 4 楼』:  

看不懂!!~~~~~~~~~

2004-6-20 00:00
查看资料  发送邮件  发短消息 网志  OICQ (260002674)  编辑帖子  回复  引用回复
liuxiayun
初级用户




积分 196
发帖 20
注册 2004-6-20
状态 离线
『第 5 楼』:  

这个设备驱动程序在哪里可以找到?

2004-6-20 00:00
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
ycd11111
初级用户




积分 134
发帖 7
注册 2004-6-23
状态 离线
『第 6 楼』:  

device=(path)\USBASPI.SYS [/e] [/o] [/w] [/v] [/l[=n]] [/f] /r] [/slow] [/nocbc] [/norst] [/noprt]

明白了。受教。只是没想到居然可以支持2.0.

PS:另外,3楼看不懂的你可以不加评论.但说垃圾这就是你不对了.玩DOS不要求你英语很好,基本对话应该看得懂吧?你来这里谓何?谁是垃圾自知之。

2004-6-24 00:00
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
liuxiayun
初级用户




积分 196
发帖 20
注册 2004-6-20
状态 离线
『第 7 楼』:  

就是不知道这个USBASPI.SYS在啊里可以找到。请知道的朋友帮忙,谢谢!!!

2004-6-26 00:00
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: