<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 11 lug 2023 alle ore 00:49 Greg Oliver <<a href="mailto:oliver.greg@gmail.com">oliver.greg@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div style="font-family:monospace,monospace"><span style="font-family:Arial,Helvetica,sans-serif">On Mon, Jul 10, 2023 at 6:51 AM Fabio Porcedda <<a href="mailto:fabio.porcedda@gmail.com" target="_blank">fabio.porcedda@gmail.com</a>> wrote:</span><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno sab 8 lug 2023 alle ore 10:59 Frédéric Martinsons <<a href="mailto:frederic.martinsons@gmail.com" target="_blank">frederic.martinsons@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>s/limbmm/libmm<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 8 juil. 2023, 10:58, Frédéric Martinsons <<a href="mailto:frederic.martinsons@gmail.com" target="_blank">frederic.martinsons@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hello, <div dir="auto"><br></div><div dir="auto">I have a similar use case, to have multiple GSM configuration for a device, I disabled autoconnect on Networkmanager and I have a dedicated service (which is built around libnm et limbmm) to be able to actovate/deactivate/monitor these multiple connection.</div><div dir="auto"><br></div><div dir="auto">I don't think it is possible in NM to have multiple active connection on the same device. <br></div></div></blockquote></div></div></div></blockquote><div><br></div><div>I think the same, so in order to have it I would like to change the source code, I appreciate any suggestion about the parts to change. <br></div><div>I'm searching for the code where the old connection is disconnected when a new one is made for the same device.<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 8 juil. 2023, 10:31, Fabio Porcedda <<a href="mailto:fabio.porcedda@gmail.com" rel="noreferrer" target="_blank">fabio.porcedda@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 7 lug 2023 alle ore 16:19 Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com" rel="noreferrer noreferrer" target="_blank">arvidjaar@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Jul 7, 2023 at 5:10 PM Fabio Porcedda <<a href="mailto:fabio.porcedda@gmail.com" rel="noreferrer noreferrer" target="_blank">fabio.porcedda@gmail.com</a>> wrote:<br>
><br>
> Hi all,<br>
> I would like to implement multiple connections for the same device, My idea is to avoid disconnecting a connection even if a new connection is requested for the same device. Does anyone have some suggestions about the file or function to change?<br>
><br>
<br>
I am not sure I understand what device you mean. Do you mean ethernet<br>
interface? Do you want to apply multiple connection profiles to the<br>
same ethernet interface concurrently?<br>
</blockquote></div><br clear="all"><div>I mean gsm type device. I would like to activate multiple connection profiles for the same gsm device at the same time.</div><div>Sometimes it is useful to have multiple active  apn for the same broadband device enabled at the same time because each apn can have different capabilities.</div></div></blockquote></div></blockquote></div></div></div></blockquote></div></div></blockquote><div><br></div><div style="font-family:monospace,monospace">Good luck - the "modems" do not have the capability to connect to more than a single APN simultaneously with a multi-APN device (shich I know of none).</div></div></div>
</blockquote></div><div><br></div><div>Modems do have this kind of capability, for example It's possible using ModemManager with a modem that support MBIM or QMI, e.g.:</div><div><br></div><div><div class="gmail-line gmail-number1 gmail-index0 gmail-alt2"><code class="gmail-java gmail-plain">mmcli -m <modem_id> --create-bearer=</code><code class="gmail-java gmail-string">"apn=<apn1>,multiplex=required"</code></div><div class="gmail-line gmail-number2 gmail-index1 gmail-alt1"><code class="gmail-java gmail-plain">mmcli -m <modem_id> --create-bearer=</code><code class="gmail-java gmail-string">"apn=<apn2>,multiplex=required"</code></div><div class="gmail-line gmail-number3 gmail-index2 gmail-alt2"> </div><div class="gmail-line gmail-number4 gmail-index3 gmail-alt1"><code class="gmail-java gmail-plain">mmcli -m <modem_id> -b <bearer1_id> --connect</code></div><div class="gmail-line gmail-number5 gmail-index4 gmail-alt2"><code class="gmail-java gmail-plain">mmcli -m <modem_id> -b <bearer1_id></code></div><div class="gmail-line gmail-number6 gmail-index5 gmail-alt1"><code class="gmail-java gmail-plain">ip addr add <bearer1_adddres>/<bearer1_prefix> dev <bearer1_interface> </code></div><div class="gmail-line gmail-number7 gmail-index6 gmail-alt2"><code class="gmail-java gmail-plain">ip link set <bearer1_interface> up</code></div><div class="gmail-line gmail-number8 gmail-index7 gmail-alt1"><code class="gmail-java gmail-plain">ip route add <bearer1_network>/<prefix> dev <bearer1_interface></code></div><div class="gmail-line gmail-number9 gmail-index8 gmail-alt2"> </div><div class="gmail-line gmail-number10 gmail-index9 gmail-alt1"><code class="gmail-java gmail-plain">mmcli -m <modem_id> -b <bearer2_id> --connect</code></div><div class="gmail-line gmail-number11 gmail-index10 gmail-alt2"><code class="gmail-java gmail-plain">mmcli -m <modem_id> -b <bearer2_id></code></div><div class="gmail-line gmail-number12 gmail-index11 gmail-alt1"><code class="gmail-java gmail-plain">ip addr add <bearer2_adddres>/<prefix> dev <bearer2_interface> </code></div><div class="gmail-line gmail-number13 gmail-index12 gmail-alt2"><code class="gmail-java gmail-plain">ip link set <bearer2_interface> up</code></div><div class="gmail-line gmail-number14 gmail-index13 gmail-alt1"><code class="gmail-java gmail-plain">ip route add <bearer2_network>/<prefix> dev <bearer2_interface></code></div></div><div><br></div><div>Regards<br></div><div><span class="gmail_signature_prefix">-- </span></div><div dir="ltr" class="gmail_signature">Fabio Porcedda<br></div></div>