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. GXDLMSClient asks block cipher and authentication keys if they are not set

GXDLMSClient asks block cipher and authentication keys if they are not set

Profile picture for user Administrator
By Administrator, 23 November, 2022
Project
Gurux.DLMS.Net
Status
Closed (fixed)

It might be cases where meters are using different block cipher and authentication keys with push messages.

GXDLMSSecureClient client = new GXDLMSSecureClient();
client.InterfaceType = InterfaceType.WRAPPER;
//Set keys to null so they are searched each time when needed.

client.Ciphering.BlockCipherKey = null;
client.Ciphering.AuthenticationKey = null;
client.OnKeys += (sender, arg) =>
{
Console.WriteLine("Find keys for" + GXCommon.ToHex(arg.SystemTitle));
arg.BlockCipherKey = //Search key.
arg.AuthenticationKey = //Search key.
};
GXReplyData reply = new GXReplyData();
GXReplyData notify = new GXReplyData();
GXByteBuffer bb = new GXByteBuffer();
//GetData will invoke OnKeys when keys are needed and if they aren't set.
client.GetData(bb, reply, notify)

Priority
Normal
Category
Feature request
  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

Thu, 11/30/2023 - 14:45
Gurux.DLMS.Python 1.0.147
Wed, 11/29/2023 - 13:03
gurux.dlms.c 20231129.1
Tue, 11/21/2023 - 09:55
Gurux.DLMS.AMI4 4.0.2311.2101
Tue, 11/21/2023 - 09:41
Gurux.DLMS.Net 9.0.2311.2101
Thu, 11/16/2023 - 08:52
gurux.dlms.c 20231116.1

Open bugs

gurux.dlms.c
4
gurux.dlms.cpp
3
gurux.dlms.delphi
1

New forum topics

  • "Service not allowed. Operation not possible" Error on Gurux.DLMS.Python
  • [Gurux DLMS for C] Error in "loadSettings" function located in "svr_InitObjects" function
  • Power Meter Integration Using DLMS Protocol
  • [Gurux DLMS for C] Problem writing to an attribute of type 'array'
  • Image transfer failing in cosem_checstructure function
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin