You Are Here:

Community: Developer Discussion Boards

#1 Old Arrow behaving phone as a modem in J2ME - 2007-01-31, 07:50

Join Date: Jan 2007
Posts: 5
rohitoberoi6592
Offline
Registered User
hi all,

i'm a newbee to J2ME. i found one module on how to develop a MIDlet in J2ME that will act as a modem to a pc connected via bluetooth or serial port or any other media?

i thought i should as follow 2 steps:

1) Running a midlet on the phone that will be the server (appropriately a proxy server)

2) Running another midlet on the pc that will act as a client (just like RMI) which can access the internet via the mobiles GPRS connection?

which part of J2ME can help me in this regard and whilch SDKs and emulators can do this for me?

how to implement this?

your suggestion will be appreciated.
Reply With Quote

#2 Old Re: behaving phone as a modem in J2ME - 2007-01-31, 09:00

Join Date: Mar 2003
Posts: 6,211
petrib
Offline
Forum Nokia Champion
I don't think I get it (what you wish to accomplish, really). You can simply use most mobile phones as GPRS modems for a PC without any MIDlets whatsoever on the phone. Just configure the PC to detect the phone as a modem, and do all the communications (access the Internet) directly from a PC based app.

To make it easier with Nokia phones, use Nokia PC Suite ( http://www.nokia.com/pcsuite ) and the "Connect to Internet" feature it has.
Reply With Quote

#3 Old Arrow Re: behaving phone as a modem in J2ME - 2007-01-31, 21:48

Join Date: Jan 2007
Posts: 5
rohitoberoi6592
Offline
Registered User
that is what is my work. i've to implement that concept in J2ME. The thing is like this that whenever the mobile (bluetooth enabled) will come in the piconet of the PC, the PC has to identify it and then it will use the GPRS service associated with the mobile to access the internet.

i've to configure the device driver in J2ME, i've been told NOT to install any driver, instead the MIDlet will do the job for me.

The MIDlet has to identify the bluetooth deviice and then configure the mobile as the modem for the pc.

any idea. thnx in advance
Reply With Quote

#4 Old Re: behaving phone as a modem in J2ME - 2007-01-31, 22:16

Join Date: Mar 2003
Posts: 6,211
petrib
Offline
Forum Nokia Champion
The phone already does the work for your MIDlet; if you have it paired with a PC (and its Bluetooth sw) and the phone's Bluetooth is on, as soon as the phone comes within the range of the PC, it is automatically detected (as a modem).

Is this a work assignment, or some sort of school/educational project, because it doesn't sound to me as it makes much practical sense.

And, in any case, you can't in any phone I know disable the built-in Bluetooth modem service/behaviour of the phone with J2ME and have your MIDlet handle it instead.
Reply With Quote

#5 Old Arrow Re: behaving phone as a modem in J2ME - 2007-02-01, 07:25

Join Date: Jan 2007
Posts: 5
rohitoberoi6592
Offline
Registered User
you are right. my job is this that i've to replace the Nokia PC suite or similar automatic configuration software.

I need to re-define the driver that connects the PC with the Mobile.

I'm not getting any relevent information how to implement and where to get sufficent resource?


please help.
Reply With Quote

#6 Old Re: behaving phone as a modem in J2ME - 2007-02-01, 09:03

Join Date: Mar 2003
Posts: 6,211
petrib
Offline
Forum Nokia Champion
You've been put into a difficult position; you'll never be able to do something like that through just a J2ME MIDlet on the phone.

You can, of course, write a MIDlet that opens IP sockets to the network side, and also talks over Bluetooth with another app on the PC (you need to write both apps), but it'd be very hard to make the a generic "modem" pipe for the PC. And if that's all you want, if you need to install custom software on both the phone and the PC for that, what's the point if it works already like that with built-in software on both?

If you need PC Suite -like functionality, then J2ME on the device will not be nearly enough (you'd have to go C++ and restrict yourself only to Symbian based devices), and you still need to install sw on both the device and the PC, and in the case of PC Suite you only need PC Suite, instead of specialized phone software.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Phone with modem - advice kmdhali General Symbian C++ 3 2006-06-05 10:48
Access cell phone line to send AT commands to a pc modem sssoares Mobile Java Tools & SDKs 0 2005-09-07 22:53
How to access the Phone Number from the J2ME Application nuwan14d Mobile Java General 1 2003-09-04 08:19
How to access the Phone Number from the J2ME Application nuwan14d PersonalJava 0 2003-09-03 13:18

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia