EEPROM memory can be logically subdivided into the following areas (all addresses are given in SAM addressing system):

  • Bytes 0 through 9 [inclusive]are unavailable for writing. This memory area is used by the dongle for its internal purposes. The content of this memory is programmed during production (manufacturing); it can be used only for reading. API function returns GrdE_OK error code at the attempt to write into this area. This memory area is unavailable in UAM mode.
  • Bytes 14 through 25 [inclusive] are available only for reading. This memory area contains Public code, hardware version of the dongle, dongle network resource, bits of types and dongle models and the dongle ID. Fields of this area are useful, for example, when you need to identify the dongle ID. The content of this memory is programmed during manufacturing of the dongles. GrdE_OK error code is returned at the attempt to write into this area. This memory is unavailable in UAM mode.
  • Bytes 10 through 13 and 26 through 29 [inclusive]are available only to GrdProtect , GrdInit and GrdTRU_SetKey functions. They contain addresses of read/write locks, number of hardware algorithms and protected items in the dongle. GrdE_OK error code is returned at the attempt to write into this area not via GrdProtect (GrdTRU_SetKey). This memory is unavailable in UAM mode.
  • Bytes 30 through 43 [inclusive]are always available for reading and writing and contain so called general purpose fields: program number, version, serial number, bit mask, GP run counter (counter No.1), maximum resource of network licenses (counter No.2), remote dongle programming index. These areas are available in UAM mode. These fields are normally used for forming search parameters of the required dongle and actively used by the automatic protection utilities.
  • Bytes 44 through 3959 [inclusive] available for reading and writing if not locked, and can be used for storing user’s data, hardware algorithm descriptors and protected items. These bytes are cleared upon executing GrdInit or GrdTRU_SetKey functions.
  • Bytes 3960 through 3967 [inclusive]are reserved since they are not recommended for use. Available in UAM mode.

Description of Guardant dongle memory fields:

Address (SAM)Address (UAM)Size in bytes

Lock:

R-read

W-write

Field nameField description
System fields
0N/A1WkmModelDongle model code
1N/A1WkmMemSizeMemory size code. Значение поля соответствует степени, в которую нужно возвести число 2, чтобы получить объем памяти ключа в байтах
2N/A1WkmProgVerProgram version in the dongle. Это поле может быть использовано для идентификации ключей с заказными микропрограммами
3N/A1WkmProtocolDongle exchange protocol version. Для внутреннего применения. Используется утилитами диагностики
4N/A2WkmClientVerLower level core version. Значение 0x104 соответствует версии 1.4. Длявнутреннего применения. Используется утилитами диагностики
6N/A1WkmUserAddrBegginning of UAM area address in 2-byte words
7N/A1WkmAlgoAddrAddress of Protected Items Allocation Table (PIAT) in 2-byte words
8N/A2WkmPrnPortAddress of the parallel port to which the dongle is connected (not used)
10N/A2WkmWriteProtectS3SAM address of the first byte available for writing.
12N/A2 kmReadProtectS3SAM address of the first byte available for reading.
14N/A4WkmPublicCodePublic code in numerical form.
18N/A1WkmVersion

Dongle version:

bits 0-3: minor

bits 4-7: major

19N/A1WkmLANResMaximal LAN resource of Guardant Net dongle programmed by manufacturer during presale. For local dongles - 0
20N/A2WkmTypeBits of dongle type. This field can be used as a search criterion
22N/A4WkmIDDongle ID. Can de used as a search criterion.
26N/A1WkmWriteProtectNot used. Must be FFh (see kmWriteProtectS3)
27N/A1WkmReadProtectNot used. Must be FFh (see kmReadProtectS3)
28N/A1WkmAlgoNumNumber of protected items and hardware algorithms
29N/A1WkmTableLMSNumber of protected item containing the license table. Used onfly for network dongles
General purpose fields
3001 kmNProgProgram number. Can be used as a search criterion
3111 kmVerVersion. Can be used as a search criterion
3222 kmSNSerial number. Can be used as a search criterion
3442 kmMaskBit mask. Can be used as a search cri-terion
3662 kmGPGP launch counter (counter No.1). Cannot be used as a search criterion. Deprecated
3882 kmRealLANResReal network resource of Guardant Net dongle (counter No.2). Cannot be used as a search criterion
40104 kmIndexIndex for remote update. Cannot be used as a search criterion. Deprecated
Free purpose fields
44143916 kmUserDataData can be stored starting with this address (including descriptors of hardware algorithms)
Special purpose fields
396039308  This field is used by thedongle diagnostics program. STRONGLY not rec-ommended for use. Cannot be reset with GrdInit or GrdTRU_SetKey. Available in UAM mode.
  • No labels