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 9 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 9 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 9 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 9 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 9 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 9 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 9 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 9 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 9 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

  • 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