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. Issue With OctetString Value In External Test

Issue with OctetString value in external test

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

Hi,

I have a little problem with the answer in my external test. When I put my expected getResponse data: OctetString = "4D 45 4C 31 30 32 30 37 31 31 30 38 30 37 38 38", but in the meter is "4D 45 4C 31 30 32 30 37 31 31 30 38 30 37 38 37" (the difference is in the LAST byte) the test report shows me that everything is fine and test is passed, and by my logic it shouldn't if the value in the meter differs from my parametrized GetResponse. By the way, it's fine with other types like enum etc, it's just a problem with OctetString. Do I need something to configure about it or it is just a bug?
Here is log after the test and my xml file below to make it easier to you.

Best regards

Image
Profile picture for user Kurumi

Kurumi

3 years 11 months ago

Hi,

Hi,

I'll check this and let you know ASAP.

BR,
Mikko

Profile picture for user Kurumi

Kurumi

3 years 11 months ago

Hi,

Hi,

Please, add plain text. Bytes are easier to handle than trying to read them from the pic.
It's working if you have only octet string. In your reply you have structure. I tested it also with that and it worked without problems.

Have you added response handler like this?

<GetResponseNormal>
<!--Priority: HIGH ServiceClass: CONFIRMED invokeID: 1-->
<InvokeIdAndPriority Value="*"/>
<Result>
<Data>
<Structure Qty="02" >
<UInt16 Value="0001" />
<OctetString Value="4775727578313233343539" />
</Structure>
</Data>
</Result>
</GetResponseNormal>
</GetResponse>

BR,
Mikko

Ivan23

3 years 11 months ago

I have added the same

I have added the same Response as you did, i deleted Array in this case and it worked fine.

Thank you for the tip

  • 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

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