• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sending SMS from a servlet

 
Ranch Hand
Posts: 60
IBM DB2 Eclipse IDE Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I am from India. Can you give me the links to send SMS from servlet for Indian mobile phones of any network ?
How can I get started ?

Thanks in advance.
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JavaIoFaq talks about that. Have you signed up with a provider yet?
 
Shounak Kundu
Ranch Hand
Posts: 60
IBM DB2 Eclipse IDE Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do I necessarily need to register to a bulk SMS provider ? Can't I connect my mobille to PC and serve it as a GSM modem ?
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This doesn't really have much to do with Servlets, so I've moved it someplace ore appropriate.
 
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Shounak Kundu wrote:Do I necessarily need to register to a bulk SMS provider ? Can't I connect my mobille to PC and serve it as a GSM modem ?



Some mobiles allow this. You can connect via serial (USB, Bluetooth) and send out messages via the correct AT commands.

Most don't.

Some phones have companion software that allows to send SMS via PC (e.g. old Motorola devices, some Samsung). But I don't know if they publish an API for this. I doubt they do.

If you have an Android device you can write an app for the phone that works as SMS server. IIRC this has be done before, there are some apps out there that allow full PC control over the phone including this.
 
Bartender
Posts: 2661
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Shounak Kundu wrote:Do I necessarily need to register to a bulk SMS provider ? Can't I connect my mobille to PC and serve it as a GSM modem ?

A servlet is usualy not running on your PC, but on a server.
 
Shounak Kundu
Ranch Hand
Posts: 60
IBM DB2 Eclipse IDE Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Hauke Ingmar Schmidt wrote :

Some mobiles allow this. You can connect via serial (USB, Bluetooth) and send out messages via the correct AT commands.

Most don't.

Some phones have companion software that allows to send SMS via PC (e.g. old Motorola devices, some Samsung). But I don't know if they publish an API for this. I doubt they do.

If you have an Android device you can write an app for the phone that works as SMS server. IIRC this has be done before, there are some apps out there that allow full PC control over the phone including this.





Yes, I have seen the tutorials on Internet. They all have used AT command. But, I'd be using Java. Here's the problem.
So, you recommend to go for a bulk-SMS account ?
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Shounak Kundu wrote:They all have used AT command. But, I'd be using Java. Here's the problem.


Where do you see the problem in that? What does it matter which language is used? Java can communicate over both USB and Bluetooth.
 
Hauke Ingmar Schmidt
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Shounak Kundu wrote:
Yes, I have seen the tutorials on Internet. They all have used AT command. But, I'd be using Java. Here's the problem.
So, you recommend to go for a bulk-SMS account ?



I don't know what kind of application you want to build and what amount of SMS will be send so I can't give a recommendation.
 
Shounak Kundu
Ranch Hand
Posts: 60
IBM DB2 Eclipse IDE Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Lester Burnham wrote:



Where do you see the problem in that? What does it matter which language is used? Java can communicate over both USB and Bluetooth.






Actually , I am novice in this matter. So,please guide me.

 
Shounak Kundu
Ranch Hand
Posts: 60
IBM DB2 Eclipse IDE Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have some queries regarding SMS sending, please clear my doubts :

1) What are prerequisites ?

2) Do I need to have GPRS or EDGE connectivity ?

3) If I connect my mobile phone through USB data cable, wil Java recognize that ?
I have seen a program , connecting cell phone through COM port . Is USB a COM port ?



 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

2) Do I need to have GPRS or EDGE connectivity ?


SMS are sent via the phone network, not the data network, so you don't need that.

Is USB a COM port ?


No, it's a different type of connectivity. Check the JavaIoFaq for some hints about Java<-->USB integration.
 
Hauke Ingmar Schmidt
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Shounak Kundu wrote:I have some queries regarding SMS sending, please clear my doubts :

1) What are prerequisites ?

2) Do I need to have GPRS or EDGE connectivity ?

3) If I connect my mobile phone through USB data cable, wil Java recognize that ?
I have seen a program , connecting cell phone through COM port . Is USB a COM port ?



1) Depends on what kind of application you want to build and what amount of SMS you need to send. Maybe a locally connected phone, a GSM modem card, an USB stick, access to a web service that allows to send SMS, a mail-to-SMS service, server software running on a phone...

2) No.

3) Generally spoken: No. No.

But a phone may have a modem built-in that is accessible via USB. E.g. my (old) Ericsson T39m can be connected via USB/serial adapter (the connector is built for RS-232) and behaves as serial device that accepts AT commands. The same is possible via a Bluetooth DUN connection. Connect, use your operating system to emulate a serial port (i.e. com port), open up a terminal emulator and connect the terminal link.

A lot of modern phones don't allow this anymore.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may go for open source library for sms operations from pc........ smslib
http://code.google.com/p/smslib/
 
Jan Cumps
Bartender
Posts: 2661
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Ni Sa", welcome to JavaRanch.
Please check your Private Messages for an administrative matter.
 
These are the worst of times and these are the best of times. And this is the best tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic