Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Gurux DLMS MeterStudio
  3. Gurux DLMS MeterStudio
  4. Security
By Gurux Documentation , 30 November, 2026
Gurux DLMS MeterStudio

Open 7. Security to configure DLMS message protection and the Security Setup linkage used by associations.

Security settings must agree with the client: security suite, policy, keys, system titles and invocation counter handling all affect whether protected communication succeeds. This version requires Logical Name referencing for security.

Setting Effect
Enable DLMS security Adds the security configuration and required Security Setup support. Disabling it removes Security Setup objects and their association links.
Security suite Selects the supported cryptographic suite. Ordinary configurations offer Suite 0 (AES-128). Profiles with the extended security store may also offer Suite 1 (AES-128, P-256) and Suite 2 (AES-256, P-384).
Security policy Selects the required message protection. Ordinary Suite 0 configurations offer Authentication, Encryption, or Authentication + Encryption. Extended profile policies distinguish request and response authentication, encryption and signing.
Server system title Shows the eight-byte server identity: three manufacturer FLAG bytes followed by five serial-number bytes. It is generated/read-only here.
Client system title Optionally restricts acceptance to the configured eight-byte client title. An empty value accepts any client title, subject to the other security checks.
Initial invocation counter Sets the starting security counter. Runtime persistence controls its subsequent use.
Provision keys at runtime Selects runtime key provisioning instead of relying on configured inline keys. Follow the generated platform README.
KEK (Master key) Supplies key-encryption/master key material for the applicable security store and supported key management operations.
Authentication key Supplies the key used for DLMS authentication protection. It is separate from an association password.
Block cipher key Supplies the key used for protected DLMS ciphering.
Broadcast key, when shown Supplies separate broadcast key material for the extended security store.

Keys use 16 bytes for suites 0/1 and 32 bytes for suite 2. The byte editor can display text or hex; the required byte length still applies. The editor may populate example keys for suites 0/1. Replace those values with the intended provisioned keys.

Identity and counters

On ESP32-S3 the server title uses the chip-derived serial number. Desktop targets use the FLAG ID and the five-byte serial number 1 in the current implementation.

Invocation counters prevent reuse of protected message counters. The generated implementation persists counters in the platform's file/NVS storage before sending a protected response. Do not reset counters or restore older counter storage while retaining the same keys and system title. Multiple instances sharing that identity must use coordinated counter storage.

The initial value is a provisioning input; it is not a mechanism to reset an existing deployed meter's security state.

Associations and supported operations

Check each association's Security Setup object ID on Associations, then grant only the object operations supported for that profile. The general profile's Security Setup is intended for read-only exposure with runtime provisioning; enabling it does not automatically add every remote key-management method.

India profiles use persistent security storage for supported remote secret/key changes. They require the 16-byte key-encryption key provisioned as GX_KEK. When IHD is enabled, provision its independent factory keys as GX_IHD_AUTH_KEY and GX_IHD_BLOCK_KEY; IHD uses encryption without a sign-on password.

Exports

Inline keys are excluded from JSON and ZIP exports by default. Include secrets explicitly includes supported configured secrets. The generated README describes the target's provisioning and persistent storage requirements. See ZIP.

Return to the manual.

  • Log in or register to post comments
  • Create new account
  • Reset your password

Book navigation

  • Standard
  • Target
  • Referencing
  • Transport
  • Associations
  • Passwords
  • Security
  • Objects
  • Validation
  • ZIP
  • Build

Hire Us!

Latest Releases

  • Mon, 11/30/2026 - 14:21
    gurux.dlms.c 9.0.2611.3001
  • Thu, 11/26/2026 - 15:24
    gurux.dlms.c 9.0.2611.2601
  • Thu, 11/19/2026 - 10:57
    Gurux.DLMS.Python 1.0.204
  • Thu, 11/19/2026 - 10:12
    gurux.dlms.c 9.0.2611.1901
  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97

New forum topics

  • Landis E650 meter reading over DLMS
  • class_id = 40, version = 2, pushsetup Unparsed data frame
  • GXObisValueItem entries without MaskSize appear to be interpreted as bit flags
  • CheckedListBox incorrectly selects GXObisValueItem Value=0 for non-zero values
  • UIValueType=TextBox is rendered as CheckedListBox when Values are defined
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin