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. Problem In Setting Destination of GXDLMSPushSetup With ServiceType.Hdlc

problem in setting Destination of GXDLMSPushSetup with ServiceType.Hdlc

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 ali_bahal , 22 June, 2022
Forums
Gurux.DLMS

Hi, when I want to set Destination properties of GXDLMSPushSetup when ServiceType is Hdlc ,
gurux change obis code to Ascii format and write something like :

<!-- 0.2.22.0.0.255 -->
<OctetString Value="302E322E32322E302E302E323535" />

but when I use meter Own software to set this property it's write obis logical name as hex value like :
<!-- 0.2.22.0.0.255 -->
<OctetString Value="0002160000FF" />

I wanted to know which format is correct and also is there way to force gurux to write it as hex not ascii?

gurux internal code is :
if (this.Service == ServiceType.Hdlc && ((byte[]) objectList[1]).Length == 6 && ((byte[]) objectList[1])[5] == byte.MaxValue)
{
this.Destination = GXCommon.ToLogicalName((object) (byte[]) objectList[1]);
}

Profile picture for user Kurumi

Kurumi

3 years 11 months ago

Hi,

Hi,

The content of the Destination attribute is not defined by the DLMS standard and it can be anything. There is usually a TCP/IP address and port number when a Push message is sent using a TCP/IP connection. Meters that I have seen don't use Destination property when HDLC service type is used.

I'm wondering why the OBIS code is given in the destination attribute. Do you have multiple serial ports in your meter?

BR,
Mikko

ali_bahal

3 years 11 months ago

I think because this meter

I think because this meter wants to enable push setup on Optical and Rs485 port simultaneously,
it used such mechanism. I upload this meter Obis list for Push setup and iecHdlcSetup in below.

my problem is that destination field type in dlms blue book is OctetString. and you use Ascii for it value setting. but also you can parse hex value Correctly when I read value with GxdlmsDirector.

I think when you writing value for destination when service type is hdlc , you should write it as hex value and not ascii value

Image
Profile picture for user Kurumi

Kurumi

3 years 11 months ago

Hi,

Hi,

I have to think about how to solve this problem. I understand why your meter manufacturer has implemented it like this and the DLMS standard allows it. The problem is that the idea is different than the other meter manufacturers.

It will take some time before the new version can be released where this can be handled.

BR,
Mikko

ali_bahal

3 years 11 months ago

I'll appreciate if you can

I'll appreciate if you can create a ticket for this، so that wouldn't forgotten.

Profile picture for user Kurumi

Kurumi

3 years 11 months ago

Hi,

Hi,

I need to check first that this is not causing any problems with other meters.

BR,
Mikko

Profile picture for user Kurumi

Kurumi

3 years 10 months ago

Hi,

Hi,

Get the latest version from GXDLMSDirector (9.0.2208.0101).
This is now working. Let me know if you have any problems.

BR,
Mikko

ali_bahal

3 years 10 months ago

Thank you. I'll check it and

Thank you. I'll check it and let you know the result. But I use c# version. Did you change only GXDLMSDirector or also changes made to dlms dll ?

Profile picture for user Kurumi

Kurumi

3 years 10 months ago

Hi,

Hi,

This is improved for C# component, but you can easily test this with GXDLMSDirector.

BR,
Mikko

ali_bahal

3 years 10 months ago

Thank you

Thank you

  • 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