BenHassenRiadh Posted November 27, 2018 Share Posted November 27, 2018 hi admin i want to know an example of a script (daqfactory sequence) to send sms message to mobile phone by using gsm modem Link to comment Share on other sites More sharing options...
AzeoTech Posted December 5, 2018 Share Posted December 5, 2018 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. Link to comment Share on other sites More sharing options...
CH2014 Posted June 25, 2019 Share Posted June 25, 2019 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? Link to comment Share on other sites More sharing options...
CH2014 Posted June 25, 2019 Share Posted June 25, 2019 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") Link to comment Share on other sites More sharing options...
AzeoTech Posted June 26, 2019 Share Posted June 26, 2019 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) ... Link to comment Share on other sites More sharing options...
CH2014 Posted July 23, 2019 Share Posted July 23, 2019 Sorry for the delay in replying. Just getting back into the GSM modem project. Thanks for the useful information. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.