User's Manual

33
9.6 Block Reading mode
The BLOCK READING mode enables reading portions of the Secure Data, for example, one, two or a few words rather
than the entire field. This saves a few fractions of a second compared to full reading with the READING MODE.
The BLOCK_READING command is the only reading command which gives access to all the dongle memory.
The exchange of information is organized like this:
Models PR, EP, SP, XM, NET
Input COMMAND
‘BR’
LPT Port
LABEL Label
PASSWORD Password
DATA[0,1] Pointer at the first word to be read (from 0 to 31 for models with 64 bytes of
memory, from 0 to 63 for 128 bytes, from 0 to 207 for 416 bytes, from 0 to 447
for 896 bytes)
(2 bytes)
DATA[2,3] Number of words to be read (from 1 to 16) (2 bytes)
Output DATA[4,…] Values to be read in the area indicated by the two previous parameters (2 - 32
bytes)
STATUS Status
==0 Success
!=0 Error
Table 15
BLOCK READING command parameters
If the Password passed to the dongle is incorrect,
Secure Data and Fail Counter are pseudo-randomly generated.
9.6.1 Parameter transfer
Parameters to be transferred to execute a BLOCK READING operation on a dongle present on the LPT1 parallel port.
15 words must be read (
000F hex
equal to 30 bytes) starting from the twelfth word (address 11 =
000B hex
).
Remember that, in the parameter transfer structure, the first two bytes of the Data field are reserved for the address of
the first word to be read, and the subsequent two bytes contain the number of words to be read. The read data block will
be contained from in the fifth byte onward, at the end of the operation.
LPT
01 00
Port
COMMAND
52 42
Block Reading (
"BR"
)
LABEL
53 4D 41 52 54 4B 45 59
00 00 00 00 00 00 00 00
Label ("SMARTKEY")
PASSWORD
45 55 54 52 4F 4E 00 00
00 00 00 00 00 00 00 00
Password(
"EUTRON"
)
DATA
0B 00 0F 00
Address and Number of Words
Table 16
Exchange of information for the BLOCK READING command
9.7
Block Writing mode
The BLOCK WRITING function makes it possible to write portions of Secure Data, e.g. one, two or a few words rather
than the whole field. This saves a few fractions of a second compared to complete writing with the WRITING MODE.
The BLOCK_WRITING command is the only writing command which gives access to all the dongle memory.
The exchange of information is organized like this:
Models PR, EP, SP, XM, NET
Input COMMAND
‘BW’