SMS through Java Program to a mobile phone

Hi everybody,

Can anybody help me out in sending SMS messages through Java Program to a mobile Phone as i have got an urgent requirment in my Project to implement ,but i dont have any idea to start with.

I will be very thankful , if any body can help me out with full source code and related components to this mail id(chrishvi@yahoo.com)or(psujith@hotmail.com)

with rgds

Muralikrishna/Subramanian

[436 byte] By [psujith] at [2007-9-26 3:42:38]
# 1
i want to, can you post to this email so i can email youFrans Thamurafrans@intercitra.com
fthamura at 2007-6-29 12:20:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

Mainly, It will not be a software issue but a hardware issue. JCP had released the Wireless Messaging API for J2ME which really cover the SMS feature. How ever, since that 's shipped with J2ME MIDP 2.0 only , keep in mind most (if not all) J2ME enabled device in the market only ship with MIDP 1.x, even you work out the software solution, no hardware you could find to implement unless you could have some early prototype etc. there is a good article in Java Pro site describe how to use the WMA on MIDP 2.0, forget the real link but search with WMA and u will find it.

there might be other alternative solution on MIDP 1.x mobiles such as some manufacture specified API ,say NOkia SMS API, MOtorola SMS API etc. it's good since helpful but the weakness is also obviously.

Good luck and keep on posting if you have good solution,

cefs99 at 2007-6-29 12:20:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
mm. how about security issue, because i am working with people from SonyEricsson, and they remove the JavaPhone from their P800 product.is it safe? or will this midp 2.0 MM API be implemented?
fthamura at 2007-6-29 12:20:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

this WMA already been implemented, check JCP.org, one specification is designed on this and at beta release now. The only issue is not WMA or not but MIDP 2.0 or not since it's hard for any existing MIDP 1.x mobile to be upgrade to MIDP 2.0, sounds terrible ,eh?

which kind of security issue you are after? this topic will be addressed at the CLDC level mainly if you mean those hardware related. but sorry I am not expert in that area, based on my understanding, I dont think this will be a issue since MIDlet already work in a cage...

cefs99 at 2007-6-29 12:20:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5
Just grab something for you while surfing: http://wireless.java.sun.com/midp/ttips/You could see real code sample on WMA from Sun
cefs99 at 2007-6-29 12:20:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6

yo yo yo

are u an expert in java?

coz i got a project on sms also

haha

but the worst thing is.....

i cant even get a connection to the driver

i got some codes on serial port

then the driver that im using is using usb port

are the codes the same?

or is there another codes for usb port alone?

pls help

urgent!!!

Sandrock at 2007-6-29 12:20:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 7
If you are sending to a mobile from from a desktop PC you might be better off just using a standard network connection to an SMS gateway (such as the numerous web based ones, or one you can use via subscription).
brownb2 at 2007-6-29 12:20:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 8

are u refering to me?

haha

what do u mean by standard network?

coz im doing a project

and i think i got to use java to connect to the modem

then after that i got to use java again to connect to the database to extract data from the databases and send them out through sms

Sandrock at 2007-6-29 12:20:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 9

You don't code much do you? 8)

The underlying O/S should take care of the modem (unless you like writing Java based drivers?)

Dial up using a native Runtime call to "rnaapp" (assuming you are using Windows)

Then open a network (Http) connection to a website doing an SMS web based gateway (i.e. one that lets you type details in on a web page and click "send" to send it) - you'll need to supply parameters to the web page using Java such as log in, message etc).

You should do the database work *before* you connect to the network so that the open network connection isn't waiting on the database to spool messages from.

brownb2 at 2007-6-29 12:20:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 10

haha

thats right

im not much of a coder

and the things that u talk about i still dun quite understand leh

thats why im dead for my project

needed ultra help

haha

im using an iTegno sms modem to send msg to the mobile phone

but im having some difficulties trying to communicate to that modem

how how how?

wah......................

Sandrock at 2007-6-29 12:20:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 11

I think you may be getting confused. Without programming a platform native part you will not be able to get Java to send SMS's from the iTegno. In fact you're porbably going to need its SDK (if it has one) with C++ to do that.

The easier solution as mentioned is just to dial up to the Internet (just start your GPRS connection in Windows) and use free SMS services like that on a web site such as www.breathe.com to send your SMS messages. Breathe is UK based so may not work where you are.

The process is then: Open a HttpConnection to the URL, give password and username to the login form, make sure you carry the session state in the Java session variable and then send your message by submitting the Java parameters to the web based forms. Breathe will then do the hard work and send an SMS. If your course tutor/employer etc wants you to directly control the modem then you'll need access to SMS messaging queue at your GPRS network provider (at least I think you will) - this is only available for businesses. In any case if that is what the above person wants then IMHO you are using the wrong language.

BTW I used to work for a company on behalf of Vodafone so I know a bit about SMS ;)

brownb2 at 2007-6-29 12:20:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 12

wow

er....... ok

oh by the way do u have an icq or msn?

coz i think talking this way is abit difficult for me

maybe talking thru icq or msn will be easier

then i can ask u easier also

haha

dun everytime have to come to the forum to look for info

haha

Sandrock at 2007-6-29 12:20:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 13
yo yo yois there anyone out there who has finished the project already?i mean for the sms one?hahaif have can i have a copy?hehethough its abit too much to ask for lahhaha
Sandrock at 2007-6-29 12:20:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 14
oh brownb2 ahask u ahif i would to use C programming and write the native platform then i use C programming to write the ATCommands but using java as the interface is it possible?
Sandrock at 2007-6-29 12:20:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 15
if u guys want to send SMS using GSM modem there are AT commands to do that. One can teather a GSM phone to a PC and access the GSM modem using AT commands and send SMS.
anilyerramasu at 2007-7-1 9:29:24 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 16

ok, you sound like you know what you're talking about. How do you open a HttpConnection to the URL? Is this hard? Does this mean we can send responses to any server as if it's from it's own program? I'd really appreciate any code snippets or tips on this.

Also, I noticed on other forums that you can send an sms via email with something like 61411999888@something.com - do you know anything about this? Or what the something might be in Australia or anywhere else in the world? - or what it's called so I can try and find it somewhere on the web.

I've been trying to find a simple (preferably free) solution for days now!

louiseOConnor at 2007-7-1 9:29:24 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 17
sorry, I've accidently added this to the wrong forum!! I don't want to have to connect my phone to the server or anything like that!
louiseOConnor at 2007-7-1 9:29:24 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 18
java code for sending msg from modem to gateway
munnyminet at 2007-7-1 9:29:24 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 19
hi kindly so send me the concept as its also my major project....
mukherjee.soumya@gmail.com at 2007-7-1 9:29:24 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 20
Hi ,Every Body, Please help me regarding coding for sending sms through programming, i want to write in my own please guide me. And what are the requirements to do so?Please Reply......Regards,Chiranjeevi
Chiranjeevi at 2007-7-1 9:29:24 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 21

hi

I am using jsmsengine for sending sms through mobile phone.

i got a LG 1500 cell which connect to my COM2 port.

But when i connect to mobile...then there is some error saying PIN invalid. Login failed...

So anybody please help how to correct this error...It is urgent.....

Bye

anil_verma at 2007-7-1 9:29:24 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 22
hiall plz does anyone have a java code to send sms from a mobile application?urgent plzzthxbyebye
doaa at 2007-7-1 9:29:24 > top of Java-index,Java Mobility Forums,Java ME Technologies...