we are using android library. library works with non ciphered meter whereas with ciphered meter we are not getting response for assocation request. please correct the flow if we are doing mistake. attached tx and rx log along with code snippet.
You don't call getApplicationAssociationRequest after you parse the AARE reply. Add this:
// Parse reply.
mClient.parseAareResponse(reply.getData());
reply.clear();
// Get challenge Is HLS authentication is used.
if (mClient.getIsAuthenticationRequired()) {
for (byte[] it : mClient.getApplicationAssociationRequest()) {
readDLMSPacket(it, reply);
}
mClient.parseApplicationAssociationResponse(reply.getData());
}
Hi,
Hi,
You don't call getApplicationAssociationRequest after you parse the AARE reply. Add this:
// Parse reply.
mClient.parseAareResponse(reply.getData());
reply.clear();
// Get challenge Is HLS authentication is used.
if (mClient.getIsAuthenticationRequired()) {
for (byte[] it : mClient.getApplicationAssociationRequest()) {
readDLMSPacket(it, reply);
}
mClient.parseApplicationAssociationResponse(reply.getData());
}
BR,
Mikko
Hi Mikko,
Hi Mikko,
It working now after getting the latest library.
Thanks
Mohanraj