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. Forums
  3. Enum (One Byte Problem)

Enum (One byte problem)

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 Ivan23, 19 January, 2022
Forums
Known problems

Hi,

I have a problem when I type Enum "1E" (hex form) in my GetResponse the test will not be executed, it says that the input string is not in correct form, but when I type "30" it returns me an error that says it expects "1E" in the request. It does not make sense.
Here is the plain text below to make it easier for you to solve and answer me.

<GetRequest>
<GetRequestNormal>
<InvokeIdAndPriority Value="*"/>
<AttributeDescriptor>
<ClassId Value="3"/>
<InstanceId Value="0100010800FF"/>
<AttributeId Value="3"/>
</AttributeDescriptor>
</GetRequestNormal>
</GetRequest>
<GetResponse>
<GetResponseNormal>
<InvokeIdAndPriority Value="*"/>
<Result>
<Data>
<Structure Qty="02">
<Int8 Value="00"/>
<Enum Value="30"/>
</Structure>
</Data>
</Result>
</GetResponseNormal>
</GetResponse>

This is the error:

Expected:

<GetResponse>
<GetResponseNormal>
<InvokeIdAndPriority Value="*" />
<Result>
<Data>
<Structure Qty="02">
<Int8 Value="00" />
<Enum Value="30" />
</Structure>
</Data>
</Result>
</GetResponseNormal>
</GetResponse>

Actual:

<GetResponse>
<GetResponseNormal>
<InvokeIdAndPriority Value="C1" />
<Result>
<Data>
<Structure Qty="02" >
<Int8 Value="00" />
<Enum Value="1E" />
</Structure>
</Data>
</Result>
</GetResponseNormal>
</GetResponse>

Profile picture for user Kurumi

Kurumi

3 years 10 months ago

Hi,

Hi,

Can you give a little more details? Is this a Conformance test or Macro?
Can you also give a hex value so I can check this deeper?

BR,
Mikko

Ivan23

3 years 10 months ago

That is External test.

That is External test.
Hex value in my meter is "1E", type is Enum. When I type "1E" with Enum type in my GetRequest/GetResponse xml file, as in the example above, the External test wont execute, but when I write "30" with Enum type in my GetRequest/GetResponse xml file, the test gives me back an error, "1E value is expected" as in the example above also. The problem is in the Enum type, it does not allow me to write 1E.
I had the same problem with "C1" (Hex) and "193" (Dec) in Invoke&IDPriority also but that is another topic, but it is similar error.

Ivan23

3 years 10 months ago

Do you have any clue about my

Do you have any clue about my question so far, sorry if I'm disturbing you.

Profile picture for user Kurumi

Kurumi

3 years 10 months ago

Hi,

Hi,

I'm sorry for the slow reply. Last week was quite busy. This is solved and the fixed version is released at the end of this week.

BR,
Mikko

Ivan23

3 years 10 months ago

Ok thank you.

Ok thank you.
Can you attach me the url of the page here where that version will be?

Profile picture for user Kurumi

Kurumi

3 years 10 months ago

Hi,

Hi,

GXDLMSDirector will notify you when the new version is released. Change has made for this project:
https://github.com/Gurux/Gurux.DLMS.Net/tree/master/Development

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 12/02/2025 - 10:21
    gurux.dlms.c 9.0.2512.0201
  • Mon, 12/01/2025 - 13:55
    Gurux.DLMS.Python 1.0.193
  • Thu, 11/13/2025 - 15:23
    Gurux.DLMS.Python 1.0.192
  • Thu, 11/13/2025 - 14:55
    gurux.dlms.java 4.0.84
  • Wed, 10/29/2025 - 08:51
    gurux.dlms.c 9.0.2510.2901

New forum topics

  • Incomplete Firmware Upgrade Process
  • SNRM byte mening
  • P384 Client Certificate incorrect issuer CN
  • Confirmed push service support
  • DLMS Stack hang during Firmware Upgrade
More

Who's new

  • diroccon
  • amelara
  • stasxol
  • Shaheer Tariq
  • Jagi_prg
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin