Hello, i tried to read Data object via GXDMLSDirector and it was okay. But when i tried to read it with .NET library it was exception "Exception response. "Service not allowed"-exception. Operation not possible".
GXDLMSData _data = new GXDLMSData("0.0.96.1.0.255");
_сlient.Read(_data, 2);
I did not read association, so i think is there missed parameters in GXDLMSData instance that i need specify?
Have you established the connection for the meter or do you try to read the values right away? Have you updated the connection settings for the correct ones?
I'm sorry for not answering for a long time. I tried to run the client you specified, but the same exception occurred. In the code below, the connection was successfully established, but when trying to read the association, it immediately throws an exception.
public void ReadAll(string outputFile)
{
try
{
InitializeConnection(); // OK
if (GetAssociationView(outputFile)) // "Service not allowed"-exception.
{
GetScalersAndUnits();
GetProfileGenericColumns();
}
GetReadOut();
GetProfileGenerics();
if (outputFile != null)
{
try
{
Client.Objects.Save(outputFile, new GXXmlWriterSettings() { UseMeterTime = true, IgnoreDefaultValues = false });
}
catch (Exception)
{
//It's OK if this fails.
}
}
}
finally
{
Close();
}
}
There is log from console:
Standard: DLMS
Send SNRM request.7E A0 0A 00 02 FE FF 61 93 BB C4 7E
TX: 10:40:34 7E A0 0A 00 02 FE FF 61 93 BB C4 7E
RX: 10:40:35 7E A0 23 61 00 02 10 3D 73 33 4D 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
Parsing UA reply.81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01
Parsing UA reply succeeded.
Send AARQ request
TX: 10:40:35 7E A0 4F 00 02 FE FF 61 10 8D 45 E6 E6 00 60 3E A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 14 5C 76 33 40 44 10 5B 2C 15 61 6A 1D 79 47 29 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 62 1E 5D FF FF 36 83 7E
RX: 10:40:37 7E A0 5B 61 00 02 10 3D 30 0C F2 E6 E7 00 61 4A A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 12 80 10 9D 02 BE 46 C6 59 D4 DE D9 B7 46 20 0C CD DE 34 BE 10 04 0E 08 00 06 5F 1F 04 00 00 1C 1D 00 80 00 07 2E 40 7E
Parsing AARE reply61 4A A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 12 80 10 9D 02 BE 46 C6 59 D4 DE D9 B7 46 20 0C CD DE 34 BE 10 04 0E 08 00 06 5F 1F 04 00 00 1C 1D 00 80 00 07
Conformance: BlockTransferWithGetOrRead, BlockTransferWithSetOrWrite, BlockTransferWithAction, Get, Set, SelectiveAccess, Action
Parsing AARE reply succeeded.
TX: 10:40:43 7E A0 1C 00 02 FE FF 61 32 3C 9D E6 E6 00 C0 01 C1 00 0F 00 00 28 00 00 FF 02 00 91 53 7E
RX: 10:40:44 7E A0 12 61 00 02 10 3D 52 27 34 E6 E7 00 D8 01 01 3C 43 7E
Disconnecting from the meter.
TX: 10:40:44 7E A0 0A 00 02 FE FF 61 53 B7 02 7E
RX: 10:40:45 7E A0 0A 61 00 02 10 3D 73 89 6F 7E
Exception response. "Service not allowed"-exception. Operation not possible
As you can see in the screenshot in the first message, the association was successfully read when first connected via GXDLMSDirector. I can't understand why it's not being read through the library.
Hi, Have you established the…
Hi,
Have you established the connection for the meter or do you try to read the values right away? Have you updated the connection settings for the correct ones?
Try to read the value with the client example first.
https://github.com/Gurux/Gurux.DLMS.Net/tree/master/Gurux.DLMS.Client.E…
I belive it will help you to get started.
BR,
Mikko
I'm sorry for not answering…
I'm sorry for not answering for a long time. I tried to run the client you specified, but the same exception occurred. In the code below, the connection was successfully established, but when trying to read the association, it immediately throws an exception.
public void ReadAll(string outputFile)
{
try
{
InitializeConnection(); // OK
if (GetAssociationView(outputFile)) // "Service not allowed"-exception.
{
GetScalersAndUnits();
GetProfileGenericColumns();
}
GetReadOut();
GetProfileGenerics();
if (outputFile != null)
{
try
{
Client.Objects.Save(outputFile, new GXXmlWriterSettings() { UseMeterTime = true, IgnoreDefaultValues = false });
}
catch (Exception)
{
//It's OK if this fails.
}
}
}
finally
{
Close();
}
}
There is log from console:
Standard: DLMS
Send SNRM request.7E A0 0A 00 02 FE FF 61 93 BB C4 7E
TX: 10:40:34 7E A0 0A 00 02 FE FF 61 93 BB C4 7E
RX: 10:40:35 7E A0 23 61 00 02 10 3D 73 33 4D 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
Parsing UA reply.81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01
Parsing UA reply succeeded.
Send AARQ request
TX: 10:40:35 7E A0 4F 00 02 FE FF 61 10 8D 45 E6 E6 00 60 3E A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 14 5C 76 33 40 44 10 5B 2C 15 61 6A 1D 79 47 29 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 62 1E 5D FF FF 36 83 7E
RX: 10:40:37 7E A0 5B 61 00 02 10 3D 30 0C F2 E6 E7 00 61 4A A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 12 80 10 9D 02 BE 46 C6 59 D4 DE D9 B7 46 20 0C CD DE 34 BE 10 04 0E 08 00 06 5F 1F 04 00 00 1C 1D 00 80 00 07 2E 40 7E
Parsing AARE reply61 4A A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 12 80 10 9D 02 BE 46 C6 59 D4 DE D9 B7 46 20 0C CD DE 34 BE 10 04 0E 08 00 06 5F 1F 04 00 00 1C 1D 00 80 00 07
Conformance: BlockTransferWithGetOrRead, BlockTransferWithSetOrWrite, BlockTransferWithAction, Get, Set, SelectiveAccess, Action
Parsing AARE reply succeeded.
TX: 10:40:43 7E A0 1C 00 02 FE FF 61 32 3C 9D E6 E6 00 C0 01 C1 00 0F 00 00 28 00 00 FF 02 00 91 53 7E
RX: 10:40:44 7E A0 12 61 00 02 10 3D 52 27 34 E6 E7 00 D8 01 01 3C 43 7E
Disconnecting from the meter.
TX: 10:40:44 7E A0 0A 00 02 FE FF 61 53 B7 02 7E
RX: 10:40:45 7E A0 0A 61 00 02 10 3D 73 89 6F 7E
Exception response. "Service not allowed"-exception. Operation not possible
As you can see in the…
As you can see in the screenshot in the first message, the association was successfully read when first connected via GXDLMSDirector. I can't understand why it's not being read through the library.