Gurux DLMS java example

10 posts / 0 new
Last post
Franky
Gurux DLMS java example

Hi,

First i'm sorry if my question already post by someone else, i am newbie in gurux dlms.
i'm trying to read Ace6000 with DLMS with gurux.dlms.client example java.

it seems already connect and login to meter.
Then i'm going to execute this code:
"readDataBlock(dlms.getObjectsRequest(), reply);
GXDLMSObjectCollection objects =
dlms.parseObjects(reply.getData(), true);"
where the trace Loop Frame ID do not match.
This is the trace: "Frame ID do not match.
-> 16:34:14.905 7E A8 8C 03 00 02 00 23 90 83 4C E6 E7 00 C4 02 81 00 00 00 00 03 00 82 0D 1C 02 04 12 00 09 11 00 09 06 00 00 0A 00 69 FF 02 02 01 01 02 03 0F 01 16 01 00 01 01 02 02 0F 01 03 02 02 04 12 00 09 11 00 09 06 00 00 0A 80 71 FF 02 02 01 01 02 03 0F 01 16 01 00 01 01 02 02 0F 01 03 02 02 04 12 00 09 11 00 09 06 00 00 0A 80 72 FF 02 02 01 01 02 03 0F 01 16 01 00 01 01 02 02 0F 01 03 02 02 04 12 00 09 11 00 09 06 00 00 74 62 7E
<- 16:34:14.907 7E A0 08 02 23 03 31 26 F2 7E"

Where should i fix this problem?

Thanks before.

kurumi
kurumi's picture
Gurux DLMS java example

Hi,

Can you read your meter? This is a warning, but we can check this. getObjectsRequest is taking long time and lots of data is moved between meter and client.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

Franky
Hi Mikko.

getObjectsRequest is replying "7e a0 1a 2 23 3 32 75 62 e6 e6 0 c0 1 81 0 f 0 0 28 0 0 ff 2 0 94 9e 7e"
so, is there any issue here? i never run till end, because the process is taking too long.

Can i ask more questions ? i'm trying to get data(RTC Current Date & Time) via obiscode(0.0.1.0.0.255) Class Id 8 Attribute ID 0.
using GXDLMSAutoAnswer :
GXDLMSAutoAnswer item = (GXDLMSAutoAnswer) dlms.getObjects().findByLN(ObjectType.AUTO_ANSWER, "0.0.1.0.0.255");
item.getListeningWindow().add(new AbstractMap.SimpleEntry<GXDateTime, GXDateTime>(new GXDateTime(-1, -1, -1, 6, -1, -1, -1),
new GXDateTime(-1, -1, -1, 8, -1, -1, -1)));
readDLMSPacket(dlms.write(item, 3));

got error Message :
java.lang.NullPointerException
DisconnectRequest
at test.GXCommunicate.GetDate(GXCommunicate.java:411)
at test.Main.main(Main.java:35)

kurumi
kurumi's picture
Gurux DLMS java example

Hi,

Reading association view is taking long time. If you know what you want to read, you do not need to read it.
If you want to read clock's date time you should do it like this:

GXDLMSClock clock = new GXDLMSClock();
readDLMSPacket(dlms.read(clock, 2));

Reason why error is thrown is simply that there is no GXDLMSAutoAnswer with that obis code and item is null.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

Franky
Hi Miko

Thanks for the reply. but i've got an error return message
<- 15:29:05.058 7E A0 1A 02 23 03 54 45 64 E6 E6 00 C0 01 81 00 08 00 00 01 00 00 FF 02 00 65 D7 7E
-> 15:29:05.125 7E A0 0A 03 00 02 00 23 31 6C 0B 7E

is there another way to read using obis code(0.0.1.0.0.255) Class Id 8 Attribute ID 0?

kurumi
kurumi's picture
Gurux DLMS java example

Hi,

I forget to say that you must use authentication level Low to connect for Ace6000.
If you are using authentication level None, you do not see the clock.

This is Actaris spesific issue.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

dhirajthaokar
how to send parameter for serial communication of DLMS meter :-

i ma using fallowing code

[code removed by admin]

dhirajthaokar
how to send parameter for serial communication of DLMS meter

[code removed by admin]

kurumi
kurumi's picture
Hi dhirajthaokar,

Hi dhirajthaokar,

If you have a question. please create a new topic and don't paste our example code to the forum. I'll ask admin to remove code example. What is your question?

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

dhirajthaokar
i want read monthly data from dlms meter

hello sir,
i connected meter with PC and i found meter profile also. but i want to read data from meter monthly/daily basis
how to apply java code
i used

GXDLMSAutoAnswer item = (GXDLMSAutoAnswer) settings.client.getObjects().findByLN(ObjectType.AUTO_ANSWER, "0.0.1.0.0.255");
item.getListeningWindow().add(new AbstractMap.SimpleEntry<GXDateTime, GXDateTime>(new GXDateTime(-1, -1, -1, 13, -1, -1, -1),
new GXDateTime(-1, -1, -1, 14, -1, -1, -1)));
reader.readDLMSPacket(settings.client.write(item, 3));