User's Manual
34
LPT Port
LABEL Label
PASSWORD Password
DATA[0,1] Pointer at the first word to be written (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 written (from 1 to 16) (2 bytes)
DATA[4,…] Values to be written in the area indicated by the two previous parameters (2 - 32
bytes)
Output STATUS Status
==0 Success
!=0 Error
Table 17
BLOCK WRITING MODE command parameters
If the Password passed to the dongle is incorrect, the data present in the Secure Data register are not changed.
9.7.1 Parameter transfer
Parameters to be transferred to execute a BLOCK WRITING operation on a dongle present on the LPT1 parallel port.
10 words must be written (
000A hex
equal to 20 bytes) starting from the first word (address 0 =
0000 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 written, and the subsequent two bytes contain the number of words. The bytes to be written are
contained from in the fifth byte onward.
LPT
01 00
Port
COMMAND
46 00
Fixing Mode ("F")
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 XX XX XX XX
XX XX XX XX XX XX XX XX
XX XX XX XX XX XX XX XX
Address, Number of Words, and Data
Table 18
Exchange of information for the BLOCK WRITING MODE command
9.8 Fixing mode
Fixing data means preventing further programming of the Label, Password and Secure Data registers.
In practice,
previously programmed data can be frozen.
After the FIXING mode has been executed, SmartKey's contents can no
longer be changed in any way. The data fixing mode, together with the Fail Counter Register is available only on
models EP, SP, XM and NET.
The possibility of fixing data enables a software-house to generate totally personalized, no longer alterable dongles.
Attempts to change the contents are therefore discouraged, e.g. to vary access priority to databanks or to enable non
specified software modules.
The fixing operation should not be performed in testing, otherwise you would no longer be able to re-program the
dongle.
We therefore recommend that the possibility of fixing the contents programmed in the dongle should only be evaluated
during the final stage of implementing the protection. Important: bear in mind that the additional functions involving
memory writing will not be available.
This command cannot be executed from lan, it works only with a local connection with the SmartKey.