User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 426,181 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,819 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 10062 | Replies: 13 | Solved
Reply
Join Date: Mar 2007
Posts: 7
Reputation: noora000 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
noora000 noora000 is offline Offline
Newbie Poster

How to send sms from computer to mobile phone?

  #1  
Mar 5th, 2007
Hello,
I need to write a programm in C++ to send a sms from a PC to a mobile phone as a part in my project, so can you please help me?

Reegards,
Noora
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 199
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How to send sms from computer to mobile phone?

  #2  
Mar 5th, 2007
contact a service provider, they'll have APIs for you (at a price).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Join Date: Mar 2007
Posts: 7
Reputation: noora000 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
noora000 noora000 is offline Offline
Newbie Poster

Re: How to send sms from computer to mobile phone?

  #3  
Mar 6th, 2007
Originally Posted by jwenting View Post
contact a service provider, they'll have APIs for you (at a price).


Thank you, but the problem the service provider they offer applications, but I need a code to add it to my software. I am going to add this sms code to my main code, so do you have any suggestion?
Reply With Quote  
Join Date: Dec 2005
Posts: 3,638
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 22
Solved Threads: 417
Colleague
Salem's Avatar
Salem Salem is offline Offline
void main'ers are DOOMed

Re: How to send sms from computer to mobile phone?

  #4  
Mar 6th, 2007
> but the problem the service provider they offer applications,
Find out more about what they offer, read some documentation.
Maybe it's all done through a nice DLL you can just link to.
Or maybe it's a simple command line program where you can do "sendSms number message", which would be dead easy to use from your code.

http://clusty.com/search?query=web+s...Mozilla-search
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 199
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How to send sms from computer to mobile phone?

  #5  
Mar 6th, 2007
If you talk to the consumer helpdesk or salesrep, they will indeed give you (or sell you) a ready made piece of software (which is what mom and pop want).
You'll need to dig deeper, or maybe go to a specialised company, to get an API.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Join Date: Mar 2007
Posts: 7
Reputation: noora000 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
noora000 noora000 is offline Offline
Newbie Poster

Re: How to send sms from computer to mobile phone?

  #6  
Mar 7th, 2007
Thanks Salem and jwenting, I will contact my service provider...
Also I am thinking to use visual because it is easier to send sms using a GSM modem and I will connect the C++ and visual codes together...
Thanks again...
Reply With Quote  
Join Date: Feb 2007
Posts: 6
Reputation: mmangai is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
mmangai's Avatar
mmangai mmangai is offline Offline
Newbie Poster

Re: How to send sms from computer to mobile phone?

  #7  
Jul 3rd, 2007
please give me the suggestion and cheapest way(cost) for sending sms from computer (linux)to mobile for project? and also we need code for that urgently
Reply With Quote  
Join Date: Jun 2007
Posts: 248
Reputation: dougy83 is on a distinguished road 
Rep Power: 2
Solved Threads: 38
dougy83 dougy83 is offline Offline
Posting Whiz in Training

Re: How to send sms from computer to mobile phone?

  #8  
Jul 3rd, 2007
I've used the old Ericsson mobiles to read contents of SIM cards and to send/read SMSs. The commands are sent to the mobile using your serial port at 9600,n,8,1 - you will need to convert the RS232 level (+/- 10 volts) to TTL level (0-5 volts) - can use MAX232 or some transistors & resistors - or you can use a ready made cable (don't know where you'd get it - maybe eBay).

Then send serial AT commands to the mobile, as detailed in:
http://www.usbdeveloper.com/GSMPage/gsmpage.htm
(there may be some Nokia commands here also?)

Old Nokia phones can be used in a similar manner. I assume a different command set is required. Check out www.siliconchip.com.au as they have some projects on using Nokia phones for sending/receiving SMSs.

Simple!
Reply With Quote  
Join Date: Feb 2007
Posts: 6
Reputation: mmangai is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
mmangai's Avatar
mmangai mmangai is offline Offline
Newbie Poster

Re: How to send sms from computer to mobile phone?

  #9  
Jul 5th, 2007
[quote=dougy83;398328]I've used the old Ericsson mobiles to read contents of SIM cards and to send/read SMSs. The commands are sent to the mobile using your serial port at 9600,n,8,1 - you will need to convert the RS232 level (+/- 10 volts) to TTL level (0-5 volts) - can use MAX232 or some transistors & resistors - or you can use a ready made cable (don't know where you'd get it - maybe eBay).


thanks
it works.i connected it.but while sending sms error cms330 occured.
actually it is sms centre unknown.how will we proceed further
at
ok
at+cmgf=1
ok
at+cmgw="+91347675898908"
>msg ctrl+z
cms error330
Reply With Quote  
Join Date: Feb 2007
Posts: 6
Reputation: mmangai is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
mmangai's Avatar
mmangai mmangai is offline Offline
Newbie Poster

Re: How to send sms from computer to mobile phone?

  #10  
Jul 13th, 2007
we are trying to send message from pc to mobile by using hyperterminal using AT commands.
we have encountered a problem
while typing reciever number
at+cmgs="xxxxxxxxxxx" we got +cms:304 error
but not always.sometimes it works and we can send msg .the mobile and pc used was same.
please help us to rectify that
tnx
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 6:30 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC