PINE64
Sending Pinephone SMS from Desktop - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: Sending Pinephone SMS from Desktop (/showthread.php?tid=17342)



Sending Pinephone SMS from Desktop - biketool - 09-12-2022

Back in the N900 days we had an app which used rendezvous auto discovery IM protocol to bridge the phone's SMS to LAN instant messenger.
While HeySMS could probably be ported or cloned with recent libs https://talk.maemo.org/showthread.php?t=84705 I think that there is probably a quick ready to get a basic SMS send.

Is there an easy way to send a command line trigger or AT command followed by the text to at least write a SMS and then send it over SSH.


RE: Sending Pinephone SMS from Desktop - anonymous - 09-12-2022

Can you use ssh to call mmcli? You can use mmcli with --messaging-create-sms and --send.


RE: Sending Pinephone SMS from Desktop - biketool - 09-12-2022

(09-12-2022, 04:49 AM)anonymous Wrote: Can you use ssh to call mmcli? You can use mmcli with --messaging-create-sms and --send.

Nice!
exactly what I wanted!
Now I can leave a SSH window up for this.
Where did you find this?  I have this
https://www.commandlinux.com/man-page/man8/mmcli.8.html
but it is not clear how to format an included SMS message and I am now juggling between this and fixing my clashing chatty and gnome-contacts upgraded installs.


RE: Sending Pinephone SMS from Desktop - anonymous - 09-13-2022

(09-12-2022, 04:58 AM)biketool Wrote:
(09-12-2022, 04:49 AM)anonymous Wrote: Can you use ssh to call mmcli? You can use mmcli with --messaging-create-sms and --send.

Nice!
exactly what I wanted!
Now I can leave a SSH window up for this.
Where did you find this?  I have this
https://www.commandlinux.com/man-page/man8/mmcli.8.html
but it is not clear how to format an included SMS message and I am now juggling between this and fixing my clashing chatty and gnome-contacts upgraded installs.

--messaging-create-sms-with-data is less dangerous to use than --messaging-create-sms that requires that you use quotes very carefully.

These examples might help you:
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/blob/main/test/mmcli-test-sms



RE: Sending Pinephone SMS from Desktop - biketool - 09-13-2022

(09-13-2022, 08:34 AM)anonymous Wrote:
(09-12-2022, 04:58 AM)biketool Wrote:
(09-12-2022, 04:49 AM)anonymous Wrote: Can you use ssh to call mmcli? You can use mmcli with --messaging-create-sms and --send.

Nice!
exactly what I wanted!
Now I can leave a SSH window up for this.
Where did you find this?  I have this
https://www.commandlinux.com/man-page/man8/mmcli.8.html
but it is not clear how to format an included SMS message and I am now juggling between this and fixing my clashing chatty and gnome-contacts upgraded installs.

--messaging-create-sms-with-data is less dangerous to use than --messaging-create-sms that requires that you use quotes very carefully.

These examples might help you:
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/blob/main/test/mmcli-test-sms

that script looks ripe for trimming down to a cli-sms app.


RE: Sending Pinephone SMS from Desktop - anonymous - 09-13-2022

(09-13-2022, 10:50 AM)biketool Wrote:
(09-13-2022, 08:34 AM)anonymous Wrote:
(09-12-2022, 04:58 AM)biketool Wrote:
(09-12-2022, 04:49 AM)anonymous Wrote: Can you use ssh to call mmcli? You can use mmcli with --messaging-create-sms and --send.

Nice!
exactly what I wanted!
Now I can leave a SSH window up for this.
Where did you find this?  I have this
https://www.commandlinux.com/man-page/man8/mmcli.8.html
but it is not clear how to format an included SMS message and I am now juggling between this and fixing my clashing chatty and gnome-contacts upgraded installs.

--messaging-create-sms-with-data is less dangerous to use than --messaging-create-sms that requires that you use quotes very carefully.

These examples might help you:
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/blob/main/test/mmcli-test-sms

that script looks ripe for trimming down to a cli-sms app.

Yes and it can be useful to send encrypted SMS as there is no such feature in Chatty yet. You can write your SMS in a simple text editor, use GPG to encrypt it and use mmcli to send it.