From 4c03147f9df22103145e67ce1d7faece051e0bfb Mon Sep 17 00:00:00 2001 From: Sylvain Fonteneau Date: Mon, 25 Oct 2010 20:28:53 +0200 Subject: Disable P2P target 106 kbit/s mode. NFC_IP mode controls the P2P modes that the PN544 operates in. This change turns off 106kb/s passive (P2P target mode). The reason for this change is that enabling P2P target at 106 kb/s can interfere with card emulation. Some 106kb/s card readers will enumerate the pn544 as two distinct targets if we have 106kb/s card emulation and 106kb/s P2P target, and they will then refuse to talk to us. So this is basically for legacy support of 106kb/s card emulation. NXP advise that it is a common change to disable 106kb/s P2P target. We still enable 212kb/s and 424kb/s P2P target. Secondly, we need to choose a different session ID to force the pn544 to apply this new configuration (instead of just loading the previous from EEPROM). Change-Id: I2847c04bb028b857223439dc1f9f6252162913c4 Signed-off-by: Nick Pelly --- inc/phNfcConfig.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc') diff --git a/inc/phNfcConfig.h b/inc/phNfcConfig.h index fd7b8a8..9f6d51f 100644 --- a/inc/phNfcConfig.h +++ b/inc/phNfcConfig.h @@ -141,7 +141,7 @@ /**< Default Session ID for Initialisation */ #ifndef DEFAULT_SESSION -#define DEFAULT_SESSION "NXP-NFCx" +#define DEFAULT_SESSION "NXP-NFC1" #endif @@ -323,7 +323,7 @@ /**< Macro to Enable the Peer to Peer Feature */ #define ENABLE_P2P -#define DEFAULT_NFCIP_MODE_SUPPORT 0x0FU +#define DEFAULT_NFCIP_MODE_SUPPORT 0x0EU /**< Macro to Enable the ISO14443-B Feature */ -- cgit v1.1