In anothers topics talks that Calling AP Title or system Title is just needed if Authorization is high or ciphered, but i have a meter that need it in AARQ request even if Authorization is low how can i configure the client for when i create an AARQ with auth low add Calling AP Title?
Ast first if there is a firmware update available for the meter. Your meter is not working correctly.
If there isn't and if you are reading meters only one manufacturer you need to modify the source code.
Find generateApplicationContextName method and from there //Add system title.
If you modify that the system title is appended.
This is not a good option. Better is if the meter manufacturer fixes this, but you can read the meter like this.
Testing this is part of DLMS certificate tests, so it's good to fix to pass the tests.
Hi,
Hi,
Ast first if there is a firmware update available for the meter. Your meter is not working correctly.
If there isn't and if you are reading meters only one manufacturer you need to modify the source code.
Find generateApplicationContextName method and from there //Add system title.
If you modify that the system title is appended.
This is not a good option. Better is if the meter manufacturer fixes this, but you can read the meter like this.
Testing this is part of DLMS certificate tests, so it's good to fix to pass the tests.
BR,
Mikko
Thanks You so much mikko,
Thanks You so much mikko, could You give me an example how to add this in the code? Because the meter manufacturer don't answer me
Hi,
Hi,
You need to get the source code:
https://github.com/Gurux/gurux.dlms.java
Then change this line
if (!settings.isServer()
&& (ciphered || settings.getAuthentication() == Authentication.HIGH_GMAC)
|| settings.getAuthentication() == Authentication.HIGH_SHA256
|| settings.getAuthentication() == Authentication.HIGH_ECDSA) {
if (cipher.getSystemTitle() == null || cipher.getSystemTitle().length == 0) {
...
}
something like this:
if (true)
{
...
}
Now the system title is always sent.
BR,
Mikko
thanks Mikko
thanks Mikko