However, listener doesn't parse the clock inside the Profile Generic object. Please see below.
(I believe "B+QKBQEKAAAA/8SA" part is the clock inside Profile Generic)
I am not sure about the null fields, perhaps the meter doesn't push it because it is clock.
The problem here is "B+QKBQEKAAAA/8SA" part. How can I parse it?
You need to add capture object for profile generic. You can add them to the push message or to the code.
Now capture objects are unknown so parsed doesn't know what to do.
Something like this:
GXDLMSProfileGeneric pg = new GXDLMSProfileGeneric();
client.Objects.Add(pg);
pg.CaptureObjects.Add(new GXKeyValuePair<GXDLMSObject, GXDLMSCaptureObject>(new GXDLMSClock(), new GXDLMSCaptureObject(2, 0)));
//Add other objects...
Omg the method called client.ParsePushObjects is a miracle! I am very surprised how it understands and parse capture objects of the gxdlmsprofilegeneric object.
You don't need the necessary sent a push object list of PushSetup. You can just send the logical name of the Push setup if you add a push object list manually as you did with profile generic.
It's also good to send Logical Device Name as a first parameter so you can identify the meter.
Any idea?
Any idea?
Hi,
Hi,
Can you add raw hex data that the meter sends in push message here? We can check this on Monday.
BR,
Mikko
2020-10-17 12:34:29.3580 -
Here is the full log.
[Trace removed]
Hi Mikko,
Hi Mikko,
Have you had any chance to have a look at it already?
Hi Aaron,
Hi Aaron,
You need to add capture object for profile generic. You can add them to the push message or to the code.
Now capture objects are unknown so parsed doesn't know what to do.
Something like this:
GXDLMSProfileGeneric pg = new GXDLMSProfileGeneric();
client.Objects.Add(pg);
pg.CaptureObjects.Add(new GXKeyValuePair<GXDLMSObject, GXDLMSCaptureObject>(new GXDLMSClock(), new GXDLMSCaptureObject(2, 0)));
//Add other objects...
BR,
Mikko
Omg the method called client
Omg the method called client.ParsePushObjects is a miracle! I am very surprised how it understands and parse capture objects of the gxdlmsprofilegeneric object.
Hi,
Hi,
You don't need the necessary sent a push object list of PushSetup. You can just send the logical name of the Push setup if you add a push object list manually as you did with profile generic.
It's also good to send Logical Device Name as a first parameter so you can identify the meter.
BR,
Mikko