Acr120_Write; Table 23: Acr120_Write Command Description - ACS ACR1281U-C8 Programming Manual

Contactless reader/writer
Table of Contents

Advertisement

5.4.

ACR120_Write

Writes a block.
High Level API:
DLLAPI INT16 AC_DECL
ACR120_Write(
Parameters
pblockData
Return Value
Low Level Frame Structure:
Command: From PC to Reader (22 bytes)
Command Code
Command Data Length
(1 byte)
E0h
Response: From Reader to PC (21 bytes) <<Success>>
Respons
e Code
(1 byte)
E1h
Note: The Response Data (BlockDataStored) is used for comparison only.
Or
Response: From Reader to PC (5 bytes) << Fail>>
Response Code
ACR1281U-C8 – Application Programming Interface
Version 1.00
INT16
hReader,
UINT8 Block,
UINT8 pBlockData[16]);
hReader
Handle to the reader returned by AC_Open()
Block
Block number
Contains the data read. It is
AC_MIFARE_DATA_LEN(16) bytes long.
INT16

Table 23: ACR120_Write Command Description

(1 byte)
13h
Response Status
(2 bytes)
INT16 (>=0)
Response Status
(1 byte)
(2 bytes)
E2h
INT16 (<0)
Description
Result code. 0 means success.
Instruction Code
Data Length
(1 byte)
(1 byte)
0Ah
Response Data
length
(2 bytes)
0010h
Response Data Length
(2 byes)
Data
(1 byte)
(16 bytes)
11h
Block
pBlockData
Response Data
(16 bytes)
BlockDataStored
0000h
info@acs.com.hk
www.acs.com.hk
Page 34 of 52

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents