Android Beam LLCP Protocol
Asked Answered
C

1

7

I am attempting to communicate with my Galaxy S III and a micro-controller that features a PN532 NFC chip.

As this is a micro-controller there is no default LLCP library that I can use so I must understand the Android protocol myself.

Could anyone clarify for me, when I first place the phone to the device, what packets to expect from the very first step? Assuming I am parsing correctly I am seeing:

DSAP: 3F
PTYPE: 0
SSAP: 0

and also

DSAP: 1E
PTYPE: C
SSAP: 0

Is this along the right lines? What is Android attempting to do? I would have expected a connection attempt prior to an information package?

Many thanks for any clarification.

Cinematograph answered 18/6, 2012 at 20:25 Comment(0)
L
2

Android is using the NDEF Push Protocol (NPP) (PDF) on top of LLCP for Android Beam.

Therefore, you have to implement both LLCP (official spec download, mirror in Korea) and NDEF-Push on top of it. Starting with API level 14, Android also uses SNEP alternatively to NPP, but can fall back automatically.

Loferski answered 6/11, 2012 at 11:40 Comment(1)
this link to old LLCP spec, any1 have LLCP 1.2 spec link ?Sonjasonnet

© 2022 - 2024 — McMap. All rights reserved.