EasyManua.ls Logo

ACS ACR38 - 7 Communication Protocol; Command to ACR38; Response from ACR38

ACS ACR38
43 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ACR38 Reference Manual version 1.9 February 2006
7. Communication protocol
In the normal operation, the ACR38 acts as a slave device with regards to the communication between a
computer and the reader. The communication is carried out in the form of successive command-response
exchanges. The computer transmits a command to the reader and receives a response from the reader after
the command has been executed. A new command can be transmitted to the ACR38 only after the
response to the previous command has been received.
There are two cases where the reader transmits data without having received a command from the
computer, namely, the Reset Message of the reader and the Card Status Message.
7.1 Command to ACR38
A command consists of six protocol bytes and a variable number of data bytes and has the following
structure:
Byte 1 2 3 4 5 ... N+4 (N>0)
Header Instruction Data Length = N Data
01
H
Data Length N
Header Always 01
H
to indicate the start of a command.
Instruction The instruction code of the command to be carried out by the ACR38.
Data Length Number of subsequent data bytes, and is encoded in 2 bytes. The first byte (MSB) and
second byte (LSB) represent data length N.
Data Data contents of the command.
For a READ command, for example, the data bytes would specify the start address and the
number of bytes to be read. For a WRITE command, the data bytes would specify the start
address and the data to be written to the card.
The data bytes can represent values to be written to a card and/or command parameters
such as an address, a counter, etc.
Note: Commands are sent from host computer to ACR38 through the BULK OUT endpoint.
7.2 Response from ACR38
The response from the ACR38 to any command depends on whether the command has been received by
the reader without error (e.g., checksum error).
The response by the ACR38 to a correctly received command consists of three protocol bytes, two status
bytes and a variable number of data bytes and has the following structure:
Byte 1 2 3 4 5 ... N+4 (N>0)
Header Status Data Length = N Data
01
H
Data Length N
Header Always 01
H
to indicate the start of the response.
Advanced Card Systems Ltd. Page 9 of 43

Table of Contents

Related product manuals