Re: P2P communication between android phone and nfc reader

ehua329 wrote:

I have working LLCP example code both on the reader side (using acr122+libnfc) and on the phone side (using symbian 3 SDK).

Sry this is not for android devices, but anyone interested just write me an email. Android LLCP stack is still buggy.


It would be great if you send me the example code you've mentioned. I really appreciate that!
Here is my email: majid.sobhani[at]gmail.com

Thanks a lot!

Re: P2P communication between android phone and nfc reader

I need to develop a basic llcp communication between a Nexus S (Android 4.0.3) and a nfc reader SCL3711 (PN533) under a dotNET environment. I have only support of libnfc, due the fact that the libnfc-llcp libraries work only under POSIX system.

Trough p/invoke mechanism i can use libnfc to detect my device, so now I can see it under VB.NET. But now, how i can send a basic command to start LLCP protocol? If i understand, i need to send low level commands, by sending correct bytes sequence, right? And how to read bytes from? Can i use a function from libnfc's library?

I hope that this forum is frequented even by someone because  I get no answer ..
Please, someone can help me!

Re: P2P communication between android phone and nfc reader

Hi guys,

I'm porting part of libnfc to a micro-controller, however despite using settings from this project to configure my PN532:
http://code.google.com/p/ismb-npp-java/ … 122ToPhone

Android doesn't appear to be spitting out a valid LLCP connection request, here's my code:

    byte pbuffer[46] =      { PN532_TGINITASTARGET, 
                             0x00, //
                             0x00, 0x00, //
                             0x00, 0x00, 0x00, //NFCID1
                             0x00, //SEL_RES

                             0x01, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // POL_RES
                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                           
                             0x00, 0x00,
                            
                             0x01, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //NFCID3t: Change this to desired value

                             0x06, 0x46, //Length of general and historical bytes,

                             0x66, 0x6D, 0x01, 0x01, 0x10, 0x00
                             };

I'm also then performing a second read command after this and receiving the following:


Reading:  0x0 0x0 0xFF 0x21 0xDF 0xD5 0x8D 0x25 0x1E 0xD4 0x0 0x39 0x43 0x50 0x2A 0xAC 0xF9 0xEB 0xE8 0xB6 0xD5 0x0 0x0 0x0
- Which I expect, but then the following, when isn't a valid Connection command which I was expecting:

Reading:  0x0 0x0 0xFF 0x5 0xFB 0xD5 0x87 0x0 0x0 0x0 0xA4 0x0 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA


I'm receiving 00s where I would be expecting to see the connection request.

Any idea, I'm completely stumped!

Many thanks

Re: P2P communication between android phone and nfc reader

Newborn cot beds include spacious room for sleeping to newborn babies as well as toddlers. The ideal newborn cot should be firm and also durable considering that it will act as your baby's bed for as much as 3 years of age. It shouldn't have defective or perhaps cracked slats and should not have jagged corners or points. The littlemilitary style cots ones cot beds needs to have all the specified guidelines which will ensure that it's safe for a baby. It ought to have the recommended depth, with no cut outs or even step and the bars will need to be correctly spread out. If the cot is a borrowed one, verify that the very gap between the bars isn't less than an inch and not more than 2 ".

Re: P2P communication between android phone and nfc reader

Scribe wrote:

Hi guys,

I'm porting part of libnfc to a micro-controller, however despite using settings from this project to configure my PN532:
http://code.google.com/p/ismb-npp-java/ … 122ToPhone

Android doesn't appear to be spitting out a valid LLCP connection request, here's my code:

    byte pbuffer[46] =      { PN532_TGINITASTARGET, 
                             0x00, //
                             0x00, 0x00, //
                             0x00, 0x00, 0x00, //NFCID1
                             0x00, //SEL_RES

                             0x01, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // POL_RES
                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                           
                             0x00, 0x00,
                            
                             0x01, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //NFCID3t: Change this to desired value

                             0x06, 0x46, //Length of general and historical bytes,

                             0x66, 0x6D, 0x01, 0x01, 0x10, 0x00
                             };

I'm also then performing a second read command after this and receiving the following:


Reading:  0x0 0x0 0xFF 0x21 0xDF 0xD5 0x8D 0x25 0x1E 0xD4 0x0 0x39 0x43 0x50 0x2A 0xAC 0xF9 0xEB 0xE8 0xB6 0xD5 0x0 0x0 0x0
- Which I expect, but then the following, when isn't a valid Connection command which I was expecting:

Reading:  0x0 0x0 0xFF 0x5 0xFB 0xD5 0x87 0x0 0x0 0x0 0xA4 0x0 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA


I'm receiving 00s where I would be expecting to see the connection request.

Any idea, I'm completely stumped!

Many thanks

Hi,

I've started working with nfc and I got the same problem. Did you manage to find a solution for it?

Best regards,
Tomas

81 (edited by Lucas Abregu 2012-07-29 15:28:56)

Re: P2P communication between android phone and nfc reader

I'm working on my own stack in Java. The current version is good enough that I was able to bundle it into a Java Applet that can be launched in a browser.

ottawa office supplies

Re: P2P communication between android phone and nfc reader

hello my test
     //The PN532 as a NFC Target
PC -> IFD : TARGET : INIT TAMA AS A TARGET
            00 00 FF 2D D3 D4 8C 00 01 01 00 00 00 40 01 FE
            01 00 00 00 00 00 00 00 00 00 00 00 00 00 FF FF
            01 FE 01 00 00 00 00 00 00 00 06 46 66 6D 01 01
            10 00 2F 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : TARGET : INIT TAMA AS A TARGET EXECUTED
            00 00 FF 28 D8 D5 8D 05 25 D4 00 D7 47 2D E3 32
            77 5D D5 5B FF 00 00 00 32 46 66 6D 01 01 11 02
            02 07 FF 03 02 00 13 04 01 64 07 01 03 49 00

PC -> IFD : TARGET : SEND GENERAL BYTES
            00 00 FF 08 F8 D4 92 46 66 6D 01 01 10 6F 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : TARGET : SEND GENERAL BYTES EXECUTED
            00 00 FF 03 FD D5 93 25 73 00
why response is  "D5 93 25 "?  not "D5 93 00 "

pn532 as a target,nexus as a reader;