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

netusb: RNDIS host support #21121

Closed
Jeepgoing opened this issue Dec 3, 2019 · 11 comments
Closed

netusb: RNDIS host support #21121

Jeepgoing opened this issue Dec 3, 2019 · 11 comments
Assignees
Labels
area: Networking area: USB Universal Serial Bus

Comments

@Jeepgoing
Copy link

Jeepgoing commented Dec 3, 2019

Hi, i am testing Zephyr connect to Android Phone with Type-C, i found Android Phone only supports RNDIS Device mode, so it that mean Zephyr device should support RNDIS Host?

I also tried ECM mode, but Zephyr can't run DHCP Server, so Android Phone doesn't have IP

@Jeepgoing Jeepgoing added the Feature Request A request for a new feature label Dec 3, 2019
@jfischer-no jfischer-no added question area: Networking area: USB Universal Serial Bus and removed Feature Request A request for a new feature labels Dec 3, 2019
@tuobaye1988
Copy link

Hi, I have same question

@carlescufi
Copy link
Member

@Jeepgoing Zephyr only supports the USB Device role, not USB Host.

@Jeepgoing
Copy link
Author

@carlescufi @finikorg I think RNDIS have Host and Decice itself , is it possible RNDIS host run on USB device?

@finikorg
Copy link
Collaborator

@Jeepgoing Do you have Android phone with OTG?

@Jeepgoing
Copy link
Author

yes @finikorg It's have OTG function

@finikorg
Copy link
Collaborator

yes @finikorg It's have OTG function

Then Zephyr is USB device and RNDIS should work

@Jeepgoing
Copy link
Author

@finikorg But Android phone need DHCP by Zephyr, I can't find DHCP server support

@jukkar
Copy link
Member

jukkar commented Dec 12, 2019

If Zephyr is compiled with auto IPv4 support CONFIG_NET_IPV4_AUTO=y, the system should start using 169.254.xxx.xxx addresses so there should be no need for DHCP server support.

@Jeepgoing
Copy link
Author

@jukkar you mean Zephyr Device and Android Phone all use default IP?

@jukkar
Copy link
Member

jukkar commented Dec 12, 2019

you mean Zephyr Device and Android Phone all use default IP?

No, I mean that if devices are configured to use auto IPv4 addresses, then they will select suitable IPv4 addresses from 169.254/16 block in order to communicate with each other. Linux typically has this support automatically enabled but in zephyr you need to manually enable this.

@finikorg
Copy link
Collaborator

Closing per comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking area: USB Universal Serial Bus
Projects
None yet
Development

No branches or pull requests

6 participants