2020-08-21 03:58 PM
2020-08-24 06:55 AM
Hi,
(ctx).txBufLen = (uint16_t)rfalConvBytesToBits(tBL);
==> 2032 bits = 254 bytes (256 - 2 bytes for CRC)
Rgds
BT
2020-08-24 02:23 AM
Hi,
X-CUBE-NFC6 provides support and sample code for Card Emulation mode. See demoTransceiveBlocking() in demoCE() for an example of APDU sending.
Can you elaborate on what you exactly mean by extended APDU? Do you mean extended field coding for Lc and Le fields?
Rgds
BT
2020-08-24 03:25 AM
Hi Brian,
to give you some more context ... i am trying to implement fido2 nfc.
This is a trace of mi actual software ...
I receive a err: 37 from mp_st25r3916_transceive_blocking (this is exactly the same as demoTransceiveBlocking() in demoCE())
Some hints?
Thanks,
D.
2020-08-24 04:58 AM
Hi,
err 37 means ERR_LINK_LOSS. I believe this is caused by the big 965 bytes frame (i.e. reader not being able to receive such a big frame). Can you check the FSD value sent by the reader in the RATS (this should be available in the rfalNfcDevice device structure in proto.isodep.info.FSx)
Do you have traces from the reader side? is the reader able to properly receive the 965 bytes frame or do you see an error code?
Rgds
BT
2020-08-24 05:22 AM
Hi,
FSx: 256
the reader is an iPhone se 2020 iOS 13.6.1, application is safari with site: https://webauthn.io
Some hints?
Thanks,
D.
2020-08-24 06:04 AM
Hi,
As the FSD=256, the RFAL lib will fragment the big 965 bytes frame in 4 chained smaller frames and the reader is supposed to de-fragment those 4 chained frame into a complete APDU. Is the reader working properly with a reference device? i.e. is the reader able to perform Fido authentication with an existing device? Do you have any trace on reader side? Is the content of the big frame correct (i.e. if some values are incorrect, the reader may be instructed to switch off the RF field ?
can you provide a SPI trace on ST253916 side? (MISO/MOSI/CS/IRQ_OUT)
Rgds
BT
2020-08-24 06:18 AM
Hi,
the RFAL lib will fragment the big 965 bytes? how I can check this?
The reader work properly with a YubiKey (a reference device) as I can see a success registration/authentication.
I haven't any trace on reader side.
Thanks,
D.
2020-08-24 06:40 AM
Hi,
the fragmentation can be checked in different ways:
Rgds
BT
2020-08-24 06:49 AM
Hi,
rfalStartTransceive: 2032, what this mean? I have some configuration parameter wrong?
Thanks,
D.
2020-08-24 06:55 AM
Hi,
(ctx).txBufLen = (uint16_t)rfalConvBytesToBits(tBL);
==> 2032 bits = 254 bytes (256 - 2 bytes for CRC)
Rgds
BT