Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send SMS text programatically
Message
De
04/03/2006 09:36:32
 
 
À
30/01/2006 14:04:37
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01091580
Message ID:
01101492
Vues:
16
>I was looking for this a while ago. If you find an answer, let me know.

Hello Mike,

I will send to your mailbox in GMail a program and the source code to send SMS programaticaly with VFP.

It’s not completely debugged, but for now it works.

This code works with my cell phone (Siemens S55). I think it will work with any cell phone.

Important: to send SMS i need to create a string in a special format (called PDU). This PDU needs some parameters, one of them is the phone number, and we need to create a PDU string for the phone number. In the source code there's a function (telefone_pdu) that creates a PDU for the number. It works for numbers like the Portuguese Numbers (9 digits), i don't know if works with your type of numbers in US, but it's easy to change this function.

To send SMS in VFP you need the following:
A PC with a free comm port (or a USB converter – that’s my case)
A Cell Phone compatible with AT commands and supporting SMS commands
VFP
The ‘mscomm’ ActiveX
Learn about AT commands
Learn about PDU (a protocol to send SMS)

Reference for creating PDU strings:
http://www.dreamfabric.com/sms/

Reference for AT commands (Nokia – but it worked with my Siemens):
http://discussion.forum.nokia.com/forum/showpost.php?p=179018&postcount=2

Joaquim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform