Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2009

    Exclamation Autolaunch P2P midlet - LLCP PushRegistry - how?

    Dear All!

    I'am already create P2P C# windows application and java midlet (not cardlet!) on nfcip protocol (win parts based on pure apdu exchange) for nfc payment terminal. But i over week can't solve one small trouble - how autorun midlet (on nokia 6212) after touch external reader ( acr122) ?

    I'am try call pushregistry.register with connection - "llcp-type1:?pid=10" or "llcp-type2:?pid=16"
    but get error - unsupport platform.

    Read the manual:

    PushRegistry support
    The implementation supports LLCP PushRegistry connections that enable launching a registered MIDlet when a remote device communicates with the local device using LLCP. When using a Type 1 PushRegistry connection sending a single packet of data to the correct PID will launch the MIDlet, and the MIDlet can acquire the received data by starting to listen for incoming connections using the same PID. When using a Type 2 PushRegistry connection the remote device needs to open a connection using the same PID. Once the registered MIDlet has been launched the MIDlet should start listening for incoming connections using the same PID in order to open the connection and to start receiving data.

    LLCP push registration connection URI must conform to the BNF syntax specified below.

    <llcp_push_uri> ::== "llcp-type"<transport_type>":?pid="<protocol_id>
    <transport_type> ::== "1" | "2"
    <protocol_id> ::== decimal integer (0-62)
    For example llcp-type1:?pid=10 or llcp-type2:?pid=16. The connection filter must always be *.

    Received data will be buffered until the MIDlet has been launched and it has created a connection corresponding to the Push registration. The implementation can limit the amount of time the buffered data is available. So for example the buffered data might not be available after 30 seconds.

    Is there any way at the moment to launch an application for a P2P communication?

    Thank you.

    P.S. Sorry for my english.

  2. #2
    Registered User
    Join Date
    Apr 2010

    Lightbulb Re: Autolaunch P2P midlet - LLCP PushRegistry - how?

    As suggested on this page :
    Note that PID mentioned in the SDK javadocs is not valid, use SID instead
    So I'd suggest using "llcp-type1:?sid=10" instead of "llcp-type1:?pid=10". Worked for me.
    Hope that helps.

  3. #3
    Registered User
    Join Date
    Apr 2010

    Red face Re: Autolaunch P2P midlet - LLCP PushRegistry - how?


Similar Threads

  1. problem Pushregistry with signed midlet
    By marcvandam4 in forum Near Field Communication
    Replies: 7
    Last Post: 2008-09-18, 19:51
  2. J2me MIDlet to Servlet HttpPost connection Exception java.io.EOFException
    By sumanbera in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2008-01-11, 12:29
  3. Problem with tag-touch while midlet running
    By cde in forum Near Field Communication
    Replies: 3
    Last Post: 2007-11-28, 14:32
  4. Minimizing and Maximizing a Midlet
    By lekkie in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-02-20, 08:15
  5. Replies: 2
    Last Post: 2004-03-25, 20:50

Posting Permissions

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