×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    9

    Unhappy P2P NFC connection pb on 6131

    Hi!

    When trying to exchange data using P2P connection via NFC on 6131, I got a pb:
    • at the first connection, no pb!
    • but when I try once again to connect telephones, I get a "send failed (errorcode=11)" on the initiator side. I have to wait for a moment (I don't know if its a timeout, or the fact that I close the application) until it works again.


    1. Do you have any idea of what I'm doing wrong?
    2. do you know where to find what means "errorcode=11"?

    Thanks in advance!!

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2005
    Posts
    21

    Re: P2P NFC connection pb on 6131

    Hi,

    The error code you got means just that send is failed. You get that error at least when initiator only sends data but does not receive.

    I made an example MIDlet about P2P connection that you might want to check and see if that can help you with the problem.

    Simple NFCIP peer to peer chat

    You should check at least following things:
    • Always open new connection when new touch is made, same connection cannot be recycled between two touches.
    • Initiator first sends and then receives the data and target first receives and then sends the data. You can have multiple send receive pairs in one touch.
    • Close the connection after send receive pair.

    Hope this helps!

  3. #3
    Registered User
    Join Date
    Aug 2007
    Posts
    9

    Re: P2P NFC connection pb on 6131

    I have now a clearer idea of what's going wrong.
    The error happens when the application is quitted with the notifyDestroyed() function (I do not forget to close the connection). It does not happend when leaving the whole MIDlet suite.

Similar Threads

  1. Nokia 6131 NFC SDK v. 1.1 has been released!
    By Raluca_ in forum Near Field Communication
    Replies: 8
    Last Post: 2008-05-29, 13:54
  2. Are the Nokia NFC 6131 libraries complete ?
    By croger in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2008-04-26, 12:20
  3. TargetListener Problems in nokia 6131 NFC
    By JesusFD in forum Near Field Communication
    Replies: 3
    Last Post: 2008-03-31, 11:52
  4. Loading Applet into NFC 6131 Secure Element
    By lovercjs in forum Near Field Communication
    Replies: 2
    Last Post: 2007-10-23, 15:28
  5. Nokia 6131 NFC SDK 1.0 has been released
    By Nokia Ron in forum Near Field Communication
    Replies: 0
    Last Post: 2007-03-26, 22:28

Posting Permissions

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