Hi Patrik, On 10/14/2015 03:20 PM, Patrik Flykt wrote:
> Hi, > > On Wed, 2015-10-14 at 13:09 +0000, John Ernberg wrote: >> All I know is that cdc_ether interfaces shows up as usb0, the eth0 >> ethernet is a real ethernet port. When looking in /sys/class/net/usb0 >> it indeed shows up as a gadget in the uevent file. > This now looks like you are connecting an USB client end on the USB host > system to a USB client on the USB client system. A USB client - USB > client connection between two devices won't work. If this is a correct > interpretation of your setup, the USB controller on the USB host system > needs to be configured to support USB host and not USB client as it > looks like its doing now. > > I think we need to start drawing figures in ascii art to get the picture > complete, there are too many USBs in the explanation above... USB Host USB Gadget +----------+ +----------+ | eth0| | | | ES | USB cable | Dev | | usb0|------------------|usb0 | +----------+ +----------+ cdc_ether g_ether DHCP Server DHCP Client Interface usb0 Always has usb0 created when DEVTYPE=gadget gadget is connected by USB cable. DEVTYPE=gadget in uevent file in /sys/class/net/usb0 > Cheers, > > Patrik > > > _______________________________________________ > connman mailing list > connman@connman.net > https://lists.connman.net/mailman/listinfo/connman However, progress! I should have tried this much earlier, I started an udhcpc instance on the USB Gadget side, and that gave the interface an IP almost immediately. This makes me think there is something with the DHCP Client that ConnMan starts on the USB gadget side. So I enabled DHCP debug logging in ConnMan on the USB Gadget side, and turned on regular debug prints, and I don't see any DHCP activity. Did I miss to enable some setting in ConnMan, or in the debug logging? Is there something specific I should be looking for in the ConnMan logs to understand why it doesn't work? Thank you in advance and best regards // John Ernberg _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman