"Unknown data type" error when modifying IPV6 Setup object

11 posts / 0 new
Last post
chli
"Unknown data type" error when modifying IPV6 Setup object

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

Kurumi
Kurumi's picture

Hi,

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

BR,
Mikko

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

chli

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

Thank you!

Kurumi
Kurumi's picture

Hi,

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

BR,
Mikko

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

chli

That's amazing news, thanks!

chli

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.

Kurumi
Kurumi's picture

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

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

chli

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.

Kurumi
Kurumi's picture

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

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

Kurumi
Kurumi's picture

Hi,

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

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

chli

Great, thanks !