I sent notification through sendPush() method on server example.
When I added some empty objects on GXDLMSPushSetup, it worked perfectlry.
It can be also translated with Gurux DLMS Translator on GXDLMSDirector.
However, when I added profile generic object (ln : 1.0.99.1.0.255), it didn't seems to be translated notification body.
It seems that there is an invalid byte in the data. Are you using malloc in GXDLMSPushSetup or is this the original example where you have added the profile generic object?
Hi,
Hi,
It seems that there is an invalid byte in the data. Are you using malloc in GXDLMSPushSetup or is this the original example where you have added the profile generic object?
BR,
Mikko
Thanks for your kindness.
Thanks for your kindness.
I added two objects for the notification test, at last of init() method in GXDLMSBase.java.
(using example codes on github.)
1. I added a new GXDLMSProfileGeneric object and add rows like this :
GXDLMSProfileGeneric pg = new GXDLMSProfileGeneric("1.0.99.1.0.255");
pg.addCaptureObject(new GXDLMSData("1.0.128.0.11.255"), 2, 0);
pg.addCaptureObject(new GXDLMSRegister("1.1.1.8.0.255"), 2, 0);
pg.addCaptureObject(new GXDLMSRegister("1.1.5.8.0.255"), 2, 0);
pg.addCaptureObject(new GXDLMSRegister("1.1.8.8.0.255"), 2, 0);
pg.addCaptureObject(new GXDLMSRegister("1.1.9.8.0.255"), 2, 0);
pg.addCaptureObject(new GXDLMSClock("0.0.1.0.0.255"), 2, 0);
pg.addCaptureObject(new GXDLMSData("0.0.97.97.4.255"), 2, 0);
pg.addRow(new Object[]{2992, 4351, 67, 2096, 8781, new GXDateTime("2022-05-23 12:00:00"), "000011000000000000000000"});
getItems().add(pg);
2. And I added a new GXDLMSPushSetup object like this :
GXDLMSPushSetup push = new GXDLMSPushSetup("0.2.25.9.0.255");
push.setDestination("127.0.0.1:4059");
push.getPushObjectList().add(new GXSimpleEntry<GXDLMSObject, GXDLMSCaptureObject>(push, new GXDLMSCaptureObject(2, 0)));
push.getPushObjectList().add(new GXSimpleEntry<GXDLMSObject, GXDLMSCaptureObject>(pg, new GXDLMSCaptureObject(2, 0)));
getItems().add(push);
3. Finally, I called sendPush() method using push object.
I don't know why exist invalid byte in the data.
Please let me know If I had something wrong.
Thanks in advance.
Hyunse Cho
wooreeinfo
Hi Hyunse Cho,
Hi Hyunse Cho,
Profile generic buffer was causing this problem. This is fixed for the new Java version. Get the latest version and let me know if you have problems.
BR,
Mikko
Thanks for the reply.
Thanks for the reply.
I forgot to comment that was solved.
It solved via "Something weird in notification body" post's reply.
It works perfectly now.