Hi,
On 11/8/18 6:21 AM, Lao Hu wrote:
Hello,
An embedded device with ethernet, usb-otg and wifi is running connman.
1.- [OK] When the ethernet cable is plugged in, an IP (192.168.0.39) is
assigned to eth0.
2.- [OK] When the usb-otg is connected to the host, an IP (192.168.0.2)
is assigned to usb0 (wifi and ethernet are disconnected).
Is the device in 1) the uplink and your router (DHCP) server in your
network assigns your device running ConnMan the IP 192.168.0.39? Because
if the ConnMan tethers the uplink via the device in 2) it should not
hand out the 192.168.0.2.
3.- [?] When the wifi is connected,tether disappear in the device
(ifconfig -a) and the system console show the following message:
Connected wifi_50338b6692d8_636173697461_managed_psk
...
tether: port 1(usb0) entered disabled state
device usb0 left promiscuous mode
tether: port 1(usb0) entered disabled state
Is the WiFi interface also attached via USB? Just wondering if ConnMan
does that or it is just some device behavior. The last three lines are
from the kernel, right? Do you happen to have a ConnMan log?
About the item #3, I tried to find info related with this case, but
not
success. Please, may I know if is possible to to have the device
connected to wifi (or ethernet) and the host connected to the device
using usb0 at the same time?
The tethering should not have any side effect on an unrelated interface
as long it is not same technology. ConnMan groups all devices with the
same technology together and controls them as a group. Hmm, that might
actually be your problem if the usb-otg is handled as ethernet device in
the upper layers of ConnMan.
Thanks,
Daniel