Hi,

On Wed, 2014-05-21 at 19:47 +0200, Jakub Ladman wrote:
> > Set 'PreferredTechnologies = ethernet' in /etc/connman/main.conf to
> > prioritize ethernet over every other type of connection.
> 
> Yes this is what i allready know.
> 
> But ... problem is, that the both interfaces appearing as cable ethernet.

Sorry, I misunderstood you initially.

> Connman has no way to distinguish between the two.
> 
> I am seeking for some way to tell connman (using config file, udev or 
> whatever) 
> that one mac address is cable and second mac address is (much more expensive) 
> connection of "class GSM".

The network type is read from /sys/class/net/<interface>/uevent. If that
file indicates DEVTYPE=wwan, ConnMan believes it to be a cellular
connection. If there is nothing in the file, ethernet is assumed by
default. These values are provided by the kernel device driver which
seems to be missing some code to set it properly.

ConnMan handles the uevent file in src/rtnl.c, read_uevent().

Is oFono setting up the cellular connection? Which cellular modem is
this and which kernel driver is it using? The only huawei usb kernel
driver ./net/usb/huawei_cdc_ncm.c seems to be setting a wwan flag
properly.

> It is the same situation as there were two ethernet cables, one much more 
> slower as failsafe, one fast preferred.
> 
> How to tel connman that i preffer one of them?

If they both show up as ethernet devices in the kernel, there currently
does not exist any knobs for telling ConnMan to differentiate the two.
ConnMan works on device types so that a comparison between WiFi vs
cellular vs Bluetooth vs ethernet can be done.

Cheers,

        Patrik

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to