iam testing a meter for conformance test iam gettint case failed for HDLC
Starting to execute test for Smart_Meter.
Starting HDLC tests #1.
Receiver Ready failed.Failed.
<a href="https://www.gurux.fi/gurux.dlms.ctt.tests#hdlc1">Test #1 failed.</a>Starting HDLC tests #2.
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: indexSystem.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at Gurux.DLMS.Objects.GXDLMSObjectCollection.get_Item(Int32 index)
at GXDLMSDirector.GXHDLCConformanceTests.T_HDLC_FRAME_P2(GXConformanceTest test, GXConformanceSettings settings, GXDLMSDevice dev, GXOutput output, Int32 tryCount)
at GXDLMSDirector.GXHDLCConformanceTests.HdlcTests(GXConformanceTest test, GXConformanceSettings settings, GXDLMSDevice dev, GXOutput output, Int32 tryCount)
at GXDLMSDirector.GXConformanceTests.ReadXmlMeter(Object data)
Hi, Your meter is returning…
Hi,
Your meter is returning an invalid reply and that can be parsed.
BR,
Mikko
Hello sir, Thanks for a…
Hello sir, Thanks for a quick response, when we exclude conformance test from HDLC #1 and HDLC #2 we are getting this response please help us to resolve our issue regarding conformance test .Starting to execute test for s1.
Starting HDLC tests #3.
Ignored.
Starting HDLC tests #4.
HDLC Illecal frame test (Opening flag missing).
HDLC Illecal frame test (Closing flag missing).
HDLC Test #4. HDLC Illecal frame test (Both flags are missing).
Passed.
Starting HDLC tests #5.
Passed.
Starting HDLC tests #6.
Passed.
Starting HDLC tests #7.
Passed.
Starting HDLC tests #8.
Passed.
Starting HDLC tests #9.
Passed.
Starting HDLC tests #10.
Passed.
Starting HDLC tests #11.
Passed.
Starting HDLC tests #12.
Passed.
Starting HDLC tests #13.
Passed.
Starting HDLC tests #14.
Passed.
Starting HDLC tests #15.
Failed.
<a href="https://www.gurux.fi/gurux.dlms.ctt.tests#hdlc15">Test #15 failed.</a>Starting HDLC tests #16.
Passed.
Starting HDLC tests #17.
Passed.
Starting HDLC tests #18.
Passed.
Starting HDLC tests #19.
Passed.
Starting HDLC tests #20.
Passed.
Starting HDLC tests #21.
Passed.
Starting HDLC tests #101.
Passed.
Starting T_APPL_IDLE_N1 test.
T_APPL_IDLE_N1 test failed.. Exception response returned Exception response. "Service not allowed"-exception. Operation not possible.Failed.
<a href="https://www.gurux.fi/gurux.dlms.ctt.tests#T_APPL_IDLE_N1">T_APPL_IDLE_N1 test failed.</a>Starting T_APPL_OPEN_1 test.
Failed.
<a href="https://www.gurux.fi/gurux.dlms.ctt.tests#T_APPL_OPEN_1">T_APPL_OPEN_1 test failed.</a>Starting T_APPL_OPEN_3 test.
Starting T_APPL_IDLE_N1 test.
T_APPL_IDLE_N1 test failed.. Timeout.Starting APPL_OPEN_4 test.
Passed.
Starting T_APPL_OPEN_5 test.
Starting T_APPL_OPEN_5 test.
Passed.
Starting T_APPL_OPEN_6 test.
T_APPL_DATA_LN_N6 test failed.. Input string was not in a correct format.Starting T_APPL_OPEN_6 test.
Starting T_APPL_OPEN_6 test.
T_APPL_OPEN_6 test failed.. Timeout.Failed.
<a href="https://www.gurux.fi/gurux.dlms.ctt.tests#T_APPL_OPEN_6">T_APPL_OPEN_6 test failed.</a>Starting T_APPL_OPEN_7 test.
Starting T_APPL_OPEN_7 test.
Passed.
Starting T_APPL_OPEN_9 test.
Starting T_APPL_OPEN_9 test.
Passed.
Starting T_APPL_OPEN_11 test.
Failed.
<a href="https://www.gurux.fi/gurux.dlms.ctt.tests#T_APPL_OPEN_11">T_APPL_OPEN_11 failed.</a>Starting T_APPL_OPEN_12 test.
Failed.
<a href="https://www.gurux.fi/gurux.dlms.ctt.tests#T_APPL_OPEN_12">T_APPL_OPEN_12 failed.</a>Starting T_APPL_OPEN_14 test.
Failed.
<a href="https://www.gurux.fi/gurux.dlms.ctt.tests#T_APPL_OPEN_14">T_APPL_OPEN_14 test failed.</a>Starting T_APPL_DATA_LN_N1 tests.
T_APPL_DATA_LN_N1 failed. DisconnectMode expected, but meter returns Ok.Failed.
<a href="https://www.gurux.fi/gurux.dlms.ctt.tests#T_APPL_DATA_LN_N1">T_APPL_DAT… failed.</a>Starting T_APPL_DATA_LN_N3 tests.
T_APPL_DATA_LN_N3 test failed.. Failed to receive reply from the device in given time.Failed.
<a href="https://www.gurux.fi/gurux.dlms.ctt.tests#T_APPL_DATA_LN_N3">T_APPL_DAT… failed.</a>Starting T_APPL_DATA_LN_N4 tests.
Failed.
<a href="https://www.gurux.fi/gurux.dlms.ctt.tests#T_APPL_DATA_LN_N4">T_APPL_DAT… failed.</a>Starting APPL_REL_P1 tests.
Passed.
AssociationLogicalName 0.0.40.0.0.255:2 AssociationLogicalName 0.0.40.0.0.255:3 {16, 1}
AssociationLogicalName 0.0.40.0.0.255:4 2 16 756 5 8 1 LogicalName
AssociationLogicalName 0.0.40.0.0.255:5 Get 512 512 6 0
AssociationLogicalName 0.0.40.0.0.255:6 2 16 756 5 8 2 None
AssociationLogicalName 0.0.40.0.0.255:7
AssociationLogicalName 0.0.40.0.0.255:8 Associated
AssociationLogicalName 0.0.40.0.1.255:2 AssociationLogicalName 0.0.40.0.1.255:3 {16, 1}
AssociationLogicalName 0.0.40.0.1.255:4 2 16 756 5 8 1 LogicalName
AssociationLogicalName 0.0.40.0.1.255:5 Get 512 512 6 0
AssociationLogicalName 0.0.40.0.1.255:6 2 16 756 5 8 2 None
AssociationLogicalName 0.0.40.0.1.255:7
AssociationLogicalName 0.0.40.0.1.255:8 Associated
Clock 0.0.1.0.0.255:2
Clock 0.0.1.0.0.255:3 330
Clock 0.0.1.0.0.255:4 Ok
Clock 0.0.1.0.0.255:5
Clock 0.0.1.0.0.255:6
Clock 0.0.1.0.0.255:7 0
Clock 0.0.1.0.0.255:8 False
Clock 0.0.1.0.0.255:9 Crystal
Data 0.0.42.0.0.255:2 ARW-LT10-60Ver01
Data 0.0.43.1.2.255:2 0
Data 0.0.43.1.3.255:2 0
Data 0.0.43.1.4.255:2 0
Data 0.0.43.1.5.255:2 0
Data 0.0.96.1.0.255:2 FF FF FF FF FF FF FF
15.30.03 Send SNRM request.
TX: 7E A0 07 03 21 93 0F 01 7E
15.30.03
RX: 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
15.30.03
RX: 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
15.30.03 Empty service test failed. Invalid conformance.
Empty service test failed. Invalid conformance.15.30.04 Send SNRM request.
TX: 7E A0 07 03 21 93 0F 01 7E
15.30.04
RX: 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
15.30.04 Send AARQ request.
TX: 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 00 10 FF FF 59 76 7E
15.30.04
RX: 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 00 10 02 00 00 07 1C EA 7E
15.30.04 Read service test.
TX: 7E A0 11 03 21 32 B7 3D E6 E6 00 05 01 02 FA 00 50 12 7E
15.30.05
RX: 7E A0 0F 21 03 52 52 95 E6 E7 00 D8 01 01 3C 43 7E
15.30.05 Read service test failed. OperationNotPossible
15.30.05 Write service test skipped. There are no writable objects.
15.30.05 Attribute0SupportedWithGet service test
TX: 7E A0 19 03 21 54 5F DE E6 E6 00 C0 01 C1 00 01 00 00 2A 00 00 FF 00 00 A2 B3 7E
15.30.05
RX: 7E A0 11 21 03 74 85 BC E6 E7 00 C4 01 C1 01 0B 3B 0E 7E
15.30.05 Attribute0SupportedWithGet service test failed. Access Error : Device reports a unavailable object.
Attribute0SupportedWithGet service test failed. Access Error : Device reports a unavailable object.15.30.05 BlockTransferWithGetOrRead service test
TX: 7E A0 1F 03 21 76 D5 97 E6 E6 00 C0 01 C1 00 08 00 00 01 00 00 FF 01 00 01 00 00 00 01 00 F5 1F 7E
15.30.05
RX: 7E A0 18 21 03 96 FA 81 E6 E7 00 C4 01 C1 00 09 06 00 00 01 00 00 FF 86 18 7E
15.30.05 BlockTransferWithGetOrRead service failed.
BlockTransferWithGetOrRead service failed.15.30.05 BlockTransferWithSetOrWrite service test skipped. There are no writable objects.
15.30.05
TX: 7E A0 24 03 21 98 42 15 E6 E6 00 C0 03 C1 02 00 01 00 00 2A 00 00 FF 01 00 00 01 00 00 2B 01 02 FF 01 00 6A 20 7E
15.30.05
RX: 7E A0 0F 21 03 B8 06 DD E6 E7 00 D8 01 01 3C 43 7E
15.30.05 MultipleReferences service test succeeded. OperationNotPossible
15.30.05 Set service test skipped. There are no writable objects.
15.30.05 SelectiveAccess service test skipped. There are no profile generic objects to test.
15.30.05 Action service test
TX: 7E A0 19 03 21 BA 2F D0 E6 E6 00 C0 01 C1 00 01 00 00 60 01 00 FF 01 00 E1 8A 7E
15.30.05
RX: 7E A0 18 21 03 DA 92 09 E6 E7 00 C4 01 C1 00 09 06 00 00 60 01 00 FF 05 C7 7E
15.30.05 Writing object 0.0.96.1.0.255, interface Data
TX: 7E A0 21 03 21 DC 35 7F E6 E6 00 C1 01 C1 00 01 00 00 60 01 00 FF 01 00 09 06 00 00 60 01 00 FF 87 7A 7E
15.30.10 Data send failed. Try to resend 1/3
15.30.10
RX: 7E A0 07 21 03 F1 1B E7 7E
15.30.10 Reading object 0.0.96.1.0.255, interface Data
TX: 7E A0 19 03 21 FE 0F D4 E6 E6 00 C0 01 C1 00 01 00 00 60 01 00 FF 01 00 E1 8A 7E
15.30.15 Data send failed. Try to resend 1/3
15.30.20 Data send failed. Try to resend 2/3
15.30.25 Failed to receive reply from the device in given time.
15.30.25 Action service test succeeded. Meter didn't reply.
15.30.25 Disconnect request
TX: 7E A0 07 03 21 53 03 C7 7E
15.30.25
RX: 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
if ((reply.FrameId & 0xF) !=…
if ((reply.FrameId & 0xF) != 1)
{
GXConformanceTests.AddError(test, dev, output.Errors, "<a href=\"https://www.gurux.fi/gurux.dlms.ctt.tests#hdlc1\">Test #1 failed</a>. Send sequence number is not 0");
passed = false;
}
if ((reply.FrameId & 0x10) != 0x10)
{
GXConformanceTests.AddError(test, dev, output.Errors, "<a href=\"https://www.gurux.fi/gurux.dlms.ctt.tests#hdlc1\">Test #1 failed</a>. P/F is 0");
passed = false;
}
if ((reply.FrameId & 0xF0) != 0x10)
{
GXConformanceTests.AddError(test, dev, output.Errors, "<a href=\"https://www.gurux.fi/gurux.dlms.ctt.tests#hdlc1\">Test #1 failed</a>. Receive sequence number is not 0");
passed = false;
}