<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
after further investigation i finally found the problem. First of all you are perfectly right text/pdu mode is not the issue here. The actual issue was that mmcli sends SMS from a file in 8-bit encoding while message text given on the command line is send in
 7-bit encoding. <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The recipient selects AT+CSCS="GSM" and the modem in use (don't know which one it is) then falls back to AT+CSCS="HEX" automatically which at first glance looked like a PDU mode SMS in the log files.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Is there an option to select the character encoding when using mmcli?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Ralf</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Aleksander Morgado <aleksander@aleksander.es><br>
<b>Gesendet:</b> Mittwoch, 10. November 2021 13:08<br>
<b>An:</b> Ralf Glaser <glaser@iotmaxx.de><br>
<b>Cc:</b> modemmanager-devel@lists.freedesktop.org <modemmanager-devel@lists.freedesktop.org><br>
<b>Betreff:</b> Re: text mode SMS</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hey,<br>
<br>
> No, that's not the problem, if our gateway is also used for receiving SMS we can easily do the conversion in software, the problem is that there are historical devices (e.g. GSM modems) in use that cannot be replaced.<br>
><br>
<br>
But what I mean here is that just changing the way an SMS is created<br>
in the sender device (via text mode or pdu mode) would not change the<br>
way the target device receives the SMS (in pdu mode).<br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es">https://aleksander.es</a><br>
</div>
</span></font></div>
</body>
</html>