AnsweredAssumed Answered

SDK USB host test does not detect mouse

Question asked by Tyler Sheffield on Feb 25, 2014
Latest reply on Feb 27, 2014 by jamesbone

2

I am trying to use my iMX6 board as a host for a mouse.  The test says that mouse movements should be displayed on the console.

 

USB Driver

Host test

Connect usb mouse to the OTG or Host connector (according the prompt)

Run test.

Move the mouse, the x-y position  should be printed on the terminal. (The test has failed if nothing is printed.)

Click the left mouse button to exit.

 

I'm using the host connector.  The result is the same whether the mouse is connected or not.  Wondering if this has something to do with the onboard 'hub controller', and if that is the HID descriptor being sent.

 

Here is the console output, with debug enabled:

Select test to run:

us

0. OTG controller

1. Host1 controller

2. Exit USB test

Select > 1

0. usb_host_test

1. usb_host_testmode_test

2. usb_device_mouse_test

3. Exit to upper menu

Select > 0

Running usb_host_test on Host1 controller

Waiting USB mouse connected...

Connect detected.

Connected at high-speed

PORTSC = 0x18001205

Device connected at HIGH speed

Device descriptor has been read!!

 

USBSTS = 0x0004a081

device_descriptor[00] = 0x2000112

device_descriptor[01] = 0x5b448000

device_descriptor[02] = 0x00

device_descriptor[03] = 0xc141fef6

device_descriptor[04] = 0xfed70083

device_descriptor[05] = 0x1004fb7f

device_descriptor[06] = 0xe3ff2104

device_descriptor[07] = 0x86ff3

device_descriptor[08] = 0xd60d00

device_descriptor[09] = 0x00

device_descriptor[0a] = 0xf3ad0120

device_descriptor[0b] = 0xd0fffb

device_descriptor[0c] = 0xd7ffc601

device_descriptor[0d] = 0x4580af7a

device_descriptor[0e] = 0x76ff0146

device_descriptor[0f] = 0x8c000000

device_descriptor[10] = 0x00

device_descriptor[11] = 0xc99fcdb

Set address command complete!!

 

USBSTS = 0x00048081

Device descriptor has been read!!

 

USBSTS = 0x00048081

device_descriptor[00] = 0x2000112

device_descriptor[01] = 0x5b448000

device_descriptor[02] = 0x00

device_descriptor[03] = 0xc141fef6

device_descriptor[04] = 0xfed70083

device_descriptor[05] = 0x1004fb7f

device_descriptor[06] = 0xe3ff2104

device_descriptor[07] = 0x86ff3

device_descriptor[08] = 0xd60d00

device_descriptor[09] = 0x00

device_descriptor[0a] = 0xf3ad0120

device_descriptor[0b] = 0xd0fffb

device_descriptor[0c] = 0xd7ffc601

device_descriptor[0d] = 0x4580af7a

device_descriptor[0e] = 0x76ff0146

device_descriptor[0f] = 0x8c000000

device_descriptor[10] = 0x00

device_descriptor[11] = 0xc99fcdb

Configuration descriptor has been read!!

 

USBSTS = 0x00048081

config_descriptor[00] = 0x09

config_descriptor[01] = 0x02

config_descriptor[02] = 0x29

config_descriptor[03] = 0x00

config_descriptor[04] = 0x01

config_descriptor[05] = 0x01

config_descriptor[06] = 0x00

config_descriptor[07] = 0xe0

config_descriptor[08] = 0x01

Interface, hid, and endpoint descriptors have been read!!

 

USBSTS = 0x00048081

interface_descriptor[00] = 0x09

interface_descriptor[01] = 0x04

interface_descriptor[02] = 0x00

interface_descriptor[03] = 0x00

interface_descriptor[04] = 0x01

interface_descriptor[05] = 0x09

interface_descriptor[06] = 0x00

interface_descriptor[07] = 0x01

interface_descriptor[08] = 0x00

hid_descriptor[00] = 0x07

hid_descriptor[01] = 0x05

hid_descriptor[02] = 0x81

hid_descriptor[03] = 0x03

hid_descriptor[04] = 0x01

hid_descriptor[05] = 0x00

hid_descriptor[06] = 0x0c

hid_descriptor[07] = 0x09

hid_descriptor[08] = 0x04

ep_descriptor[00] = 0x00

ep_descriptor[01] = 0x01

ep_descriptor[02] = 0x01

ep_descriptor[03] = 0x09

ep_descriptor[04] = 0x00

ep_descriptor[05] = 0x02

ep_descriptor[06] = 0x00

Device enumerated.

 

Device is not a mouse. No further processing is performed

Outcomes