2019-03-20 06:17 AM
Hello,
I downloaded STM32CubeExpansion_NFC3_V1.4.0.
I use the example projectCR95HF_TagDetect with the board X-NUCLEO-NFC03A1 and the board NUCLEO-F103RB.
I use smartphone Sony Xperia L1 (TT4B) an Samsung Galaxy S7 (TT4A).
I want test the function NDEF_WriteURI(&url);
the sub-function ISO7816_SendReceiveAPDU don't return the right argument.
I have always the same result .
APDUresponse.SW1 = 0x6A and APDUresponse.SW2= 0x82 instead of APDUresponse.SW1 = 0x90 and APDUresponse.SW2= 0x00.
Is this mistak cause by the smartphones or by the CR95HF or by software ?
Can you help me to solve this mistak ?
Best regards
Solved! Go to Solution.
2019-03-28 10:44 AM
Hi Mickaël,
from Datasheet point of view,
Card Emulation mode cannot be used over UART due to transmission latencies not compatible with Frame Response Time. This is why CR95HF Datasheet does not support the Card Emulation mode.
As the X-NUCLEO-NFC03A1 is also the expansion board for the ST25R95, feel free to use Card Emulation mode over SPI.
Regarding Android phones behavior:
Rgds
BT
2019-03-23 02:49 PM
Hi Mickaël,
Write_URI is an API for writing a URI in a tag supporting the NDEF application.
As per NFC Forum Type 4 Tag Technical Specification Version 1.0 § 7.2.1 symbol 1, a Select NDEF Tag Application APDU is sent. Here, the reply from the smartphone is 6Ah 82h "NDEF Tag Application not found" which means that the NDEF application is not supported by the smartphone. Usually, smartphones emulates NFCA or NFCB tags for payment applications, not for the NDEF application.
If you want to use Write_URI, you have to use Type 4 tags such ST25TA.
If you want to send an URI to a smartphone, you have to use the Simple NDEF Exchange Protocol (SNEP) which is not available in STM32CubeExpansion_NFC3_V1.4.0
Feel free to give more information about your application, in particular why you need to send an URI to a smart phone.
Rgds
BT
2019-03-25 03:34 AM
Hi Brian,
For my application, I want :
Have you example of SNEP with CR95HF ?
Must I use ST25R95 for emulate a tag with NDEF message ?
If not possible, can i couple a M24lR04 to CR95HF antenna to make this functions ?
I try P2P mode (NDEF message) with X-nucleo-NFC05A1
Sony Xperia L1 works but not Samsung S7.
Rgds
Mickaël
2019-03-25 06:41 AM
Hi Brian,
For my application, I want :
Have you example of SNEP with CR95HF ?
Must I use ST25R95 for emulate a tag with NDEF message ?
If not possible, can i couple a M24lR04 to CR95HF antenna to make this functions ?
I try P2P mode (NDEF message) with X-nucleo-NFC05A1
Sony Xperia L1 works but not Samsung S7.
Rgds
Mickaël
2019-03-25 10:43 AM
Hi Mickaël,
CR95HF does not support Active P2P mode so P2P can only be used with smartphone seen as Passive P2P device:
I guess Samsung S7 is seen as a NFCB device so P2P fails.
I do not have SNEP examples for X-CUBE-NFC3 V1.4.0. An SNEP example (with hardcoded values) is available in X-CUBE-NFC3 2.0.0 based on ST RF Abstraction Layer (RFAL), basically the same example as the one in X-CUBE-NFC5.
I will dig into more details tomorrow.
Rgds
BT
2019-03-26 07:55 AM
Hi Mickaël,
Basically:
Hope this clarifies the various cases.
Rgds
BT
2019-03-26 08:13 AM
Hi Brian,
Rgds
Mickaël
2019-03-26 08:37 AM
Hi Mickaël,
Rgds
BT
2019-03-28 09:20 AM
Hi Brian,
I read the datasheet of CR95HF,ST25R95 and ST95HF.
For me, the CR95HF not allows to emulate a card or a tag.
If I use demoSendNdefUri() from X-Cube_NFC5, I use P2P mode and this function is not recognize by Samsung S7 for example.
If I use the EVAL-ST95HF_FW_V3.7.0, I emulate a card or a tag with NDEF message.
If I understand in this mode (emulate card), all NFC smartphones read NDEF without P2P mode.
Rgds.
Mickaël
2019-03-28 10:44 AM
Hi Mickaël,
from Datasheet point of view,
Card Emulation mode cannot be used over UART due to transmission latencies not compatible with Frame Response Time. This is why CR95HF Datasheet does not support the Card Emulation mode.
As the X-NUCLEO-NFC03A1 is also the expansion board for the ST25R95, feel free to use Card Emulation mode over SPI.
Regarding Android phones behavior:
Rgds
BT