I need to decrypt DLMS request and responses. Currently I am having this code
in onReceived method in GXDLMSBase class
GXDLMSTranslator t = new GXDLMSTranslator(TranslatorOutputType.STANDARD_XML);
t.setAuthenticationKey("eeslekakgsl06abc".getBytes());
t.setBlockCipherKey("eeslekakgsl06abc".getBytes());
t.setSystemTitle("ABCDEFGH".getBytes());
t.setSecurity(Security.NONE);
t.setComments(true);
LOGGER.trace(" RX for Meter: \t" + serverAddress + " String:\t " + t.messageToXml((byte[]) e.getData()));
You mentioned to set the dedicated key, but dedicated key is dynamically generated. So how that can be set at this place.
Hi,
Hi,
There are two options.
1. Use static dedicated key and then set dedicated key.
2. Parse AARQ message and update dedicated key from there.
BR,
Mikko
Hi Mikko,
Hi Mikko,
As I understand.
Point 1 - HES should be sending static dedicated key. Will not be able to change HES.
Point 2. Will check on that.
Regards,
Utkarsh