USB RNDIS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

USB RNDIS

跳至解决方案
2,368 次查看
andarm
Contributor II

# USB RNDIS feature 

-  Background:  LPC1830 , USB-ROM  

 

# Question 

-  configure as something as follow but can not display correctly on "devmgmt.msc" .

-  Currently display "other".  yes , if I configure other interface class it is work. That confuse me why wireless device is not work. 

# interface description 

ALIGNED(4uint8_t USB_FsConfigDescriptor_CDC[] =
{
//
// 标准配置描述符
//  
    0x09/* bLength: Configuation Descriptor size */
    USB_CONFIGURATION_DESCRIPTOR_TYPE,  /* bDescriptorType: Configuration */
    41,         /* wTotalLength low : Bytes returned */
    0x00,                               /* wTotalLength high: Bytes returned */
    0x01,         /* bNumInterfaces: 1 interface */
    0x01,         /* bConfigurationValue: Configuration value */
    0x00,         /* iConfiguration: Index of string descriptor describing the configuration*/
    0xC0,         /* bmAttributes: Bus powered */
                  /*Bus powered: 7th bit, Self Powered: 6th bit, Remote wakeup: 5th bit, reserved: 4..0 bits */
    0x96,         /* MaxPower 300 mA: this current is used for detecting Vbus */
    
//
// 接口描述符

    /* 09 */
    0x09,                               /* bLength: Interface Descriptor size */
    USB_INTERFACE_DESCRIPTOR_TYPE,      /* bDescriptorType: Interface descriptor type */
    0x00,         /* bInterfaceNumber: Number of Interface */
    0x00,         /* bAlternateSetting: Alternate setting */
    0x02,         /* bNumEndpoints 此接口有两个端点 */
    0xe0,         /* bInterfaceClass: */
    0x02,         /* bInterfaceSubClass */ 
    0x00,         /* nInterfaceProtocol */
    0,  

 

0 项奖励
1 解答
2,330 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport
0 项奖励
8 回复数
2,285 次查看
andarm
Contributor II

@ZhangJennie  Thanks.

Now got other issue. Using 

   USBD_API->core->DataInStage(pCtrl);  cause system crash down. 
0 项奖励
2,279 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

As this is a new issue, please create a new thread for it to separate different topic.

Thanks for your understanding.

Jun Zhang

0 项奖励
2,283 次查看
andarm
Contributor II

# The request is  "REMOTE_NDIS_INITIALIZE_MSG" , The using DataInStage reply, then cause above issue. 

0 项奖励
2,350 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi 

we have the  lpcOPEN project that you can refer, but the project don't have RNDIS class.

It is not possible to implement RNDIS by modify config descriptor.

 unfortunately we have no example code available for RNDIS

Have a nice day

Jun Zhang

0 项奖励
2,347 次查看
andarm
Contributor II

OK, Thank for your reply. I try to using CDC-ECM class for RNDIS. 
Currently, I got issue when I configure interface description. 
-  I want to know which files for this demo. If you can give it for me. Thank you so much.   

0 项奖励
2,345 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

We don’t have specific projects for those classes but there is a nxpUSBlib example that comes with the LPC43xx LPCOpen package I ever worked with that you can use as reference, the LPCUSBlib_SerialHost project. This example implements a CDC class host mode device that enumerates a CDC class device. It reads the first sector of the device and displays a hexdump style listing of that data on a terminal.
http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/lpc-mcus/lpc4300-cortex-m4-m0/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX

You can refer it for LPC1837

0 项奖励
2,334 次查看
andarm
Contributor II

Thank you so much.  Some reasons I not open the link. If you can upload the demo code I will get my heart appreciate you. 

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

As above debug, I using RNDIS class it can display on the PC. But it can not initialization which usb-rom not support this class.  

Can I  using DCD class device as RNDIS slave?   The host is totally different with slave. Right?  

0 项奖励
2,331 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport
0 项奖励