230 likes | 479 Views
ISO 15693 & U-Reader Lab. ISO15693. 參考文件 – ISO15693 UID - Unique identifier VCD - Vicinity coupling device VICC - Vicinity integrated circuit card AFI - Application family identifier CRC - Cyclic redundancy check DSFID - Data storage format identifier EOF - End of frame
E N D
ISO15693 • 參考文件 – ISO15693 • UID - Unique identifier • VCD - Vicinity coupling device • VICC - Vicinity integrated circuit card • AFI - Application family identifier • CRC - Cyclic redundancy check • DSFID - Data storage format identifier • EOF - End of frame • LSB - Least significant bit • MSB - Most significant bit • RFU - Reserved for future use • SOF - Start of frame
Unique Identifier • The 8 MSB bits shall be 'E0' • The IC manufacturer code, on 8 bits according to ISO/IEC 7816-6/AM1 • A unique serial number on 48 bits assigned by the IC manufacturer
Data storage format identifier (DSFID) • The Data storage format identifier indicates how the data is structured in the VICC memory. • It may be programmed and locked by the respective commands. It is coded on one byte. It allows for • instant knowledge on the logical organization of the data. • If its programming is not supported by the VICC, the VICC shall respond with the value zero ('00').
TI Tag-it (**重要**) • 32 bits x 64 Blocks = 2 K bits 0x8B 0x03 0x3F TI chip : IC Version 內容 IC Ref : 0x8B , BlockSize:0x03, # of Blocks 0x3F
I-Code 2 • Philips • 1024 Bits • EAS- Electronic Article Surveillance
UID • 0x04 – Philips manufacture code • 0x01 – SL2 ICS20
U-Reader Lab. • 測試程式
USB Driver 安裝 • USB Driver是否正常,可查裝置管理員。
Get SysInfo • Cmd: 0x1B,”I” • Cmd: 1B,49 • Response1: 1B 0E 0F C3 59 F1 02 00 00 07 E0 00 00 3F 03 8B • 0E :data Length • 0F: Flag • UID: C3 59 F1 02 00 00 07 E0 • 00 : DSFID • 00 : AFI • 3F03: VICC memory organization (Blocks & Size) • 8B:IC_r
Get SysInfo –Cnd’ • Response2: 1B 05 46 61 69 6C 21 • 05 :data Length • 46: F • 61: a • 69 : i • 6C : l • 21 : ! • 沒讀到卡片
Read a Block • Cmd: 1B,’R’, block number • Code : 1B,52,01 • Response: 1B 05 00 74 65 73 74 • Block 1 data: 74 65 73 74
Write a Block • Cmd: 1B,’W’, block number, data • Code : 1B,57,01,11,11,11,11 • Response: 1B 05 44 6F 6E 65 21 • Done!
Inventory Mode • Cmd: 1B,’M’ • Code : 1B,4D • Response: 1B 09 00 C3 59 F1 02 00 00 07 E0 1B 03 45 6E 64 • Done!
Get Version • Cmd: 1B,’V’ • Code : 1B,56 • Response: 1B 0A 20 55 56 65 72 20 32 2E 30 20 U V e r 2 . 0
Read ISO14443A ID (2.0 only) • Cmd: 1B,’A’ • Code : 1B,41 • Response: 1B 44 00 04 C8 9B 51 CC 02 80 44 00– Mifare Ultra Light ID : 4 Byte (Mifare 1) or 7 Byte (Ultra Light) ID: 04 C8 9B 51 CC 02 80 悠遊卡:1B 04 00 96 97 48 7B
練習 1. Reader 指令練習 • 練習 指令 : Get system Information, Read Block , Write Block • Get System Information 和 Inventory Mode 有甚麼不同 ? 寫下 Reader 回覆的訊息。
練習 2. • 畫出 TI ISO 15693 Tag-it 卡片的記憶體結構 ,如果要在卡片上儲存 96 bits 的EPC 碼,要如何設計程式?
練習 3. 門禁系統 • 設計一個簡單的門禁系統, 包含兩個功能 (1)使用者基本資料和卡片設定, (2) 門卡偵測 ,畫出流程圖和資料結構。