하드웨어/rfid_nfc_smartcard

mifare classic 1k 구조

구차니 2026. 7. 15. 16:47

1k 이긴 한데 다 쓸 순 없고

1 block = 16 bytes

1 sector = 4 block

그래서 0~15 sector / 0~63 block 으로 구성

 

 

value block 라는걸로 access bit에 체크하면 increment / decrement / store / transfer 명령으로 잔액이 계산된다고 하는데

trailer 블럭이라고 매 섹터의 마지막 블록에 저장된 값에 의해서 access bit를 설정이 가능한것으로 보인다.

 

주로 쓴건 Read(0x30), Write(0xA0) 인데

0xC0 / 0xC1 / 0xC2 / 0xB0 명령으로 increment / decrement / restore / transfer 가 수행이 가능하다.

[링크 : https://www.nxp.com/docs/en/data-sheet/MF1S50YYX_V1.pdf]

[링크 : https://support.ccs.com.ph/portal/en/kb/articles/mifare-classic-1k-memory-structure]

[링크 : https://www.e2box.co.kr/entry/Mifare®-카드구조]