Sign in to follow this  
BenHassenRiadh

sms message

Recommended Posts

SMS can usually be done by simply sending an email.  Most SMS providers offer an email address that if you send an email to it, it will forward it to text.  That is by far the easiest way to do it.  

Share this post


Link to post
Share on other sites

Hi, Further to the above I can see that your suggestion of using email to send SMS is far easier. However,  if the site engineers mobile service provider does not provide this facility is there an example of DF script that contains typical GSM AT commands? I assume I need the DAQFactory Serial - Ethernet communications guide. This does not seem to be in the installation folder?

Share this post


Link to post
Share on other sites

 

Further to my last post.

I haven't actually got any hardware to try it out on yet but is the following command going in the right direction?

device.gsmmodem.write("+CMGS")

Share this post


Link to post
Share on other sites

Yes, that is the right direction, but you almost certainly will need either a carriage return or a carriage return / line feed afterwards.  I typically like to do it with a variable, or you can just add the chr() commands to the end.

private string CRLF = chr(13) + chr(10)

device.gsmmodem.write("+CMGS" + crlf)

...

 

Share this post


Link to post
Share on other sites

Sorry for the delay in replying. Just getting back into the GSM modem project. Thanks for the useful information.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this