failover internet script with sms info
Aleksander Morgado
aleksander at aleksander.es
Tue Dec 22 13:12:58 UTC 2020
Hey Mateusz,
> Sorry for my bad ENGLISH, ,
> i have a task to do an failover script with 2 wan connections
> 1.cable main one
> 2. LTE using (manufacturer: Huawei Technologies Co., Ltd.,model: HUAWEI
> Mobile V7R11,firmware revision: 11.617.15.00.00)
>
> i wroted a script and it is working perfectly but dont know how to
> implement mmcli into it to send sms after network change, the whole
> script is added to cron so each one minute is checked.
>
> When i try to write sms witch mmcli
> mmcli -m 0 --messaging-create-sms="text=else,number=+48123456789", it
> creates
> mmcli -s 18 --send - sends the sms,
> but i need to write and save 3 or 4 sms text to be send to the task.
>
> it works til rebot, it comes and no sms stored...
>
>
> Any one any ideas how to solved this issue... ?
>
Is the Huawei modem being used in MBIM mode by any chance? What
"drivers" do you see listed in the "mmcli -m 0" output?
In MBIM mode there is no operation to "save" SMS messages in storage.
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list