Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Discussion Groups

Discussion Groups | LPC2000 | USB problem sending GetDeviceDescriptor SETUP packet

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

USB problem sending GetDeviceDescriptor SETUP packet - cy_lee_2001 - Jul 4 5:03:34 2008


Hi,
I'm working on LPC2468 USB Host Controller. I'm trying to send a
GetDeviceDescriptor Setup Packet to a USB Mouse. Following are the
controls setting of the Endpoint Descriptor(ED) and Transfer
Descriptor(TD):
HcED.FA = 0, HcED.EN=0, HcED.D = 0, HcED.S = 0, HcED.K =0,
HcED.F=0,HcED.MPS=8;

HcTD.R = 1, HcTD.DP = 0, HcTD.DI = 7, HcTD.T = 2

Using the oscilloscope i can see the data packet send out after SOF
packet. However upon doing CLF= 1, I get HcTD.CC = 5 indicating Device
Not Responding according to the OHCI spec.

Can any one help me out? Is my setting wrong?
Thanks.

Lee
------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: USB problem sending GetDeviceDescriptor SETUP packet - Foltos - Jul 4 5:12:13 2008

Hi,

are you using the right speed? Most mouse devices are low speed.

Foltos

cy_lee_2001 wrote:
> Hi,
> I'm working on LPC2468 USB Host Controller. I'm trying to send a
> GetDeviceDescriptor Setup Packet to a USB Mouse. Following are the
> controls setting of the Endpoint Descriptor(ED) and Transfer
> Descriptor(TD):
> HcED.FA = 0, HcED.EN=0, HcED.D = 0, HcED.S = 0, HcED.K =0,
> HcED.F=0,HcED.MPS=8;
>
> HcTD.R = 1, HcTD.DP = 0, HcTD.DI = 7, HcTD.T = 2
>
> Using the oscilloscope i can see the data packet send out after SOF
> packet. However upon doing CLF= 1, I get HcTD.CC = 5 indicating Device
> Not Responding according to the OHCI spec.
>
> Can any one help me out? Is my setting wrong?
> Thanks.
>
> Lee
> ------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: USB problem sending GetDeviceDescriptor SETUP packet - Adrian Bica - Jul 6 12:14:28 2008

--- In l...@yahoogroups.com, "cy_lee_2001" wrote:
>
> Hi,
> I'm working on LPC2468 USB Host Controller. I'm trying to send a
> GetDeviceDescriptor Setup Packet to a USB Mouse. Following are the
> controls setting of the Endpoint Descriptor(ED) and Transfer
> Descriptor(TD):
> HcED.FA = 0, HcED.EN=0, HcED.D = 0, HcED.S = 0, HcED.K =0,
> HcED.F=0,HcED.MPS=8;
>
> HcTD.R = 1, HcTD.DP = 0, HcTD.DI = 7, HcTD.T = 2
>
> Using the oscilloscope i can see the data packet send out after SOF
> packet. However upon doing CLF= 1, I get HcTD.CC = 5 indicating Device
> Not Responding according to the OHCI spec.
>
> Can any one help me out? Is my setting wrong?
> Thanks.
>
> Lee
>

The speed could be wrong as you were already told. You should use the
speed indicated by the Hub status.
Also, did you reset the mouse before start talking to it? An USB line
reset is necessary before a device becomes operational.
HcTD.DI = 7 will disable interrupt on completing request, so don't
expect to get one.
------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: USB problem sending GetDeviceDescriptor SETUP packet - cy_lee_2001 - Jul 8 2:27:27 2008

Thanks for the reply. I get the speed wrong. thanks.

--- In l...@yahoogroups.com, "Adrian Bica" wrote:
>
> --- In l...@yahoogroups.com, "cy_lee_2001" wrote:
> >
> > Hi,
> > I'm working on LPC2468 USB Host Controller. I'm trying to send
a
> > GetDeviceDescriptor Setup Packet to a USB Mouse. Following are the
> > controls setting of the Endpoint Descriptor(ED) and Transfer
> > Descriptor(TD):
> > HcED.FA = 0, HcED.EN=0, HcED.D = 0, HcED.S = 0, HcED.K =0,
> > HcED.F=0,HcED.MPS=8;
> >
> > HcTD.R = 1, HcTD.DP = 0, HcTD.DI = 7, HcTD.T = 2
> >
> > Using the oscilloscope i can see the data packet send out after
SOF
> > packet. However upon doing CLF= 1, I get HcTD.CC = 5 indicating
Device
> > Not Responding according to the OHCI spec.
> >
> > Can any one help me out? Is my setting wrong?
> > Thanks.
> >
> > Lee
> > The speed could be wrong as you were already told. You should use
the
> speed indicated by the Hub status.
> Also, did you reset the mouse before start talking to it? An USB
line
> reset is necessary before a device becomes operational.
> HcTD.DI = 7 will disable interrupt on completing request, so don't
> expect to get one.
>

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )