×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    1

    Question IrCOMM connection delay

    Has anyone experienced any problems with the performance of the Connector.open method when used to open an IrCOMM comm port (eg. comm:ir0)?

    We are currently porting an application that uses IrCOMM to communicate with an Infrared credit card reader to perform mobile transaction processing. The existing versions of the app run on various Symbian OS versions as well as MS SmartPhone / PocketPC Phones without any problem. With J2ME however (on supported MIDP2 phones), we are using the standard GCF Connector.open functionaily (as shown in the sample below) to obtain a CommConnection class object for the IR0 port.

    CommConnection oConn = null;
    try {
    oConn = (CommConnection) Connector.open("comm:ir0", Connector.READ_WRITE, false);
    } catch (Exception ex1) {
    }


    The open function shown above works as expected, however it takes approximately 20 seconds for it to return (ie. before we can request the I/O streams to communicate with the card reader). On all the other platforms we have ported this app, the opening of the IR port completes very quickly. In this Java version, once the open method completes, however, the transfer of the card details is completing at normal speed (ie. it's all done within 1 second as per the other platform versions of the app).

    It makes no difference whether the card reader is in range and pointing at the IR port before, during or after the call to the open method either - it always seems to take 20 seconds to open the port and then everything runs fine. Our testing to date has been on a 5140i, but I would assume this problem occurs on other Nokia MIDP2 phones...

    Thanks for any assistance or suggestions you can offer!!
    Last edited by ivolve; 2006-01-31 at 06:27. Reason: Extra details

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    1

    Re: IrCOMM connection delay

    Hi

    If you are using 5140 device, is useful to read this technical note:

    http://www.forum.nokia.com/info/sw.n..._1_en.pdf.html
    Last edited by Arvo Tomingas; 2008-10-02 at 19:54.

Similar Threads

  1. GPRS connection status---urgent, please
    By fanyulong in forum Symbian
    Replies: 3
    Last Post: 2008-07-15, 07:54
  2. HTTP connection on 6310i, 7650, 9210 and in sony-ericsson p800
    By mika1982 in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2003-07-24, 16:44
  3. IrCOMM connection does not stay closed
    By skornel in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2003-06-12, 07:42
  4. Nokia 3585i and PC Suite 4.95; NO CONNECTION
    By chrism2202 in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2003-04-21, 12:10
  5. Replies: 5
    Last Post: 2003-02-07, 11:25

Posting Permissions

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