Hi,
I am working on LTE USB modem driver installation. While plugin USB device it detect as CD-ROM and we need to switch it to USB modem before installing windows modem driver on the device.
Please help me how to do usb switch mode on Windows ?.
I found it can be done using DeviceIOControl() IOCTL_SCSI_PASS_THROUGH_DIRECT, But unclear what values need to pass in struct SCSI_PASS_THROUGH_DIRECT.
Please help is there any other method to do USB mode switch ?. if not what values need to pass in scsi ioctl.
Regards,
Kalpesh.
Why not provide both a CD-ROM and a modem immediately?
–
Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntdev…
> Hi,
>
> I am working on LTE USB modem driver installation. While plugin USB device it detect as CD-ROM and we need to switch it to USB modem before installing windows modem driver on the device.
>
> Please help me how to do usb switch mode on Windows ?.
> I found it can be done using DeviceIOControl() IOCTL_SCSI_PASS_THROUGH_DIRECT, But unclear what values need to pass in struct SCSI_PASS_THROUGH_DIRECT.
>
> Please help is there any other method to do USB mode switch ?. if not what values need to pass in scsi ioctl.
>
> Regards,
> Kalpesh.
>
>
Hi Maxim S. Shatskih,
Problem here is USB device first detect as CD-ROM where device having installer files, When user select installer we need to install the modem drivers and other device related drivers. Now to install modem driver we need to switch CD_ROM to modem without switching device modem driver installation failed with “no matching device found”.
No need to switch.
Just expose both CD and modem always.
Also, make the volume label of CD to be “OEMDRV”. At least in some scenarios, user-mode PnP will automatically search for driver package on such a volume, without displaying extra dialog boxes.
–
Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntdev…
> Hi Maxim S. Shatskih,
>
> Problem here is USB device first detect as CD-ROM where device having installer files, When user select installer we need to install the modem drivers and other device related drivers. Now to install modem driver we need to switch CD_ROM to modem without switching device modem driver installation failed with “no matching device found”.
>
>
>
> Just expose both CD and modem always.
I’ve seen another solution in one Huawei modem: it starts in the modem mode. After few seconds, if the modem driver does not talk to it, it reboots as CD.
Resetting the port repeats this sequence.
– pa
That is an approach implemented by a lot of vendors in the past, and it is
a pretty horrible approach. A composite device that provides both a storage
device and the other device is, in my opinion, much cleaner and does not
have to do the disappear/reappear as something else nonsense.
Mark Roddy
On Wed, Dec 9, 2015 at 5:52 AM, wrote:
> > Just expose both CD and modem always.
>
> I’ve seen another solution in one Huawei modem: it starts in the modem
> mode. After few seconds, if the modem driver does not talk to it, it
> reboots as CD.
> Resetting the port repeats this sequence.
>
> – pa
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list online at: <
> http://www.osronline.com/showlists.cfm?list=ntdev>
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
> software drivers!
> Details at http:
>
> To unsubscribe, visit the List Server section of OSR Online at <
> http://www.osronline.com/page.cfm?name=ListServer>
></http:>
If you use something like usbmon to trace the urb flow you can see there is a vendor specific SCSI command sent by original driver installer to switch the device. But why do you need to implement the installer yourself?