I cannot see any Data or Functions for reading meter (Kamstrup)

16 posts / 0 new
Last post
wikican
I cannot see any Data or Functions for reading meter (Kamstrup)

Hello,
I have Kamstrup Dlms meter, i'm connecting with Net media type.
I cannot see any Data or Functions, How can i read any data, like MeterNo, Clock, Endexes etc.. ?
could you help me?

---------------Log-------------
GXDLMSDirector 8.0.1710.1302
Log created 13:34:30
13:37:25 Initializing Network connection.
13:37:27 Send SNRM request.
7E A0 07 03 23 93 BF 32 7E
13:37:29 Received data
7E A0 20 23 03 73 CB 2D 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:37:29 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:37:29 Parsing UA reply succeeded.
13:37:29
7E A0 41 03 23 10 01 D9 E6 E6 00 60 33 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 07 80 05 31 32 33 34 35 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 3E FE 7E
13:37:30 Received data
7E A0 37 23 03 30 D4 C9 E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 BE 10 04 0E 08 00 06 5F 1F 04 00 00 10 10 03 EF 00 07 71 F7 7E
13:37:30 Parsing AARE reply succeeded.
13:37:36 --- Collecting objects. ---
13:37:36 Collecting objects
7E A0 19 03 23 32 DF EB E6 E6 00 C0 01 C1 00 0F 00 00 28 00 00 FF 02 00 91 53 7E
13:37:38 Received data
7E A0 82 23 03 52 0B 86 E6 E7 00 C4 01 C1 00 01 02 02 04 12 00 11 11 00 09 06 00 00 29 00 00 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 01 00 02 04 12 00 0F 11 00 09 06 00 00 28 00 00 FF 02 02 01 08 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 02 03 0F 03 16 01 00 02 03 0F 04 16 01 00 02 03 0F 05 16 01 00 02 03 0F 06 16 01 00 02 03 0F 07 16 00 00 02 03 0F 08 16 01 00 01 00 0E 66 7E
13:37:38 --- Collecting 2 objects. ---
13:37:38 --- Created 2 objects. ---
13:37:38 --- Reading scalers and units. ---
13:37:38 --- Reading scalers and units end. ---
13:37:38 --- Reading scalers and units. ---
13:37:38 --- Reading scalers and units end. ---
13:38:18 Send Keep Alive
7E A0 19 03 23 54 EF ED E6 E6 00 C0 01 C1 00 11 00 00 29 00 00 FF 01 00 93 59 7E
13:38:19 Read object type AssociationLogicalName index: 2
7E A0 19 03 23 76 FF EF E6 E6 00 C0 01 C1 00 0F 00 00 28 00 00 FF 02 00 91 53 7E
Data send failed. Try to resend 1/3
Data send failed. Try to resend 2/3
13:38:39 Failed to receive reply from the device in given time.
13:38:39 Disconnect request
7E A0 07 03 23 53 B3 F4 7E
Data send failed. Try to resend 1/3
Data send failed. Try to resend 2/3
13:39:00 Failed to receive reply from the device in given time.
System.Exception: Failed to receive reply from the device in given time.
konum: GXDLMSDirector.GXDLMSCommunicator.ReadDLMSPacket(Byte[] data, Int32 tryCount, GXReplyData reply)
konum: GXDLMSDirector.GXDLMSCommunicator.ReadDLMSPacket(Byte[] data, GXReplyData reply)
konum: GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[] data, String text, Int32 multiplier, GXReplyData reply)
konum: GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[] data, String text, GXReplyData reply)
konum: GXDLMSDirector.GXDLMSCommunicator.Read(Object sender, GXDLMSObject obj, Int32 attribute, Boolean forceRead)
konum: GXDLMSDirector.MainForm.Read(Control sender, Object[] parameters)
13:39:02 Received data
7E A0 07 23 03 1F D3 5C 7E
13:39:02 Unknown Error.
System.Exception: Failed to receive reply from the device in given time.
konum: GXDLMSDirector.GXDLMSCommunicator.ReadDLMSPacket(Byte[] data, Int32 tryCount, GXReplyData reply)
konum: GXDLMSDirector.GXDLMSCommunicator.ReadDLMSPacket(Byte[] data, GXReplyData reply)
konum: GXDLMSDirector.GXDLMSCommunicator.KeepAlive()
konum: GXDLMSDirector.GXDLMSDevice.KeepAlive_Elapsed(Object sender, ElapsedEventArgs e)
13:39:07 Initializing Network connection.
13:39:09 Send SNRM request.
7E A0 07 03 23 93 BF 32 7E
13:39:10 Received data
7E A0 20 23 03 73 CB 2D 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:39:10 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:39:10 Parsing UA reply succeeded.
13:39:10
7E A0 41 03 23 10 01 D9 E6 E6 00 60 33 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 07 80 05 31 32 33 34 35 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 3E FE 7E
13:39:11 Received data
7E A0 37 23 03 30 D4 C9 E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 BE 10 04 0E 08 00 06 5F 1F 04 00 00 10 10 03 EF 00 07 71 F7 7E
13:39:11 Parsing AARE reply succeeded.
13:39:13 Read object type SapAssignment index: 2
7E A0 19 03 23 32 DF EB E6 E6 00 C0 01 C1 00 11 00 00 29 00 00 FF 02 00 FB 73 7E
13:39:14 Received data
7E A0 34 23 03 52 0D AC E6 E7 00 C4 01 C1 00 01 02 02 02 12 00 01 09 0A 4B 41 4D 4D 00 00 01 9D 40 23 02 02 12 00 10 09 0A 4B 41 4D 45 00 00 01 9D 40 23 90 8F 7E

