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,
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.
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.
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.
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: [
]
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?
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.
I just verified and server returns all the objects. Are you using example GuruxDLMSServerExample or GuruxDLMSServerExample2 or GuruxDLMSSimpleServerExample?
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
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
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
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
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
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
Hi,
Hi,
I just verified and server returns all the objects. Are you using example GuruxDLMSServerExample or GuruxDLMSServerExample2 or GuruxDLMSSimpleServerExample?
BR,
Mikko
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
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