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. Forums
  3. Profile Generic Not Printing In Client Server In C

profile generic not printing in client server in c

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 gkrishna , 1 September, 2020
Forums
General discussion

Hi Mikko,

I am trying to read profile generic in client( code) and demo server(c), but in client inside com_readAllObjects(), only com_getAssociationView prints the values and especially com_readProfileGenericColumns and com_readProfileGenerics prints nothing, even it is not entering into the for loop inside those functions, the for loop is for (pos = 0; pos != objects.size; ++pos) and the objects,size is always 0 and that is why it is happening, even when I manually change it, it says no parameter so how can we print the profile generic values of client atleast one row/column with parameters. Please help me to get this,

Thanks,
Gopi Krishna M

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

I believe that you need to change the authentication level. Some meters don't show all the object if authentication level is None. Try to read the association view with GXDLMSDirector and check is profile generic object there.

BR,
Mikko

gkrishna

5 years 11 months ago

Hi Mikko,

Hi Mikko,

I am not using meter and just using the Demo server(c lan) of gurux and the profile generic .csv file is created in server side with data time but I am not getting any data in client side when using com_readProfileGenericColumns and com_readProfileGenerics, It did not enter into the for loop itself, do I need to change anything, I am able to create, calendar or other things in client but whenever I try to get profile generic then I am not getting from the client. Please help us.

Thanks,
Gopi Krishna

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

The client example is updated. At the moment trace is not shown. It's now changed to info. Get the latest version and you can see read values in the command prompt.

BR,
Mikko

gkrishna

5 years 10 months ago

Hi MIkko,

Hi MIkko,

still I am getting only associate values and nothing related to profile generic and it is not entering into the for loop inside of profileGeneric functions in client, Is profileGeneric sample code really working in client(c code), my output is below, please look at it.
./gurux.dlms.client.bin -h localhost -p 4061 -t Info
Connecting to localhost:4061
InitializeConnection
GetAssociationView
-------- Reading Object Association Logical Name 0.0.40.0.0.255
Index: 2 Value: [Association Logical Name 0.0.40.0.0.255, Association Logical Name 0.0.40.0.1.255, Data 0.0.42.0.0.255, Clock 0.0.1.0.0.255]
Index: 3 Value: 16/1
Index: 4 Value: 0.0.0.0.0.0 0 0 0 5 8 1 1
Index: 5 Value: 0 0 0 0
Index: 6 Value: 0 0 05 8 2 0
Index: 7 Value: GuruxRAMA
Index: 8 Value: 2
Index: 9 Value: 00 00 00 00 00 00
Index: 10 Value: [
]

-------- Reading Object Association Logical Name 0.0.40.0.1.255
Index: 2 Value: [Association Logical Name 0.0.40.0.0.255, Association Logical Name 0.0.40.0.1.255, Data 0.0.42.0.0.255, Clock 0.0.1.0.0.255]
Index: 3 Value: 16/1
Index: 4 Value: 0.0.0.0.0.0 0 0 0 5 8 1 1
Index: 5 Value: 0 0 0 0
Index: 6 Value: 0 0 05 8 2 0
Index: 7 Value: GuruxRAMA
Index: 8 Value: 2
Index: 9 Value: 00 00 00 00 00 00
Index: 10 Value: [
]

-------- Reading Object Data 0.0.42.0.0.255
Index: 2 Value: 47 52 58 30 30 30 30 30 30 30 31 32 33 34 35 36
-------- Reading Object Clock 0.0.1.0.0.255
Index: 2 Value: 09/01/2020 15:46:42 UTC+00:00
Index: 3 Value: 0
Index: 4 Value: 0
Index: 5 Value: 09/01
Index: 6 Value: 03/01
Index: 7 Value: 0
Index: 8 Value: 0
Index: 9 Value: 0

Profile picture for user Kurumi

Kurumi

5 years 10 months ago

Hi,

Hi,

Your meter is showing only that data without authentication. You need to set the authentication level to Low or High if you want to see more data. What demo server you are using?

BR,
Mikko

gkrishna

5 years 10 months ago

Hi Mikko,

Hi Mikko,

I am using your Gurux demo server(c code) only, you already informed me that to see we don't need any changes in the server c code so I have to get the list of profile generic, but it is not coming as I shown above. Please let me know.

Thanks,
Gopi Krishna M

Profile picture for user Kurumi

Kurumi

5 years 10 months ago

Hi,

Hi,

I just verified and server returns all the objects. Are you using example GuruxDLMSServerExample or GuruxDLMSServerExample2 or GuruxDLMSSimpleServerExample?

BR,
Mikko

gkrishna

5 years 10 months ago

Hi Mikko,

Hi Mikko,

I am using GuruxDLMSServerExample. It doesn't print profile generic as I posted the results above. Do I need to use anything else.

Thanks,
Gopi Krishna M

Profile picture for user Kurumi

Kurumi

5 years 10 months ago

Hi,

Hi,

GuruxDLMSServerExample returns only those objects if authentication is not used. Add command line parameters authentication -a Low -P Gurux

or use GuruxDLMSServerExample2.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • 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

New forum topics

  • 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
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More

Who's new

  • CTKNhZElptjSlOrpkXl
  • YCbccqfLGRMnlCWoJhXP
  • Malcolmactig
  • mhliang
  • Kevinmug
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin