I Tried to implement TokenGateway in the meter but while im sending Method() with its required parameters it takes the parameter but it didnt showing any response and not even any error. Im using
1.LogicalNameReferencing as true
2. byte[] bytes = Encoding.ASCII.GetBytes(token);
_tokenGateway.Token = bytes;
_tokenGateway.LogicalName = "0.0.19.40.0.255";
_tokenGateway.Time = DateTime.Now;
_tokenGateway.DeliveryMethod = TokenDelivery.Local;
_tokenGateway.StatusCode = TokenStatusCode.AuthenticationOk;
_tokenGateway.DataValue = Convert.ToString((byte)(10));
and then pass it to the Method
client.Method(_tokenGateway.LogicalName, ObjectType.TokenGateway, 1, _tokenGateway.Token, DataType.OctetString);
I also checked buffer value packet its alright.
But I didn't got any response from the meter.
What should i do? is my approach is correct?
Your idea seems to be OK. Don't try to set time. DeliveryMethod,StatusCode or DataValue. Try to read them and check that values are correct. If they aren't, you need to write correct values to the meter.
Thank you sooooooo much for Your Reply Sir Mikko Kurunsaari, But I have another problem regarding this..
Should i write via this -> Write(GXDLMSObject item, int index) function?
but TokenGateway Need MethodID but this Write take AttributesID.
So how am i gonna write the token into the meter?
Via This -> Method(object name, ObjectType objectType, int index, object value, DataType type) ?
Please Suggest Me...
Thank You
Actually I thought if I want to pass Token into the meter. then i need to set DeliveryMethod, DataValue and StatusCode so those are not needed. And No i didn't read them from the meter.
I just want to Set a Token into the Meter using DeleveryMethod(Action) for TokenGateway by which meter can be recharge.
So how should i pass or Write the Token into the Meter? I used serial communication with the meter plz suggest me what should i do for this?
And i have found ReadDLMSPacket(byte[] data, GXReplyData reply) in GXDLMSCommunicator Class should i use this? or any better idea plz suggest me.
Thank You
I just want to Set a Token into the Meter using DeleveryMethod(Action) for TokenGateway by which meter can be recharge.
So how should i pass or Write the Token into the Meter? I used serial communication with the meter plz suggest me what should i do for this?
And i have found ReadDLMSPacket(byte[] data, GXReplyData reply) in GXDLMSCommunicator Class should i use this? or any better idea plz suggest me.
Thank You
I was aking have you read those values because I want to know have you received any token from the network. If you read the time you get information are there any tokens received. This information helps you know is your token network working.
Can you read those values example using GXDLMSDirector and send log file to me. We can check is your token network working.
Hi,
Hi,
Your idea seems to be OK. Don't try to set time. DeliveryMethod,StatusCode or DataValue. Try to read them and check that values are correct. If they aren't, you need to write correct values to the meter.
BR,
Mikko
Need Help
Thank you sooooooo much for Your Reply Sir Mikko Kurunsaari, But I have another problem regarding this..
Should i write via this -> Write(GXDLMSObject item, int index) function?
but TokenGateway Need MethodID but this Write take AttributesID.
So how am i gonna write the token into the meter?
Via This -> Method(object name, ObjectType objectType, int index, object value, DataType type) ?
Please Suggest Me...
Thank You
Hi,
Hi,
You send a token using method as you have done. I want to know what is DeliveryMethod, DataValue and StatusCode if you read them from the meter?
BR,
Mikko
.
.
Actually I thought if I want
Actually I thought if I want to pass Token into the meter. then i need to set DeliveryMethod, DataValue and StatusCode so those are not needed. And No i didn't read them from the meter.
I just want to Set a Token into the Meter using DeleveryMethod(Action) for TokenGateway by which meter can be recharge.
So how should i pass or Write the Token into the Meter? I used serial communication with the meter plz suggest me what should i do for this?
And i have found ReadDLMSPacket(byte[] data, GXReplyData reply) in GXDLMSCommunicator Class should i use this? or any better idea plz suggest me.
Thank You
tauheedulmaruf
I just want to Set a Token
I just want to Set a Token into the Meter using DeleveryMethod(Action) for TokenGateway by which meter can be recharge.
So how should i pass or Write the Token into the Meter? I used serial communication with the meter plz suggest me what should i do for this?
And i have found ReadDLMSPacket(byte[] data, GXReplyData reply) in GXDLMSCommunicator Class should i use this? or any better idea plz suggest me.
Thank You
Hi,
Hi,
I was aking have you read those values because I want to know have you received any token from the network. If you read the time you get information are there any tokens received. This information helps you know is your token network working.
Can you read those values example using GXDLMSDirector and send log file to me. We can check is your token network working.
You can get my email address from here:
http://www.gurux.fi/AboutUs
BR,
Mikko