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. DLMS Frame Packet Bytes

DLMS frame packet bytes

By orondelli , 30 January, 2024
Forums
Gurux.DLMS

Hi,

we are currently sending this string on Private connection:

00 01 00 01 00 01 00 20 C8 1E 30 00 00 00 4A AE 9E 40 B8 DE 9B 88 ED 01 D5 82 37 3B FC 0B ED 98 FA 36 68 88 EF 0A C5 EC

It has been working great for years but I am now struggling to connect to new MeterSit meters (IoT network UDP). They are saying I should use D8 instead of C8.

00 01 00 01 00 01 00 20 C8 ... - not working
00 01 00 01 00 01 00 20 D8 ... - should work

Do you know what does it mean? Can I change it using Gurux library ?

Thanks
Omar

orondelli

2 years 4 months ago

BlockCipher key: 66 51 64 51…

BlockCipher key: 66 51 64 51 0C 73 71 16 70 10 3B 41 28 07 04 4D
Authentication Key:66 51 64 51 0C 73 71 16 70 10 3B 41 28 07 04 4D
1: 00 01 00 01 00 01 00 20 C8 1E 30 00 00 00 4A AE 9E 40 B8 DE 9B 88 ED 01 D5 82 37 3B FC 0B ED 98 FA 36 68 88 EF 0A C5 EC
<WRAPPER len="20" >
<SourceAddress Value="1" />
<TargetAddress Value="1" />
<PDU>
<!-- Invocation Counter: 74 -->
<!-- Decrypt data: C0 01 C1 00 01 00 00 60 01 0A FF 02 00
<GetRequest>
<GetRequestNormal>
# Priority: High, ServiceClass: Confirmed, Invoke ID: 1
<InvokeIdAndPriority Value="C1" />
<AttributeDescriptor>
# Data
<ClassId Value="0001" />
# 0.0.96.1.10.255
<InstanceId Value="000060010AFF" />
# Value
<AttributeId Value="02" />
</AttributeDescriptor>
</GetRequestNormal>
</GetRequest>
-->
<glo_GetRequest Value="300000004AAE9E40B8DE9B88ED01D582373BFC0BED98FA366888EF0AC5EC" />
</PDU>
</WRAPPER>

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi Omar, It seems that the…

Hi Omar,

It seems that the old version was using glo-messages.
Are you sure that the command is 0xD8? That is reserved for the Exception Response.

Meters are usually using General GLO ciphering, but that is 0xDB.

BR,
Mikko

orondelli

2 years 4 months ago

Hi Mikko, you are right it…

Hi Mikko,

you are right it is 0xDB.

How can I change to "General GLO ciphering" for those particular meterSit meters (meterSit UDP - CompactFrame 91)?

What it is happening is that Public connection works great and I can retrieve data like LDN, ecc....
On the Private it seems to be connecting (no errors and no time out given) but whatever I ask to the meter it comes back with "Undefined Object".

I don't want to break the system as it is working fine for the rest of the meters: Honeywell UDP - CompactFrame, meterSit old models TCP - NO compact frame.

This is my code:

client = new GXDLMSSecureClient(....);

//HLS (High Level Security)
client.Ciphering.SystemTitle = Encoding.ASCII.GetBytes(objMeter.ClientSystemTitle);
client.ServerSystemTitle = GXCommon.HexToBytes(objMeter.ServerSystemTitle);

client.Ciphering.BlockCipherKey = GXCommon.HexToBytes(objMeter.BlockCipherKey);
client.Ciphering.AuthenticationKey = GXCommon.HexToBytes(objMeter.AuthenticationKey);

client.Ciphering.InvocationCounter = InvocationCounter;
client.Ciphering.Security = (Security)objMeter.Security;

reader = new GXDLMSReader(....)

Many Thanks

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi, Add this line after you…

Hi,

Add this line after you have created your client.

client.ProposedConformance |= Conformance.GeneralProtection;

BR,
Mikko

orondelli

2 years 4 months ago

Amazing you are truly a…

Amazing you are truly a master!

Managed to get MP Id and LDN on Private! (now getting "Access Error : Device reports Read-Write denied." when trying to get readings from Profile Generic but not really important right now)

I am going to read more about ProposedConformance and Conformance.GeneralProtection

Thank you very much again

orondelli

2 years 4 months ago

Hi Mikko, trying to find a…

Hi Mikko,

trying to find a fix for the Profile Generic. I added a comment on an old post as it sounds more relevant:

https://www.gurux.fi/forum/6310#comment-27413

Thanks

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi, Please, don't comment…

Hi,

Please, don't comment the old posts. Create a new topic if you have a new question.
They may look the same, but usually they are not and it causes confusion.

Create a new topic and I'll answer for your question.

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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin