Hi,
During HDLC Test #1 in the conformance test, the client sends a Receiver Ready frame with SenderFrame = 0x10, but the meter does not respond. The test fails with “Receiver Ready failed.”
I'm using the following code:
reply.Clear();
dev.Comm.client.HdlcSettings.SenderFrame = 0x10;
byte[] rrFrame = dev.Comm.client.ReceiverReady(reply);
dev.Comm.ReadDataBlock(rrFrame, "HDLC test #1. Receiver Ready ", 1, tryCount, reply);
I’ve noticed that there are two overloads of the ReceiverReady() method, and one of them is marked as [Obsolete]:
[Obsolete]
public byte[] ReceiverReady(RequestTypes type)
public byte[] ReceiverReady(GXReplyData reply)
I'm currently using the non-obsolete one with GXReplyData, but still no response is received from the meter.
Could the issue be related to the HDLC state or the use of these methods?
Any suggestions or clarification would be appreciated.
Thanks!
Hi, The meter must reply…
Hi,
The meter must reply with RR or the test fails.
BR,
Mikko
Hello, Meter code is https:…
Hello,
Meter code is
https://github.com/Gurux/GuruxDLMS.c/tree/master/GuruxDLMSServerExample2
Tested by latest gxdlmsdirector.
11:13:36 Send SNRM request.
TX: 7E A0 07 03 21 93 0F 01 7E
11:13:36
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
11:13:36 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 62 1E 5D FF FF 88 55 7E
11:13:36
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
11:13:36 HDLC test #1. Disconnect request
TX: 7E A0 07 03 21 53 03 C7 7E
11:13:36
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
11:13:36 HDLC test #1. SNRM request
TX: 7E A0 07 03 21 93 0F 01 7E
11:13:36
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
11:13:36
SNRM request succeeded. MaxInfoLengthTransmit: 128 MaxInfoLengthReceive: 128 WindowSizeTransmit: 1 WindowSizeReceive: 1
11:13:36 HDLC test #1. Receiver Ready
TX: 7E A0 07 03 21 11 15 A6 7E
11:14:25 Failed to receive reply from the device in given time.
11:14:25
Receiver Ready failed.
11:14:25 HDLC test #1. Disconnect request
TX: 7E A0 07 03 21 53 03 C7 7E
11:14: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
11:14:25
<a href="https://www.gurux.fi/gurux.dlms.ctt.tests#hdlc1">Test #1 failed.</a>
11:14:25 HDLC test #2. SNRM request
TX: 7E A0 07 03 21 93 0F 01 7E
11:14: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
11:14:25
SNRM request succeeded. MaxInfoLengthTransmit: 128 MaxInfoLengthReceive: 128 WindowSizeTransmit: 1 WindowSizeReceive: 1
Hi, I took the latest code…
Hi,
I took the latest code from GitHub and tested this with it using the latest GXDLMSDirector, and run T_APPL_IDLE_N1, and the test passed.
Have you made any changes to the source code?
BR,
Mikko
Hi, I just git clone and…
Hi,
I just git clone and tested it.
May it cause from did not ignore something or obsolote function gxdlmsdirector ?
Hi, You don't need to ignore…
Hi,
You don't need to ignore anything. Is the T_APPL_IDLE_N1 the failed test?
Have you implemented the real-time clock?
BR,
Mikko
T_APPL_IDLE_N1 test passed…
T_APPL_IDLE_N1 test passed. however I am trying to all test.
I mean Running all test not…
I mean Running all test not just T_APPL_IDLE_N1
Hi, What is the test name…
Hi,
What is the test name that fails if it's not T_APPL_IDLE_N1?
BR,
Mikko