As per the dlms datagateway source , the gateway will communicate with the smart meter using serial port (HDLC) communication. Is it possible to communicate with the smart meters using TCP/IP (Wrapper) communication using ethernet?
You need to establish the TCP/IP connection to the meter in com_open.
Now it's using serial port. Then change
cl_init(&clientCon.settings, 1, 16, 1, DLMS_AUTHENTICATION_NONE, NULL, DLMS_INTERFACE_TYPE_HDLC);
Hi, Yes, it's possible. You…
Hi,
Yes, it's possible. You need just change interface type from HDLC to WRAPPER and establish the TCP/IP connection to the meter.
BR,
Mikko
Hi , Thank you for the reply…
Hi ,
Thank you for the reply.
Where I need to do the required changes? Can you share the changes?
Hi, You need to establish…
Hi,
You need to establish the TCP/IP connection to the meter in com_open.
Now it's using serial port. Then change
cl_init(&clientCon.settings, 1, 16, 1, DLMS_AUTHENTICATION_NONE, NULL, DLMS_INTERFACE_TYPE_HDLC);
to this:
cl_init(&clientCon.settings, 1, 16, 1, DLMS_AUTHENTICATION_NONE, NULL, DLMS_INTERFACE_TYPE_WRAPPER);
The used settings depend on your meter.
BR,
Mikko
Thank you for the response…
Thank you for the response. It helped me a lot.