Nexus S NPP for 2-way exchange
I have been experimenting NPP on a Nexus S (Android 2.3.4) with an SCL3711 reader. I want to do a fast 2-way exchange. If I configure the phone to be the NPP client, I can receive and process the NDEF record fairly quickly. However, if I next try to turn around the channel and send an NDEF message back to the phone I'm seeing a rather large delay (typically 2-4 seconds). Since I'm using NPP, it seems that I have to tear down the LLCP connection in the middle for this to work.
I first start up the python code (based on a modified npp-test-server.py) as an NPP server. I tap the phone, and I receive the NDEF message from the client right away. I then call nfc.llcp.
I would appreciate some guidance as to the best way to break the connection and re-establish it in the other direction. Are there any tricks to speeding up this process? Is there any better way to do 2-way NFC with a Nexus S? NPP works fine to transfer NDEF in one direction, but it's annoying to have to tear down and reestablish the LLCP connection to send data in the other direction. Am I missing something?
Thanks very much,
Vic
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- nfcpy Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Stephen Tiedemann
- Solved:
- Last query:
- Last reply: