07-15-2012 12:34 AM - last edited on 07-15-2012 03:38 AM by mwoolley
Im having trouble communicating with my ACR122 reader. My bold 9900 doesnt detect the reader when i implement DetectionListener. Also, I keep getting a 0x63 0x00 response on the ACR122 whenever i try to send a message. What have you been able to do with the ACR122U?
07-15-2012 03:42 AM - edited 07-15-2012 04:37 AM
DetectionListener will not detect a card reader generally. It will detect cards/tags. The reader needs to detect your device and its emulated card or tag and then connect to it.
What exactly are you trying to do? Can you decribe your overall application requirement please? I see you posted in other forums and mention "peer to peer".
07-15-2012 05:49 AM
I thoght DetectionListener detects any target in the NFC field. I basically want to transfer contact informatiion from the device to a desktop application using the ACR122U.
In the Blackberry application, I implemented NDEFMessageBuilder and NDEFPushStatusCallback interfaces and registered for NDEF push. On the ACR122U side, it seems I am able to detect and open a connection to the BlackBerry device on a terminal (using the javax.smartcardio.... libraries) but i keep getting the same error message when I send an initial payload to initialize the reader as target.
I introduced DetectionListener and implemented the onTargetDetected() method in the Blackberry application just to check if the connection to the ACR122U was being detected. Shouldn't DetectionListener be detecting the connection (which i see on the reader side)?
07-15-2012 05:59 AM
DetectionListener will detect cards/tags not readers. Your reader application is presumably in NFC Reader/Writer mode. So it needs to detect the proximity of the device and read the NDEF message pushed to it from the device.
07-15-2012 07:00 PM
Thanks. I have another question:
At what point is the buildNDEFMessages() function defined in NDEFMessageBuilder called? i.e when are the messages built? Does this happen after pushNDEF() is called? The NDEF Messages in my application doesnt seem to be built as i do not see any of the buildNDEFMessages() logs on the output console when debugging the aplication.
07-16-2012 02:21 AM