Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. How To Read Meter Data From Smart Meter Through Uart

How to read meter data from smart meter through uart

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By sreeraj, 1 October, 2019
Forums
Gurux.Serial

I want to read meter data through uart. how to use this dlmsclientexample.
Please explain step by step

Profile picture for user Kurumi

Kurumi

5 years 7 months ago

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

sreeraj

5 years 7 months ago

Hi,

Hi,
I am using ANSI C. How to compile dlmsclient example

Profile picture for user Kurumi

Kurumi

5 years 7 months ago

Hi,

Hi,

It depends on what compiler you are using.

BR,
Mikko

sreeraj

5 years 7 months ago

In reply to Hi, by Kurumi

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?

Profile picture for user Kurumi

Kurumi

5 years 7 months ago

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

sreeraj

5 years 7 months ago

In reply to Hi, by Kurumi

Hi,

Hi,
Then it has given error message of 'failed to receive reply from device in a given time'.

Regards

Profile picture for user Kurumi

Kurumi

5 years 7 months ago

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

sreeraj

5 years 7 months ago

In reply to Hi, by Kurumi

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

Profile picture for user Kurumi

Kurumi

5 years 6 months ago

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

sreeraj

5 years 3 months ago

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

Profile picture for user Kurumi

Kurumi

5 years 3 months ago

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

sreeraj

5 years 3 months ago

In reply to Hi, by Kurumi

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

Profile picture for user Kurumi

Kurumi

5 years 3 months ago

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

Frank G

1 year 7 months ago

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

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 05/15/2025 - 16:26
    gurux.dlms.c 9.0.2505.1501
  • Wed, 05/14/2025 - 08:30
    gurux.dlms.c 9.0.2505.1401
  • Tue, 05/13/2025 - 10:00
    Gurux.DLMS.Android 2.0.15
  • Fri, 05/09/2025 - 13:03
    Gurux.DLMS.Python 1.0.181
  • Wed, 05/07/2025 - 16:09
    Gurux.DLMS.Android 2.0.14

New forum topics

  • Long reading ends with "Invalid frame ..." error.
  • Push listener example how it works + tcp stream issue
  • Problem with reading energymeter Star DTS27 via GXDLMSDirector
  • Receiver Ready Test Failed
  • Combining several meters' profile generic data into one
More

Who's new

  • ved224456
  • jai224456
  • neli001
  • Papapajikotryrt
  • MAJNU2
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin