Topic: Using Libnfc-llcp as initiator for p2p with nexus S
Hello,
I am trying to send a message via p2p to a nexus S with Arygon desktop reader. Receive works (when argyon in target mode), however, when I try to place the reader in initiator mode, the phone does not detect it.
This is my code:
http://pastebin.com/R0Ucq4Kx
This is the log on the libnfc side:
LLCP initialized
NFC device found
Connected to NFC device
[stderr] 20110910 10:36:14.507 TRACE libnfc-llcp.llc.link- service 0x88037f0 bound to SAP 1
[stderr] 20110910 10:36:14.507 TRACE libnfc-llcp.llc.link- service 0x8802118 bound to SAP 24
MAC link created
[stderr] 20110910 10:36:14.508 INFO libnfc-llcp.mac.link- (Arygon (/dev/ttyUSB0) 00V6.5 - PN532 v1.6 (0x07)) Attempting to activate LLCP Link as initiator
[stderr] 20110910 10:36:14.636 DEBUG libnfc-llcp.mac.link- (Arygon (/dev/ttyUSB0) 00V6.5 - PN532 v1.6 (0x07)) nfc_initiator_init() succeeded
(NOTE: message to send is NOT NPP formatted, but I should atleast see something happening on the android stack. I see nothing in the logs though)
Also, I would like to have a 2 way exchange with "one tap". Now, unless I remove the phone from the field of the reader, the connection does not drop. How do I force a stop of the connection?