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. Cannot Get Any Response From GXDLMSClient->Method() (Token Gateway Issue)

Cannot Get any response From GXDLMSClient->Method() (Token Gateway Issue)

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 Tauheedul Maruf , 4 March, 2019
Forums
Gurux.DLMS

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?

Profile picture for user Kurumi

Kurumi

7 years 3 months ago

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

Tauheedul Maruf

7 years 3 months ago

In reply to Hi, by Kurumi

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

Profile picture for user Kurumi

Kurumi

7 years 3 months ago

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

Tauheedul Maruf

7 years 3 months ago

.

.

Tauheedul Maruf

7 years 3 months ago

In reply to Hi, by Kurumi

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

Tauheedul Maruf

7 years 3 months ago

In reply to Hi, by Kurumi

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

Profile picture for user Kurumi

Kurumi

7 years 3 months ago

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

  • 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