USB Firmware Problem - Two Devices

Hi,

I have written a Windows 2K based driver for a Cypress EZ USB FX based
device. I have also written the firmware for it which creates two ISO pipes of
size 0x50 and 0x100.

Everything works fine with one device connected to the system.
However, when I attach a second device to the system and it is detected by the
Windows OS, the data coming from the first device gets corrupted.
My device is downloaded with the firmware to make it a data acquistion USB device.

The Data from the first device gets corrupted as soon as the second device is
hotplugged into the system and sometimes when after I have downloaded the firmware
to second devcice.
Based on these results I checked my Adddevice and RemoveDevice() routines but there
is nothing wrong there . Also to isolate the problem further I failed the Adddevice
request for the second time (So that If i am doing something wrong in my driver
that can be verified). But to my surprise the data from the first device is still
corrupted

Could somebody give me pointers to this problem…

Thanks

Rahul Gupta

Does your devices have a “unique serial number” ?
I had a lot of trouble when installing 2 devices with a “unique serial
number” which was NOT UNIQUE ;=)

PaoloC

----- Original Message -----
From: “rahul gupta”
To: “Windows System Software Devs Interest List”
Sent: Thursday, June 17, 2004 2:35 PM
Subject: [ntdev] USB Firmware Problem - Two Devices

>
> Hi,
>
> I have written a Windows 2K based driver for a Cypress EZ USB FX based
> device. I have also written the firmware for it which creates two ISO
pipes of
> size 0x50 and 0x100.
>
> Everything works fine with one device connected to the system.
> However, when I attach a second device to the system and it is detected by
the
> Windows OS, the data coming from the first device gets corrupted.
> My device is downloaded with the firmware to make it a data acquistion USB
device.
>
> The Data from the first device gets corrupted as soon as the second device
is
> hotplugged into the system and sometimes when after I have downloaded the
firmware
> to second devcice.
> Based on these results I checked my Adddevice and RemoveDevice() routines
but there
> is nothing wrong there . Also to isolate the problem further I failed the
Adddevice
> request for the second time (So that If i am doing something wrong in my
driver
> that can be verified). But to my surprise the data from the first device
is still
> corrupted
>
> Could somebody give me pointers to this problem…
>
> Thanks
>
> Rahul Gupta
>
>
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@tin.it
> To unsubscribe send a blank email to xxxxx@lists.osr.com

Windows is reported to crash in this situation. :slight_smile:

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “PaoloC”
To: “Windows System Software Devs Interest List”
Sent: Friday, June 18, 2004 2:25 AM
Subject: Re: [ntdev] USB Firmware Problem - Two Devices

> Does your devices have a “unique serial number” ?
> I had a lot of trouble when installing 2 devices with a “unique serial
> number” which was NOT UNIQUE ;=)
>
> PaoloC
>
> ----- Original Message -----
> From: “rahul gupta”
> To: “Windows System Software Devs Interest List”
> Sent: Thursday, June 17, 2004 2:35 PM
> Subject: [ntdev] USB Firmware Problem - Two Devices
>
>
> >
> > Hi,
> >
> > I have written a Windows 2K based driver for a Cypress EZ USB FX based
> > device. I have also written the firmware for it which creates two ISO
> pipes of
> > size 0x50 and 0x100.
> >
> > Everything works fine with one device connected to the system.
> > However, when I attach a second device to the system and it is detected by
> the
> > Windows OS, the data coming from the first device gets corrupted.
> > My device is downloaded with the firmware to make it a data acquistion USB
> device.
> >
> > The Data from the first device gets corrupted as soon as the second device
> is
> > hotplugged into the system and sometimes when after I have downloaded the
> firmware
> > to second devcice.
> > Based on these results I checked my Adddevice and RemoveDevice() routines
> but there
> > is nothing wrong there . Also to isolate the problem further I failed the
> Adddevice
> > request for the second time (So that If i am doing something wrong in my
> driver
> > that can be verified). But to my surprise the data from the first device
> is still
> > corrupted
> >
> > Could somebody give me pointers to this problem…
> >
> > Thanks
> >
> > Rahul Gupta
> >
> >
> >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tin.it
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

On XP it did not crash, just refuse to install.
PaoloC

----- Original Message -----
From: “Maxim S. Shatskih”
To: “Windows System Software Devs Interest List”
Sent: Friday, June 18, 2004 12:44 AM
Subject: Re: [ntdev] USB Firmware Problem - Two Devices

> Windows is reported to crash in this situation. :slight_smile:
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> ----- Original Message -----
> From: “PaoloC”
> To: “Windows System Software Devs Interest List”
> Sent: Friday, June 18, 2004 2:25 AM
> Subject: Re: [ntdev] USB Firmware Problem - Two Devices
>
>
> > Does your devices have a “unique serial number” ?
> > I had a lot of trouble when installing 2 devices with a “unique serial
> > number” which was NOT UNIQUE ;=)
> >
> > PaoloC
> >
> > ----- Original Message -----
> > From: “rahul gupta”
> > To: “Windows System Software Devs Interest List”
> > Sent: Thursday, June 17, 2004 2:35 PM
> > Subject: [ntdev] USB Firmware Problem - Two Devices
> >
> >
> > >
> > > Hi,
> > >
> > > I have written a Windows 2K based driver for a Cypress EZ USB FX based
> > > device. I have also written the firmware for it which creates two ISO
> > pipes of
> > > size 0x50 and 0x100.
> > >
> > > Everything works fine with one device connected to the system.
> > > However, when I attach a second device to the system and it is
detected by
> > the
> > > Windows OS, the data coming from the first device gets corrupted.
> > > My device is downloaded with the firmware to make it a data acquistion
USB
> > device.
> > >
> > > The Data from the first device gets corrupted as soon as the second
device
> > is
> > > hotplugged into the system and sometimes when after I have downloaded
the
> > firmware
> > > to second devcice.
> > > Based on these results I checked my Adddevice and RemoveDevice()
routines
> > but there
> > > is nothing wrong there . Also to isolate the problem further I failed
the
> > Adddevice
> > > request for the second time (So that If i am doing something wrong in
my
> > driver
> > > that can be verified). But to my surprise the data from the first
device
> > is still
> > > corrupted
> > >
> > > Could somebody give me pointers to this problem…
> > >
> > > Thanks
> > >
> > > Rahul Gupta
> > >
> > >
> > >
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@tin.it
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@tin.it
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>