Send and receive message using J2me

Hi All

I m new to j2me and it is my first professional task i will vary thankfull if you peoples will help me

Scenario is that like bank client will send account number to some mobile number. Mobile that receives(connect to server via usb or if u have any other idea please guide me ) this message will search database and retrieve result and send result back to the client.

i will vary thatfull for your responce

thanks in advance

Shahzad

Software Engineer

Allianz EFU

[518 byte] By [shahzad254a] at [2007-10-3 11:52:53]
# 1

In my humble opinion, professionals should first check out possibilities and options for them selves before asking questions.

Basicly you want some server to send and receive sms'es with. This kind of stuff pops up regularly, so I suggest you use the search to find out some more about the available options. Also take into account scalability and cost!

deepspacea at 2007-7-15 14:27:12 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

hi

yes u r right professional find possibilities then ask question

i search a lot on this topic but i m unable to find any direction and i m also new to j2me development i have just an academic experience

so plz help me to find some direction

plzzzzzzzz give some suggestions to start this project it is vary important

Plzzzzzzzzzzzzzzzz

thanks in advance

shahzad

shahzad254a at 2007-7-15 14:27:12 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

Hi, i currently working in a sms company, i think i can give u some picture~

ur scenario is, u wan a mobile user, to send a sms to bank, in order to perform someting. it will going to be like this

FIRST, u have to go to the mobile service provider (those company who offer u the mobile number), they will having a API that able to communicate to their SMS Inbox (just like ur email inbox)

SECOND, u have to apply a SMS Inbox at the mobile service provider with a short code given (see example below).

THIRD, u just develop a java application using the API the mobile service provider gave, when a sms is sent into that sms inbox, a trigger to ur application, and the msg can retrieve. it can be so easy like just receiveSMS(), you will get the sender phono number together with the sms content, take it and process whatever u like. after that, u can send the sms back to the user, using the same API provided by the mobile service provider too-- sendSMS(sender_mobile, content).

user sent a sms with the content "XYBANK BALANCE <account no> <password>" and send to 8885555 (example)

where

XYBANK = shortcode (actually represent the sms inbox name, just like ur email address)

BALANCE = ur own decide code, when u receive the sms, u split the msg, if u found "balance", then go to the db and take out the balance of the particular account no.

hopefully it will give u a brief pic how this thing can work. btw....if u develop for the academic purpose only...i dont think the mobile service provider will give u the API.... >.<

Message was edited by:

e-Biau

e-Biaua at 2007-7-15 14:27:12 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
Thank U varyyyyy much
shahzad254a at 2007-7-15 14:27:12 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5

hi

is it possible i avoid service provider company.

like user1 send message to user2's mobile number user2 mobile will connect to PC via cable in which java programe is running that will sence any message arival in user2 cell phone. and find appropiate result and send message to user1 via user2 mobile

shahzad254a at 2007-7-15 14:27:12 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6

first of all, I can't imagine that you could not find any other information on this topic, since this kind of stuff has been covered many times already.

> is it possible i avoid service provider company.

> like user1 send message to user2's mobile number

> user2 mobile will connect to PC via cable in which

> java programe is running that will sence any message

> arival in user2 cell phone. and find appropiate

> result and send message to user1 via user2 mobile

Surely it is possible, but as I already pointed out in my first reply: think about cost and scalability. First of all: sending an sms from a real mobile device is more expensive than via the opperator. Secondly, the device will only be able to cope with a limited number of sms'es at one time.

You can obviously equip a PC with a sh*tload of GSM modems to be able to receive and send SMS'es, but first of all, every modem will have another number, so scaling will not work very well for the users that will have to remember x different numbers to send sms'es to.

If you can live with these limitation, then that's fine. Just buy some mobile GSM terminal that can be connected to the PC using serial or USB port, get an AT Comman manual, and learn how to send and receive sms'es via AT Commands.

deepspacea at 2007-7-15 14:27:12 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 7
Thanks Shahzad
shahzad254a at 2007-7-15 14:27:12 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 8
hi allsorry to distrube you again and againcan we send AT commands from j2meif yes can u provide some sample code at itsshahzad83@hotmail.comthanks in advanceshahzad
shahzad254a at 2007-7-15 14:27:12 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 9

> can we send AT commands from j2me

Generally no, there are a few phones out there that can do it, but most don't.

You don't need any j2me anyway. Just connect the phone to the PC and just use it as a normal modem via a serial port api (one is available for java). Then you can just write a normal application on the PC

> if yes can u provide some sample code at

> xxxxxxxxxxxxx@hotmail.com

You'd probably want to remove your email address. It will only het you more spam!

deepspacea at 2007-7-15 14:27:12 > top of Java-index,Java Mobility Forums,Java ME Technologies...