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. Script Table Method

script table method

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 teddy Jim , 17 December, 2020
Forums
Gurux DLMS for Java
Profile picture for user Kurumi

Kurumi

5 years 5 months ago

Hi,

Hi,

You can call Execute. It will do what you want to.

CXDLMSScript script = new GXDLMSScript();
GXDLMSScriptTable it = new GXDLMSScriptTable ("0.0.10.0.1.255");
int i = 0x0002;
it.Execute(client, script);

BR,
Mikko

teddy Jim

5 years 5 months ago

Thank you Mikko

Thank you Mikko

I ran this method but the following result is me.

GXDLMSScript script = new GXDLMSScript();
GXDLMSScriptTable it = new GXDLMSScriptTable ("0.0.10.0.1.255");
readDLMSPacket(it.execute(clients, script));

UnMatched type error.

TX: 09:54:30.456 7E A0 1D 02 B7 23 76 A2 9F E6 E6 00 C3 01 C1 00 09 00 00 0A 00 01 FF 01 01 12 00 00 56 B3 7E
RX: 09:54:30.565 7E A0 12 23 02 B7 96 7A 4C E6 E7 00 C7 01 C1 0C 00 5C 1D 7E

and When I added this argument, I got an error.

Is there any other way to running the 'Execute' method?
Can you see why I am getting 'Unmatched type error'?

also, Can I send packets in 'none' type?

Here is an example of the packet I want to send.

7e a0 1c 02 ff 23 32 72 50 e6 e6 00 c3 01 81 00 09 00 00 0a 00 01 ff 01 12 00 03 4b bf 7e

Please answer the above questions.

Thanks Mikko.
I'll wait for your reply.

Profile picture for user Kurumi

Kurumi

5 years 5 months ago

Hi,

Hi,

ID is now zero. Add this.
script.setId(2);

You must define data type in java because java doesn't support unsigned numbers.

BR,
Mikko

teddy Jim

5 years 5 months ago

Thank you for your reply.

Thank you for your reply.

Does it mean there is no way to send none in the method parameter in Java,
and I must put data type in it?

Profile picture for user Kurumi

Kurumi

5 years 5 months ago

Hi,

Hi,

All DLMS actions are sending data. There are no empty parameters at the moment. For this reason, you can't send action requests without data.

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