WINCE 5.0 USBHOST 两U盘同时插入的状态开机U盘1的盘符闪一下
IT铁哥 2012-03-30 02:18:05
WINCE 5.0 USBHOST 两U盘同时插入的状态开机U盘1的盘符闪一下
首先看到U盘1显示出来了--》U盘1消失,U盘2出现(同时发生显示的位置也在U盘1的位置)---》U盘2 显示出来。
关键就在第二步U盘1消失。 然后又出来。
通过DEBUG信息可以看到在加载U盘2的时候又将U盘1卸掉了。不知原因。哪位兄弟碰到同样的问题没有。
我的USB HOST用的是WINCE PUBLIC里面的代码。
DEBUG信息。
0x83fe9b90: FS: Registering file system l? index 8, flags 0x00000000
0x83fe9b90: FS: Mount complete (l? index 8, flags 0x00000000)
0x83bae000: FSREG: Invalid HKEY 0x00000000
0x83bae000: FSREG: Invalid HKEY 0x00000000
0x83fe9b90: Unsupported IOCTL:0x71c24
0x83fe9b90: DSK_IOControl error: 50
0x83fe9b90: Loading partition driver mspart.dll hModule=83FADE88
0x83fe9b90: Driver mspart.dll loaded
0x83fe9b90: Opened the store hStore=000EA090
0x83fe9b90: NumSec=7744512 BytesPerSec=512 FreeSec=0 BiggestCreatable=0
0x83fe9b90: Partition Part00 NumSectors=7736320
0x83fe9b90: MSPART!PD_OpenPartition: dwStoreId=000EA090, PartName=Part00
0x83fe9b90: FSD_MountDisk: mounting volumes for hDsk=000EB550
0x83fe9b90: FATFS!OpenVolume: access time updates disabled
0x83fe9b90: FATFS!OpenVolume: event logging enabled
0x83fe9b90: FATFS!OpenVolume: automatic scanning enabled
0x83fe9b90: FATFS!OpenVolume: write verify enabled on first 3 writes
0x83fe9b90: FATFS!OpenVolume: extra FAT on format disabled
0x83fe9b90: FATFS!OpenVolume: force write through disabled
0x83fe9b90: FATFS!OpenVolume: Codepage = 1
0x83fe9b90: FATFS!OpenVolume: Number of path cache entries = 50
0x838289ac: DumpRegister (DLL=0, DLM=0, LCR = 83, MCR =0)
0x83743a04: FATFS!FAT_CreateFileW(\desktop.ini) returned 0x0 (2)
0x83743a04: FATFS!FAT_CreateFileW(\desktop.ini) returned 0x0 (2)
//这里已经将U1盘的盘符显示出来了。
0x83fe9b90: FATFS!InitVolume: FAT version: 32
0x83fe9b90: FATFS!InitVolume: Cluster Size (Sectors): 8
0x83fe9b90: FATFS!InitVolume: TFAT enabled: FALSE
0x83fe9b90: FATFS!ScanVolume: Beginning Scan0x83822d48: DumpRegister (DLL=0, DLM=0, LCR = 83, MCR =0)
0x83fe9b90: Unsupported IOCTL:0x71c4c
0x83fe9b90: DSK_IOControl error: 50
0x83fe9b90: FS: Registering file system l?, index 9, flags 0x00000000
0x83fe9b90: FS: Mount complete (l?, index 9, flags 0x00000000)
0x83fe9b90: FSD_UnmountDisk(0xe6fc0): unmounting...(这里不知为什么将盘符1 UnmountDisk )
0x83fe9b90: FATFS!UnmountDisk: unmounting all volumes on disk 000E6FC0
0x83fe9b90: CStore Destructor(000E2CB0)
0x83fe9b90: Unsupported IOCTL:0x71c24
0x83fe9b90: DSK_IOControl error: 50
0x83fe9b90: Loading partition driver mspart.dll hModule=83FADE88
0x83fe9b90: Driver mspart.dll loaded
0x83bae000: FSREG: Invalid HKEY 0x00000000
0x83bae000: FSREG: Invalid HKEY 0x00000000
0x83743a04: FATFS!FAT_CreateFileW(\desktop.ini) returned 0x0 (2)
0x83743a04: FATFS!FAT_CreateFileW(\desktop.ini) returned 0x0 (2)
这里显示了U盘2的盘符。
0x83743a04: FATFS!FAT_FindFirstFileW(0x00000000,\*.*) returned 0xffffffff "" (18)
0x83fe9b90: Opened the store hStore=000E37C0
0x83fe9b90: NumSec=7659520 BytesPerSec=512 FreeSec=0 BiggestCreatable=0
0x83fe9b90: Partition Part00 NumSectors=7651328
0x83fe9b90: MSPART!PD_OpenPartition: dwStoreId=000E37C0, PartName=Part00
0x83fe9b90: FSD_MountDisk: mounting volumes for hDsk=000E7C10
0x83fe9b90: FATFS!MountDisk: BPB_HiddenSectors(8192) != 0
0x83fe9b90: FATFS!OpenVolume: access time updates disabled
0x83fe9b90: FATFS!OpenVolume: event logging enabled
0x83fe9b90: FATFS!OpenVolume: automatic scanning enabled
0x83fe9b90: FATFS!OpenVolume: write verify enabled on first 3 writes
0x83fe9b90: FATFS!OpenVolume: extra FAT on format disabled
0x83fe9b90: FATFS!OpenVolume: force write through disabled
0x83fe9b90: FATFS!OpenVolume: Codepage = 1
0x83fe9b90: FATFS!OpenVolume: Number of path cache entries = 50
0x83fe9b90: FATFS!InitVolume: FAT version: 32
0x83fe9b90: FATFS!InitVolume: Cluster Size (Sectors): 64
0x83fe9b90: FATFS!InitVolume: TFAT enabled: FALSE
0x83fe9b90: FATFS!ScanVolume: Beginning Scan
0x83fe9b90: Unsupported IOCTL:0x71c4c
0x83fe9b90: DSK_IOControl error: 50
0x83fe9b90: FS: Registering file system l? index 8, flags 0x00000000
0x83fe9b90: FS: Mount complete (l? index 8, flags 0x00000000)
0x83cd8a40: DumpRegister (DLL=54, DLM=0, LCR = 87, MCR =0)
0x83bae000: FSREG: Invalid HKEY 0x00000000
0x83bae000: FSREG: Invalid HKEY 0x00000000
0x83743a04: FATFS!FAT_CreateFileW(\desktop.ini) returned 0x0 (2)
0x83743a04: FATFS!FAT_CreateFileW(\desktop.ini) returned 0x0 (2)
这里又将U盘1的盘符显示出来了。