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 6 months ago

Problem reading with Serial Number

Hi,

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

BR,

Mikko

jesusvergara

7 years 6 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 5 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

  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200
  • Mon, 06/15/2026 - 08:52
    gurux.dlms.c 9.0.2606.1501

New forum topics

  • Service not known error on gprs communication
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
More

Who's new

  • @Hmd- several '.
  • Dawsontot
  • Jerrylam
  • qvlLdJweKzGUYaSOVS
  • LindanEt
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin