Enum (One byte problem)

7 posts / 0 new
Last post
Ivan23
Enum (One byte problem)

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>

Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Ivan23

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

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

Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Ivan23

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

Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi