Hi,
i am using the gurux DLMS data collector, here i run the code with wirepas sdk, with wrapper mode after sending the aarq request, it will not wait to receive the data in the readDLMSPacket they placed the "reply->complete" as 0 and in do while loop there is a condition to read then it automatically break the while loop please suggest to receive the data from the mode , and every time we are receiving the aarq connect command only. and aarq failed is sent to sink via RF(ie.,app.c line no 340
static int readDLMSPacket(
gxByteBuffer* data,
gxReplyData* reply)
{
int ret = DLMS_ERROR_CODE_OK;
if (data->size == 0)
{
return DLMS_ERROR_CODE_OK;
}
reply->complete = 0;// commented raj
//Send data.
gxUart_write(data->data, data->size);
//Loop until packet is complete.
do
{
if (com_readSerialPort(0x7E) != 0)
{
return DLMS_ERROR_CODE_SEND_FAILED;
}
ret = cl_getData(&meterSettings, &frameData, reply);
if (ret != 0 && ret != DLMS_ERROR_CODE_FALSE)
{
break;
} // Usart_sendBuffer("app.c269 ", sizeof("app.c289 ") - 1); //coming while connected to meter ones only
} while (reply->complete == 0);
return ret;
}
regards
Santosh
Hi, Is the problem that you…
Hi,
Is the problem that you can send AARQ to the meter, but not receiving AARE that meter sends? I believe that the problem is that this example is using HDLC framing, and WRAPPER framing doesn't send the end of char that the application is waiting.
Let me know if this is the issue and I'll describe how to solve it.
BR,
Mikko
Hi Mikko, we found that the…
Hi Mikko,
we found that the issue is the delay in ms , here i am getting the issue is we are using wirepas dlms data collector in wrapper mode, first the aarq request is coming and later the response is also coming
aarq request
00 01 00 10 00 01 00 1F 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 5D FF FF
aarq response
00 01 00 01 00 10 00 2B 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 01 A3 05 A1 03 02 01 0D BE 10 04 0E 08 00 06 5F 1F 04 00 00 00 10 02 26 00 07
for the clock obis code request is 00 01 00 10 00 01 00 05 62 03 80 01 00 and response is also coming
in com close the close command (is not forming ) while we are sending to meter , i check these things by tapping (the tx line with ttl serial ) in between NIC card to meter.
the only thing is disconnect is not getting , please respond to this reply
Note:
1) i modified some parameters in the below link to get the wrapper mode instead of HDLC
2) in this link i used this code to check nic cards https://github.com/Gurux/GuruxDLMS.c/tree/master/GuruxDLMSDataCollector…
Regards
Santosh