Hello, I am new to DLMS and trying to connect to a meter using the Gurux DLMS library via GPRS. Here is the process I am following according to meter document:
1. The meter will initiate a TCP connection to our server's TCP port.
2. Once connected via TCP, we will send an AARQ (Association Request).
3. The meter will respond with an AARE (Association Response).
4. After a successful connection, we will read meter data and control the valve (open/close).
From the Gurux library examples, it seems that we typically need to provide the meter's IP and port to establish a connection. However, in this scenario, we do not have the meter's IP and port, as the meter itself initiates the connection. Additionally, we need to use encryption (AES-128) and authentication keys for communication.
Could you please guide us on how to handle this setup? It would also be extremely helpful if you could provide sample code snippets for both the server and client in this scenario.
Hi, The DLMS term for this…
Hi,
The DLMS term for this is auto connect.
https://gurux.fi/Gurux.DLMS.Objects.GXDLMSAutoConnect
Gurux.DLMS.AMI does what you try to do. Check OnOnReceived:
https://github.com/Gurux/Gurux.DLMS.AMI4/blob/77dbfa56684c1d8484f0a9ba6…
BR,
Mikko