Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending and Recieving SMS from a java application

 
Tumaini Kilimba
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sirs et Madames,
Happy new year to all. I am thinking about creating java database application which can receive SMS's (the text will be a barcode) from mobile phone users and also be able to send an automated reply (details of the product whose barcode was sent as SMS) from the database. I am at a loss as to where to start, my research led me to try SMSLib (an SMS API), but the documentation and available material is so obscure that I have not been able to get anything running, it also required me to download the Java Communications API which unfortunately is incompatible with a 64-bit OS. Forgetting all I have just said (so I can get a clean start without biasing your answers to match what I have been attempting, as I may have been doing stuff wrong) I would greatly appreciate some completely fresh advice and pointers on how I can get going on such a project. My hardware is:

Machine: Windows 7 x64
Modem: EC168C

Thanking you in advance
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first step might be to select a network provider through which you can send and receive SMS. This will cost you money, since such services are not free to use. Once you have done that you'll have access to the provider's documentation on how to integrate your software with their network.
 
Tumaini Kilimba
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ulf, thanks for the quick response. What are the questions I need to ask of them (the network providers)? Also, is it not possible to create a prototype without having to go through the network provider? Are there no workarounds to that? Because if one uses AT commands, one can get their gsm modem to send or receive messages without involving the service provider (after all, they still get their money as each text message is still charged the standard rate), so in similar fashion, can one not create a prototype application of that sort without going to the service provider. If not, what would I need from the service provider when I go see them, what should I ask from them?

Thanks alot, and sorry for the many questions
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if using a local phone that way works for you, so much the better. Obviously, the server would have to run on that same machine, but I'm sure you've thought of that.

The list of questions to take to the provider would essentially be your list of SMS-related requirements.
 
Tumaini Kilimba
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thanks... so where do I start, how does one create a Java application that sends and receives SMS messages?
 
Mariusz Sxxxx
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please install sun WTK, and find folder apps/WMADemo
in this folder you will find simple sms sender and sms receiver
BR.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic