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. "Unknown Data Type" Error When Modifying IPV6 Setup Object

"Unknown data type" error when modifying IPV6 Setup object

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 chli , 28 November, 2019
Forums
DLMSDirector

Hi,

Thank you for your great library and for open sourcing it.

I'm currently running a proof-of-concept and I'm trying to modify the IPV6 Configuration of a meter using your GXDLMSDirector connected to the meter's optical head port.

I can connect to the meter and get the list of all the objects, great!

Then I read the content of the IPv6 Setup object "0.0.25.7.0.255" which allows me to get the content of all the attributes.

See the result here:

https://imgur.com/a/ES28QiB

I want now to modify the Gateway Addresses list, so I click in the TextBox, edit, click outside the TextBox and then I get an exception:

https://imgur.com/a/KbocAE5

The exception is raised because the code doesn't handle the type "System.Net.IPAddress[]" in the function "static public DataType GetDLMSDataType(Type type)" of GXCommon.cs which is called by "public static void DatatoXml(object value, GXDLMSTranslatorStructure xml)" from the same file. This last function can handle IPAddress but not arrays of them.

I tried modifying the DatatoXml function to also handle IPAddress[] in a similar fashion as the GXArray type but my modification ended-up creating more issues (invalid xml error).

Could you please have a look at this issue or guide me on how I can fix it myself?

Best regards,

Christophe

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

I have added this to the work list. We'll try to fix this ASAP.

BR,
Mikko

chli

6 years 6 months ago

Great, please keep me posted

Great, please keep me posted here if the issue is solved.

Thank you!

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

We try to release new version on Monday where this is fixed.

BR,
Mikko

chli

6 years 6 months ago

That's amazing news, thanks!

That's amazing news, thanks!

chli

6 years 6 months ago

Thank you for your changes! I

Thank you for your changes! I'm currently testing them (I encountered some issues already).

I see you've revisited the IPv6Setup dialog completely, nice!

I'll keep you posted with my progress tomorrow.

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,
It was too easy to give an invalid IP v6 address. Now it's checked.
Please, let me know if you have any problems.

BR,
Mikko

chli

6 years 6 months ago

Hi,

Hi,

I managed to get my PoC working, in the end I didn't need to modify the IPv6Setup object but your changes are still welcome!

However I wanted to give you a quick feedback. I don't know how much of the issues left are because of problems with the meter or in the GXDLMSDirector.

In the following screen capture video you will see how I can only edit edit an entry in the Unicast IP Addresses list if the list only has one entry. In addition deleting the entry doesn't actually delete it since when reading back the deleted entry re-appears.

https://www.dropbox.com/s/jqr564xki4h0t29/cannot-edit-lists.mp4?dl=0

It's the same behavior with Gateway Addresses.

Thank you.

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,
Thanks for the video. I checked this and you are right. We'll try to write this value when we need to use actions. This is fixed on next week.

BR,
Mikko

Profile picture for user Kurumi

Kurumi

6 years 4 months ago

Hi,

Hi,

This is now fixed. Get the latest version from the GXDLMSDirector.
BR,
Mikko

chli

6 years 4 months ago

Great, thanks !

Great, thanks !

  • 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