cancel
Showing results for 
Search instead for 
Did you mean: 

St25R95 library

thompeters2004
Associate II

Hi,

I have successfully ported the ST25R95 library from STMicroelectronics to my own microcontroller, an nRF52832. I am now trying to read the payload of an NFC-A Passive ISO-DEP device with the UID: 5F471DC2783A8E.

In the polling_demo.c file, I see the function demoAPDU. I would like to use this function to read the payload, which contains Bluetooth Out of Band (OOB) data and a key. My goal is to use this for BLE NFC pairing. Can someone assist me with this?

Here is the payload:

a0202548-2a5f-45a5-9c62-5ce03576fe08.jpg

3 REPLIES 3
Ulysses HERNIOSUS
ST Employee

Hi, 

 

I would look at ST25 embedded NFC lib which has examples for NDEF reading inside its ndef_rw_ demo (main logic triggered by file ndef_demo.c). The package for ST25R95 is STSW-ST25R017.

 

BR, Ulysses

Brian TIDAL
ST Employee

Hi,

as explained inside your previous post, you should use ndef_demo.c rather than demo_polling.c to read the NDEF from a tag (this is available from X-CUBE-NFC3 or from  STSW-ST25R017 package).

Rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hi,

I am now able to read the NDEF message, but I don’t get a Bluetooth address. Does anyone know how to fix this? Here is the output I’m getting:

NFC-A Passive ISO-DEP device found. UID: 5F471DC2783A8E
READ/WRITE NDEF detected.
Decoding NDEF message:

Record #1
Flat payload (length 13):
[0000] 15 C1 02 00 00 00 04 61 | . . . . . . . a |
[0008] 63 01 01 30 00 | c . . 0 . |

Record #2
Bluetooth:

  • Type: 0x11
  • Device Address: (length 0)
  • EIR Flags: (EIR length: 0x03, EIR type: 0x01) (length 1)
    [0000] 04 | . |
  • EIR ClassUUID16_partial: None
  • EIR ClassUUID16: None
  • EIR ClassUUID32_partial: None
  • EIR ClassUUID32: None
  • EIR ClassUUID128_partial: None
  • EIR ClassUUID128: None
  • EIR Short Local Name: None
  • EIR Local Name: (EIR length: 0x14, EIR type: 0x09) (length 18)
    [0000] 4E 6F 72 64 69 63 5F 4E | N o r d i c _ N |
    [0008] 46 43 5F 70 61 69 72 69 | F C _ p a i r i |
    [0010] 6E 67 | n g |
  • EIR TxPowerLevel: None
  • EIR Device Class: None
  • EIR SimplePairingHash: None
  • EIR SimplePairingRandomizer: None
  • EIR SecurityManagerTK: (EIR length: 0x12, EIR type: 0x10) (length 16)
    [0000] 3A 32 40 F7 9B CF 65 84 | : 2 @ . . . e . |
    [0008] E8 AB C3 5B B4 15 DD D7 | . . . [ . . . . |
  • EIR Security Manager Flags: None
  • EIR SlaveConnIntervalRange: None
  • EIR Service Solicitation: None

Any guidance would be appreciated. Thanks!