Are you using serial port connection? Is your cable connected correctly?
Check from the Window settings that drivers are installed correctly for your USB2Serial port.
One of those is usually the reason.
I am reading dlms meter using uart. first i sent Initializing serial connection (7E A0 07 03 21 93 0F 01 7E). then i got response. What is the next command to send, What is command packet to read voltage , current and kwh data. Iam using high authentication dlms meter. Please explain command to read data.
Hi,
Hi,
I believe that you are using ANSI C++ or ANSI C. UART handling depends on the compiler.
You can check an example for Arduino.
https://github.com/Gurux/GuruxDLMS.c/blob/a0cc328ea7fbfa288b45d0e47e497…
BR,
Mikko
Hi,
Hi,
I am using ANSI C. How to compile dlmsclient example
Hi,
Hi,
It depends on what compiler you are using.
BR,
Mikko
i have one smart meter. how
i have one smart meter. how can read data from that. i am using GXDLMSDirector . But i dont know manufacturer. then what will do?
Hi,
Hi,
You can try to select the Indian standard as a manufacturer and make a connection. Try to connect without authentication first.
BR,
Mikko
Hi,
Hi,
Then it has given error message of 'failed to receive reply from device in a given time'.
Regards
Hi,
Hi,
Are you using serial port connection? Is your cable connected correctly?
Check from the Window settings that drivers are installed correctly for your USB2Serial port.
One of those is usually the reason.
BR,
Mikko
Hi,
Hi,
what is data format getting from dlms meter through serial port while using ANCI C code? Now I am getting continuous "AT "(40 54 0D) only.
Regards
Hi,
Hi,
AT is coming from the modem. You need to talk with DLMS meter. Try to communicate with the meter using the serial port.
BR,
Mikko
Hi
Hi
I am reading dlms meter using uart. first i sent Initializing serial connection (7E A0 07 03 21 93 0F 01 7E). then i got response. What is the next command to send, What is command packet to read voltage , current and kwh data. Iam using high authentication dlms meter. Please explain command to read data.
Thanks
Hi,
Hi,
DLMS is not a very simple standard. I strongly recommend that you use our open source libraries to read your values.
You can't send the same bytes several times to read the value. You must increase then packet sequence number and count CRC for each message.
BR,
Mikko
Hi,
Hi,
I used your open source libraries to read value. The DLMS meter used high authentication. So where will i put password in code.
Thanks
Hi,
Hi,
You can change the authentication level and password in the constructor.
Someting like:
GXDLMSClient cl = new GXDLMSClient(true, 16, 1, Authentication.Low, "PASSWORD", InterfaceType.HDLC);
You need also change the clent address from 16. If you are using Indian standard change it to 32.
BR,
Mikko
Hi Mikko, is there a Python…
Hi Mikko,
is there a Python Class to read the meter directly over UART (Not over Serial)?
Similar to the class serial, but direct for UART.
Many thanks
Frank