Now i'd like to read a register, so in C#, i connect to it, parse UA reply and make AARQ request (as the doc).
all seem work,
but now how to read an obis register? there is no example and the client object (GXDLMSClient) has no getObjects method??
can you give me a clue to do that?
sorry, the client has getObjects method.... aware of the best 'i'm stupid' for me...
i'd like only read one or two register, i know their obis code, and i like to get i" 1.1.96.88.32.21.55" value scale without download a full association View.
Can you think it is possible?
ok i send for example an GXDLMS object to the read function and it update the scale and the unit for my object but it don't update the value after the read function:
code example:
GXDLMSRegister phaseFailureNotToBeUpdated = new GXDLMSRegister("1.0.0.3.4.255", 51632);
GXDLMSRegister phaseFailure = new GXDLMSRegister("1.0.0.3.4.255", 51632);
Client.Read(phaseFailure,3);
Result :
phaseFailure has update on scale and units but not on value.
this for all object (not yet test generics profile);
thank's in advance for your help again .
SOLVED
need to read Scale and units BEFORE the value itself....
Client.Read(phaseFailure,3);
Client.Read(phaseFailure,2);
hello. i am trying to write a code to connect and read data from a meter using tcp/ip in C#(VS2017). I get the sample codes from official site. I downloaded the nugets. However there are undefined variables, terms undefined in .dll's. Is there any simplest, shortest sample codes for it,please?
How to read an obis register
Hi,
Best way is if you can read association view. You can do this with GetObjectsRequest.
You can read more from here:
http://www.gurux.fi/Gurux.DLMS.Client
BR,
Mikko
sorry, the client has
sorry, the client has getObjects method.... aware of the best 'i'm stupid' for me...
i'd like only read one or two register, i know their obis code, and i like to get i" 1.1.96.88.32.21.55" value scale without download a full association View.
Can you think it is possible?
How to read an obis register
Hi,
You don't need to read association view. If you know Logical name or Short name you can create objects and read them right a way.
Something like this.
GXDLMSClock clock = new GXDLMSClock("0.0.1.0.0.255");
//Read object.
BR,
Mikko
thanks but no read of the value [SOLVED]
ok i send for example an GXDLMS object to the read function and it update the scale and the unit for my object but it don't update the value after the read function:
code example:
GXDLMSRegister phaseFailureNotToBeUpdated = new GXDLMSRegister("1.0.0.3.4.255", 51632);
GXDLMSRegister phaseFailure = new GXDLMSRegister("1.0.0.3.4.255", 51632);
Client.Read(phaseFailure,3);
Result :
phaseFailure has update on scale and units but not on value.
this for all object (not yet test generics profile);
thank's in advance for your help again .
SOLVED
need to read Scale and units BEFORE the value itself....
Client.Read(phaseFailure,3);
Client.Read(phaseFailure,2);
How to read an obis register
Hi,
Yes, you are right. I'm glad that you solve this. Note that you need to read scaler only once.
It's static.
BR,
Mikko
hello. i am trying to write a
hello. i am trying to write a code to connect and read data from a meter using tcp/ip in C#(VS2017). I get the sample codes from official site. I downloaded the nugets. However there are undefined variables, terms undefined in .dll's. Is there any simplest, shortest sample codes for it,please?
Hi Tim,
Hi Tim,
Please, create a new topic and I'll answer your question there.
BR,
Mikko
I did it. Sorry for
I did it. Sorry for inappropriate entry.