Skip to main content
Home
for DLMS smart meters

Main navigation

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

Breadcrumb

  1. Home
  2. Security Setup
gxdn
Profile picture for user Administrator
By Administrator, 23 January, 2018
Security setup object is used to do define settings used for ciphered (secure) connection.

Properties

  • 1. Logical Name
    Logical name of the object.
  • 2. Security policy
    Defines how messages are secured.
  • 3. Security suite
    Used security algorithm.
    • Suite 0 uses GMAC for encryption and authentication.
    • Suite 1 uses GMAC or P-256 certificate for encryption and authentication.
    • Suite 2 uses GMAC or P-384 certificate for encryption and authentication.
  • 4. Client system title
    Client system title.
  • 5. Server system title
    Server system title.

Actions

  • 1. Security activate
    Activates and strengthens the security policy.
  • 2. Key transfer
    Transfer symmetric keys.
  • 3. Key agreement
    Agrees public/private keys.
  • 4. Generate key pair
    Generate public/private key pair.
  • 5. Generate certificate request
    Generates certificate request
  • 6. Import certificate
    Imports certificate.
  • 7. Export certificate
    Exports certificate.
  • 8. Remove certificate
    Removes certificate.

Access data from ANSI C

  • Show
///////////////////////////////////////////////////////////////////////
//This method adds example security setup object.
//malloc is not used and for that reason data must allocate for all attributes.
///////////////////////////////////////////////////////////////////////
int addSecuritySetup()
{
    int ret;
    //Define server system title.
    static unsigned char SERVER_SYSTEM_TITLE[8] = { 0 };
    //Define client system title.
    static unsigned char CLIENT_SYSTEM_TITLE[8] = { 0 };
    const unsigned char ln[6] = { 0,0,43,0,1,255 };
    if ((ret = INIT_OBJECT(securitySetup, DLMS_OBJECT_TYPE_SECURITY_SETUP, ln)) == 0)
    {
        //Add FLAG ID.
        memcpy(SERVER_SYSTEM_TITLE, "GRX", 3);
        //ADD serial number.
        memcpy(SERVER_SYSTEM_TITLE + 4, &SERIAL_NUMBER, 4);
        BB_ATTACH(securitySetup.serverSystemTitle, SERVER_SYSTEM_TITLE, 8);
        BB_ATTACH(securitySetup.clientSystemTitle, CLIENT_SYSTEM_TITLE, 8);
        securitySetup.securityPolicy = DLMS_SECURITY_POLICY_NOTHING;
        securitySetup.securitySuite = DLMS_SECURITY_SUITE_AES_GCM_128;
    }
    return ret;
}
  • Invocation counter

Book traversal links for Security setup

  • Script table
  • Up
  • Invocation counter
  • Create new account
  • Reset your password

Book navigation

  • Activity calendar
  • Association Logical Name
  • Auto Connect
  • Auto answer
  • Clock
  • Compact data
  • Data
  • Demand register
  • Disconnect control
  • Extended register
  • GPRS modem setup
  • GSM diagnostic
  • IEC HDLC setup
  • IEC local port setup
  • IPv4 setup
  • IPv6 setup
  • Image transfer
  • Limiter
  • M-Bus Client
  • M-Bus master port setup
  • M-Bus slave port setup
  • MAC address setup
  • Modem configuration
  • PPP setup
  • Profile generic
  • Push Setup
  • Register
  • Register Monitor
  • Register activation
  • Register table
  • SAP assignment
  • Script table
  • Security setup
    • Invocation counter
  • Single action schedule
  • Special days table
  • Status mapping
  • Tcp Udp Setup
  • Utility tables
  • Manufacturer custom objects

Hire Us!

Latest Releases

  • Thu, 05/15/2025 - 16:26
    gurux.dlms.c 9.0.2505.1501
  • Wed, 05/14/2025 - 08:30
    gurux.dlms.c 9.0.2505.1401
  • Tue, 05/13/2025 - 10:00
    Gurux.DLMS.Android 2.0.15
  • Fri, 05/09/2025 - 13:03
    Gurux.DLMS.Python 1.0.181
  • Wed, 05/07/2025 - 16:09
    Gurux.DLMS.Android 2.0.14

New forum topics

  • Long reading ends with "Invalid frame ..." error.
  • Push listener example how it works + tcp stream issue
  • Problem with reading energymeter Star DTS27 via GXDLMSDirector
  • Receiver Ready Test Failed
  • Combining several meters' profile generic data into one
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin