Cellphone does not support GSM7?

Aleksander Morgado aleksander at aleksander.es
Fri Mar 13 10:31:03 PDT 2015


On Fri, Mar 13, 2015 at 2:55 PM, "João M. S. Silva"
<joao.m.santos.silva at gmail.com> wrote:
>
> I'm using mmcli successfully to send an SMS through a Huawei E1750.
>
> I need the SMS to have several lines, so I cannot write the text in the
> command line, like:
>
>   mmcli -m ${modem} \
>         --messaging-create-sms="text='${text}',number='${number}'
>
> in which $text has '\n' for newlines.
>
> So, I'm using the alternative:
>
>   mmcli -m ${modem} \
>         --messaging-create-sms="number='${number}'" \
>         --messaging-create-sms-with-data=/tmp/sms.txt
>
> where sms.txt has the SMS correctly formatted (ASCII text with correct
> spacing).
>
> The message seems to be correctly created and sent, since I can receive the
> SMS in a smartphone. However, in a non-smartphone the received SMS says "Not
> supported!". I guess this is because the message is sent with the GSM7
> alphabet instead of ASCII?
>
> Can you help or point me to some references (forum or IRC channel)?


When using --messaging-create-sms-with-data the encoding type is set
as being raw. If you're sending text you really need to use the
"text=whatever" option. Maybe you need to escape the EOLs before
setting them in ${text}? Truth be told, I never tested it with
multiple lines... :)

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list