Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB RNDIS #506

Closed
pauluzs opened this issue Apr 23, 2019 · 4 comments
Closed

USB RNDIS #506

pauluzs opened this issue Apr 23, 2019 · 4 comments
Labels
enhancement New feature or request help wanted 🙏 Extra attention is needed

Comments

@pauluzs
Copy link

pauluzs commented Apr 23, 2019

Would it be possible to add a usb RNDIS device, So we can do networking over USB?
ie. run a udp server etc, Currently cores/arduino/stm32/usb/ contains only CDC and HID,

Windows 10 should support rndis without drivers needed for
USB_DESC_TYPE_DEVICE, /* bDescriptorType /
0x00, /
bcdUSB /
0x02,
0xEF, /
bDeviceClass /
0x04, /
bDeviceSubClass /
0x01, /
bDeviceProtocol */

https://github.com/fetisov/lrndis and https://github.com/Lexatagan/LRNDIS
are 2 examples only not based on stm32duino core.

Modifying these device descriptors was one thing,
Only implementing the endpoints for this is unfortunately above my knowledge.

Any help, links or useful info is welcome

@fpistm fpistm added the help wanted 🙏 Extra attention is needed label Apr 24, 2019
@fpistm
Copy link
Member

fpistm commented Apr 24, 2019

Hi @pauluzs
This probably could be achieved.
Quickly looking your link and see that all components are available (HAL, LWIP,...)
Currently, I will not have time to work on this but any help are welcome.

@pauluzs
Copy link
Author

pauluzs commented Apr 24, 2019

Tnx @fpistm,
Been trying to understand the usb part in this core first before the LWIP.
To add a new device: are all those files in the cores/arduino/stm32/usb/ folder?
So i need to create the necessary RNDIS files and folders using cdc and hid as guidelines.
Or does this require more like having a custom rndis middleware class in the STM32_USB_Device_Library as well?

@fpistm
Copy link
Member

fpistm commented Apr 24, 2019

Yes all related USB stub are here: cores/arduino/stm32/usb/ and linked to USB middleware STM32_USB_Device_Library.
As far as I know there is no RNDIS class in the middleware, only those one are provided:

  • Audio
  • CDC
  • CustomHID
  • HID
  • MSC

so I guess this is what the link you provide do anyway the middleware provide a template class so this could probably be used as a starting point.

@fpistm
Copy link
Member

fpistm commented Oct 8, 2019

Track in #687

@fpistm fpistm closed this as completed Oct 8, 2019
@fpistm fpistm added enhancement New feature or request and removed Request labels Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted 🙏 Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants