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. How To Convert Obis Code To Pdu Hex String

How to convert obis code to pdu Hex string

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 karlpy , 22 June, 2018
Forums
Gurux.DLMS

When I copy and paste a request from GXDLMSDirector, I get an XML. The only thing that seems to change is this string <InstanceId Value="01000F0800FF" />
I'm building an application where I can select, or build reading profiles from any obis code in a database and make custom dlms requests. My question is, how can I convert an obis code, for example: 1.0.15.8.0.255 --> 01000F0800FF
or
1.0.5.8.0.255 --> 0100050800FF
in c# or in GXDLMSTranlator and vice versa?
If I can do that then I can generate an xml and don't need to create and save hundreds of xml files in my database. I'd appreciate suggestions about alternative solutions to this problem. As I said, I need my users to be able to dynamically create dlms-request-profiles which my program then is able to read.

Image
Profile picture for user Kurumi

Kurumi

7 years 11 months ago

How to convert obis code to pdu Hex string

Hi,

Convert values to hex and skip dot's. Lie this:
1.0.5.8.0.255 --> 0100050800FF

1:0x01
0:0x00
5:0x05
8:0x08
0:0x00
255:0xFF

BR,

Mikko

Adil Hameed

5 years 7 months ago

Hi sir!

Hi sir!
sir I have a device iskrameco mt880 I am not able to read it with general OBIS codes using serial port R232
my question is that can we read OBIS codes in the meter firmware.?
please help me

Image
Profile picture for user Kurumi

Kurumi

5 years 7 months ago

Hi,

Hi,

If you use GXDLMSDirector it will read association view and association wive will describe all the OBIS codes that meter can offer.

BR,
Mikko

Adil Hameed

5 years 7 months ago

Dear sir ! I have its own

Dear sir ! I have its own software provided by the company iskrameco now I can read and write parameters.
Dear sir i want to know the obis code of (calibration measuring constant) There i have a obis code of (pulse constant 0.3.0, 0.3.1 etc) I want to change measuring constant with respect to my project!
Plz help

Profile picture for user Kurumi

Kurumi

5 years 6 months ago

Dear Sir,

Dear Sir,

You need to ask this from the meter manufacturer. You can see all the OBIS codes and their descriptions in the application.

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