USB RNDIS

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,491件の閲覧回数
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,453件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport
0 件の賞賛
8 返答(返信)
2,408件の閲覧回数
andarm
Contributor II

@ZhangJennie  Thanks.

Now got other issue. Using 

   USBD_API->core->DataInStage(pCtrl);  cause system crash down. 
0 件の賞賛
2,402件の閲覧回数
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,406件の閲覧回数
andarm
Contributor II

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

0 件の賞賛
2,473件の閲覧回数
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,470件の閲覧回数
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,468件の閲覧回数
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,457件の閲覧回数
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,454件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport
0 件の賞賛