Hi nitegate and EDevil,
Could you help me, please?
I'm playing with Google Nexus S (android 2.3.4) and ACR122. I'm trying to send one NDEF message from the phone to the reader and, after that, another NDEF message from the reader to the phone. The reader is configured in target mode.
The phone sends the NDEF message and the reader receives this one. After that, the reader sends another NDEF message to the phone but the phone doesn't receive the message.
This is the reader log:
[INFO] Found terminal: ACS ACR122 0
[INFO] A tag is found.
[INFO] The tag ATR: 0x3B 0x8F 0x80 0x01 0x80 0x4F 0x0C 0xA0 0x00 0x00 0x03 0x06 0x03 0xFF 0x40 0x00 0x00 0x00 0x00 0xD4
[DEBUG] Retreive UID...
[DEBUG] << 0xFF 0xCA 0x00 0x00 0x00 [5 byte(s)]
[DEBUG] >> 0x08 0x8B 0x47 0x02 [4 byte(s)]
[INFO] UID: 0x08 0x8B 0x47 0x02
[DEBUG] Check connection status...
[DEBUG] Connection is NOK
[INFO] Connect...
[INFO] Used mode: target
[DEBUG] << 0xFF 0x00 0x00 0x00 0x2D 0xD4 0x8C 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0xFE 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0xFE 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x06 0x46 0x66 0x6D 0x01 0x01 0x10 0x00 [50 byte(s)]
[DEBUG] >> 0xD5 0x8D 0x26 0x1E 0xD4 0x00 0x01 0xFE 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x32 0x46 0x66 0x6D 0x01 0x01 0x10 0x03 0x02 0x00 0x01 0x04 0x01 0x96 [33 byte(s)]
[INFO] Used bitrate: 424 kbps
[INFO] Used protocol: DEP
[INFO] Used framing type: FeliCa
[INFO] NFCIP connection has been established
[DEBUG] Check connection status...
[DEBUG] << 0xFF 0x00 0x00 0x00 0x02 0xD4 0x8A [7 byte(s)]
[DEBUG] >> 0xD5 0x8B 0x01 0x22 [4 byte(s)]
[DEBUG] Connection is OK
[DEBUG] << 0xFF 0x00 0x00 0x00 0x02 0xD4 0x86 [7 byte(s)]
[DEBUG] >> 0xD5 0x87 0x00 0x05 0x21 0x06 0x0F 0x63 0x6F 0x6D 0x2E 0x61 0x6E 0x64 0x72 0x6F 0x69 0x64 0x2E 0x6E 0x70 0x70 [22 byte(s)]
[DEBUG] Received PDU: dsap=0x01, ssap=0x21, pduType=CONNECT, information=[0x06 0x0F 0x63 0x6F 0x6D 0x2E 0x61 0x6E 0x64 0x72 0x6F 0x69 0x64 0x2E 0x6E 0x70 0x70]
[DEBUG] Check connection status...
[DEBUG] << 0xFF 0x00 0x00 0x00 0x02 0xD4 0x8A [7 byte(s)]
[DEBUG] >> 0xD5 0x8B 0x01 0x22 [4 byte(s)]
[DEBUG] Connection is OK
[DEBUG] << 0xFF 0x00 0x00 0x00 0x04 0xD4 0x8E 0x85 0x81 [9 byte(s)]
[DEBUG] >> 0xD5 0x8F 0x00 [3 byte(s)]
[DEBUG] Sent PDU: dsap=0x21, ssap=0x01, pduType=CC
[INFO] LLCP connection has been established: MIU=128, LTO=15, WKS=0x01, OPT=3, service=com.android.npp
[DEBUG] Check connection status...
[DEBUG] << 0xFF 0x00 0x00 0x00 0x02 0xD4 0x8A [7 byte(s)]
[DEBUG] >> 0xD5 0x8B 0x01 0x22 [4 byte(s)]
[DEBUG] Connection is OK
[DEBUG] << 0xFF 0x00 0x00 0x00 0x02 0xD4 0x86 [7 byte(s)]
[DEBUG] >> 0xD5 0x87 0x00 0x07 0x21 0x00 0x01 0x00 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x0A 0xD5 0x00 0x07 0x52 0x45 0x51 0x55 0x45 0x53 0x54 [26 byte(s)]
[DEBUG] Received PDU: dsap=0x01, ssap=0x21, pduType=I, sequense=0x00, information=[0x01 0x00 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x0A 0xD5 0x00 0x07 0x52 0x45 0x51 0x55 0x45 0x53 0x54]
[INFO] Received NDEF record:
[INFO] Payload as byte[]: 0x52 0x45 0x51 0x55 0x45 0x53 0x54
[INFO] Payload as string: REQUEST
[DEBUG] Check connection status...
[DEBUG] << 0xFF 0x00 0x00 0x00 0x02 0xD4 0x8A [7 byte(s)]
[DEBUG] >> 0xD5 0x8B 0x01 0x22 [4 byte(s)]
[DEBUG] Connection is OK
[DEBUG] << 0xFF 0x00 0x00 0x00 0x1E 0xD4 0x8E 0x87 0x01 0x01 0x01 0x00 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x0F 0xD2 0x0A 0x02 0x74 0x65 0x78 0x74 0x2F 0x70 0x6C 0x61 0x69 0x6E 0x4F 0x4B [35 byte(s)]
[DEBUG] >> 0xD5 0x8F 0x00 [3 byte(s)]
[DEBUG] Sent PDU: dsap=0x21, ssap=0x01, pduType=I, sequense=0x01, information=[0x01 0x00 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x0F 0xD2 0x0A 0x02 0x74 0x65 0x78 0x74 0x2F 0x70 0x6C 0x61 0x69 0x6E 0x4F 0x4B]
[DEBUG] Check connection status...
[DEBUG] << 0xFF 0x00 0x00 0x00 0x02 0xD4 0x8A [7 byte(s)]
[DEBUG] >> 0xD5 0x8B 0x01 0x22 [4 byte(s)]
[DEBUG] Connection is OK
[DEBUG] << 0xFF 0x00 0x00 0x00 0x02 0xD4 0x86 [7 byte(s)]
[DEBUG] >> 0xD5 0x87 0x00 0x07 0x61 0x01 [6 byte(s)]
[DEBUG] Received PDU: dsap=0x01, ssap=0x21, pduType=RR, sequense=0x01
[DEBUG] Check connection status...
[DEBUG] << 0xFF 0x00 0x00 0x00 0x02 0xD4 0x8A [7 byte(s)]
[DEBUG] >> 0xD5 0x8B 0x01 0x22 [4 byte(s)]
[DEBUG] Connection is OK
[DEBUG] << 0xFF 0x00 0x00 0x00 0x02 0xD4 0x86 [7 byte(s)]
[DEBUG] >> 0xD5 0x87 0x29 [3 byte(s)]
[INFO] Connection has been broken
This is android log:
07-01 12:09:52.562: DEBUG/NFC JNI(211): Discovered P2P Target
07-01 12:09:52.562: DEBUG/NfcService(211): LLCP Activation message
07-01 12:09:52.648: INFO/NFC JNI(211): LLCP Link activated (LTO=10, MIU=128, OPTION=0x00, WKS=0x01)
07-01 12:09:52.667: DEBUG/NdefPushClient(211): LLCP connection up and running
07-01 12:09:52.675: DEBUG/NdefPushClient(211): sending foreground
07-01 12:09:52.695: DEBUG/NdefPushClient(211): about to create socket
07-01 12:09:52.695: DEBUG/NdefPushClient(211): about to connect to service com.android.npp
07-01 12:09:52.738: DEBUG/NdefPushClient(211): about to send a 20 byte message
07-01 12:09:52.738: DEBUG/NdefPushClient(211): about to send a 20 byte packet
07-01 12:09:52.800: DEBUG/NdefPushClient(211): about to close
07-01 12:09:52.902: INFO/NFC JNI(211): LLCP Link deactivated
07-01 12:09:52.902: DEBUG/NfcService(211): LLCP Link Deactivated message. Restart polling loop.
As you see the phone NFC chip (PN544) reseives the message (RR PDU presents in the reader log) but my android application doesn't.
As I undertand, you know how to send NDEF message from the reader to the phone. Could you explain, please?
I think, it will be better if you send me your reader log with all APDUs.
Also I cannot connect my reader to the phone in initiator mode.
I'm veru interesting in any reader log (in initiator mode) with all APDUs.
Thank you.
BHL.