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'm trying to use this package (I'm new in react-native).
I do have an rfid tag with the standard key FFFFFFFFFFFF, I'm trying to authenticate using your example or what I read but that doesn’t work.
I'm trying to authenticate the sector 0 with the standard key.
I know this is the key as I tried many different app included MifareClassicTool and it works and gave me that key.
It keep failing so if someone can help me.
When I'm trying your example that doesn't work at all as it doesn't find some functions.
Can you tell me what I did wrong and how can I fix that please ?
I do have an easy app at the moment with one button (ReaderScreen) :
Hi @Sosotess93, the key format is not correct.
I do not know which line is it in your code, but you wrote:
constkey=[0xff,0xff,0xff,0xff,0xff,0xff];constkeyHex=key.map(b=>b.toString(16).padStart(2,'0')).join('');logCallback(`Tentative Auth A Secteur 0 avec clé: ${keyHex}`);// Authentification pour le secteur 0if(awaitthis.authenticateSector(0,key)){
(I was writing this and i notice that you did not even use keyHex, you are using key that has: 0xff..., which is wrong)
The value returned by keyHex is: "ffffffffffff" which is not correct.
Key must be: number[]. This is, an array of numbers. In your case is: [255, 255, 255, 255, 255, 255] this is the key that you need for authentication.
To be honest i had never use before commands and transceives for communicate with a tag. use the classic mifareClassicReadBlock or another functions... (my recommendation)
I do not know if I explain myself good, but let me know and I can help
Hello,
I'm trying to use this package (I'm new in react-native).
I do have an rfid tag with the standard key FFFFFFFFFFFF, I'm trying to authenticate using your example or what I read but that doesn’t work.
I'm using the latest version : [email protected]
I'm trying to authenticate the sector 0 with the standard key.
I know this is the key as I tried many different app included MifareClassicTool and it works and gave me that key.
It keep failing so if someone can help me.
When I'm trying your example that doesn't work at all as it doesn't find some functions.
Can you tell me what I did wrong and how can I fix that please ?
I do have an easy app at the moment with one button (ReaderScreen) :
And my NFCManagerService :
The text was updated successfully, but these errors were encountered: