1. The cast from d.getValue() to byte[] was giving a cast error with Java 11; needed to change to casting to String and then use getBytes().
2. The LDN string is longer than 5 (13 bytes), so d.setValue(..) will produce a string longer than the 8 expected in the setSystemTitle method which throws an Exception; changed the format string to %05d.
The changes I made may have longer lasting effects that I'm not realizing, but thought I'd mention this. The server/meter did stand up after these changes.
It's possible that the LDN string can be something else than FLAG ID and system title. This is now fixed for the simulator and the system title is updated only if system title size is 8 bytes. Get the latest version from GitHub.
Hi,
Hi,
It's possible that the LDN string can be something else than FLAG ID and system title. This is now fixed for the simulator and the system title is updated only if system title size is 8 bytes. Get the latest version from GitHub.
BE,
Mikko
Sounds good. Still learning
Sounds good. Still learning about the particulars of DLMS/COSEM. BTW: Your attentiveness to these questions is incredible! Thx.