Hi Team
Please guide me to parse received meter data which is pushed by meter on port 4059.
I am using below code, but getting error as invalid client.
private GXDLMSSecureClient client = new GXDLMSSecureClient(true, 0x10, 1, Authentication.None, null, InterfaceType.WRAPPER);
void OnReceived(object sender, Gurux.Common.ReceiveEventArgs e)
{
try
{
lock (this)
{
if (trace)
{
Console.WriteLine("Data from client {0}: {1}", e.SenderInfo, GXCommon.ToHex((byte[])e.Data, true));
// Getting below response in e.data
00 01 00 01 00 40 00 67 DB 08 5A 45 4E 31 35 36 39 32 5C 30 00 00 DC 6C C4 E5 F8 D6 EC 21 54 59 EC DA 99 C9 2F 3E BF A5 26 9B B7 6B AB A8 81 07 DA DF C6 E9 E4 F7 84 D8 FE 17 07 E5 B9 EF 56 9B 32 C5 C8 BD 3C CA 68 94 6F 8F 60 C6 1D 34 E6 8A 34 BA F3 26 FB 30 99 22 7A 23 00 51 06 69 54 72 33 23 97 B2 57 8A 96 CA 03 80 52 7E 3F 36 AE
}
byte[] data = (byte[])e.Data;
GXReplyData info = new GXReplyData();
client.GetData(data, info); // getting error here
I am using ZenMeter's single phase meter.
I have tried different client address and server address, but nothing is working.
Thanks,
Mahaveer
Hi, Your data is encrypted…
Hi,
Your data is encrypted. You need to set the block cipher key and authentication key to the client.
client.Ciphering.BlockCipherKey = METER BLOCK CIPHER KEY;
client.Ciphering.AuthenticationKey= METER AUTHENTICATION KEY;
BR,
Mikko
Hi Mikko, Thanks for the…
Hi Mikko,
Thanks for the support, now it's working fine.