Discussion Board

Results 1 to 2 of 2

Thread: IRCOMM and J2ME

  1. #1
    Registered User
    Join Date
    Sep 2006

    IRCOMM and J2ME


    I'm trying to develop a J2ME app which is using a cell phone's IR port to communicate with an external device. It would be nice to get this to work on any cell phone which has an infrared port, but I've buried that hope already. For starters, my Nokia E 50, which is an S 60 third ed. device would suffice.

    Alas, so far I did't get anywhere.

    What I'm trying to do is approximately this:

    comm = (CommConnection)Connector.open("comm:IR0", Connector.READ_WRITE, false);
    os = comm.openOutputStream();
    String text = "Hello World";

    Now, I do appear to have an IR0 port (at least System.getProperty("microedition.commports") returns IR0, among others), and according to some docs I've found this means that the cell phone supports IRCOMM. Fine so far.

    However, while I can apparently open the connection and the stream, I don't get any data transferred. The cell phone asks me if I want to allow the connection, and that's pretty much all that happens. I also don't get any exceptions or such.

    I've got an IR-USB-Dongle connected to my PC, and when I launch an app which dumps IR traffic to a console window, I can see device discovery going on ... my PC and the cell phone announcing their presence, but not much else.

    So: am I missing something, or is my IR0 port "bogus" and I cannot use IR from J2ME?


  2. #2
    Registered User
    Join Date
    Mar 2003
    Does your PC announce IrCOMM in its IAS (service database)? I do not think so – what should behind that IrCOMM channel? Use another mobile phone instead of your PC and try to play with AT commands first.

Similar Threads

  1. IrCOMM connection delay
    By ivolve in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-09-30, 14:41
  2. ircomm with 6310i
    By klaus_stocker in forum Mobile Java General
    Replies: 2
    Last Post: 2003-04-30, 16:01

Posting Permissions

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