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. Forums
  3. Global-ciphering - Tcp

global-ciphering - tcp

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By s4_dlms , 26 February, 2022
Forums
Gurux.Net

Dear Gurux management

Hi

thanks for your great service.

I use C# gurux library.

and i need creat glo-ciphering for read a meter with italy standards.

i have these:

/*----------------------------------------------------------------------------*/
GXDLMSSecureClient client = null;

client = new GXDLMSSecureClient(true, 1, 1, Gurux.DLMS.Enums.Authentication.HighGMAC, null, Gurux.DLMS.Enums.InterfaceType.WRAPPER);

client.Limits.UseFrameSize = true;
client.Settings.MaxPduSize = 256;

client.Limits.MaxInfoRX = 256;
client.Limits.MaxInfoTX = 256;

client.ClientAddress = 1;
client.ServerAddress = 1;

client.Ciphering.Security = Gurux.DLMS.Enums.Security.AuthenticationEncryption;

client.Standard = Standard.Italy;

client.Authentication = Gurux.DLMS.Enums.Authentication.HighGMAC;
client.InterfaceType = Gurux.DLMS.Enums.InterfaceType.WRAPPER;
client.Priority = Gurux.DLMS.Enums.Priority.High;

client.Ciphering.AuthenticationKey = keys1;
client.Ciphering.BlockCipherKey = keys2;
client.Ciphering.SystemTitle = syst;
/*----------------------------------------------------------------------------*/

can you help me Please?

thanks.

Profile picture for user Kurumi

Kurumi

4 years 3 months ago

Hi,

Hi,

Try to connect with the Client example. Add system title (-T), block cipher (-B), and authentication keys (-A) as a command-line parameter. You also usually need to read the Invocation counter using -v parameter.

BR,
Mikko

s4_dlms

4 years 3 months ago

I tried but meter didn't

I tried but meter didn't response.
How Can i creat AARQ with Glo-cipher for Italy standard with gurux .net library?
It's possible?

Profile picture for user Kurumi

Kurumi

4 years 3 months ago

Hi,

Hi,

Yes, our clients are reading Italy Standard UNI/TS 11291-11-2 meters. Are you using a concentrator or do you have a direct TCP/IP connection for the meter?

I can see from your settings, that you want to establish a Management connection.
Can you establish the connection with GXDLMSDirector first? It's easier to verify your parameters.

You need to read Invocation counter using -v 0.1.43.1.1.255 if your meter connection is Off-line and 0.0.43.1.1.255 if your meter connection is On-Line.

Try to establish the connection without authentication (Public) first.

BR,
Mikko

s4_dlms

4 years 3 months ago

thanks for your response.

thanks for your response.

Our meter has direct TCP/IP connection and our software most be server , meter is connect to our software.
I read meter with public , its OK and no problem.
I read invocation counter and set to client.ciphering.invocation
But when i try to read with HLS + HighGmac , meter didn't response to my AARQ.

Profile picture for user Kurumi

Kurumi

4 years 3 months ago

Hi,

Hi,

There are differences between the meter manufacturers in how they behave in auto-connect mode (Meter connects for the server).

Try not to call Release. That works for some meters. Some meters expect that the release is called after you have read the IV and some meters can't handle any commands after you call release.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin