2024-11-19 02:16 AM
Hello everyone,
I'm trying to establish a stable p2p connection between two st25r3911b disco boards. I'm still figuring things out and using the demo code as a reference to get it working.
I get one communication, but after that I break out of my while loop.
ReturnCode11 -> protocol error.
Kind regards
T_shower
void P2Pcommunication( rfalNfcDevice *nfcDev )
{
#if RFAL_FEATURE_NFC_DEP
uint16_t *rxLen;
uint8_t *rxData;
ReturnCode err;
if( nfcDev->type == RFAL_NFC_POLL_TYPE_AP2P )
{
TransceiveBlocking( NULL, 0, &rxData, &rxLen, RFAL_FWT_NONE);
}
while(err == ERR_NONE)
{
snprintf((char*)message,sizeof(message),message_stringsh);
err = TransceiveBlocking( message, strlen(message), &rxData, &rxLen, RFAL_FWT_NONE);
if( err != ERR_NONE )
{
break;
}
CDC_Transmit_FS(*rxData, sizeof(rxData) );
}
#endif /* RFAL_FEATURE_NFC_DEP */
}
2024-11-19 02:29 AM
Hi,
not completely following how you perform this. Is this PC-Based using APIs of the firmware or is this directly in the firmware on STM32L4?
We do have a working example inside our STSW-ST25R-LIB: ap2p_proprietary which demonstrates based on firmware to exchange some data between two 3911,3916,3916B and derivates.
BR, Ulysses