kurumi
kurumi's picture
Kamstrup

Hi,

Try to change authentication to Low. You need also set password.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

wikican
Hi,

thank you for fast reply,
I set authentication to Low as included picture.
And They are documented default password is '12345' and i wrote it.

and i tried authentication none, result was same.

what do you think? did They send to me wrong password?

kurumi
kurumi's picture
Kamstrup

Hi,

If pw is wrong, meter don't accept connection. Did you select "Refresh" under "File" menu after you connect with new authentication level.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

wikican
Hi,

Hi,
authentication has been set None. it connected, when i try to Read, i got error again.
I tried to connect again and "Refresh" this time. i got error again.

When i set authentication Low and set Password=12345, i can connect and read successfully. (but just two rows)
And after a minute i got error again.

kurumi
kurumi's picture
Keep alive

Hi,

Your meter is using smaller keep alive time.
Select "Manufacturers" under "Tools" menu. Select "Kamstrup" and "Edit".
Change Keepalive interval from 40 to 20.

Now keep alive is send every 20 second. That is keeping your meter happy.

What is your meter model?

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

wikican
Thank you Mikko,

Thank you Mikko,
i asked "where is the Cosem Objects", "why i couldn't read" it to Factory support.
I'm waiting their answer, i will inform you. thank you.

wikican
I have new informations.

Hello Mikko, i talked with manufacturer. asked 'why i couldn't get cosem object list and i got error' ...

They said,
Try using “parameter negotiating” and use info size 1010.

But i couldn't find anything about these settings on Gurux Director or software library. Do you have this settings? is it important for communicating and getting cosem list?

kurumi
kurumi's picture
Omnipower meter

Hi,

Now I get it. You try to read Omnipower. Is that correct? This is something that other meters don't require. This is on worklist. We are releasing a new version tomorrow, but that is not implemented yet.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

wikican
Yes it is Omnipower! Mikko.

Yes it is Omnipower! Mikko. Now i understood why i couldn't read any cosem package list.
May i wait your solution? Can you share with me something, beta or earlier version? Or anything. I am stucked.
Thank you for support.

kurumi
kurumi's picture
Omnipower meter

Hi,

Get GXDLMSDirector source codes and modify this:

public byte[][] AARQRequest()
{
//Add this line.
client.Limits.MaxInfoTX = client.Limits.MaxInfoRX = 1010;
return client.AARQRequest();
}

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

wikican
Thank you Mikko, i did it.

Thank you Mikko, i did it. But still i cannot read.

GXDLMSDirector 0.0.0.0
Log created 18:09:54
18:10:02 Initializing Network connection.
18:10:04 Send SNRM request.
7E A0 07 03 21 93 0F 01 7E
18:10:05 Received data
7E A0 20 21 03 73 73 98 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
18:10:05 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
18:10:05 Parsing UA reply succeeded.
18:10:05
7E A0 2B 03 21 10 FB AF 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 1E 1D FF FF C5 E4 7E
18:10:08 Received data
7E A0 37 21 03 30 6C 7C E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 BE 10 04 0E 08 00 06 5F 1F 04 00 00 10 10 03 EF 00 07 71 F7 7E
- Server max PDU size is 1007
18:10:08 Parsing AARE reply succeeded.
18:10:08 --- Collecting objects. ---
18:10:08 Collecting objects
7E A0 19 03 21 32 6F D8 E6 E6 00 C0 01 C1 00 0F 00 00 28 00 00 FF 02 00 91 53 7E
Invalid HDLC Frame ID.
Data send failed. Try to resend 1/3
Invalid HDLC Frame ID.
Data send failed. Try to resend 2/3
Invalid HDLC Frame ID.
18:10:40 Failed to receive reply from the device in given time.
7E A8 89 21 03 42 07 B9 E6 E7 00 C4 01 C1 00 01 0F 02 04 12 00 01 11 00 09 06 01 01 00 00 01 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 01 00 02 04 12 00 01 11 00 09 06 01 01 00 00 02 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 01 00 02 04 12 00 01 11 00 09 06 01 01 00 00 03 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 01 00 02 04 12 00 01 11 00 09 06 01 01 00 82 01 0F E6 7E
18:10:40 Received data
7E A8 89 21 03 42 07 B9 E6 E7 00 C4 01 C1 00 01 0F 02 04 12 00 01 11 00 09 06 01 01 00 00 01 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 01 00 02 04 12 00 01 11 00 09 06 01 01 00 00 02 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 01 00 02 04 12 00 01 11 00 09 06 01 01 00 00 03 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 01 00 02 04 12 00 01 11 00 09 06 01 01 00 82 01 0F E6 7E
System.Exception: GetObjects failed. Failed to receive reply from the device in given time.
konum: GXDLMSDirector.MainForm.ReadDevice(GXDLMSDevice dev) E:\TFS\DLMS\Development\MainForm.cs içinde: satır 1447
konum: GXDLMSDirector.MainForm.Read(Control sender, Object[] parameters) E:\TFS\DLMS\Development\MainForm.cs içinde: satır 1577
18:10:41 Disconnect request
7E A0 07 03 21 53 03 C7 7E
18:10:43 Received data
7E A0 07 21 03 1F 6B E9 7E
18:10:43 Unknown Error.

