Hi there. I was using the Python library and I got a problem when trying to write the Profile Generic buffer attribute.
I have a profile generic with the capture objects being the Clock time attribute in first place and the Data value attribute in second place.
I am trying to set the Profile Generic buffer attribute to a single row having the first column value set to the timestamp corresponding to the datetime "23/10/2025 01:02:03" (using the format "%d/%m/%Y %H:%M:%S") and the second column value set to the integer 0.
When I try to set it, I get the following error from one of your library methods (the ValueEventArgs object is set by you inside your code and the call to the getRowEndIndex method is also done by you inside your code):
'ValueEventArgs' object has no attribute 'getRowEndIndex'
These below are the Python hex messages both in TX and RX:
TX: 11:01:12 7E A0 19 03 03 FC 9E E7 E6 E6 00 C0 01 C1 00 07 01 00 63 01 00 FF 03 00 8C 90 7E
RX: 11:01:13 7E A0 36 03 03 FE 26 F9 E6 E7 00 C4 01 C1 00 01 02 02 04 12 00 08 09 06 00 00 01 00 00 FF 0F 02 12 00 00 02 04 12 00 01 09 06 00 00 60 0A 01 FF 0F 02 12 00 00 1F 5E 7E
Of course I may be mistaken, so please, let me know if this is a bug that will be patched or if I am missing something.
Thank you in advance.
Hi, Profile generic buffer…
Hi,
Profile generic buffer is not planned to be written. It's updated using the capture action of profile generic.
https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric
BR,
Mikko
Thank you for the quick…
Thank you for the quick reply.
We are aware of that the Profile Generic buffer attribute is not planned to be written; our test was being made to check that it correctly blocked us from doing so.
However, we were expecting to receive the standard error in this case, being "Access Error : Device reports Read-Write denied.", instead we received the "'ValueEventArgs' object has no attribute 'getRowEndIndex'" error that it seems to be wrongly triggered internally by your method when it tries to call a 'ValueEventArgs' object method that does not exist ('getRowEndIndex' is called instead of just taking the 'rowEndIndex' value directly as it is done by your other methods).
Of course the end result is the same, but we were expecting the "access error" error and we got this other one instead that left us scratching our heads. Let us know if you find something about this or if this error in this case is considered normal behaviour.
Thank you very much for your time.
Hi, I'll add profile generic…
Hi,
I'll add profile generic write to the worksheet. The next version is released at the end of this month.
Thank you very much, please…
Thank you very much, please let us know.
Hi, I think I found other…
Hi, I think I found other two instances of this problem, once again in the Profile Generic class.
If you go to the Profile Generic 'getData' method once again, it will take an element of the 'ValueEventArgs' class in input (with the name of 'e').
However, the 'getData' method will call on 'e' the methods 'getRowEndIndex' and 'setRowBeginIndex', which the class 'ValueEventArgs' does not possess (opting instead for getting and setting those values without getters or setters).
So, if I try calling the standard method 'getData' of the Profile Generic class, it will inevitably return with an error because of that, just like I described the other time.
Of course I may be mistaken, so please, let me know if this is a bug that will be patched (maybe by adding those getters and setters in the 'ValueEventArgs' class) or if I am missing something.
Thank you in advance.
EDIT:
I can confirm to you that the problem (for both things I wrote you about in this thread) is in fact the lack of those getters and setters from your library, as when I temporary added them to the 'ValueEventArgs' class for a test it all worked just fine.
Hi there, I am passing by to…
Hi there, I am passing by to see if there has been some new development on this front.