Profile generic - Python

6 posts / 0 new
Last post
frato
Profile generic - Python

Hello, first of all I want to thank you for your work is really amazing.

I have managed to read the records of an actaris meter. But what interests me most is to read a record of the 'Profile Generic' 0.1.98.1.0.255.

I am using Python 3.7.

If you could tell me how reading these records would be, I would appreciate it.

I tried with
GXDLMSProfileGeneric ()
and with readRowsByEntry ()
but I haven't got much

To read this record in 'GXDLMSDirector' I achieve it with read 1 count: 1
Getting the data I need

Thank

Kurumi
Kurumi's picture

Hi,

SL 7000 and ACE6000 are older meters and they don't support DLMS well with profile generics.
I can't remember if they support readRowsByEntry or readRowsByRange.

If there is only one row you can read it like this:
pg = GXDLMSProfileGeneric("0.1.98.1.0.255")
#Read capture objects first.
client.read(pg, 3);
#Read all rows from the buffer.
client.read(pg, 2);

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

frato

thanks for your time.

when using the functions you passed me I get:
[bytearray(b'~\xa0\x1a\x02#\x03>\x19\xa8\xe6\xe6\x00\xc0\x01\xc1\x00\x07\x00\x01b\x01\x00\xff\x02\x00\x15\x93~')]

Do you think the result is correct?
Should I process it to get the data?
I thought the result was a matris

thanks

Kurumi
Kurumi's picture

Hi,
This is Get request.
http://www.gurux.fi/GuruxDLMSTranslator?pdu=c001c100070001b0100ff02001593

Send this to the meter and meter reply to you.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

frato

Hello,
Thank you for your time.

I don't get the results when I do this I get:
gurux_dlms.GXDLMSException.GXDLMSException: Access Error : Unknown error.

Maybe I could give an example of reading the data I need.
I propose you to place an ACE6000 meter so that you can access it from the internet, to formulate the example, and if it helps you to acquire experience or try something.
I attached a photo of what I want to get, obtained from the GXDLMSDirector

Connection data is passed to you as private. I'll even give you an example of a date reading

thanks

Image: 
frato

Hello, sorry for this message, I have sent you the mail, but I have not received a reply, I assume that you have not seen it, or that I entered the spam box, I just resent it now.

thank you,
and a great respect for the work they do that is excellent