Welcome! Log In Create A New Profile

Advanced

SMS Application using Windev and WMobile

Posted by Mitchell 
Mitchell
SMS Application using Windev and WMobile
May 15, 2009 05:22PM
Dear Windev Coders,
does anyone here having a sample of application done by Windev and Windev Mobile on doing the following solution :
1. The application in PC done in Windev are able to send SMS (short Text Message) to GSM mobile Phone (Windows Mobile PDA)

2. The application done in Windev Mobile are able to receive and send a SMS to the server on where the Windev application was installed.

This is very useful for "Field Service application" . can somebody advise please.

Thanks
Mikz
Merijn van der Wijk
Re: SMS Application using Windev and WMobile
May 16, 2009 09:18PM
Mitchell,

WinDevMobile12 has a fully working example with both projects WD12 and WM12.
The user can construct a SMS on the PC, which is automatically transferred to the mobile machine, which takes care of sending, receiving SMS's.
See C:\WinDev Mobile 12\Examples\Mobile Windows\Sending SMS\ for both projects.

Another way to go is to use a SMS-gateway provider, select one or two...(http://www.developershome.com/sms/howToChooseSMSGateway.asp)
Program use the W-language HttpRequest to send the sms to the provider and use W-language HttpGetResult to retrieve the providers answer.
Most providers support account information (how many credits are left)
If needed some providers support delivery reports (send to your URL or you poll the delivery status).

HTH
Merijn
Georgio
Re: SMS Application using Windev and WMobile
May 16, 2009 09:59PM
(Windev)

We went the route of circumventing pay sites and wrote code for
Email to SMS gateway. The code first checks who the cellular
provider is (via an HTTPRequest), creates the string containing
<5165551212@vtext.com> and use Windev to send the email.

We hardcoded the subdomain to the wireless # as we didn't feel
a need for users editing control files for the provider.

You're welcome to the code if you want.

Georgio
Mitchell
Re: SMS Application using Windev and WMobile
May 24, 2009 04:19PM
wow! i din't see this reply long ago, today only that i notice it is already replied.

Thanks a lot guys, it really helps. I am now trying to code it.


Regards
Charles
Re: SMS Application using Windev and WMobile
June 12, 2009 09:39PM
Dear,

You can try Modem AT command to send SMS from PC using any GPRS Mobile

It Worked for Me

With Regards
Charles
Re: SMS Application using Windev and WMobile
June 21, 2009 09:30PM
dear

Have you found the solution, as i have used AT commands and tested it is slow but with a active control it was fast i was able to send 600 to 800 sms per hour,
if u need any help please contact me.

with regards
Charles
M.Imam Zaenuri.pcs.crosspost
Re: SMS Application using Windev and WMobile
June 29, 2009 09:21AM
Dear Charles,

Would you like to give me more explanation todo it.
What Active control do you use.

Thank alot for your explanation.

Best Regards,
IMAM

Charles wrote in news message <73212009062210022947.29967@news.pcsoft.fr>:
> dear
> Have you found the solution, as i have used AT commands and tested it is slow but with a active control it was fast i was able to send 600 to 800 sms per hour,
> if u need any help please contact me.
> with regards
> Charles
>

Message forwarded from pcsoft.us.windev
Thijs
Re: SMS Application using Windev and WMobile
June 30, 2009 04:31PM
Hello,

recently i make a e-mail to sms application. It is pretty easy to make. You first create your own smtp server (socket) and handle all emails. Convert those emails to sms and send them using AT Commands. See both links below. for an introduction to AT commands.

[www.computerhope.com]
[www.developershome.com]

For example
Logic_Sms is class
	m_xNumber is string;
	m_sMessage is string;
	
END

PROCEDURE sendSms(clSms is Logic_Sms)
//trace("Sending SMS");

sWrite(1,"AT" + RC);
ThreadWaitSignal(:m_nSocketWait);
sWrite(1,"AT+CMGF=1"+RC);
ThreadWaitSignal(:m_nSocketWait);
sWrite(1,"AT+CMGS="+clSms:m_xNumber+RC);
ThreadWaitSignal(:m_nSocketWait);
sWrite(1,clSms:m_sMessage+Charact(26)+Charact(90));
ThreadWaitSignal((:m_nSocketWait*2));

With most modems (my modem) you must use a seconds between the AT commands. If you want more examples i keep an eye on this thread.. it is interesting :-)

Thijs


Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: