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. Profile Generic

profile generic

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 atulsawant , 20 January, 2017
Forums
General discussion

dear sir,

while reading objects from profile-generic class, the error is as follows ....what is that error and how can i remove it?

thanks in advance

13:01:16 Initializing serial connection.
13:01:16 Send SNRM request.
7E A0 17 00 02 0E D3 21 93 E8 C8 81 80 08 05 02 00 80 06 02 00 80 F8 85 7E
13:01:16 Received data
7E A0 23 21 00 02 0E D3 73 E5 A9 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E
13:01:16 Parsing UA reply.<CR><LF>81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01
13:01:16 Parsing UA reply succeeded.
13:01:16 Send AARQ request
7E A0 2E 00 02 0E D3 21 10 08 E9 E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 3C 1F 00 71 EE 75 7E
13:01:17 Received data
7E A0 3A 21 00 02 0E D3 30 8A 2D E6 E7 00 61 1D A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 02 BE 10 04 0E 08 00 06 5F 1F 04 00 00 3C 1F 00 71 00 07 19 AF 7E
13:01:17 Parsing AARE reply<CR><LF>61 1D A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 02 BE 10 04 0E 08 00 06 5F 1F 04 00 00 3C 1F 00 71 00 07
13:01:17 Parsing AARE reply succeeded.
13:01:21 Reading profile generic data
7E A0 4F 00 02 0E D3 21 32 48 D0 E6 E6 00 C0 01 C1 00 07 01 00 63 01 00 FF 02 01 01 02 04 02 04 12 00 08 09 06 00 00 01 00 00 FF 0F 02 12 00 00 09 0C 07 E6 02 08 02 00 00 00 FF FE B6 00 09 0C 07 E6 02 09 03 17 3B 1E FF FE B6 00 01 00 DA 93 7E
13:01:21 Received data
7E A0 83 21 00 02 0E D3 32 F6 1F E6 E7 00 C4 01 C1 00 01 03 02 06 09 0C 16 02 08 05 01 0F 28 28 32 02 58 86 17 00 00 09 3C 17 00 00 09 3C 17 00 00 09 3C 17 00 00 09 3C 11 01 09 0C 16 02 08 10 00 0F 28 28 32 02 58 86 17 00 00 09 3C 17 00 00 09 3C 17 00 00 09 3C 17 00 00 09 3C 11 01 09 0C 16 02 09 05 00 0F 28 28 32 02 58 86 17 00 00 09 3C 17 00 00 09 3C 17 00 00 09 3C 17 00 00 09 3C 11 01 D2 73 7E
System.InvalidCastException: Unable to cast object of type 'System.Byte[]' to type 'System.Object[]'.
at Gurux.DLMS.Objects.GXDLMSProfileGeneric.SetBuffer(ValueEventArgs e)
at Gurux.DLMS.Objects.GXDLMSProfileGeneric.Gurux.DLMS.Objects.IGXDLMSBase.SetValue(GXDLMSSettings settings, ValueEventArgs e)
at Gurux.DLMS.GXDLMSClient.UpdateValue(GXDLMSObject target, Int32 attributeIndex, Object value, List`1 columns)
at Gurux.DLMS.GXDLMSClient.UpdateValue(GXDLMSObject target, Int32 attributeIndex, Object value)
at GXDLMSDirector.GXDLMSCommunicator.OnProfileGenericDataReceived(Object sender, GXReplyData reply)
at GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[] data, String text, Int32 multiplier, GXReplyData reply)
at GXDLMSDirector.GXDLMSCommunicator.Read(Object sender, GXDLMSObject obj, Int32 attribute)
at GXDLMSDirector.MainForm.Read(Control sender, Object[] parameters)
13:01:24 Disconnect request
7E A0 0A 00 02 0E D3 21 53 62 95 7E
13:01:24 Received data
7E A0 0A 21 00 02 0E D3 73 5F 8B 7E

Profile picture for user Kurumi

Kurumi

9 years 4 months ago

profile generic

Hi,

Your data is not standard DLMS profile generic data.
Can you say manufacturer and model of your meter?

BR,

Mikko

atulsawant

9 years 4 months ago

profile generic

manufacturer used: Indian standard

Can you please tell me , why above response is not a DLMS standard specific.

we are using 6 capture objects of data type float32.

thanks in advance.

Profile picture for user Kurumi

Kurumi

9 years 4 months ago

profile generic

Hi,

Structure and data DLMS compatible, but there are structures used. Actris meters are using structures inside profile generic and that is causing problems. Other meters are not using structures because it's harder to describe capture objects (columns).

BR,

Mikko

atulsawant

9 years 4 months ago

profile generic

dear sir,

so what should i do now?
what type of change required for the correct response?

01 03 02 06 09 0C 16 02 08 05 01 0F 28 28 32 02 58 86 17 00 00 09 3C 17 00 00 09 3C 17 00 00 09 3C 17 00 00 09 3C 11 01 09 0C 16 02 08 10 00 0F 28 28 32 02 58 86 17 00 00 09 3C 17 00 00 09 3C 17 00 00 09 3C 17 00 00 09 3C 11 01 09 0C 16 02 09 05 00 0F 28 28 32 02 58 86 17 00 00 09 3C 17 00 00 09 3C 17 00 00 09 3C 17 00 00 09 3C 11 01 D2 73 7E

please consider above response starting from array of 3 element and then structure of 6 element. then all data of capture objects with corresponding data type ...

which change is required?

thanks in advance.

atulsawant

9 years 4 months ago

event

dear sir,

i got a solution for above problem...
but there is a another problem is that while reading events ...all attributes are getting by response...
the reading of profile generic data is also getted by response...but column are not created in the window...
what is the problem?

the response is as shown in below:

11:36:04 Reading profile generic data 0.0.99.98.1.255
7E A0 2F 00 02 0E D3 21 98 9D 7E E6 E6 00 C0 01 C1 00 07 00 00 63 62 01 FF 02 01 02 02 04 06 00 00 00 01 06 00 00 00 02 12 00 01 12 00 00 23 18 7E
11:36:04 Received data
7E A0 45 21 00 02 0E D3 98 70 0C E6 E7 00 C4 01 C1 00 01 02 02 05 09 0C 16 02 08 05 00 0F 28 28 32 02 58 86 06 01 11 0D 11 04 06 00 02 05 09 0C 16 02 08 05 00 0F 28 28 32 02 58 86 06 02 11 0E 11 04 06 00 5B 37 7E
11:36:04 Read object type ProfileGeneric index: 5
7E A0 1C 00 02 0E D3 21 BA A9 02 E6 E6 00 C0 01 C1 00 07 00 00 63 62 01 FF 05 00 27 E5 7E
11:36:04 Received data
7E A0 15 21 00 02 0E D3 BA AF 7C E6 E7 00 C4 01 C1 00 16 01 9A 11 7E
11:36:04 Read object type ProfileGeneric index: 6
7E A0 1C 00 02 0E D3 21 DC 99 04 E6 E6 00 C0 01 C1 00 07 00 00 63 62 01 FF 06 00 4F CF 7E
11:36:05 Received data
7E A0 6D 21 00 02 0E D3 DC 3F B5 E6 E7 00 C4 01 C1 00 02 04 12 00 08 09 06 00 00 01 00 00 FF 0F 02 12 00 00 02 04 12 00 01 09 06 01 41 5E 41 65 FF 0F 02 12 00 00 02 04 12 00 01 09 06 00 00 60 0B 01 FF 0F 02 12 00 00 02 04 12 00 01 09 06 01 41 5E 41 66 FF 0F 02 12 00 00 02 04 12 00 01 09 06 01 41 5E 41 67 FF 0F 02 12 00 00 9B EC 7E
11:36:05 Read object type ProfileGeneric index: 7
7E A0 1C 00 02 0E D3 21 FE 89 06 E6 E6 00 C0 01 C1 00 07 00 00 63 62 01 FF 07 00 97 D6 7E
11:36:05 Received data
7E A0 18 21 00 02 0E D3 FE C0 56 E6 E7 00 C4 01 C1 00 06 00 00 00 05 D0 4F 7E
11:36:05 Read object type ProfileGeneric index: 8
7E A0 1C 00 02 0E D3 21 10 F9 08 E6 E6 00 C0 01 C1 00 07 00 00 63 62 01 FF 08 00 5F 55 7E
11:36:05 Received data
7E A0 18 21 00 02 0E D3 10 B0 58 E6 E7 00 C4 01 C1 00 06 00 00 00 38 B6 A5 7E

thanks in advance..

Profile picture for user Kurumi

Kurumi

9 years 4 months ago

Profile generic

Hi,

You need to read capture objects (columns) (Attribute index 3) before reading buffer (data) (attribute index 2).

BR,

Mikko

  • 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