PDA

View Full Version : Some help with USB and XDA II


W4XY
9th December 2003, 10:32 PM
Hi,

Maybe someone here knows a solutions to this one:

When you go to bootloader on the XDA II you can use a serial cable to talk to it. However you can also dock your device in the cradle again and it will allow a USB connection to the bootloader prompt. However, with Windows it will start the wceusbsh.sys driver for active sync. In Linux it loads the generic serial USB driver, which allows you to connect to the bootloader with a terminal program.

Question is: does anyone know how to prevent the wceusbsh.sys driver to load, but instead load the serial usb driver (so you can use hyperterminal for example) OR how you can programmatically talk to the device through the wceusbsh.sys driver without any actuall active sync on the side of the device (that is running the bootloader and presenting a USB> prompt)

If I'm not clear let me know.

Thanks,

itsme
10th December 2003, 02:06 AM
(not really sure) but maybe this may help: http://www.lvr.com/usbfaq.htm

W4XY
10th December 2003, 11:37 PM
What I tried so far is edit the INF file for the wireless modem with the vendor and equipment IDs for the bootloader mode. Then remove the active sync driver from the Device manager and try to add the INF manually. That doesn't work without the device connected. And once you connect the device it immediately installs the windows driver again.

itsme
11th December 2003, 03:27 AM
ys, that is what I encountered too.

maybe completely remove everything from \windows\inf that has some relation to active sync?

itsme
11th December 2003, 11:25 AM
maybe the trick is to set the correct vendor/product id:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/modem/hh/modem/modem6_0ox3.asp

( trying now, requires reboot .. maybe a good sign )
[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}

Provider=%XDADEV%
LayoutFile=layout.inf
DriverVer=10/15/1999,5.0.2153.1

[Manufacturer]
%XDADEV%=XDADEV

[XDADEV]
%XDAUSBSER%=Reader, USB\VID_0BB4&PID_00CE

[Reader_Install.NTx86]
;Windows2000

[DestinationDirs]
DefaultDestDir=12
Reader.NT.Copy=12

[Reader.NT]
CopyFiles=Reader.NT.Copy
AddReg=Reader.NT.AddReg

[Reader.NT.Copy]
usbser.sys

[Reader.NT.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbser.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[Reader.NT.Services]
AddService = usbser, 0x00000002, Service_Inst

[Service_Inst]
DisplayName = %Serial.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\usbser.sys
LoadOrderGroup = Base

[Strings]
XDADEV = "XDA Developers"
XDAUSBSER = "XDA Serial over USB"
Serial.SvcDesc = "XDA USB Serial emulation driver"

itsme
11th December 2003, 11:43 AM
one step further, now activesync no longer works, and I do see a broken 'COM3'. :)

itsme
16th December 2003, 10:56 PM
got it to work programmatically - see http://www.xs4all.nl/~itsme/projects/xda/xda-ii.html - the xda2dmp tool.

allows you to dump either windows ce, or gsm memory, via serial port or usb