Community discussions

MikroTik App
 
speak
just joined
Topic Author
Posts: 6
Joined: Wed Feb 16, 2011 1:25 am

SMS again - GSM via COM port

Wed Feb 16, 2011 2:19 am

Hi All,

First post - love The Dude!

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,
 
User avatar
gsandul
Member Candidate
Member Candidate
Posts: 154
Joined: Mon Oct 19, 2009 1:42 pm

Re: SMS again - GSM via COM port

Wed Feb 16, 2011 8:56 am

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 use smsadmin.js to post messages through WEB interface of our SMPP server. This will not help you.
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.
Good for you. It means you can use smstools3 to send your messages. You can compile it under Windows using cygwin. It realy works.

http://smstools3.kekekasvi.com/index.php?p=windows
 
ditonet
Forum Veteran
Forum Veteran
Posts: 835
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: SMS again - GSM via COM port

Wed Feb 16, 2011 11:22 am

Hi,

Below is link to Microsoft SMS Sender utility:
http://www.microsoft.com/downloads/en/d ... laylang=en
I don't know how it works with COM-connected modems, I used mobile phone to sent SMS.
Give it a try, it's well documented and can be easily scripted to suite your needs.
Some time ago I used it for massive SMS sending and worked perfectly.

HTH,
 
speak
just joined
Topic Author
Posts: 6
Joined: Wed Feb 16, 2011 1:25 am

Re: SMS again - GSM via COM port

Tue Feb 22, 2011 1:06 am

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

Thanks
 
itcoop
just joined
Posts: 10
Joined: Mon Apr 18, 2011 6:49 pm

Re: SMS again - GSM via COM port

Mon Apr 18, 2011 7:22 pm

Have you Tried using Echo?

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.

Works with a Verizon MiFi puck on windows XP.