/*****************************************************************/
以上為個人研究所時期的讀書心得,避免所學因時間而忘記,所以將資料整理於此,其內容皆參考公開規格說明書,歡迎交流,若有錯誤,也請指正。
參考資料:NXP,ST,TI等公開說明書
/*****************************************************************/
●Single interface
1.Type A

2.Type B

●Format
從低位元(LSB)開始傳送。
1.Short frame (7 bits)

要傳送的資料被包在SoC和EoC中間。

3.Bit oriented anticollision frame (for anti-collision)
將7bytes,以bit為單位,切成兩部分。
第一部分: PCD傳給PICC,最小為16 bits
第二部分: PICC傳給PCD,最大為48 bits
●卡片狀態
Type A共有六種狀態:
【POWER-OFF state】
↓卡片進入磁場
【IDLE state】
↓REQA/WUPA command
【READY state】
↓SELECT command
【ACTIVE state】
↓可由SAK(SELECT ACK)判斷卡片是否支援ISO14443-4,
↓如支援,對卡片下RATS命令進入PROTOCOL state。
(有些卡片只支援到ACTIVE狀態,像是Mifare Clsaaic,進入ACTIVE後使用自訂的命令。)
【PROTOCOL state】
【HALT state】
在【ACTIVE state】下HLTA 命令或在【PROTOCOL state】下DESELECT命令可進入,在此狀態下,只有WUPA命令可把卡片叫回【READY state】。
--------------------------------------------------------------------
Type B共有五種狀態:
【POWER-OFF state】
↓卡片進入磁場
【IDLE state】
↓REQA/WUPA command
【READY state】
↓ATTRIB command
【PROTOCOL state】
【HALT state】
在【READY state】下HLTB 命令或在【PROTOCOL state】下DESELECT命令可進入,在此狀態下,只有WUPB命令可把卡片叫回【READY state】。
●Command
---Type A part---------------------------------------------------
Request: REQA/WUPA
Request: REQA/WUPA
Response: ATQA
------------------------
Request: ANTICOLLISOIN

Response:
------------------------
Request: SELECT

Response: SAK
這裡分別列出ISO14443和NFC的定義,用於判斷卡片種類。
------------------------
Request: REQB/WUPB
Response: ATQB/Extended ATQB

------------------------
Request: Slot-MARKER
------------------------
Request: ATTRIB
Response: Answer to ATTRIB
------------------------
Request: HLTB

Response: Answer to HLTB
●ISO14443-4
上列要點基本是講解ISO14443-1~3,
只要相容ISO14443協定的卡片,
一定支援ISO14443-1~3,
但不一定支援ISO14443-4
沒有留言:
張貼留言