<div dir="ltr">Code looks awesome (*¬*), so much to learn for me. A few comments which are all trivial and really don't need to be included but in attempt to be as detailed as you<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br> * The PDP context mapping is as suggested by Cinterion, although it looks like<br> * this isn't strictly enforced by the modem; i.e. SWWAN could work fine with<br> * any PDP context vs SWWAN interface mapping.</blockquote><div><br></div><div>It's really stupid but the reason for this mapping is for the PLS-X only, specifically when using Verizon Wireless as a carrier. As I interpret it this would also mean Verizon wouldn't be able to support dual SIM connections either. When I get to the dual SIM patch I'll be sure to keep it in mind but for now it's just an FYI.</div><div><br></div><div><div>  /* Map PDP context from the current Bearer. USB0 -> 3rd context, USB1 -> 1st context.</div><div>     * In Verizon Wireless networks PDP contexts with APN class 1, 2 and 4 are dedicated to specific profile settings</div><div>     * for LTE (see AT^SGAPN), meaning that <cid> 1, 2 and 4 are not allowed to be used for DUN, WWAN (RmNet)</div><div>     * or IP service connections. */</div></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">switch</span><span style="color:rgb(192,192,192)"> </span>(ctx-><span style="color:rgb(128,0,0)">step</span>)<span style="color:rgb(192,192,192)"> </span>{</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">case</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">CONNECT_3GPP_CONTEXT_STEP_FIRST</span>:<span style="color:rgb(192,192,192)"> </span>{</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,128)">MMBearerIpFamily</span><span style="color:rgb(192,192,192)"> </span>ip_family;</pre></blockquote><div> </div><div><br></div><div>Just curious why we moved this back to the 1st step? I thought you didn't want to create <span style="font-size:12.8px">MBearerIpConfig before knowing if the </span><span style="font-size:12.8px">modem is connected</span>? </div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 25, 2016 at 5:46 PM, Andrew Bird <span dir="ltr"><<a href="mailto:ajb@spheresystems.co.uk" target="_blank">ajb@spheresystems.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, 25 Nov 2016 21:16:55 +0100<br>
Reinhard Speyerer <<a href="mailto:rspmn@arcor.de">rspmn@arcor.de</a>> wrote:<br>
<br>
> On Fri, Nov 25, 2016 at 10:13:08AM +0100, Aleksander Morgado wrote:<br>
> > Hey Reinhard & Matthew,<br>
> ><br>
> > On Thu, Nov 24, 2016 at 10:34 PM, Reinhard Speyerer <<a href="mailto:rspmn@arcor.de">rspmn@arcor.de</a>> wrote:<br>
> > [...]<br>
> > > PLS8-E REVISION 02.011:<br>
> > > +CUSD: 1,"Hauptmen~:\0A1 Guthabenkonto\0A2 Guthaben Verf~gbarkeit\0A3 Gutschein einl|sen\0A4 Pack Manager\0A7 Tarifinfo\0A8 Hilfe",15<br>
> ><br>
> > Any idea if this has any impact on how ModemManager handles USSD in<br>
> > this device? Or is this only an issue to the consumer of the USSD<br>
> > responses?<br>
><br>
> Hi Aleksander,<br>
><br>
> I think ModemManager should replace the \xx escapes for devices which<br>
> apply them like PLS8 with firmware 02.x and 03.x with the corresponding<br>
> character before passing the +CUSD: string to the consumer of the USSD<br>
> response.<br>
><br>
> Regards,<br>
> Reinhard<br>
<br>
</div></div>Sorry to butt in, but if you do that won't any USSD messages that have backslashes embedded be mistaken for the badly encoded ones and fixed up erroneously.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Andrew Bird <<a href="mailto:ajb@spheresystems.co.uk">ajb@spheresystems.co.uk</a>><br>
</font></span></blockquote></div><br></div>