Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

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

Breadcrumb

  1. Home
  2. Problem Reading With Serial Number

Problem reading with Serial Number

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 jesusvergara , 30 December, 2018
Forums
Gurux DLMS for Java

Hi all,

I'm trying to gather data from a prometer secure 100 meter. I have a problem because when I'm using GuruxDlmsSample, can see the following help:

GuruxDlmsSample -h [Meter IP Address] -p [Meter Port No] -c 16 -s 1 -r SN
-h host name or IP address.
-p port number or name (Example: 1000).
-S serial port.
-i IEC is a start protocol.
-a Authentication (None, Low, High).
-P Password for authentication.
-c Client address. (Default: 16)
-s Server address. (Default: 1)
-n Server address as serial number.
-r [sn, sn] Short name or Logican Name (default) referencing is used.
-w WRAPPER profile is used. HDLC is default.
-t [Error, Warning, Info, Verbose] Trace messages.
-g "0.0.1.0.0.255:1; 0.0.1.0.0.255:2" Get selected object(s) with given attribute index.
Example:
Read LG device using TCP/IP connection.
GuruxDlmsSample -r SN -c 16 -s 1 -h [Meter IP Address] -p [Meter Port No]
Read LG device using serial port connection.
GuruxDlmsSample -r SN -c 16 -s 1 -sp COM1 -i
Read Indian device using serial port connection.
GuruxDlmsSample -S COM1 -c 16 -s 1 -a Low -P [password]

Then, I try to use -n option but it's not possible. I checked the code and option is not handled. How could I include the serial number of the meter in the request?

Profile picture for user Kurumi

Kurumi

7 years 5 months ago

Problem reading with Serial Number

Hi,

We'll add it. What programming language you are using?

BR,

Mikko

jesusvergara

7 years 5 months ago

Hi Mikko,

Hi Mikko,

Now I gathering data from the meter. For example, the power is getting fine. The problem is when I want to read Load Profile. I'm using the following code:

GXDateTime date1 = new GXDateTime(2018,12,31,10,0,0,0);
GXDateTime date2 = new GXDateTime(2018,12,31,13,0,0,0);
GXDLMSObject clock = new GXDLMSObject();
clock.setLogicalName("0.0.1.0.0.255");
GXDLMSProfileGeneric pg = new GXDLMSProfileGeneric("1.0.99.1.0.255");
pg.setSortObject(clock);

Object[] vals = settings.client.readRowsByRange(pg, date1.getValue(), date2.getValue());
for (int i = 0; i<vals.length;i++) {
reader.showValue(0, vals[i]);
System.out.println( " Value of index "+i+": " + vals[i]);
}

I can read the following output:

java -jar dlmsTest.jar -h xxx.xxx.xxx.xxx -p xxxx -c 24 -g "1.0.1.7.0.255:2" -w -a Low -P XXXXXX
Authentication: Low
ClientAddress: 0x18
ServerAddress: 0x1
Index: 2 Value: 4,953,360 kW
Now reading generic load profile...
Index: 0 Value: 00 01 00 18 00 01 00 0D C0 01 C1 00 07 01 00 63 01 00 FF 02 00
Value of index 0: [B@368239c8

How I should use it?

Thank you so much for your support

Profile picture for user Kurumi

Kurumi

7 years 4 months ago

Hi,

Hi,

Data depends on the profile generic what you read. Try to read capture objects first. In that way, it helps you a little bit.

BR,

Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin