We need to send SMS messages out via a GSM modem connected to a PC running The Dude 3.6. As far as I can tell SMS hasn’t yet been added to a more recent release.
Our modem provides SMS sending capability via the AT command set (at+cmgs) on a COM port.
I’m comfortable with the execute locally notification, batch files and calling putty sessions. I can easily create a text file of AT commands to send the required SMS including a trailing Ctrl-Z but I can’t imagine how to close the COM port putty session once the sms has been sent.
I’ve seen Morphology’s VB6 source code post but compiling it is beyond me.
I’ve seen gsandul’s reply on another subject which happens to mention smsadmin.js - if you’re watching can I see the script?
I found mention of this functionality in RouterOS, but not The Dude.
Otherwise I’m looking for a utility that can interact with a serial port AT command line using at+cmgs and close the port once the modem replies OK.
I had a quick look around but the scripts I found all seem to use http SMS gateways, which isn’t applicable.
Any suggestions on a suitable utility or other mechanism to send SMS are most welcome.
Thanks in advance,
Thanks for the replies. Neither smstools nor Microsoft’s utility worked for me due to the modem itself.
Smstools is nicely configurable and was looking good but it works only in PDU mode and the device does not support this.
The MS utility requires that a modem driver be installed and this is not available either.
The modem manufacturer is interested but we don’t know the timeframe for their solution.
If anyone has seen a simple text based sms sender I’d be pleased to hear it
sendsms.cmd
echo AT+CMGS=“+phonenumber” > com3
echo Your ‘OMG the sky is falling’ SMS message here (Ctrl-Z) > com3
Use notepad++ to create the CRLF and CTRL-Z or you can send using two echo statements. Pass variables by declairing and setting an environment variable.