kurumi
kurumi's picture
Omnipower meter

Hi,

There is more info on our forum from this, but your meter is returning wrong HDLC frame type. Ask firmware update for your meter from the vendor.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

wikican
And its completed by your

And its completed by your support. Thank you Mikko.
with latest code and setting info size 1010. I could read objects and values.
Yes i have little error on there but, i think i can find solution for this..
Now omnipower readable, its good.

-------- Reading GXDLMSAssociationLogicalName 0.0.40.0.0.255 Ch. 0 Current association
.........
Error! GXDLMSAssociationLogicalName 0.0.40.0.0.255Index: 2 Belirtilen bağımsız değişken geçerli değerler aralığında değildi.
Parametre adı: Invalid attribute Index.
System.ArgumentOutOfRangeException: Belirtilen bağımsız değişken geçerli değerler aralığında değildi.
Parametre adı: Invalid attribute Index.
konum: Gurux.DLMS.ManufacturerSettings.GXAttributeCollection.Find(Int32 index) E:\TFS\Gurux\DLMNS.Net\Development\ManufacturerSettings\GXAttributeCollection.cs içinde: satır 316
konum: Gurux.DLMS.Objects.GXDLMSObject.GetAttribute(Int32 index, GXAttributeCollection attributes) E:\TFS\Gurux\DLMNS.Net\Development\Objects\GXDLMSObject.cs içinde: satır 479
konum: Gurux.DLMS.Objects.GXDLMSObject.SetAccess(Int32 index, AccessMode access) E:\TFS\Gurux\DLMNS.Net\Development\Objects\GXDLMSObject.cs içinde: satır 410
konum: Gurux.DLMS.Objects.GXDLMSAssociationLogicalName.UpdateAccessRights(GXDLMSObject obj, Object[] buff) E:\TFS\Gurux\DLMNS.Net\Development\Objects\GXDLMSAssociationLogicalName.cs içinde: satır 432
konum: Gurux.DLMS.Objects.GXDLMSAssociationLogicalName.Gurux.DLMS.Objects.IGXDLMSBase.SetValue(GXDLMSSettings settings, ValueEventArgs e) E:\TFS\Gurux\DLMNS.Net\Development\Objects\GXDLMSAssociationLogicalName.cs içinde: satır 607
konum: Gurux.DLMS.GXDLMSClient.UpdateValue(GXDLMSObject target, Int32 attributeIndex, Object value, List`1 columns) E:\TFS\Gurux\DLMNS.Net\Development\GXDLMSClient.cs içinde: satır 1072
konum: Gurux.DLMS.GXDLMSClient.UpdateValue(GXDLMSObject target, Int32 attributeIndex, Object value) E:\TFS\Gurux\DLMNS.Net\Development\GXDLMSClient.cs içinde: satır 1045
konum: Gurux.DLMS.Reader.GXDLMSReader.Read(GXDLMSObject it, Int32 attributeIndex) E:\TFS\Gurux\DLMNS.Net\Gurux.DLMS.Client.Example.Net\GXDLMSReader.cs içinde: satır 828
konum: Gurux.DLMS.Reader.GXDLMSReader.GetReadOut() E:\TFS\Gurux\DLMNS.Net\Gurux.DLMS.Client.Example.Net\GXDLMSReader.cs içinde: satır 644

kurumi
kurumi's picture
Omnipower meter

Hi,
Can you send trace to me by email? We can check this. I believe that meter is returning invalid attribute index and this is causing the error, but we can validate this.
You can find my email address here:
https://www.gurux.fi/AboutUs

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

wikican
an email was sent. Thank you.

an email was sent. Thank you.