You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have ESP32. I can't read from module if I receive SMS on GSM module connected to ESP32. So I wrote after receive PCD_Init again but it freeze on while function in
void MFRC522::PCD_Reset() {
PCD_WriteRegister(CommandReg, PCD_SoftReset); // Issue the SoftReset command.
// The datasheet does not mention how long the SoftRest command takes to complete.
// But the MFRC522 might have been in soft power-down mode (triggered by bit 4 of CommandReg)
// Section 8.8.2 in the datasheet says the oscillator start-up time is the start up time of the crystal + 37,74�s. Let us be generous: 50ms.
delay(50);
// Wait for the PowerDown bit in CommandReg to be cleared
while (PCD_ReadRegister(CommandReg) & (1<<4)) {
// PCD still restarting - unlikely after waiting 50ms, but better safe than sorry.
}
} // End PCD_Reset()
If I replace while with repeat try I never again read from rfid module.
I replaced it with
uint8_t count = 0;
do {
// Wait for the PowerDown bit in CommandReg to be cleared (max 3x50ms)
delay(50);
} while ((PCD_ReadRegister(CommandReg) & (1 << 4)) && (++count) < 3);
Any idea what to do? Thanks
The text was updated successfully, but these errors were encountered:
I have ESP32. I can't read from module if I receive SMS on GSM module connected to ESP32. So I wrote after receive PCD_Init again but it freeze on while function in
If I replace while with repeat try I never again read from rfid module.
I replaced it with
Any idea what to do? Thanks
The text was updated successfully, but these errors were encountered: