Topic: P2P communication between Xperia S phone and ACR122S not successful

Hi all,

There are some post about Nexus S and ACR122U NPP communication successful,

but my test environmet is a little bit different.

My Phone: Sony Xperia S . Android 2.3.7 NFC capable
Reader: ACR122S (serial).

In the phone I am using API Demos (complied for andorid SDK 2.3.3 API 10), "ForegroundNefPush" test.
In the reader I am using the ACR 122S Tools 1.0.0.0 to send PN532 commands directly.

As far as I know, Samsung Nexus S has PN655N NFC chip but no news about NFC chip inside Xperia S.

All looks OK, but  D4 86 command returns a "25": DEP Protocol: Invalid device State. the system is in a state which does not allow the operation.

LOG:

ACR122_Open
< Port :  COM1
Connected to :  COM1
Number of Slots :  1
Baudrate :  9600
Firmware version :  ACR122S105

ACR122S Direct Command
< D4 32 01 01
> D5 33

ACR122S Direct Command
< D4 12 30
> D5 13

ACR122S Direct Command
< D4 8C 00 00 00 00 00 00 00 01 FE 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 FE 00 00 00 00 00 00 00 00 06 46 66 6D 01 01 10 00
> D5 8D 25 1E D4 00 6F 15 57 8C 3E 8D B1 24 96 77 00 00 00 32 46 66 6D 01 01 10 03 02 00 01 04 01 96

ACR122S Direct Command
< D4 86
> D5 87 25

ACR122S Direct Command
< D4 8A
> D5 8B 00 22

http://i275.photobucket.com/albums/jj285/Chema_Alcala/NFC/DSC_0115.jpg


Any ideas what is happening? Hardware incompatibility? Any configuration missing?

Regards!
jmac

Re: P2P communication between Xperia S phone and ACR122S not successful

I have the same questions, seems only android phone we can use for NFC p2p between ACR122 is Nexus S.

3 (edited by jmac 2012-07-02 07:03:42)

Re: P2P communication between Xperia S phone and ACR122S not successful

I sent the question to ACS and that was the answer:
-------------------------
""
  I am sorry to tell you that we have not tested the ACR122 with Xperia S NFC phone.

  There is possibility that the communication between Xperia S and ACR122 is different from the Nexus one.

  But I do not have much information at this moment.
""
------------------------------------

Maybe NXP has the answer, because we are really using PN532 of ACR122.


I cannot find Nexus S brand new yet, I will try with Galaxy Nexus in few weeks... but anyway looks not to be a "good" solution: " to use my appl. not olny you need a NFC phone, even should be Samsung"

BR

Re: P2P communication between Xperia S phone and ACR122S not successful

Yesterday I updated from Android 2.3.7 to 4.0.4 but still the same.

BR
JAC

Re: P2P communication between Xperia S phone and ACR122S not successful

Hi there!

I got new hardware and some additional test done....  (same PN532 commands than above)

ACR122U (USB) and Nexus S Android 2.3.3 --> OK
(ACR green led  ON)
then update to Android 4.0.4
ACR122U (USB) and Nexus S Android 4.0.4 --> KO
(ACR green led  ON)

ACR122S (RS-232) and Nexus S Android 2.3.3 --> KO
then update to Android 4.0.4
ACR122S (RS-232) and Nexus S Android 4.0.4 --> KO

ACR122U (USB) and SONY Xperia S Android 4.0.4 --> KO
(ACR green led  blinking) ¿?¿?¿?¿?¿
ACR122S (RS-232) and SONY Xperia S Android 4.0.4 --> KO


ACR122U (USB) and Samsung S3 Android 4.0.4 --> KO
(ACR green led  blinking) ¿?¿?¿?¿?¿
ACR122S (RS-232) and Samsung S3 Android 4.0.4 --> KO


For USB reader I am using Windows Xp 32 and java SW "NPPFromPhoneToReader"
from https://code.google.com/p/ismb-npp-java/

Comments?

B.R.

Re: P2P communication between Xperia S phone and ACR122S not successful

