| | |
how to write java program which sholuld be able to send sms messages to mobile
![]() |
•
•
Join Date: Nov 2008
Posts: 28
Reputation:
Solved Threads: 0
Hi iam developing one application..in which i need to write code with port number and mobileno which shoul send a sms message to mobile.. here i connected my gprs mobile as a modem to my pc in nowsms gateay... now i want to write a program which should listen on that port.. i have the following steps...
1.write a servlet or jsp which should listen on that port
2.and you should register your servlet/jsp in nowSMS gateway
so when ever sms come is that registered url will fire.
1.write a servlet or jsp which should listen on that port
2.and you should register your servlet/jsp in nowSMS gateway
so when ever sms come is that registered url will fire.
Re: how to write java program which sholuld be able to send sms messages to mobile
0
#2 Nov 25th, 2008
As usual your post is vague and I can't exactly figure out what you need !!!
Let me guess what is the scenario here:-
Your Cell Phone is connected via a USB / Serial Port to your PC and has been as a gateway in NowSMS and you wish to write an application (servlet / JSP ... whatever) from which you can send an SMS to any mobile phone using your cell phone as a GSM Modem ???
OR
Is it the other way around and you wish to retrieve messages received on the Cell phone via NowSMS and NowSMS should forward the SMS to your HTTP Link (which could be JSP Servlet whatever ..)
Let me guess what is the scenario here:-
Your Cell Phone is connected via a USB / Serial Port to your PC and has been as a gateway in NowSMS and you wish to write an application (servlet / JSP ... whatever) from which you can send an SMS to any mobile phone using your cell phone as a GSM Modem ???
OR
Is it the other way around and you wish to retrieve messages received on the Cell phone via NowSMS and NowSMS should forward the SMS to your HTTP Link (which could be JSP Servlet whatever ..)
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
"How to ask questions the smart way ?"
"How to ask questions the smart way ?"
•
•
Join Date: Nov 2008
Posts: 28
Reputation:
Solved Threads: 0
Re: how to write java program which sholuld be able to send sms messages to mobile
0
#3 Nov 25th, 2008
we configured nowsms as a gateway in one of the pc..and we connected a gprs phone as a modem for sending and receving messages..now i want to write a program in another machine(PC) to send messages to the other pc(nowsms Server).. we know the port number and mobilenumber which is configured as modem in now sms..similarly i want to write a program in nowsms for replying the message what it has received..for example pc1 will send a text message to pc2 and pc2 has to reply this message.. if any more data required plz let me know...
Thanks&Regards,
Basha..
Thanks&Regards,
Basha..
•
•
•
•
As usual your post is vague and I can't exactly figure out what you need !!!
Let me guess what is the scenario here:-
Your Cell Phone is connected via a USB / Serial Port to your PC and has been as a gateway in NowSMS and you wish to write an application (servlet / JSP ... whatever) from which you can send an SMS to any mobile phone using your cell phone as a GSM Modem ???
OR
Is it the other way around and you wish to retrieve messages received on the Cell phone via NowSMS and NowSMS should forward the SMS to your HTTP Link (which could be JSP Servlet whatever ..)
Re: how to write java program which sholuld be able to send sms messages to mobile
0
#4 Nov 25th, 2008
Using NowSMS you can only send SMSes from a cell phone to the PC to which your Cell Phone is connected and is being used as GSM Modem. You cannot send SMS from one Computer to another without each one being connected to its own cell phone with NowSMS configured on both the machines to use the cell phones as GSM / GPRS modems.
Also In case you just want to send outgoing SMSes (from the PC which has your cell phone connected) to any other cell phone, NowSMS has a Web Interface which you can use for that. In case you wish to embed this ability of sending messages in a program of yours, it also has a HTTP link for accepting messages to be sent via your cell phone, you can embed this link inside your application, you will need to check out the NowSMS reference manual however to check the link specifications though.
As far as receiving SMSes via NowSMS goes, I haven't really tried it, so can't help you on that.
Also In case you just want to send outgoing SMSes (from the PC which has your cell phone connected) to any other cell phone, NowSMS has a Web Interface which you can use for that. In case you wish to embed this ability of sending messages in a program of yours, it also has a HTTP link for accepting messages to be sent via your cell phone, you can embed this link inside your application, you will need to check out the NowSMS reference manual however to check the link specifications though.
As far as receiving SMSes via NowSMS goes, I haven't really tried it, so can't help you on that.
Last edited by stephen84s; Nov 25th, 2008 at 4:44 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
"How to ask questions the smart way ?"
"How to ask questions the smart way ?"
•
•
Join Date: Nov 2008
Posts: 1
Reputation:
Solved Threads: 0
Re: how to write java program which sholuld be able to send sms messages to mobile
0
#5 Nov 25th, 2008
•
•
Join Date: May 2009
Posts: 1
Reputation:
Solved Threads: 0
Re: how to write java program which sholuld be able to send sms messages to mobile
0
#6 May 19th, 2009
Re: how to write java program which sholuld be able to send sms messages to mobile
0
#7 May 20th, 2009
![]() |
Other Threads in the Java Forum
- Previous Thread: [regex help]Find EXACT characters in a String.
- Next Thread: Stacks
| Thread Tools | Search this Thread |
911 actionlistener addball addressbook android api append applet application array arrays automation binary bluetooth button character chat class client code component consumer css csv database desktop eclipse ee error fractal ftp game givemetehcodez graphics gui html ide image integer j2me japplet java javaarraylist javac javaee javaprojects jni jpanel julia jvm linked linux list loan mac map method methods mobile netbeans newbie objects online oriented output panel phone printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server service set sms software sort sql string swing test threads time transfer tree ubuntu update windows working






