TWRVF65GS10-USB host stack(MQX):Need class driver for Wireless Host Wire Adapter class

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TWRVF65GS10-USB host stack(MQX):Need class driver for Wireless Host Wire Adapter class

906 Views
manjug
Contributor III

Hi,

I need class driver for USB wireless HWA(Host Wire adapter) class for MQX.I want to read descriptor from Dlink USB wifi adapter connected to TWRVF65GS10 tower board.I'm not able to get the descriptor for USB Wifi adapter using  _usb_host_ch9_get_descriptor(). Please help me.

Labels (1)
0 Kudos
3 Replies

633 Views
SergioSolis
NXP Employee
NXP Employee

Hello Manju,

Unfortunately we do not have a driver for USB Wireless class for MQX, you would need to develop it on your side.

0 Kudos

633 Views
manjug
Contributor III

Hi Sergio Solis,

Actually i'm developing the driver for USB wireless class-Host Wire Adapter(Dlink DWA-123 wifi dongle).

I need support for it.Actually Wireless class devices provide Host Wire Adapter(HWA) class descriptor and Rpipe(Remote pipe) descriptor to get it i'm using the Ch9 function _usb_host_ch9_get_descriptor.But it is not able to retrieve it from device.Simple Device descriptor also not able to retrieve using this function.Below is the explanation of it:

When i call host_ch9 function to request device for getting descriptor it's not able to get the descriptor values in my host application code-

case USB_DEVICE_INTERFACED:

status=_usb_host_ch9_get_descriptor(usb_device.DEV_HANDLE,

  USB_DESC_TYPE_DEV<<8, 0, USB_DESC_LEN_DEV,

  (unsigned char *)&dev_ptr->dev_descriptor);

if (status != USB_OK)

    {

      printf("\r\n no descriptor from ch9functions");

    }

  e = _lwevent_get_signalled();

  if (USB_EVENT_DATA & e) {

  if(usb_device.DEV_STATE == USB_DEVICE_INUSE) {

  break;

  }

  else{

  usb_device.DEV_STATE = USB_DEVICE_INUSE;

  break;

  }

  }

  if (USB_EVENT_CTRL & e) {

  /* kick the outer loop again to handle the CTRL event */

  _lwevent_set(&USB_Event, USB_EVENT_CTRL);

  break;

  }

  usb_device.DEV_STATE = USB_DEVICE_INUSE;

  break;

I have attached my host application code file.Please help me on this.

0 Kudos

633 Views
manjug
Contributor III

Hi,

Anyone please reply for the post.

0 Kudos