This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How to enable RNDIS and CDC for USB
On Tue, Sep 18, 2007 at 02:27:55PM +0530, Imran Khan wrote:
> Hi Andrew,
> Thank you for your reply.
> You are correct that host is getting wrong descriptors but such is the
> design of linux code.
>
> Here the compilation is done on the basis of some configuration flags
> specific to CDC or RNDIS so you can use your image with either CDC or
> RNDIS ,but in our code instead of having compile time flags we are
> setting some flags at run time and monitoring the enumeration
> process ,if enumeration is not complete within a specific time our
> device assumes that host is not right, then we set flags for
> other host and reinitialize the USB part.Our default flag setting is for
> RNDIS.
> Our problem is that once the host gets wrong descriptor it stops
> communication with the device so the new configuration is never used.
> Could you please tell me is there any other way of doing this ?
So where really is the problem? Wrong descriptors? Broken Linux host
implementation? If the descriptors are broken, fix them. If the Linux
host is broken, fix it.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss