User's Manual

38
The PROGRAMMING facility allows you to set up your own program dedicated to preconfiguring the dongles, usually
connected to a database, in order to associated the content of each dongle with a customers and/or products list.
To program new Labels and Passwords, you do not have to know the previous Password (whereas you must know the
current Label), because the operation automatically resets the set Secure Data field (it is filled with 00 hex). For
obvious reasons linked to security, the Fail Counter is not reset.
If you have forgotten to value of the current Label during the tests, you can return to the default situation with the SPC
utility.
The PROGRAMMING mode is necessary for off-line programming of the dongle. We therefore advise you not to use it
on-line in the software to be protected, both for reasons of safety and to prevent a programming error from activating
the function on a different SmartKey in the system. Furthermore, it is normally sufficient to act on the dongle with the
READING and WRITING functions that limit their action to the Secure Data field.
This command cannot be executed from lan, it works only with a local connection with the SmartKey.
The exchange of information is organized like this:
Models PR, EP, SP, XM NET
Input COMMAND ‘P’
LPT Port
LABEL New Label
PASSWORD New Password
DATA[0..15] Current label (16 bytes)
Output STATUS Status
==0 Success
!=0 Error
Table 25
PROGRAMMING MODE command parameters
9.10.1 Parameter transfer
Parameters needing to be transferred to execute a PROGRAMMING operation, with access to the dongle on the LPT1
parallel port, and programming of Label and Password. Let's suppose that the LABEL saved before the operation was
"LABELOLD":
LPT
01 00
Port
COMMAND
50 00
Programming(
"P"
)
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
4C 41 42 45 4C 4F 4C 44
00 00 00 00 00 00 00 00
Current Label (“LABELOLD”)
Table 26
Exchange of information for the PROGRAMMING MODE command
If the dongle is found on the indicated port, the Label and Password values are transferred to the dongle, whereas the
Secure Data in the dongle are automatically reset. The current LABEL uses the first 16 bytes of the Data field, which
are normally used for transferring Secure Data.
9.11
Comparing mode
The COMPARING mode was introduced to simplify use of the dongles and to help those addressing software
protection technique for the first time.