A connection error occurs. By log file it is clear that the address of the server takes 1 byte:
7E A0 07 03 61 93 69 47 7E
But my address should occupy 2 bytes and the command should look like this:
7E A0 08 22 03 61 93 B3 AE 7E
How to specify in the example the dimension of the server address? In the program GXDLMDirector, the dimension is not specified and it works correctly.
Delphi Client Example
Hi,
Add client and server parameters:
-s 2177 -c 30
BR,
Mikko
Delphi Client Example
I've already tried, not connection:
Connected.
Send SNRM request:
Disconnecting from the meter.
Error! Source addresses do not match. It is 1. It should be 2177.
But in log file correct request:
<- 10:50:51\t7E A0 08 22 03 61 93 B3 AE 7E
Delphi Client Example
Here is the answer:
7E A0 1F 61 22 03 73 59 F1 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
In debug:
server = false
index = 32
readLogical = 0
readPhysical = 1
logical = 17
physical = 1
source = 1
target = 48
Delphi Client Example
Hi,
We have found an issue if address size is two bytes.
http://www.gurux.fi/node/6576
It's now fixed. Get the latest version.
BR,
Mikko