I'm using an italian standard meter and our meters don't need system title during get/set request:
(example:
7E A0 36 02 21 03 32 6C C0 E6 E6 00 DB 08 00 00 00 00 00 00 00 00 1E 30 80 00 00 55 0E 89 E1 E4 0C A5 EB BB 00 5C AF D9 A5 F3 B8 B1 E1 7D AF E0 23 37 B9 85 10 71 2C 7E ,
08 00 00 00 00 00 00 00 00 is my system title (08 is the lenght) and if I delete this and set 00 as substitute, I can decrypt this frame correctly.)
with this change I have another problem:
when I arrive at this point (inside ReadDlmsPacket() method)
//Loop until whole COSEM packet is received.
while (!clientSecured.GetData(p.Reply, reply, new GXReplyData())){ ...}
It always return reply.Error = 4, but I don't understand why, though settings are the same.
Because the system title is not coming from the meter you need to set manually.
In GXDLMSDirector select "Pre-established Application Associations" and set the system title of the meter.
Hi,
Hi,
If you set Standard to Italian system title is ignored.
In GXDLMSDirector you can set it on the meter's advanced tab.
GXDLMSSecureClient cl = new GXDLMSSecureClient();
cl.Standard = Standard.Italy;
BR,
Mikko
Thank you very much!
Thank you very much!
Now It's work.
Thanks
Hi Mr Mikko,
Hi Mr Mikko,
with this change I have another problem:
when I arrive at this point (inside ReadDlmsPacket() method)
//Loop until whole COSEM packet is received.
while (!clientSecured.GetData(p.Reply, reply, new GXReplyData())){ ...}
It always return reply.Error = 4, but I don't understand why, though settings are the same.
Thanks
Hi,
Hi,
Because the system title is not coming from the meter you need to set manually.
In GXDLMSDirector select "Pre-established Application Associations" and set the system title of the meter.
BR,
Mikko