Hello, I’m trying to connect to a meter using GXDLMSDirector.
I can successfully connect to the meter using a probe with the following configuration:
- Interface: HDLC with Mode E
- Logical Server Address: 1
- Client Address: 1
- Physical Server Address: 16
- Authentication: Low
- Password: 00000000
However, I cannot connect to the meter over TCP/IP.
1. HDLC with Mode E over TCP/IP
I first tried using HDLC with Mode E over the network. I received the following:
15:44:00 Initializing Network connection.
15:44:01 Send SNRM request.
7E A0 08 02 21 03 93 86 C1 7E
15:44:06 Data send failed. Try to resend 1/3
15:44:11 Data send failed. Try to resend 2/3
15:44:16 Failed to receive reply from the device in given time.
15:44:16 Disconnect request
7E A0 08 02 21 03 53 8A 07 7E
15:44:21 Data send failed. Try to resend 1/3
15:44:26 Data send failed. Try to resend 2/3
15:44:31 Failed to receive reply from the device in given time.
System.TimeoutException:
Failed to receive reply from the device in given time.2. WRAPPER over TCP/IP
I then tried using the WRAPPER interface with:
- IP: 105.198.230.49
- Port: 4059
- Client Address: 1
- Logical Server Address: 1
- Physical Server Address: 16
- Authentication: Low
- Password: 00000000
The TCP port is reachable (Test-NetConnection succeeds), but the DLMS association is rejected:
15:54:44 Initializing Network connection.
15:54:44 Send AARQ request.
00 01 00 01 00 10 00 38
60 36
A1 09 06 07 60 85 74 05 08 01 01
8A 02 07 80
8B 07 60 85 74 05 08 02 01
AC 0A 80 08 30 30 30 30 30 30 30 30
BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 62 1E 5D FF FF
15:54:46
00 01 00 10 00 01 00 2B
61 29
A1 09 06 07 60 85 74 05 08 01 01
A2 03 02 01 01
A3 05 A2 03 02 01 01
BE 10 04 0E 08 00 06 5F 1F 04 00 00 1E 1D 00 00 00 07
Gurux.DLMS.GXDLMSException:
Connection is permanently rejected. No reason given.Since the probe connection works with the same DLMS addresses, authentication, and password, I’m wondering whether there is a different configuration required for TCP/IP, such as a different client/server address, interface setting, or WRAPPER-specific configuration.
Is there anything I need to change in the GXDLMSDirector configuration to connect to the meter over TCP/IP?