_dlmsSettings.Media = new GXNet() {
HostName =ipAddress,
Port = 502,
Protocol = NetworkType.Tcp,
Server = false,
Trace = TraceLevel.Verbose,
};
Send SNRM request.7E A0 07 03 15 93 CD D0 7E
Info: Receive-Send Waiting Time: 15 sn.
TX: 10:16:51 7E A0 07 03 15 93 CD D0 7E
TX: 10:17:06 7E A0 07 03 15 93 CD D0 7E
TX: 10:17:21 7E A0 07 03 15 93 CD D0 7E
Failed to receive reply from the device in given time.
Your client address is wrong. It should be 0x10. Your server address is also different. You can count it like this:
_dlmsSettings.Client.ServerAddress = GXDLMSClient.GetServerAddress(0x3000, 1);
Hi,
Hi,
Your client address is wrong. It should be 0x10. Your server address is also different. You can count it like this:
_dlmsSettings.Client.ServerAddress = GXDLMSClient.GetServerAddress(0x3000, 1);
Check also your wait time.
BR,
Mikko
Hi Mikko,
Hi Mikko,
I tried it again but still not connecting.
_dlmsSettings = new DLMS.ProtocolProvider.Settings();
_dlmsSettings.Trace = TraceLevel.Verbose;
_dlmsSettings.Client.Authentication = Authentication.None;
_dlmsSettings.Client.Ciphering.Security = (byte)Security.None;
_dlmsSettings.Iec = false;
_dlmsSettings.Client.UseLogicalNameReferencing = true;
_dlmsSettings.Client.ClientAddress = 0x10; // 16;
_dlmsSettings.Client.InterfaceType = InterfaceType.HDLC;
_dlmsSettings.Client.ServerAddress = GXDLMSClient.GetServerAddress(1, 3000);
// GetServerAddress(int logicalAddress, int physicalAddress); Also tried the other way around.
DLMS v1.4 - Send SNRM request.7E A0 0A 00 02 2E 71 21 93 52 66 7E
DLMS v1.4 - Info: Receive-Send Waiting Time: 15 sn.
DLMS v1.4 - TX: 12:15:21 7E A0 0A 00 02 2E 71 21 93 52 66 7E
DLMS v1.4 - TX: 12:15:36 7E A0 0A 00 02 2E 71 21 93 52 66 7E
DLMS v1.4 - TX: 12:15:51 7E A0 0A 00 02 2E 71 21 93 52 66 7E
Failed to receive reply from the device in given time.
It worked with GXDLMSClient
It worked with GXDLMSClient.GetServerAddress(1, 12288);
12288 is the number replaced by 3000 when I unchecked hex on GXDLMSDirector.
Hi Aaron,
Hi Aaron,
Thank you for the information. I forget to add 0x. I'll add it now.
BR,
Mikko