By teddy Jim, 17 December, 2020 Forums Gurux DLMS for Java 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 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. 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 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? 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 Log in or register to post comments
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
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.
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
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?
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
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
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.
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
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?
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