I am new to DLMS protocol. I want to learn DLMS with arduino stuffs.
I have downloaded DLMS c code and able to build and flash it to arduino mega2560 with arduino version1.8.16. I have not changed anything in source file (client.ino). Now I want to connect arduino to GXDLMSDirector, So I created a device with random meter and configured serial communication in GXDLMSDirector.
I am getting 0x00 on UART0 (9600 baud) and getting message as ""DATA SEND FAILED" on traces UART1 (115200 baud).
Please help me to get response on UART0 (DLMS interface uart). Let me know if something I am doing wrong at arduino side or GXDLMSDirector side configuration. Thanks in advance.
The client code will read the existing client. If you want to connect with GXDLMSDirector you need to make a server example. Build the server example and try again.
In the real sense, I want to read DLMS related data from physical energy meter with Arduino. As per my understanding, in this scenario, Arduino will be the client and Energy meter will be the server. That is why I programmed my Arduino board with client code.
Also I have a curiosity about GXDLMSDirector, whether it can be act as energy meter? so I can use this utility/tool to simulate energy meter(server).
Please let me know your thoughts and correct me if I am wrong.
Hi,
Hi,
The client code will read the existing client. If you want to connect with GXDLMSDirector you need to make a server example. Build the server example and try again.
You can read this:
http://gurux.fi/Arduino
BR,
Mikko
Thank you Mikko for your
Thank you Mikko for your reply.
In the real sense, I want to read DLMS related data from physical energy meter with Arduino. As per my understanding, in this scenario, Arduino will be the client and Energy meter will be the server. That is why I programmed my Arduino board with client code.
Also I have a curiosity about GXDLMSDirector, whether it can be act as energy meter? so I can use this utility/tool to simulate energy meter(server).
Please let me know your thoughts and correct me if I am wrong.
Regards,
Ajit
Hi,
Hi,
GXDLMSDirector can only work as a client. You can use a server example to server and communicate with it.
https://github.com/Gurux/Gurux.DLMS.Net/tree/master/Gurux.DLMS.Server.E…
Start example server with parameters:
-S COM_YOUR_SERIAL_PORT -t Verbose
BR,
Mikko