On Tue, 9 Jan 2018, Israel Brewster wrote: > Yep, that's the page. Not sure why I would want to write a script using > expect to talk to the modem directly though, unless smstools doesn't work > for some reason. Using smstools, all you have to do is call the command-line > "sendsms" with the number and the message. Or even just by creating a text > file in the spool directory. No need for expect or any fancy scripting.
Giving commands to a modem to send a SMS is not much more complicated than giving shell commands to your computer to do the same through a program. But you win more flexibility, more control. If you need concurrency, a program taking care of it may be an advantage, but you do not need it. As you do login to your computer for giving shell commands, you must first connect to the modem with "cu". Just try it. Why expect? You may need to give different commands depending on what the modem answer to previous commands. > That said, all the references on that page refer to a GSM modem, not a LTE > modem. The commands, as far as I know, are the same. My Huawei E372 *HSPA modem* has the SMS commands. Someone can try to see if his LTE also has them. Rodrigo.