Goto the ASEAN LV User Group site at
http://lvug.emant.com and look under
tips and utitlities, we can an example there
I assume you'll need a GSM server. And depending on the interfaces it
offers, you'll have to chose the proper method handling sending and
receiving SMS's (a serial IO should be preferable). Another way could be
using an online provider for sending SMSs...
An alternative solution is to make LV use MS Outlook sending e-mail to your mobile phone. I did that. Search for outlook in the forum and you will find an example.
To communicate via GSM, GPRS, or CDMA, your would need a device that can listen on any of these protocols and can hook up to your computer. If you can find a device that can communicate to your computer via serial (RS-232), USB, or TCP/IP, you can then send commands and data to this device from LabVIEW. I know a while back there used to be a way to connect Nokia phones via serial to your computer. If you can do that and you know how to send data to the phone in a way that it can understand, then you can communicate to it easily in LabVIEW.
Take a look at
this thread, which talks about Nokia phones
Well, we do use Wavecom (or Maestro 20, same GSM engine) GSM modems
installed as a normal modem in Windows. They do support normal 9600 baud
as well as GPRS mode. If you then bind the TCP/IP stack to this "network
adapter" you can simply use the TCP/IP functions to communicate with the
remote side as if it would be a normal (although slow) network connection.
We also use a in-house developed LabVIEW library to interface to the
Windows RAS service to connect and disconnect the connection
programmatecially whenever needed, but I couldn't send this library out.
There have been howev
er some discussions in the past on Info-LabVIEW to
use the command line options of the dialer application to actually do
that as well.
Three points:
1) An Sms can be managed in "Text" mode or in "Pdu" mode (more difficult), previous Vi example sends messages in "Text" mode, try with "Google" for pdu data format for Sms;
2) Some Nokia phones (but I think all) support both formats, other phones support Pdu only, see the technical documentation of the Gsm modem;
3) If your Gsm has an internal modem inside, you can send AT commands to the serial port where it is connected, If not (as for Nokia 5110 and 6110) you have to install a driver (for Nokia 5110 and 6110 is "Nokia Data Suite"), this driver creates an additive virtual serial port, so you have to send AT data to it (not to the real serial port connected).
Good luck!
http://lvug.emant.com/135551.page
Basically most modern GSM phones with modem interface do implement the
ETSI standard with some additional proprietary commands for special
features.
The standard describing this is contained in
ETSI GSM 07.05 : Digital cellular telecommunications system (Phase 2) ;
Use of DTE-DCE interface for Short Message Service (SMS
) and Cell
Broadcast Service (CBS)
and
ETSI GSM 07.07 Digital cellular telecommunications system (phase 2) ; AT
command set for GSM Mobile Equipment (ME)
It is a good idea to actually get the correct Modem Command
documentation for the GSM phone or engine you are using.
Besides all the standard mobile phones with built in modem interface
such as from Siemens or Nokia you also have specific GSM engine modules
which provide all the necessary hardware to operate as modem but do miss
the telephone capability. Those might be interesting for industrial
applications as they tend not to "walk away" easily from a site.
Possible engines might be the Wavecom or Maestro 20 modem which use both
the same internal GSM engine and should be available for around $ 200.
Siemens also sells such a modem with their own engine, mostly (but not
entirely) compatible.
Rolf Kalbermatter
Check out the
LabVIEW driver for GSM/SMS applications by CIT Engineering. Contact
Mr. Rolph Kalbermatter (
info at OpenG.org). He is usually all the time at
Info-LabVIEW too.
Regards;
Enrique Vargas
www.visecurity.com
Like already mentioned the easiest way is to use a mail to SMS gateway service. Most companies offer such a service to convert traditional EMails to send SMS to mobile phones. In LabView you then can use the EMail vi's to send the mail to the mail to sms gateway service. Usually the most tricky thing is to find out the correct server names to specify. The best si to try using the service first without LabView. In many cases you get a confirmation sent to your mail account. From this confirmation you can see the server name from where it comes. This the will become part of your destination mail address. In my case this is sms.switch.ch and the the destination address is
[email protected] . The mail to sms gateway service sms.switch.ch only works with Universities in Switzerland connected to this service. But I am sure that similar services are aviable all over the world.
Obviously, LV itself can't send an SMS message. You need a device connected to the cellular network to do this. So, you need to talk to that device. There are several ways - use LV to connect to a web site offering this and send the message through that site, use a cellular modem which accepts serial AT commands and connect it to the computer or use a cellular modem with a DLL interface. Which path do you want to take? If you have no hardware for this, try searching google for GSM toolbox. It's supposed to be a collection of VIs which let you do this.