<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Hey<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 9, 2022 at 9:34 AM Stanke, Scott <<a href="mailto:Scott.Stanke@digi.com">Scott.Stanke@digi.com</a>> wrote:<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 lang="EN-US">
<div class="gmail-m_1583675599209845761WordSection1">
<p class="MsoNormal">Hello ModemManager-devel,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Do you know if the following issue is resolved in ModemManager 1.16.0? I found the following link that looks like the same issue that we are experiencing on our Digi International cellular routers running MM 1.14.0:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><a href="https://todo.sr.ht/~mil/sxmo-tickets/92" target="_blank">https://todo.sr.ht/~mil/sxmo-tickets/92</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">A Digi International customer found that sending an SMS using our cellular router running ModemManager 1.14.0 with extended ASCII characters results in:<u></u><u></u></p>
<p style="background:white none repeat scroll 0% 0%"><b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt"># error: couldn't send the SMS: 'GDBus.Error:org.freedesktop.ModemManager1.Error</span></b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt"><u></u><u></u></span></p>
<p style="background:white none repeat scroll 0% 0%;margin:0.75rem 0px 0px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt">.Core.InvalidArgs: Cannot prepare SMS to be sent: Cannot generate PDUs: Error pr</span></b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt"><u></u><u></u></span></p>
<p style="background:white none repeat scroll 0% 0%;margin:0.75rem 0px 0px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt">ocessing input text'</span></b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt"><u></u><u></u></span></p>
<p class="MsoNormal">I can reproduce the issue using the following test commands (if I send with “text” not including extended ASCII chars, the message is successfully sent):<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p style="background:white none repeat scroll 0% 0%"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt"># # mmcli -m 0 \<u></u><u></u></span></p>
<p style="background:white none repeat scroll 0% 0%;margin:0.75rem 0px 0px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt"># > --messaging-create-sms="text='hello world</span><span style="font-size:10.5pt;font-family:"MS Gothic";color:rgb(23,43,77);letter-spacing:-0.05pt">范例</span><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt">',number='+16511234567'"<u></u><u></u></span></p>
<p style="background:white none repeat scroll 0% 0%;margin:0.75rem 0px 0px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px"></p></div></div></blockquote><div><br></div><div><div style="font-family:monospace,monospace" class="gmail_default">There are known mmcli limitations, see: <a href="https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/275">https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/275</a></div><br></div><div><div style="font-family:monospace,monospace" class="gmail_default">But that one is not completely the same issue. The mmcli interface receives in the 'text' field of the key-value pair given to --messaging-create-sms, and there is one simple usecase like needing double-quotes and single-quotes that isn't properly covered, as in the link above. For that, the suggestion was to have a new --messaging-create-sms-with-text=FILE that we could use to feed a given file contents as text input.</div><div style="font-family:monospace,monospace" class="gmail_default"><br></div><div style="font-family:monospace,monospace" class="gmail_default">The issue you're experiencing, though, is not the same one. I *believe* the problem could be your locale settings. Can you confirm you're using a UTF-8 locale in your setup? The text you're using in your setup must be UTF-8 so that mmcli reads it correctly and passes it down to DBus in the correct format.<br></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"><div lang="EN-US"><div class="gmail-m_1583675599209845761WordSection1"><p style="background:white none repeat scroll 0% 0%;margin:0.75rem 0px 0px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt">/bin/sh: can't create --messaging-create-sms=text='hello world</span><span style="font-size:10.5pt;font-family:"MS Gothic";color:rgb(23,43,77);letter-spacing:-0.05pt">范例</span><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt">',number='+16511234567':
 Read-only file system<u></u><u></u></span></p>
<p style="background:white none repeat scroll 0% 0%;margin:0.75rem 0px 0px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px"></p></div></div></blockquote><div><br></div><div><div style="font-family:monospace,monospace" class="gmail_default">I have no idea what that "Read-only" file system error is, that totally looks like a problem in your script. Are you by any chance creating a file in the filesystem with the --messaging-create-sms option contents?? If so, that would also be an indication that  you're lacking proper UTF-8 locale either in your environment or in your filesystem. This totally looks like something unrelated to ModemManager, please check your scripts.</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 lang="EN-US"><div class="gmail-m_1583675599209845761WordSection1"><p style="background:white none repeat scroll 0% 0%;margin:0.75rem 0px 0px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt"># Successfully created new SMS: /org/freedesktop/ModemManager1/SMS/6<u></u><u></u></span></p>
<p style="background:white none repeat scroll 0% 0%;margin:0.75rem 0px 0px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt">/bin/sh: Successfully: not found<u></u><u></u></span></p>
<p style="background:white none repeat scroll 0% 0%;margin:0.75rem 0px 0px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px"></p></div></div></blockquote><div><br></div><div><div style="font-family:monospace,monospace" class="gmail_default">Another indication that this issue is in your scripts, not in ModemManager or mmcli.<br></div></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 lang="EN-US"><div class="gmail-m_1583675599209845761WordSection1"><p style="background:white none repeat scroll 0% 0%;margin:0.75rem 0px 0px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt"># # mmcli -s 6 --send<u></u><u></u></span></p>
<p style="background:white none repeat scroll 0% 0%;margin:0.75rem 0px 0px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt"># error: couldn't send the SMS: 'GDBus.Error:org.freedesktop.ModemManager1.Error</span></b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt"><u></u><u></u></span></p>
<p style="background:white none repeat scroll 0% 0%;margin:0.75rem 0px 0px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt">.Core.InvalidArgs: Cannot prepare SMS to be sent: Cannot generate PDUs: Error pr</span></b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt"><u></u><u></u></span></p>
<p style="background:white none repeat scroll 0% 0%;margin:0.75rem 0px 0px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt">ocessing input text'</span></b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt"><u></u><u></u></span></p>
<p style="background:white none repeat scroll 0% 0%;margin:0.75rem 0px 0px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(23,43,77);letter-spacing:-0.05pt">Thank you for looking at this. We are planning to release cellular router FW implementing MM 1.16 as backlog. I hope to provide our customer an update that
 MM 1.16 should fix the issue.</span></p></div></div></blockquote><div><br></div><div style="font-family:monospace,monospace" class="gmail_default">Neither 1.14 nor 1.16 are actively supported, but I don't think your issues are related to the MM versions anyway :)<br></div><br clear="all"></div><br>-- <br><div dir="ltr" class="gmail_signature">Aleksander<br><a href="https://aleksander.es" target="_blank">https://aleksander.es</a></div></div>