Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


URGENT! How to connect from Midlet via IrDA (COMM,USB,Socket) to application ?

Posted on 2004-07-30
Medium Priority
Last Modified: 2008-03-17

 I have some questions about cell phone developement:

1) How to connect from MidLet (Java application) via IrDA (COMM,USB,Socket), BlueTooth and cable to PC application ?
2) How to create and use WebService from MidLet and connect to application based server ?
3) How to transfer user binary data (stored via RMS) using mentioned connections to application ?

Note: I've no idea, share any thoughts you'll find related to any part of any question, don't be shy :) and please provide me with some examples..


JBuilder X Enterprise (MidLet side)
Delphi 7 Architect - update #1 (Application side)
J2ME Wireless Toolkit 2.0.01
Question by:_Katka_
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 15

Expert Comment

ID: 11681760
1) There's no way to do this using standard J2ME MIDlets.  If you have a specific device in mind, there may be proprietary APIs that are available to do some of these (possibly IR, Socket and Bluetooth).

2) Have a look at this article to see if it helps: http://developers.sun.com/techtopics/mobility/apis/articles/wsa/

If not, please ask for clarifications.

3) You need to identify the connection type you're going to use before this can be answered, but if you can use HTTP (ie. over the network, not a cable), then you could just use an HTTP post.
LVL 10

Author Comment

ID: 11683200
Thanks for fast reply :)

1) Unfortunately, I was partialy aware that it won't be unified..How you some links to those APIs ? Are there any examples available (this should be helpful) ?
2) I read, I unsderstood and it's enough (mostly because of examples :) to implement it for myself..thanks again (considered solved)
3) Well..Right now it's chosen by user in Midlet's "settings" menu (preffered connection type)..there's problem mainly with initiating transfer (of user-data) via IrDA,
    BlueTooth or WinSockets..again, example (or at least command listing) would be appreciated..


I'm planning to make my application (company product module) on these devices (practically all possible devices I can).
The only constraint is that the device has to be able support Java applications:

Sony Erricson

additionally PalmOS devices (not related to this question and maybe completely out of the question right now :)

Kate :)
LVL 15

Expert Comment

ID: 11689651
You should become a member for the developer areas for each of the appropriate sites and then check to see what their individual toolkits provide:

Nokia : http://www.forum.nokia.com/main.html
Siemens : https://communication-market.siemens.de/portal/main.aspx?pid=1
Samsung : Not sure, but try their main site to start with.
Sony Erricson : http://developer.sonyericsson.com/site/global/home/p_home.jsp
Motorola : http://www.motocoder.com/motorola/pcsHome.jsp

You're almost certainly going to need to create different code bases for each of the manufacturers and possibly even for different devices from those manufacturers.
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

LVL 10

Author Comment

ID: 11691403
Yeah..I already knew that..I'm a member of all developer areas (especially for Nokia, it's a pretty hard job to download all the kits) now it takes about 2.5GB (relatively
huge). Also I'd download the most of IrDA specifications (universal, manufacturer's special guides, etc.). So the informations really isn't much of a problem. The real
problem is that those development kits aren't supporting IrDA directly (IrDAConnect class,USBConnect,etc. ;) so it's pretty unclear how to implement it. So the example
would be really appreciated. (At least for one manufacturer/one model). Anyway.. I'm pretty sure how to build a java application midlet for all of those (and acually it's
running pretty well on all mentioned devices). The questions are:

Is it possible that there's no example of transfering user-data from win32 application <-> java application midlet ?
Is it possible that noone knows how to achieve it ?

Kate :)

LVL 15

Accepted Solution

jimmack earned 1500 total points
ID: 11698708
I'd stick with Bluetooth if you can.  The manufacturers seem to be dropping IR in favour of Bluetooth (note that I have no firm evidence of this, it's just the impression I get from recent handset specs).  Also, Bluetooth support is growing and APIs have been defined for it's use.  There are no APIs, that I am aware of, for serial connections within MIDlets.
LVL 10

Author Comment

ID: 11701156
You're absolutely right, but this is considered an order (from my boss), he's in fact a manager and he don't understand to these facts.. He simply wants and that's it.. I personally would always prefer Bluetooth in combination with Web Service (server side provided by us, more $). This product is targeted to employes (online workflow manager) and Bluetooth is not always available for the most of them and he has a vision of employees returning to their computers, pressing a button and synchronizing all the work done today with the main database, the reality rest is on me :(

The remaining question is how to initiate and process a user-data transfer (in both directions) via cell phone IrDA ?

thanks so far
Kate :)
LVL 10

Author Comment

ID: 11760024
I'm giving up.. I consider it impossible..


Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
For Sennheiser, comfort, quality and security are high priority areas. This paper addresses the security of Bluetooth technology and the supplementary security that Sennheiser’s Contact Center and Office (CC&O) headsets provide.  
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question