ACR122U (USB) and Nexus S Android 2.3.3 --> OK
--------------------------------------------------------------
C:\NPPFromPhoneToReader\bin>java PhoneToReceiver
Get factory
Get terminals
Terminal name: ACS ACR122 0
T=1
Called rightProcedureReceiver..
[DEBUG] {sending   [50 bytes]} 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
[DEBUG] {receiving [35 bytes]} 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 0x90 0x00
[DEBUG] {sending   [7 bytes]} 0xFF 0x00 0x00 0x00 0x02 0xD4 0x86
[DEBUG] {receiving [24 bytes]} 0xD5 0x87 0x00 0x05 0x21 0x06 0x0F 0x63 0x6F 0x6D
0x2E 0x61 0x6E 0x64 0x72 0x6F 0x69 0x64 0x2E 0x6E 0x70 0x70 0x90 0x00
[DEBUG] {sending   [9 bytes]} 0xFF 0x00 0x00 0x00 0x04 0xD4 0x8E 0x85 0x81
[DEBUG] {receiving [5 bytes]} 0xD5 0x8F 0x00 0x90 0x00
[DEBUG] {sending   [7 bytes]} 0xFF 0x00 0x00 0x00 0x02 0xD4 0x8A
[DEBUG] {receiving [6 bytes]} 0xD5 0x8B 0x01 0x22 0x90 0x00
[DEBUG] {sending   [7 bytes]} 0xFF 0x00 0x00 0x00 0x02 0xD4 0x86
[DEBUG] {receiving [57 bytes]} 0xD5 0x87 0x00 0x07 0x21 0x00 0x01 0x00 0x00 0x00
0x01 0x01 0x00 0x00 0x00 0x27 0xD1 0x01 0x23 0x54 0x02 0x65 0x6E 0x4E 0x44 0x45
0x46 0x20 0x50 0x75 0x73 0x68 0x20 0x64 0x61 0x74 0x61 0x20 0x73 0x65 0x6E 0x74
0x20 0x66 0x72 0x6F 0x6D 0x20 0x4E 0x65 0x78 0x75 0x73 0x2D 0x53 0x90 0x00
Finished



======================

ACR122U (USB) and Nexus S Android 4.0.4 --> KO
--------------------------------------------------------------
C:\NPPFromPhoneToReader\bin>java PhoneToReceiver
Get factory
Get terminals
Terminal name: ACS ACR122 0
T=1
Called rightProcedureReceiver..
[DEBUG] {sending   [50 bytes]} 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
[DEBUG] {receiving [35 bytes]} 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 0x90 0x00
[DEBUG] {sending   [7 bytes]} 0xFF 0x00 0x00 0x00 0x02 0xD4 0x86
[DEBUG] {receiving [5 bytes]} 0xD5 0x87 0x29 0x90 0x00
[DEBUG] {sending   [9 bytes]} 0xFF 0x00 0x00 0x00 0x04 0xD4 0x8E 0x85 0x81
[DEBUG] {receiving [5 bytes]} 0xD5 0x8F 0x29 0x90 0x00
[DEBUG] {sending   [7 bytes]} 0xFF 0x00 0x00 0x00 0x02 0xD4 0x8A
[DEBUG] {receiving [6 bytes]} 0xD5 0x8B 0x00 0x22 0x90 0x00
[DEBUG] {sending   [7 bytes]} 0xFF 0x00 0x00 0x00 0x02 0xD4 0x86
[DEBUG] {receiving [5 bytes]} 0xD5 0x87 0x29 0x90 0x00
Finished

================================

Re: P2P communication between Xperia S phone and ACR122S not successful

Hi !
I found that:

ACR122 Manual

1.2 Bi-Color LED
A user-controllable bi-color LED with red and green color is provided.
* The green color LED will be blinking if the "Card Interface" is not connected.
* The green color LED will be turned on if the "Card Interface" is connected.

So, because of the led, is blinking, red, or turned on only when the phone is on the reader (non application lauched) and none SW on PC side, could be possible a hardware incompatibility between ACR reader and Sony Xperia S and Samsung SIII,

any idea?????

BR
jmac

Re: P2P communication between Xperia S phone and ACR122S not successful

Hi,
I've managed to make the Xperia S connect with the ACR122U reader. The problem is if the reader is in initiator mode the connection does not form with the Xperia S, which I think is at Initiator mode itself. So to make the phone connect with the reader the reader has to be put in the target mode. This can be done with the library provided by NFCtools.

groups.google.com/forum /#!forum/ nfc-developers

In target mode the reader displays a yellow light, and when placing the phone running a NFC beaming application on the reader I get prompted to "touch to beam" And I've successfully sent text data and read it from the java client from the reader.
thanks.